public static bool IsWeapon(string itemBase) { if (Bows.Contains(itemBase)) { return(true); } if (Claws.Contains(itemBase)) { return(true); } if (OneHandedAxes.Contains(itemBase)) { return(true); } if (OneHandedMaces.Contains(itemBase)) { return(true); } if (OneHandedSwords.Contains(itemBase)) { return(true); } if (TwoHandedAxes.Contains(itemBase)) { return(true); } if (TwoHandedMaces.Contains(itemBase)) { return(true); } if (TwoHandedSwords.Contains(itemBase)) { return(true); } if (Sceptres.Contains(itemBase)) { return(true); } if (Daggers.Contains(itemBase)) { return(true); } if (Staves.Contains(itemBase)) { return(true); } if (Wands.Contains(itemBase)) { return(true); } return(false); }
public static bool IsSixLinkable(string itemType) { if (Bows.Contains(itemType)) { return(true); } if (TwoHandedAxes.Contains(itemType)) { return(true); } if (TwoHandedMaces.Contains(itemType)) { return(true); } if (TwoHandedSwords.Contains(itemType)) { return(true); } if (BodyArmors.Contains(itemType)) { return(true); } return(false); }
public static string GetItemType(string itemBase) { if (Bows.Contains(itemBase)) { return("Bow"); } if (Claws.Contains(itemBase)) { return("Claw"); } if (OneHandedAxes.Contains(itemBase)) { return("One Hand Axe"); } if (OneHandedMaces.Contains(itemBase)) { return("One Hand Mace"); } if (OneHandedSwords.Contains(itemBase)) { return("One Hand Sword"); } if (TwoHandedAxes.Contains(itemBase)) { return("Two Hand Axe"); } if (TwoHandedMaces.Contains(itemBase)) { return("Two Hand Mace"); } if (Sceptres.Contains(itemBase)) { return("Sceptre"); } if (Daggers.Contains(itemBase)) { return("Dagger"); } if (Staves.Contains(itemBase)) { return("Staff"); } if (Belts.Contains(itemBase)) { return("Belt"); } if (Amulets.Contains(itemBase)) { return("Amulet"); } if (Rings.Contains(itemBase)) { return("Ring"); } if (Boots.Contains(itemBase)) { return("Boots"); } if (Gloves.Contains(itemBase)) { return("Gloves"); } if (BodyArmors.Contains(itemBase)) { return("Body Armour"); } if (Wands.Contains(itemBase)) { return("Wand"); } if (Helmets.Contains(itemBase)) { return("Helmet"); } if (Shields.Contains(itemBase)) { return("Shield"); } if (Jewels.Contains(itemBase)) { return("Jewel"); } if (itemBase == "Gem") { return(itemBase); } if (Quivers.Contains(itemBase)) { return("Quiver"); } return("No type found"); }