Browse Source

Value logic update

combat-2
MagicBot 8 months ago
parent
commit
575d21a786
  1. 5
      src/engine/objects/Item.java

5
src/engine/objects/Item.java

@ -1152,11 +1152,8 @@ public class Item extends AbstractWorldObject { @@ -1152,11 +1152,8 @@ public class Item extends AbstractWorldObject {
*/
public int getValue() {
if (this.value == 0)
if (this.flags.contains(ItemFlags.Identified)) {
if (this.flags.contains(ItemFlags.Identified))
return this.magicValue;
} else
return this.template.item_value;
return this.value;
}

Loading…
Cancel
Save