EcoGSCE-Modpack/AutoGen/Recipe/CampfireWolf.cs

35 lines
1.3 KiB
C#

namespace Eco.Mods.TechTree
{
using System;
using System.Collections.Generic;
using Eco.Gameplay.Components;
using Eco.Gameplay.DynamicValues;
using Eco.Gameplay.Items;
using Eco.Gameplay.Skills;
using Eco.Shared.Utils;
using Eco.World;
using Eco.World.Blocks;
using Gameplay.Systems.TextLinks;
[RequiresSkill(typeof(CampfireCookingSkill), 3)]
public class CampfireWolfRecipe : Recipe
{
public CampfireWolfRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<CharredMeatItem>(3),
new CraftingElement<TallowItem>(2),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<WolfCarcassItem>(typeof(CampfireCookingEfficiencySkill), 1, CampfireCookingEfficiencySkill.MultiplicativeStrategy),
};
this.Initialize("Campfire Wolf", typeof(CampfireWolfRecipe));
//default crafting speed 2
var craftingspeed = 0.5f;
this.CraftMinutes = CreateCraftTimeValue(typeof(CampfireWolfRecipe), this.UILink(), craftingspeed, typeof(CampfireCookingSpeedSkill));
CraftingComponent.AddRecipe(typeof(CampfireObject), this);
}
}
}