NPC special price option

This commit is contained in:
FatBoy committed 2025-01-03 07:48:05 -06:00
1 parent 6e66659940
commit 7b7e1c5337
1 file changed
+1 -1
+1 -1
View File
@@ -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;