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
@@ -274,7 +274,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
if (vendor.getCharItemManager().inventoryContains(targetItem) == false)
continue;
itemValue = targetItem.getBaseValue();
itemValue = targetItem.template.item_value;
if (vendor.getBuilding().getStrongboxValue() + itemValue > vendor.getBuilding().getMaxGold()) {
ErrorPopupMsg.sendErrorPopup(player, 201);