Browse Source

zerg multiplier resets for players after mine closes

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
8cb52c6142
  1. 2
      src/engine/gameManager/SimulationManager.java
  2. 5
      src/engine/workthreads/HalfHourlyJobThread.java

2
src/engine/gameManager/SimulationManager.java

@ -201,7 +201,7 @@ public enum SimulationManager { @@ -201,7 +201,7 @@ public enum SimulationManager {
city.onEnter();
}
for(Mine mine : Mine.getMines()){
if(mine != null)
if(mine != null && mine.isActive)
mine.onEnter();
}
_cityPulseTime = System.currentTimeMillis() + CITY_PULSE;

5
src/engine/workthreads/HalfHourlyJobThread.java

@ -146,6 +146,11 @@ public class HalfHourlyJobThread implements Runnable { @@ -146,6 +146,11 @@ public class HalfHourlyJobThread implements Runnable {
mine.lastClaimer = null;
mine.setActive(false);
mine.wasClaimed = true;
for(Integer id : mine._playerMemory){
PlayerCharacter pc = PlayerCharacter.getFromCache(id);
if(pc != null)
pc.ZergMultiplier = 1.0f;
}
return true;
}

Loading…
Cancel
Save