diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index d66c2558..a3567552 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -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)