mob attack delay

This commit is contained in:
FatBoy committed 2024-03-28 22:15:48 -05:00
1 parent f47a9772d7
commit 0e9390ef53
2 files changed
+6 -6

No files matched your search

+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;
}