From c8246ff31765cc48b22fc34ed820e194233a3f5f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 12 Feb 2024 19:54:25 -0600 Subject: [PATCH] multiplier display --- src/engine/net/client/handlers/CityDataHandler.java | 9 --------- src/engine/objects/Mine.java | 3 ++- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/engine/net/client/handlers/CityDataHandler.java b/src/engine/net/client/handlers/CityDataHandler.java index 98ca60fb..f2f5d0d3 100644 --- a/src/engine/net/client/handlers/CityDataHandler.java +++ b/src/engine/net/client/handlers/CityDataHandler.java @@ -61,15 +61,6 @@ public class CityDataHandler extends AbstractClientMsgHandler { dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); - // If the hotZone has changed then update the client's map accordingly. - - if (playerCharacter.getTimeStamp("hotzoneupdate") <= ZoneManager.hotZoneLastUpdate.toEpochMilli() && ZoneManager.hotZone != null) { - HotzoneChangeMsg hotzoneChangeMsg = new HotzoneChangeMsg(Enum.GameObjectType.Zone.ordinal(), ZoneManager.hotZone.getObjectUUID()); - dispatch = Dispatch.borrow(playerCharacter, hotzoneChangeMsg); - DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); - playerCharacter.setTimeStamp("hotzoneupdate", System.currentTimeMillis() - 100); - } - // Serialize the realms for this map WorldRealmMsg worldRealmMsg = new WorldRealmMsg(); diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 351bf0bd..0ecffabf 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -646,7 +646,8 @@ public class Mine extends AbstractGameObject { player = PlayerCharacter.getFromCache(playerID); for(Guild present : this.dividedPlayers.keySet()) { int count = this.dividedPlayers.get(present).size(); - ChatManager.chatSystemInfo(player,present.getName() + " COUNT: " + count + " MULTIPLIER: " + (1.0f - (count / this.totalPlayers))); + float multiplier = 1.0f - (count / this.totalPlayers); + ChatManager.chatSystemInfo(player,present.getName() + " COUNT: " + count + " MULTIPLIER: " + multiplier); } } }