Browse Source

mines set to 5 cap, zerg mechanic buff/debuff introduced

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
0bdcfe7b51
  1. 26
      src/engine/objects/Mine.java

26
src/engine/objects/Mine.java

@ -100,16 +100,16 @@ public class Mine extends AbstractGameObject { @@ -100,16 +100,16 @@ public class Mine extends AbstractGameObject {
this.production = Resource.valueOf(rs.getString("mine_resource"));
this.lastClaimer = null;
int capRoll = ThreadLocalRandom.current().nextInt(0,100);
if(capRoll >= 0 && capRoll <= 33){
//int capRoll = ThreadLocalRandom.current().nextInt(0,100);
//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;
//}
}
public static void releaseMineClaims(PlayerCharacter playerCharacter) {
@ -714,10 +714,8 @@ public class Mine extends AbstractGameObject { @@ -714,10 +714,8 @@ public class Mine extends AbstractGameObject {
float multiplier = 1.0f;
switch(count){
case 1:
multiplier += 0.5f;
break;
case 2:
multiplier += 0.5f;
multiplier += 0.8f;
break;
case 3:
multiplier += 0.5f;
@ -732,13 +730,13 @@ public class Mine extends AbstractGameObject { @@ -732,13 +730,13 @@ public class Mine extends AbstractGameObject {
multiplier -= 0.2f;
break;
case 7:
multiplier -= 0.45f;
multiplier -= 0.4f;
break;
case 8:
multiplier -= 0.6f;
break;
default:
multiplier -= 0.75f;
multiplier -= 0.80f;
break;
}
return multiplier;

Loading…
Cancel
Save