Browse Source

guards get Mob.guardedCity assigned to

master
FatBoy-DOTC 2 years ago
parent
commit
9b5573c210
  1. 1
      src/engine/ai/MobileFSM.java
  2. 1
      src/engine/objects/Mob.java

1
src/engine/ai/MobileFSM.java

@ -310,6 +310,7 @@ public class MobileFSM { @@ -310,6 +310,7 @@ public class MobileFSM {
return;
else{
if(mob.isPlayerGuard && mob.guardedCity._playerMemory.size() < 1 && mob.playerAgroMap.isEmpty())
//guards use aggro map and players in their local city zone
return;
}
if (mob.despawned && mob.isPlayerGuard) {

1
src/engine/objects/Mob.java

@ -1989,6 +1989,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1989,6 +1989,7 @@ public class Mob extends AbstractIntelligenceAgent {
else {
this.BehaviourType = MobBehaviourType.GuardCaptain;
this.spawnTime = 900;
this.guardedCity = ZoneManager.getCityAtLocation(this.bindLoc);
}
this.deathTime = 0;

Loading…
Cancel
Save