From 575d21a78603711964854dca5f3aaaf642dbe207 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 25 Mar 2024 04:28:28 -0400 Subject: [PATCH] Value logic update --- src/engine/objects/Item.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 1139834e..fea6b241 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -1152,11 +1152,8 @@ public class Item extends AbstractWorldObject { */ public int getValue() { - if (this.value == 0) - if (this.flags.contains(ItemFlags.Identified)) { - return this.magicValue; - } else - return this.template.item_value; + if (this.flags.contains(ItemFlags.Identified)) + return this.magicValue; return this.value; }