Browse Source

Patrol points are reset each patrol.

combat-2
MagicBot 1 year ago
parent
commit
931d1992b6
  1. 9
      src/engine/objects/Mob.java

9
src/engine/objects/Mob.java

@ -1691,15 +1691,6 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1691,15 +1691,6 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.agentType.equals(AIAgentType.MOBILE))
NPCManager.AssignPatrolPoints(this);
if (this.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) {
Building barracks = this.building;
if (barracks != null && barracks.patrolPoints != null && !barracks.getPatrolPoints().isEmpty()) {
this.patrolPoints = barracks.patrolPoints;
}
}
this.deathTime = 0;
}

Loading…
Cancel
Save