Browse Source

max slots for rank adjustments

lakebane-new
FatBoy-DOTC 5 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 { @@ -520,7 +520,12 @@ public enum BuildingManager {
if (building.getBlueprintUUID() == 0)
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;
String pirateName = NPCManager.getPirateName(contract.getMobbaseID());

10
src/engine/objects/Blueprint.java

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

Loading…
Cancel
Save