Value logic update

This commit is contained in:
2024-03-25 04:28:28 -04:00
parent 4fa5ccf416
commit 575d21a786
+2 -5
View File
@@ -1152,11 +1152,8 @@ public class Item extends AbstractWorldObject {
*/ */
public int getValue() { public int getValue() {
if (this.value == 0) if (this.flags.contains(ItemFlags.Identified))
if (this.flags.contains(ItemFlags.Identified)) { return this.magicValue;
return this.magicValue;
} else
return this.template.item_value;
return this.value; return this.value;
} }