From 7a3a9c6254aefd5900caee431a06fcfd59b827f3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 12 Feb 2024 19:41:54 -0600 Subject: [PATCH] multiplier display --- src/engine/gameManager/SimulationManager.java | 3 ++- src/engine/objects/Mine.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/SimulationManager.java b/src/engine/gameManager/SimulationManager.java index 3b683ca8..6a7a6773 100644 --- a/src/engine/gameManager/SimulationManager.java +++ b/src/engine/gameManager/SimulationManager.java @@ -238,7 +238,8 @@ public enum SimulationManager { for (AbstractGameObject mineObject : mineList) { mine = (Mine) mineObject; - mine.onEnter(); + if(mine.isActive) + mine.onEnter(); } _minePulseTime = System.currentTimeMillis() + CITY_PULSE; diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index b1206f41..351bf0bd 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -645,7 +645,8 @@ public class Mine extends AbstractGameObject { for(Integer playerID : this._playerMemory){ player = PlayerCharacter.getFromCache(playerID); 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))); } } }