|
|
@ -181,9 +181,6 @@ public class Blueprint { |
|
|
|
public int getMaxSlots() { |
|
|
|
public int getMaxSlots() { |
|
|
|
if (this.buildingGroup != null && this.buildingGroup.equals(BuildingGroup.BARRACK)) |
|
|
|
if (this.buildingGroup != null && this.buildingGroup.equals(BuildingGroup.BARRACK)) |
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
if (this.buildingGroup != null && this.buildingGroup.equals(BuildingGroup.TOL)){ |
|
|
|
|
|
|
|
return 4; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return maxSlots; |
|
|
|
return maxSlots; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -319,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 && this.buildingGroup.equals(BuildingGroup.TOL) == false) |
|
|
|
if (this.maxRank == 1 && currentRank == 1&& this.buildingGroup.equals(BuildingGroup.TOL) == false) |
|
|
|
return getMaxSlots(); |
|
|
|
return getMaxSlots(); |
|
|
|
|
|
|
|
|
|
|
|
switch (currentRank) { |
|
|
|
switch (currentRank) { |
|
|
@ -335,11 +332,13 @@ public class Blueprint { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
case 6: |
|
|
|
case 7: |
|
|
|
case 7: |
|
|
|
|
|
|
|
availableSlots = 3; |
|
|
|
|
|
|
|
break; |
|
|
|
case 8: |
|
|
|
case 8: |
|
|
|
availableSlots = 3; |
|
|
|
availableSlots = 3; |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
availableSlots = 1; |
|
|
|
availableSlots = 0; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.buildingGroup.equals(BuildingGroup.TOL)){ |
|
|
|
if(this.buildingGroup.equals(BuildingGroup.TOL)){ |
|
|
|