Relevant methods made static and moved into NPCManager

This commit is contained in:
MagicBot committed 2023-03-31 09:59:49 -04:00
1 parent bbdbead1ff
commit 3881c2b1d0
20 files changed
+507 -539

No files matched your search

@@ -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();