Browse Source

multiplier display

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
7a3a9c6254
  1. 3
      src/engine/gameManager/SimulationManager.java
  2. 3
      src/engine/objects/Mine.java

3
src/engine/gameManager/SimulationManager.java

@ -238,7 +238,8 @@ public enum SimulationManager {
for (AbstractGameObject mineObject : mineList) { for (AbstractGameObject mineObject : mineList) {
mine = (Mine) mineObject; mine = (Mine) mineObject;
mine.onEnter(); if(mine.isActive)
mine.onEnter();
} }
_minePulseTime = System.currentTimeMillis() + CITY_PULSE; _minePulseTime = System.currentTimeMillis() + CITY_PULSE;

3
src/engine/objects/Mine.java

@ -645,7 +645,8 @@ public class Mine extends AbstractGameObject {
for(Integer playerID : this._playerMemory){ for(Integer playerID : this._playerMemory){
player = PlayerCharacter.getFromCache(playerID); player = PlayerCharacter.getFromCache(playerID);
for(Guild present : this.dividedPlayers.keySet()) { for(Guild present : this.dividedPlayers.keySet()) {
ChatManager.chatSystemInfo(player,present.getName() + "COUNT: " + this.dividedPlayers.get(present).size()); int count = this.dividedPlayers.get(present).size();
ChatManager.chatSystemInfo(player,present.getName() + " COUNT: " + count + " MULTIPLIER: " + (1.0f - (count / this.totalPlayers)));
} }
} }
} }

Loading…
Cancel
Save