Browse Source

Revert value store

combat-2
MagicBot 8 months ago
parent
commit
72ce1e0694
  1. 3
      src/engine/objects/CharacterItemManager.java

3
src/engine/objects/CharacterItemManager.java

@ -2357,9 +2357,6 @@ public class CharacterItemManager {
if (!DbManager.ItemQueries.SET_DURABILITY(item, dur)) if (!DbManager.ItemQueries.SET_DURABILITY(item, dur))
return; return;
item.setCombat_health_current((short) dur); item.setCombat_health_current((short) dur);
item.value = (int) (item.template.item_value * (item.combat_health_current / item.template.combat_health_full));
if (!DbManager.ItemQueries.UPDATE_VALUE(item, item.value))
return;
} }
if (this.absCharacter.getObjectType().equals(GameObjectType.PlayerCharacter) == false) if (this.absCharacter.getObjectType().equals(GameObjectType.PlayerCharacter) == false)

Loading…
Cancel
Save