forked from MagicBane/Server
Zerg multiplier reduction method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user