public static ItemCategoryID ShopCategoryToNormalCategory(this ItemShopCategoryID itemShopCategoryID) { switch (itemShopCategoryID) { case ItemShopCategoryID.WEAPON: return(ItemCategoryID.WEAPON); case ItemShopCategoryID.ARMOR: return(ItemCategoryID.ARMOR); case ItemShopCategoryID.ACCESORY: return(ItemCategoryID.ACCESORIES); case ItemShopCategoryID.CONSUMEABLE: return(ItemCategoryID.CONSUMABLES); default: return(ItemCategoryID.CONSUMABLES); } }
public ShopLotItem(ShopLot ownerShopLot, ItemShopCategoryID equipType, long equipId) : base(equipId, equipType.ShopCategoryToNormalCategory()) { EquipType = equipType; EquipID = equipId; }
public static string TranslateItem(ItemShopCategoryID shopItemCategory, long itemID) { return(TranslateItem(shopItemCategory.ShopCategoryToNormalCategory(), itemID)); }