Browse Source

repair cost synced with server values

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
6374390b34
  1. 5
      src/engine/net/client/ClientMessagePump.java

5
src/engine/net/client/ClientMessagePump.java

@ -1662,6 +1662,11 @@ public class ClientMessagePump implements NetMsgHandler { @@ -1662,6 +1662,11 @@ public class ClientMessagePump implements NetMsgHandler {
}
//TODO get cost to repair
int cost = (int) ((max - dur) * 80.1);
cost *= npc.buyPercent;
cost += npc.getRepairCost();
Building b = (!npc.isStatic()) ? npc.getBuilding() : null;
if (b != null)

Loading…
Cancel
Save