Пример #1
0
        // Token: 0x06000002 RID: 2 RVA: 0x00002290 File Offset: 0x00000490
        public static Item MakeRecipes()
        {
            string text = "com.ehaugw.holyavengeritempack." + "BlessedLongsword".ToLower() + "recipe";

            new SL_Recipe
            {
                StationType = Recipe.CraftingType.Survival,
                Results     = new List <SL_Recipe.ItemQty>
                {
                    new SL_Recipe.ItemQty
                    {
                        Quantity = 1,
                        ItemID   = 2501013
                    }
                },
                Ingredients = new List <SL_Recipe.Ingredient>
                {
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 2000160
                    },
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 5300170
                    },
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 2020091
                    },
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 6600210
                    }
                },
                UID = text
            }.ApplyRecipe();
            SL_RecipeItem sl_RecipeItem = new SL_RecipeItem
            {
                Name            = "Crafting: Blessed Longsword",
                Target_ItemID   = 5700024,
                New_ItemID      = 2501026,
                EffectBehaviour = EffectBehaviours.OverrideEffects,
                RecipeUID       = text
            };

            return(CustomItems.CreateCustomItem(sl_RecipeItem.Target_ItemID, sl_RecipeItem.New_ItemID, sl_RecipeItem.Name, sl_RecipeItem));
        }
Пример #2
0
        // Token: 0x06000008 RID: 8 RVA: 0x00002424 File Offset: 0x00000624
        public static Item MakeRecipes()
        {
            string text = "com.ehaugw.runicscrolls." + "RunicScroll".ToLower() + "recipe";

            new SL_Recipe
            {
                StationType = Recipe.CraftingType.Alchemy,
                Results     = new List <SL_Recipe.ItemQty>
                {
                    new SL_Recipe.ItemQty
                    {
                        Quantity = 1,
                        ItemID   = 2501017
                    }
                },
                Ingredients = new List <SL_Recipe.Ingredient>
                {
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 6400130
                    },
                    new SL_Recipe.Ingredient
                    {
                        Type = RecipeIngredient.ActionTypes.AddSpecificIngredient,
                        Ingredient_ItemID = 6500090
                    }
                },
                UID = text
            }.ApplyRecipe();

            SL_RecipeItem sl_RecipeItem = new SL_RecipeItem
            {
                Name            = "Alchemy: Runic Scroll",
                Target_ItemID   = 5700076,
                New_ItemID      = 2501030,
                EffectBehaviour = EffectBehaviours.OverrideEffects,
                RecipeUID       = text
            };

            return(CustomItems.CreateCustomItem(sl_RecipeItem.Target_ItemID, sl_RecipeItem.New_ItemID, sl_RecipeItem.Name, sl_RecipeItem));
        }