-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlakedSalmon.cs
61 lines (56 loc) · 4.57 KB
/
FlakedSalmon.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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(300)]
public partial class FlakedHoneyssSaladItem : //Name of the item in unity @DO NOT CHANGE USE A DIFFERENT NAME FROM THE UNITY VERSION
FoodItem
{
public override string FriendlyName { get { return "Flaked Salmon Salad With a honey and beet Garnish"; } } // name given and seen when scrolling through the ingame menus
public override string Description { get { return "A tender flaked piece of salmon with a fresh honey and beet garnish."; } } // item description upon hovering over an item
private static Nutrients nutrition = new Nutrients() { Carbs = 13, Fat = 32, Protein = 25, Vitamins = 0}; // The effects of eating the item for example mashed potatoe would have more carbs than protein where as steak would be the reverse !!Balance is vital!!
public override float Calories { get { return 449; } } // Number of calories the food will give you >> thew more complicated and resources intesive the recipe the more ballanced and more calories it should give
public override Nutrients Nutrition { get { return nutrition; } } //Dont touch this :)
}
[RequiresSkill(typeof(HomeCookingSkill), 4)] // use the wiki to identify the different skill lines and put here what they will need for exmaple the more complicated the recipe and more resource intensive the higher the level that should be required.
public partial class Flaked Salmon Salad With a honey and beet GarnishRecipe : Recipe // "Flaked Salmon Salad With a honey and beet GarnishRecipe : Recipe" labels the name of the recipe that will be displayed in the workbench.
{
public Flaked Salmon Salad With a honey and beet GarnishRecipe() // include the same name as the food you are attempting to create before recipe eg, yourfoodrecipe()
{
this.Products = new CraftingElement[] // dont touch this
{
new CraftingElement<Flaked Salmon Salad With a honey and beet GarnishItem>(), //This is what the recipe will produce this one should be the name of your fooditem
//things that will be produced
};
this.Ingredients = new CraftingElement[] // This is where you will decide what the ingriedients are to create your food item
{
new CraftingElement<RawFishItem>(typeof(HomeCookingEfficiencySkill), 5, HomeCookingEfficiencySkill.MultiplicativeStrategy), //this is 1 element of crafting see below for more acurate annotation
// new , ingriedient , Rawsausage , what skill its associated with , (4) amount of that ingridient, this is where it counts in the efficiencies leave this here.
// If you require more ingridients copy and paste the line above and edit it to include another ingridient see below for example
//copied & Pasted
new CraftingElement<VegetableMedleyItem>(typeof(HomeCookingEfficiencySkill), 14, HomeCookingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<OilItem>(typeof(HomeCookingEfficiencySkill), 2, HomeCookingEfficiencySkill.MultiplicativeStrategy),
new CraftingElement<JarOfHoneyItem>(typeof(HomeCookingEfficiencySkill), 3, HomeCookingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = CreateCraftTimeValue(typeof(Flaked Salmon Salad With a honey and beet GarnishRecipe), Item.Get<Flaked Salmon Salad With a honey and beet GarnishItem>().UILink(), 10, typeof(HomeCookingSpeedSkill)); // check below for annotation
// how long it will take to craft the item , the recipe name again , change this to recipe name (time taken)
this.Initialize("Flaked Salmon Salad With a honey and beet Garnish", typeof(Flaked Salmon Salad With a honey and beet GarnishRecipe));
// how its seen in the workbench , Your recipe name
CraftingComponent.AddRecipe(typeof(StoveObject), this);
// add the recipe to craftin table . (workbench needed)
}
}
}