Browse Source

Set flags when created

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

2
src/engine/objects/Item.java

@ -45,7 +45,7 @@ public class Item extends AbstractWorldObject {
public ReentrantLock lootLock = new ReentrantLock(); public ReentrantLock lootLock = new ReentrantLock();
public int ownerID; //may be character, account, npc, mob public int ownerID; //may be character, account, npc, mob
public float drop_chance; public float drop_chance;
public EnumSet<Enum.ItemFlags> flags; //1 = isIDed public EnumSet<Enum.ItemFlags> flags = EnumSet.noneOf(ItemFlags.class);
public int numberOfItems; public int numberOfItems;
public float durabilityCurrent; public float durabilityCurrent;
public int chargesRemaining; public int chargesRemaining;

Loading…
Cancel
Save