From fc6f400e09de03f5aedececa8469530c6508b915 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 5 Apr 2023 18:32:03 -0400 Subject: [PATCH] Corner trebs go into slot 1. --- src/engine/objects/Mob.java | 7 ------- src/engine/objects/NPC.java | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index ac898b08..4130be5d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -139,7 +139,6 @@ public class Mob extends AbstractIntelligenceAgent { if (this.contract != null) this.level = 10; - //initializeMob(false, false); clearStatic(); } @@ -1916,12 +1915,6 @@ public class Mob extends AbstractIntelligenceAgent { int count = 0; - // if Arty Tower then the slot will always be 1 - - if (building.getBlueprint() != null && - building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER)) - putSlot = 1; - for (BuildingLocation slotLoc : buildingModel.getLocations()) if (slotLoc.getType() == 6) count++; diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 7ee76473..4687945e 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1451,6 +1451,11 @@ public class NPC extends AbstractCharacter { else if (!siegeMinionMap.containsValue(2)) slot = 2; + // Corner trebs always are slot 1 + + if (this.building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER)) + slot = 1; + siegeMinionMap.put(mob, slot); mob.setInBuildingLoc(this.building, this);