From 9ffaf96017d4f18eaf1d3c4f4c2a132939eb6d42 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 12 May 2024 11:24:01 -0400 Subject: [PATCH] recalc magic value --- src/engine/objects/CharacterItemManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index ffd8f672..93b5b2db 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1110,6 +1110,7 @@ public class CharacterItemManager { // Reset value purchasedItem.value = (int) (purchasedItem.template.item_value * (purchasedItem.combat_health_current / purchasedItem.template.combat_health_full)); + purchasedItem.magicValue = purchasedItem.template.item_value + purchasedItem.calcMagicValue(); // db transfer successfully, remove from this character // skip this check if this is a mobLoot item (which is not in any inventory)