Browse Source

Helper method created

combat-2
MagicBot 8 months ago
parent
commit
642270aacf
  1. 7
      src/engine/objects/ItemTemplate.java

7
src/engine/objects/ItemTemplate.java

@ -356,4 +356,11 @@ public class ItemTemplate { @@ -356,4 +356,11 @@ public class ItemTemplate {
}
public static boolean isTwoHanded(ItemTemplate template) {
if (!template.item_type.equals(Enum.ItemType.WEAPON))
return false;
return template.item_eq_slots_or.contains(EnumSet.of(Enum.ItemEquipSlotType.LHELD, Enum.ItemEquipSlotType.RHELD));
}
}

Loading…
Cancel
Save