From b9722ec2929a0ebf2a8cb6f9c8e5a22091074980 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 16:06:05 -0400 Subject: [PATCH] more old hireling code removed. --- src/engine/gameManager/BuildingManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 4586c408..69c33d7d 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -505,10 +505,8 @@ public enum BuildingManager { if (mob == null) return false; - mob.setRank(rank); - mob.setPlayerGuard(true); - mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher; - MovementManager.translocate(mob, mob.getBindLoc(), mob.region); + WorldGrid.addObject(mob, contractOwner); + return true; } @@ -519,8 +517,8 @@ public enum BuildingManager { if (mob == null) return false; - mob.setRank(rank); - mob.setPlayerGuard(true); + WorldGrid.addObject(mob, contractOwner); + return true; }