From f24bf98beb624d35d696cd716937e5bf46612f73 Mon Sep 17 00:00:00 2001 From: Samantha Sullivan Date: Tue, 5 Sep 2023 15:46:09 +1000 Subject: [PATCH] decreased attack delay --- .../com/csse3200/game/components/tasks/MobAttackTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/components/tasks/MobAttackTask.java b/source/core/src/main/com/csse3200/game/components/tasks/MobAttackTask.java index cc9b54480..f4f6349b7 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/MobAttackTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/MobAttackTask.java @@ -163,7 +163,7 @@ public int getPriority() { // } private int getActivePriority() { - if ((startTime + 2000) < timeSource.getTime()) { + if ((startTime + delay) < timeSource.getTime()) { // if (isTargetVisible() && (startTime + delay) > timeSource.getTime()) { // System.out.println("ready to fire while active"); return priority; @@ -175,7 +175,7 @@ private int getActivePriority() { private int getInactivePriority() { // return isTargetVisible() ? priority : 0; - if ((startTime + 2000) < timeSource.getTime()) { + if ((startTime + delay) < timeSource.getTime()) { // if (isTargetVisible() && (startTime + delay) > timeSource.getTime()) { // System.out.println("ready to fire while inactive"); return priority;