namespace Eco.Mods.TechTree { using System.Collections.Generic; using System.ComponentModel; 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.Mods.TechTree; using Eco.Shared.Items; using Eco.Shared.Localization; using Eco.Shared.Serialization; using Eco.Shared.Utils; using Eco.Shared.View; [Serialized] [Weight(100)] public partial class RunningShoesItem : ClothingItem { public override string FriendlyName { get { return "Running Shoes"; } } public override string Description { get { return "Running Shoes. Increasing Movement Speed by 70%"; } } public override string Slot { get { return ClothingSlot.Shoes; } } public override bool Starter { get { return false ; } } private static Dictionary flatStats = new Dictionary() { { UserStatType.MovementSpeed, 0.7f }, }; public override Dictionary GetFlatStats() { return flatStats; } } [RequiresSkill(typeof(ClothesmakingSkill), 1)] public class RunningShoesRecipe : Recipe { public RunningShoesRecipe() { this.Products = new CraftingElement[] { new CraftingElement(), }; this.Ingredients = new CraftingElement[] { new CraftingElement(typeof(ClothesmakingEfficiencySkill), 10, ClothesmakingEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(ClothesmakingEfficiencySkill), 5, ClothesmakingEfficiencySkill.MultiplicativeStrategy), }; this.CraftMinutes = new ConstantValue(1); this.Initialize("Running Shoes", typeof(RunningShoesRecipe)); CraftingComponent.AddRecipe(typeof(TailoringTableObject), this); } } }