52 lines
2.3 KiB
C#
52 lines
2.3 KiB
C#
namespace Eco.Mods.TechTree
|
|
{
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Eco.Gameplay.Components;
|
|
using Eco.Gameplay.DynamicValues;
|
|
using Eco.Gameplay.Items;
|
|
using Eco.Gameplay.Players;
|
|
using Eco.Gameplay.Skills;
|
|
using Eco.Gameplay.Systems.TextLinks;
|
|
using Eco.Mods.TechTree;
|
|
using Eco.Shared.Items;
|
|
using Eco.Shared.Localization;
|
|
using Eco.Shared.Serialization;
|
|
using Eco.Shared.Utils;
|
|
using Eco.Shared.View;
|
|
|
|
[Serialized]
|
|
[Weight(200)]
|
|
public partial class ElkTacoItem :
|
|
FoodItem
|
|
{
|
|
public override string FriendlyName { get { return "Elk Cookie Taco"; } }
|
|
public override string Description { get { return "A tasty treat made from cookies, corn tortillas and meat.\n\nPart of STC custom ECO tweaks by Atoru"; } }
|
|
|
|
private static Nutrients nutrition = new Nutrients() { Carbs = 12, Fat = 7, Protein = 8, Vitamins = 13};
|
|
public override float Calories { get { return 650; } }
|
|
public override Nutrients Nutrition { get { return nutrition; } }
|
|
}
|
|
|
|
[RequiresSkill(typeof(CulinaryArtsSkill), 3)]
|
|
public partial class ElkTacoRecipe : Recipe
|
|
{
|
|
public ElkTacoRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<ElkTacoItem>(),
|
|
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<ScrapMeatItem>(typeof(CulinaryArtsEfficiencySkill), 30, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<TortillaItem>(typeof(CulinaryArtsEfficiencySkill), 5, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<WildMixItem>(typeof(CulinaryArtsEfficiencySkill), 5, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
|
|
};
|
|
this.CraftMinutes = CreateCraftTimeValue(typeof(ElkTacoRecipe), Item.Get<ElkTacoItem>().UILink(), 15, typeof(CulinaryArtsSpeedSkill));
|
|
this.Initialize("Elk Cookie Taco", typeof(ElkTacoRecipe));
|
|
CraftingComponent.AddRecipe(typeof(StoveObject), this);
|
|
}
|
|
}
|
|
} |