Value is set as items as used or damaged. Not calculated on the fly.

This commit is contained in:
2024-03-25 05:59:59 -04:00
parent 4e2add4d64
commit a7ed30130d
4 changed files with 12 additions and 13 deletions
+3 -1
View File
@@ -2358,7 +2358,9 @@ public class CharacterItemManager {
if (!DbManager.ItemQueries.SET_DURABILITY(item, dur))
return;
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)