From 7b7e1c5337ecb93d52cd4f518dc2ccf65bacf9b7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 3 Jan 2025 07:48:05 -0600 Subject: [PATCH] NPC special price option --- src/engine/net/client/ClientMessagePump.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index bdae3100..a4f49f41 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1681,7 +1681,7 @@ public class ClientMessagePump implements NetMsgHandler { return; } - int cost = ((int)((toRepair.getMagicValue()/max*(max - dur)) + (npc.getSpecialPrice() * npc.buyPercent))) + npc.getSpecialPrice(); + int cost = ((int)((toRepair.getMagicValue()/max*(max - dur)) + (npc.getSpecialPrice() * npc.buyPercent))) + (int)(npc.getSpecialPrice() * (max - dur)); Building b = (!npc.isStatic()) ? npc.getBuilding() : null;