Browse Source

new NPC for ToL support

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
ba4ab458a0
  1. 2
      src/engine/net/client/handlers/ActivateNPCMsgHandler.java
  2. 2
      src/engine/objects/Blueprint.java

2
src/engine/net/client/handlers/ActivateNPCMsgHandler.java

@ -152,7 +152,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
return false; return false;
} }
} }
Logger.error("override successful: " + contract.getContractID());
if (!BuildingManager.addHireling(building, player, zone, contract, contractItem)) if (!BuildingManager.addHireling(building, player, zone, contract, contractItem))
return false; return false;

2
src/engine/objects/Blueprint.java

@ -316,7 +316,7 @@ public class Blueprint {
if (this.maxSlots <= 1 && this.buildingGroup.equals(BuildingGroup.TOL) == false) if (this.maxSlots <= 1 && this.buildingGroup.equals(BuildingGroup.TOL) == false)
return maxSlots; return maxSlots;
if (this.maxRank == 1 && currentRank == 1) if (this.maxRank == 1 && currentRank == 1&& this.buildingGroup.equals(BuildingGroup.TOL) == false)
return getMaxSlots(); return getMaxSlots();
switch (currentRank) { switch (currentRank) {

Loading…
Cancel
Save