Browse Source

NPC special price option

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
7b7e1c5337
  1. 2
      src/engine/net/client/ClientMessagePump.java

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

@ -1681,7 +1681,7 @@ public class ClientMessagePump implements NetMsgHandler { @@ -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;

Loading…
Cancel
Save