Zerg multiplier reduction method

This commit is contained in:
2024-03-01 19:15:27 -06:00
parent 6a4e0e32cc
commit 9b555c0259
7 changed files with 45 additions and 21 deletions
+9 -9
View File
@@ -107,16 +107,16 @@ public class Mine extends AbstractGameObject {
this.production = Resource.valueOf(rs.getString("mine_resource"));
this.lastClaimer = null;
int capRoll = ThreadLocalRandom.current().nextInt(0,101);
if(capRoll >= 0 && capRoll <= 33){
//int capRoll = ThreadLocalRandom.current().nextInt(0,101);
//if(capRoll >= 0 && capRoll <= 33){
this.capSize = 5;
}
if(capRoll >= 34 && capRoll <= 66){
this.capSize = 10;
}
if(capRoll >= 67 && capRoll <= 100){
this.capSize = 20;
}
//}
//if(capRoll >= 34 && capRoll <= 66){
// this.capSize = 10;
//}
//if(capRoll >= 67 && capRoll <= 100){
// this.capSize = 20;
//}
Building mineTower = BuildingManager.getBuilding(this.buildingID);
mineTower.setMaxHitPoints(5000 * this.capSize);
mineTower.setCurrentHitPoints((float)5000 * this.capSize);