Browse Source

recalc magic value

combat-2
MagicBot 8 months ago
parent
commit
9ffaf96017
  1. 1
      src/engine/objects/CharacterItemManager.java

1
src/engine/objects/CharacterItemManager.java

@ -1110,6 +1110,7 @@ public class CharacterItemManager { @@ -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)

Loading…
Cancel
Save