From 4d6ce2b1557bad16faf6f8b5376d2dfbf9c080c2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 12 May 2024 12:06:30 -0400 Subject: [PATCH] Update to value in item rs constructor --- src/engine/objects/Item.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 578e87f1..a1037c98 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -166,8 +166,12 @@ public class Item extends AbstractWorldObject { this.dateToUpgrade = rs.getLong("dateToUpgrade"); this.value = rs.getInt("value"); - if (this.value == 0) + if (this.value == 0) { this.value = this.template.item_value; + this.magicValue = this.value + calcMagicValue(); + } else + this.magicValue = this.value; // Value was overridden in vendor inventory + }