|
|
@ -1545,6 +1545,10 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
this.spawnTime = 600; |
|
|
|
this.spawnTime = 600; |
|
|
|
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); |
|
|
|
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case GuardMinion: |
|
|
|
|
|
|
|
this.agentType = AIAgentType.GUARDMINION; |
|
|
|
|
|
|
|
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc()); |
|
|
|
|
|
|
|
break; |
|
|
|
case GuardWallArcher: |
|
|
|
case GuardWallArcher: |
|
|
|
this.agentType = AIAgentType.GUARDWALLARCHER; |
|
|
|
this.agentType = AIAgentType.GUARDWALLARCHER; |
|
|
|
this.spawnTime = 450; |
|
|
|
this.spawnTime = 450; |
|
|
@ -1799,10 +1803,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
public boolean isPlayerGuard() { |
|
|
|
public boolean isPlayerGuard() { |
|
|
|
|
|
|
|
|
|
|
|
if (EnumSet.of(AIAgentType.GUARDCAPTAIN, AIAgentType.GUARDMINION, AIAgentType.GUARDWALLARCHER).contains(this.agentType)) |
|
|
|
return EnumSet.of(AIAgentType.GUARDCAPTAIN, AIAgentType.GUARDMINION, AIAgentType.GUARDWALLARCHER).contains(this.agentType); |
|
|
|
return true; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getLastMobPowerToken() { |
|
|
|
public int getLastMobPowerToken() { |
|
|
|