Value is only an override

This commit is contained in:
2024-03-25 06:19:37 -04:00
parent 54cd1c59f7
commit a130240339
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ public class Item extends AbstractWorldObject {
if (this.chargesRemaining < 0)
this.chargesRemaining = 0;
DbManager.ItemQueries.UPDATE_REMAINING_CHARGES(this);
this.value = this.value * (this.chargesRemaining / this.template.item_initial_charges);
this.value = this.template.item_value * (this.chargesRemaining / this.template.item_initial_charges);
DbManager.ItemQueries.UPDATE_VALUE(this, this.value);
}