item_value refactored to template

This commit is contained in:
2024-03-03 13:06:05 -05:00
parent 8a1cd316fe
commit 70f331d025
4 changed files with 6 additions and 20 deletions
+2 -2
View File
@@ -1242,7 +1242,7 @@ public class ClientMessagePump implements NetMsgHandler {
//get goldItem cost to sell
cost = sell.getBaseValue();
cost = sell.template.item_value;
//apply damaged value reduction
float durabilityCurrent = (short) sell.durabilityCurrent;
@@ -1468,7 +1468,7 @@ public class ClientMessagePump implements NetMsgHandler {
//TODO test cost and subtract goldItem
//TODO CHnage this if we ever put NPc city npcs in buildings.
int cost = buy.getBaseValue();
int cost = buy.template.item_value;
if (buy.isID() || buy.isCustomValue())
cost = buy.getMagicValue();