Value is only an override

This commit is contained in:
MagicBot committed 2024-03-25 06:35:45 -04:00
1 parent a130240339
commit c0a50544d7
2 files changed
+3 -6

No files matched your search

-2
View File
@@ -781,8 +781,6 @@ public class Item extends AbstractWorldObject {
if (this.chargesRemaining < 0)
this.chargesRemaining = 0;
DbManager.ItemQueries.UPDATE_REMAINING_CHARGES(this);
this.value = this.template.item_value * (this.chargesRemaining / this.template.item_initial_charges);
DbManager.ItemQueries.UPDATE_VALUE(this, this.value);
}
public void zeroItem() {