51 lines
2.0 KiB
C#
51 lines
2.0 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.Serialization;
|
|
using Eco.Shared.Utils;
|
|
using Eco.Shared.View;
|
|
using Eco.Shared.Localization;
|
|
|
|
[Serialized]
|
|
[Weight(10)]
|
|
public partial class MilkItem :
|
|
FoodItem
|
|
{
|
|
public override string FriendlyName { get { return "Milk"; } }
|
|
public override string FriendlyNamePlural { get { return "Milk"; } }
|
|
public override string Description { get { return "Milk, although maybe not from an animal."; } }
|
|
|
|
private static Nutrients nutrition = new Nutrients() { Carbs = 3, Fat = 7, Protein = 10, Vitamins = 0};
|
|
public override float Calories { get { return 120; } }
|
|
public override Nutrients Nutrition { get { return nutrition; } }
|
|
}
|
|
[RequiresSkill(typeof(MolecularGastronomySkill), 2)]
|
|
public partial class MilkRecipe : Recipe
|
|
{
|
|
public MilkRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<MilkItem>(),
|
|
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<BeansItem>(typeof(MolecularGastronomyEfficiencySkill), 24, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy),
|
|
|
|
};
|
|
this.CraftMinutes = CreateCraftTimeValue(typeof(MilkRecipe), Item.Get<MilkItem>().UILink(), 10, typeof(MolecularGastronomySpeedSkill));
|
|
this.Initialize("Soy Milk", typeof(MilkRecipe));
|
|
CraftingComponent.AddRecipe(typeof(KitchenObject), this);
|
|
}
|
|
}
|
|
} |