From ba4ab458a0e7f9bb3dcef7543454609e53e12b0f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 19:58:39 -0600 Subject: [PATCH] new NPC for ToL support --- src/engine/net/client/handlers/ActivateNPCMsgHandler.java | 2 +- src/engine/objects/Blueprint.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java index 545db532..8fe3fad0 100644 --- a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java +++ b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java @@ -152,7 +152,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { return false; } } - + Logger.error("override successful: " + contract.getContractID()); if (!BuildingManager.addHireling(building, player, zone, contract, contractItem)) return false; diff --git a/src/engine/objects/Blueprint.java b/src/engine/objects/Blueprint.java index b3db656b..c5532730 100644 --- a/src/engine/objects/Blueprint.java +++ b/src/engine/objects/Blueprint.java @@ -316,7 +316,7 @@ public class Blueprint { if (this.maxSlots <= 1 && this.buildingGroup.equals(BuildingGroup.TOL) == false) return maxSlots; - if (this.maxRank == 1 && currentRank == 1) + if (this.maxRank == 1 && currentRank == 1&& this.buildingGroup.equals(BuildingGroup.TOL) == false) return getMaxSlots(); switch (currentRank) {