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 BearpackItem : ClothingItem { public override string FriendlyName { get { return "Bearpack"; } } public override string Description { get { return "Lets you carry as much as a bear! Not really, but it does help you carry 20KG more."; } } public override string Slot { get { return ClothingSlot.Back; } } public override bool Starter { get { return false ; } } private static Dictionary flatStats = new Dictionary() { { UserStatType.MaxCarryWeight, 20000f }, }; public override Dictionary GetFlatStats() { return flatStats; } } [RequiresSkill(typeof(ClothesmakingSkill), 4)] public class BearpackRecipe : Recipe { public BearpackRecipe() { this.Products = new CraftingElement[] { new CraftingElement(), }; this.Ingredients = new CraftingElement[] { new CraftingElement(typeof(ClothesmakingEfficiencySkill), 40, ClothesmakingEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(ClothesmakingEfficiencySkill), 30, ClothesmakingEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(ClothesmakingEfficiencySkill), 50, ClothesmakingEfficiencySkill.MultiplicativeStrategy), }; this.CraftMinutes = new ConstantValue(1); this.Initialize("Bearpack", typeof(BearpackRecipe)); CraftingComponent.AddRecipe(typeof(TailoringTableObject), this); } } }