Contract moved to AbstractCharacter.

Arty tower restricted to a single tower captain.
This commit is contained in:
MagicBot committed 2023-05-02 15:09:09 -04:00
1 parent f526bda748
commit 7dcefdf5d7
6 files changed
+16 -7

No files matched your search

@@ -49,9 +49,12 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
for (Item hirelings : player.getInventory()) {
if (hirelings.getItemBase().getType().equals(ItemType.CONTRACT)) {
contract = DbManager.ContractQueries.GET_CONTRACT(hirelings.getItemBase().getUUID());
if (contract == null)
continue;
if (contract.canSlotinBuilding(building))
ItemLists.add(hirelings);
}