guards use highbred City._playerMemory.size() and Mob.playerAgroMap to go to sleep

This commit is contained in:
2023-05-18 19:54:54 -05:00
parent 0b029a5f79
commit 932daa730a
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ public class City extends AbstractWorldObject {
// Players who have entered the city (used for adding and removing affects)
private final HashSet<Integer> _playerMemory = new HashSet<>();
public final HashSet<Integer> _playerMemory = new HashSet<>();
public volatile boolean protectionEnforced = true;
private String hash;
+2
View File
@@ -99,6 +99,7 @@ public class Mob extends AbstractIntelligenceAgent {
private DeferredPowerJob weaponPower;
private DateTime upgradeDateTime = null;
private boolean lootSync = false;
public City guardedCity;
/**
* No Id Constructor
@@ -806,6 +807,7 @@ public class Mob extends AbstractIntelligenceAgent {
mob.npcOwner = guardCaptain;
mob.spawnTime = (int)(-2.500 * guardCaptain.building.getRank() + 22.5) * 60;
mob.BehaviourType = Enum.MobBehaviourType.GuardMinion;
mob.guardedCity = guardCaptain.guardedCity;
mob.parentZone = parent;
parent.zoneMobSet.add(mob);
return mob;