Browse Source

max slots for rank adjustments

lakebane-new
FatBoy-DOTC 7 months ago
parent
commit
aeb21c328e
  1. 7
      src/engine/gameManager/BuildingManager.java
  2. 10
      src/engine/objects/Blueprint.java

7
src/engine/gameManager/BuildingManager.java

@ -520,7 +520,12 @@ public enum BuildingManager {
if (building.getBlueprintUUID() == 0) if (building.getBlueprintUUID() == 0)
return false; return false;
if (building.getBlueprint().getMaxSlots() == building.getHirelings().size()) int maxSlots = building.getBlueprint().getMaxSlots();
if(building.getBlueprint().getBuildingGroup() != null) {
building.getBlueprint().getSlotsForRank(building.getRank());
}
if (maxSlots == building.getHirelings().size())
return false; return false;
String pirateName = NPCManager.getPirateName(contract.getMobbaseID()); String pirateName = NPCManager.getPirateName(contract.getMobbaseID());

10
src/engine/objects/Blueprint.java

@ -327,20 +327,20 @@ public class Blueprint {
break; break;
case 3: case 3:
case 4: case 4:
case 5:
case 6:
availableSlots = 2; availableSlots = 2;
break; break;
case 5:
case 6:
case 7: case 7:
availableSlots = 3;
break;
case 8: case 8:
availableSlots = 1; availableSlots = 3;
break; break;
default: default:
availableSlots = 0; availableSlots = 0;
break; break;
} }
if(this.buildingGroup != null && this.buildingGroup.equals(BuildingGroup.TOL))
availableSlots += 1;
return availableSlots; return availableSlots;
} }

Loading…
Cancel
Save