Browse Source

multiplier display

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
c8246ff317
  1. 9
      src/engine/net/client/handlers/CityDataHandler.java
  2. 3
      src/engine/objects/Mine.java

9
src/engine/net/client/handlers/CityDataHandler.java

@ -61,15 +61,6 @@ public class CityDataHandler extends AbstractClientMsgHandler {
dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); dispatch = Dispatch.borrow(playerCharacter, cityDataMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); 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 // Serialize the realms for this map
WorldRealmMsg worldRealmMsg = new WorldRealmMsg(); WorldRealmMsg worldRealmMsg = new WorldRealmMsg();

3
src/engine/objects/Mine.java

@ -646,7 +646,8 @@ public class Mine extends AbstractGameObject {
player = PlayerCharacter.getFromCache(playerID); player = PlayerCharacter.getFromCache(playerID);
for(Guild present : this.dividedPlayers.keySet()) { for(Guild present : this.dividedPlayers.keySet()) {
int 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))); float multiplier = 1.0f - (count / this.totalPlayers);
ChatManager.chatSystemInfo(player,present.getName() + " COUNT: " + count + " MULTIPLIER: " + multiplier);
} }
} }
} }

Loading…
Cancel
Save