Relevant methods made static and moved into NPCManager

This commit is contained in:
2023-03-31 09:59:49 -04:00
parent bbdbead1ff
commit 3881c2b1d0
20 changed files with 507 additions and 539 deletions
@@ -40,10 +40,10 @@ public class MovementUtilities {
if (agent.getContract() != null)
guardCaptain = agent;
else
guardCaptain = (Mob) agent.getNpcOwner();
guardCaptain = (Mob) agent.npcOwner;
if (guardCaptain != null){
Building barracks = guardCaptain.getBuilding();
Building barracks = guardCaptain.building;
if (barracks != null){
City city = barracks.getCity();