Browse Source

zerg test fixes

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
acc0c1dc46
  1. 2
      src/engine/gameManager/ZergManager.java
  2. 6
      src/engine/workthreads/HourlyJobThread.java

2
src/engine/gameManager/ZergManager.java

@ -253,7 +253,7 @@ public class ZergManager { @@ -253,7 +253,7 @@ public class ZergManager {
float returnMultiplier = 1.0f;
if(source.ZergMultiplier > 0 && target.ZergMultiplier > 0){
if(source.ZergMultiplier > target.ZergMultiplier) {
returnMultiplier = 1 + (target.ZergMultiplier - source.ZergMultiplier);
returnMultiplier = 1 + (source.ZergMultiplier - target.ZergMultiplier);
} else{
returnMultiplier = 1.0f;
}

6
src/engine/workthreads/HourlyJobThread.java

@ -158,6 +158,12 @@ public class HourlyJobThread implements Runnable { @@ -158,6 +158,12 @@ public class HourlyJobThread implements Runnable {
return false;
}
for(Integer id : mine._playerMemory ){
PlayerCharacter.getPlayerCharacter(id).ZergMultiplier = 1.0f;
}
for(Integer id : mine._recentMemory.keySet()){
PlayerCharacter.getPlayerCharacter(id).ZergMultiplier = 1.0f;
}
// Mine building still stands; nothing to do.
// We can early exit here.

Loading…
Cancel
Save