forked from MagicBane/Server
Increase Tree of Life rank 8 hireling slots and improve slot debugging
This commit is contained in:
@@ -39,6 +39,13 @@ public class SlotTestCmd extends AbstractDevCmd {
|
|||||||
|
|
||||||
Building building = (Building) target;
|
Building building = (Building) target;
|
||||||
|
|
||||||
|
outString += "Rank: " + building.getRank() + "\r\n";
|
||||||
|
outString += "MaxSlots: " + building.getBlueprint().getMaxSlots() + "\r\n";
|
||||||
|
outString += "SlotsForRank: "
|
||||||
|
+ building.getBlueprint().getSlotsForRank(building.getRank())
|
||||||
|
+ "\r\n";
|
||||||
|
outString += "Hireling Count: " + building.getHirelings().size() + "\r\n\r\n";
|
||||||
|
|
||||||
buildingLocations = BuildingManager._slotLocations.get(building.meshUUID);
|
buildingLocations = BuildingManager._slotLocations.get(building.meshUUID);
|
||||||
|
|
||||||
if (buildingLocations == null) {
|
if (buildingLocations == null) {
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ public class Blueprint {
|
|||||||
availableSlots = 3;
|
availableSlots = 3;
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
availableSlots = 1;
|
availableSlots = Math.min(3, this.maxSlots);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
availableSlots = 0;
|
availableSlots = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user