combat_health_full used from json

This commit is contained in:
MagicBot committed 2024-03-25 05:29:15 -04:00
1 parent f523e4832e
commit 6a62f93cba
5 files changed
+5 -5

No files matched your search

@@ -108,7 +108,7 @@ public class VendorSellMsgHandler extends AbstractClientMsgHandler {
cost = sell.template.item_value;
//apply damaged value reduction
float damagedModifier = sell.combat_health_current / sell.template.item_health_full;
float damagedModifier = sell.combat_health_current / sell.template.combat_health_full;
cost *= damagedModifier;
float bargain = player.getBargain();