mob attack delay

This commit is contained in:
2024-03-28 22:15:48 -05:00
parent f47a9772d7
commit 0e9390ef53
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
public AbstractWorldObject fearedObject = null;
protected int dbID; //the database ID
private int currentID;
public long lastAttackTime = 0;
public long nextAttackTime = System.currentTimeMillis();
private int lastMobPowerToken = 0;
private DeferredPowerJob weaponPower;
private DateTime upgradeDateTime = null;
@@ -1338,8 +1338,8 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
return this.upgradeDateTime != null;
}
public long getLastAttackTime() {
return lastAttackTime;
public long getNextAttackTime() {
return nextAttackTime;
}