36 lines
1.5 KiB
C#
36 lines
1.5 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(HomeCookingSkill), 3)]
|
|
public class ExoticVegetableMedleyRecipe : Recipe
|
|
{
|
|
public ExoticVegetableMedleyRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<VegetableMedleyItem>(1),
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<BeansItem>(typeof(HomeCookingEfficiencySkill), 20, HomeCookingEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<TomatoItem>(typeof(HomeCookingEfficiencySkill), 15, HomeCookingEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<BeetItem>(typeof(HomeCookingEfficiencySkill), 10, HomeCookingEfficiencySkill.MultiplicativeStrategy),
|
|
};
|
|
this.Initialize("Exotic Vegetable Medley", typeof(ExoticVegetableMedleyRecipe));
|
|
//default crafting speed 2
|
|
var craftingspeed = 1.5f;
|
|
this.CraftMinutes = CreateCraftTimeValue(typeof(ExoticVegetableMedleyRecipe), this.UILink(), craftingspeed, typeof(HomeCookingSpeedSkill));
|
|
CraftingComponent.AddRecipe(typeof(CastIronStoveObject), this);
|
|
}
|
|
}
|
|
} |