From 97c063661aeb4758ee80d3989120f0cd3c7df10a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 19:52:29 -0600 Subject: [PATCH] new NPC for ToL support --- src/engine/gameManager/BuildingManager.java | 5 +++-- src/engine/net/client/handlers/ActivateNPCMsgHandler.java | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index c86866c8..354d4f14 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -520,9 +520,10 @@ public enum BuildingManager { if (building.getBlueprintUUID() == 0) return false; - if (building.getBlueprint().getSlotsForRank(building.getRank()) == building.getHirelings().size()) + if (building.getBlueprint().getSlotsForRank(building.getRank()) == building.getHirelings().size()) { + Logger.error("failed at addHireling with contract: " + contract.getContractID()); return false; - + } String pirateName = NPCManager.getPirateName(contract.getMobbaseID()); if (item.getChargesRemaining() > 0) diff --git a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java index 05f6a9c5..694627bf 100644 --- a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java +++ b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java @@ -147,8 +147,10 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { if(contract.getContractID() == 865)//siege engineer override = true; } - if(override == false) + if(override == false) { + Logger.error("failed at override with contract: " + contract.getContractID()); return false; + } } if (!BuildingManager.addHireling(building, player, zone, contract, contractItem))