Browse Source

zerg multiplier resets for players after mine closes

lakebane-new
FatBoy-DOTC 5 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 {
city.onEnter(); city.onEnter();
} }
for(Mine mine : Mine.getMines()){ for(Mine mine : Mine.getMines()){
if(mine != null) if(mine != null && mine.isActive)
mine.onEnter(); mine.onEnter();
} }
_cityPulseTime = System.currentTimeMillis() + CITY_PULSE; _cityPulseTime = System.currentTimeMillis() + CITY_PULSE;

5
src/engine/workthreads/HalfHourlyJobThread.java

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

Loading…
Cancel
Save