forked from MagicBane/Server
Value is only an override
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user