public bool FitsItem(MapleItemType itemType) { if (OptionType == 0) { return(true); } switch (OptionType) { case 10: return(ItemConstants.IsWeapon(itemType)); case 11: return(!ItemConstants.IsWeapon(itemType)); case 20: return(!ItemConstants.IsWeapon(itemType) && !ItemConstants.IsAccessory(itemType)); case 40: return(ItemConstants.IsAccessory(itemType)); case 51: return(itemType == MapleItemType.Cap); case 52: return(itemType == MapleItemType.Top || itemType == MapleItemType.Overall); case 53: return(itemType == MapleItemType.Legs || itemType == MapleItemType.Overall); case 54: return(itemType == MapleItemType.Glove); case 55: return(itemType == MapleItemType.Shoes); } return(false); }