Browse Source

Value set in constructor

combat-2
MagicBot 8 months ago
parent
commit
14ccb1f80b
  1. 1
      src/engine/objects/Item.java

1
src/engine/objects/Item.java

@ -75,6 +75,7 @@ public class Item extends AbstractWorldObject { @@ -75,6 +75,7 @@ public class Item extends AbstractWorldObject {
this.containerType = ItemContainerType.NONE;
this.numberOfItems = 1;
this.flags.addAll(this.template.item_flags);
this.value = this.template.item_value;
loadTemplateEnchantments();
}

Loading…
Cancel
Save