Revert value store

This commit is contained in:
2024-03-25 11:29:04 -04:00
parent c0a50544d7
commit 0004215605
2 changed files with 1 additions and 6 deletions
@@ -140,11 +140,6 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
if (!DbManager.ItemQueries.SET_DURABILITY(toRepair, max))
return true;
toRepair.value = (int) (toRepair.template.item_value * (toRepair.combat_health_current / toRepair.template.combat_health_full));
if (!DbManager.ItemQueries.UPDATE_VALUE(toRepair, toRepair.value))
return true;
//repair the item
toRepair.setCombat_health_current(max);
@@ -105,7 +105,7 @@ public class VendorSellMsgHandler extends AbstractClientMsgHandler {
//get goldItem cost to sell
cost = sell.value;
cost = (int) (sell.template.item_value * (sell.combat_health_current / sell.template.combat_health_full));
float bargain = player.getBargain();
float profit = npc.getBuyPercent(player) + bargain;