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

Loading…
Cancel
Save