From 2f6e334eea878e9ed6217bd6f323f330188938cf Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 18 Aug 2023 13:01:58 -0400 Subject: [PATCH] Last debug cycle in testing. --- .../client/handlers/MinionTrainingMsgHandler.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java index 908483ab..1ac56e9f 100644 --- a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java +++ b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java @@ -153,8 +153,8 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { if (siegeMob != null) { - siegeMob.setSpawnTime(60 * 15); - + // siegeMob.setSpawnTime(60 * 15); + siegeMob.setSpawnTime(10); Building building = BuildingManager.getBuilding(((MinionTrainingMessage) baseMsg).getBuildingID()); siegeMob.building = building; @@ -166,11 +166,9 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { int slot; if (building.getBlueprint().equals(Enum.BuildingGroup.ARTYTOWER)) - slot = 1; + slot = 2; else - slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob); - - slot = slot + 1; // First slot is for the captain + slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); siegeMob.bindLoc = building.getLoc().add(slotLocation.getLocation()); @@ -183,7 +181,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { siegeMob.endLoc = new Vector3fImmutable(siegeMob.bindLoc); zone.zoneMobSet.add(siegeMob); - siegeMob.setLoc(siegeMob.getBindLoc()); + siegeMob.setLoc(siegeMob.bindLoc); } }