Browse Source

bane mechanic for zerg measures

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
39aec46220
  1. 14
      src/engine/gameManager/ZergManager.java
  2. 9
      src/engine/objects/City.java

14
src/engine/gameManager/ZergManager.java

@ -194,4 +194,18 @@ public class ZergManager {
} }
return capSize; return capSize;
} }
public static float getMultiplier30Man(int count){
float multiplier = 1.0f;
return multiplier;
}
public static float getMultiplier40Man(int count){
float multiplier = 1.0f;
return multiplier;
}
public static float getMultiplierUnlimited(int count){
float multiplier = 1.0f;
return multiplier;
}
} }

9
src/engine/objects/City.java

@ -1450,6 +1450,15 @@ public class City extends AbstractWorldObject {
case 20: case 20:
player.ZergMultiplier = ZergManager.getMultiplier20Man(count); player.ZergMultiplier = ZergManager.getMultiplier20Man(count);
break; break;
case 30:
player.ZergMultiplier = ZergManager.getMultiplier30Man(count);
break;
case 40:
player.ZergMultiplier = ZergManager.getMultiplier40Man(count);
break;
case 9999999:
player.ZergMultiplier = ZergManager.getMultiplierUnlimited(count);
break;
} }
} else{ } else{
player.ZergMultiplier = 1.0f; //something went wrong reset to default until next cycle player.ZergMultiplier = 1.0f; //something went wrong reset to default until next cycle

Loading…
Cancel
Save