Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public ShopLotItem(ShopLot ownerShopLot, ItemShopCategoryID equipType, long equipId) : base(equipId, equipType.ShopCategoryToNormalCategory())
 {
     EquipType = equipType;
     EquipID   = equipId;
 }
Beispiel #3
0
 public static string TranslateItem(ItemShopCategoryID shopItemCategory, long itemID)
 {
     return(TranslateItem(shopItemCategory.ShopCategoryToNormalCategory(), itemID));
 }