From 6374390b34db46dbd9cfc957b88dae70067db95f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 5 Jul 2024 19:58:42 -0500 Subject: [PATCH] repair cost synced with server values --- src/engine/net/client/ClientMessagePump.java | 5 +++++ 1 file changed, 5 insertions(+) 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)