Browse Source

Logging null building

combat-2
MagicBot 9 months ago
parent
commit
2ffd354f38
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -1558,14 +1558,14 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
this.agentType = AIAgentType.GUARDCAPTAIN; this.agentType = AIAgentType.GUARDCAPTAIN;
this.spawnDelay = 600; this.spawnDelay = 600;
if (this.building == null) if (this.building == null)
Logger.error("Captain : " + this.getObjectUUID() + " : " + this.buildingUUID); Logger.error("Captain : " + this.getObjectUUID() + " missing building " + this.buildingUUID);
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc());
break; break;
case GuardWallArcher: case GuardWallArcher:
this.agentType = AIAgentType.GUARDWALLARCHER; this.agentType = AIAgentType.GUARDWALLARCHER;
this.spawnDelay = 450; this.spawnDelay = 450;
if (this.building == null) if (this.building == null)
Logger.error("Wall Archer : " + this.getObjectUUID() + " : " + this.buildingUUID); Logger.error("Wall Archer : " + this.getObjectUUID() + " missing building " + this.buildingUUID);
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc());
break; break;
} }

Loading…
Cancel
Save