56 lines
2.3 KiB
C#
56 lines
2.3 KiB
C#
namespace Eco.Mods.TechTree
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using Eco.Gameplay.Blocks;
|
|
using Eco.Gameplay.Components;
|
|
using Eco.Gameplay.DynamicValues;
|
|
using Eco.Gameplay.Items;
|
|
using Eco.Gameplay.Objects;
|
|
using Eco.Gameplay.Players;
|
|
using Eco.Gameplay.Skills;
|
|
using Eco.Gameplay.Systems.TextLinks;
|
|
using Eco.Shared.Localization;
|
|
using Eco.Shared.Serialization;
|
|
using Eco.Shared.Utils;
|
|
using Eco.World;
|
|
using Eco.World.Blocks;
|
|
using Eco.Gameplay.Pipes;
|
|
|
|
[RequiresSkill(typeof(MechanicalEngineeringSkill), 3)]
|
|
public partial class CombustionEngineRecipe : Recipe
|
|
{
|
|
public CombustionEngineRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<CombustionEngineItem>(),
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<PistonItem>(typeof(MechanicsAssemblyEfficiencySkill), 10, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<GearboxItem>(typeof(MechanicsAssemblyEfficiencySkill), 5, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<IronIngotItem>(typeof(MechanicsAssemblyEfficiencySkill), 20, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<SteelItem>(typeof(MechanicsAssemblyEfficiencySkill), 5, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy),
|
|
};
|
|
this.CraftMinutes = CreateCraftTimeValue(typeof(CombustionEngineRecipe), Item.Get<CombustionEngineItem>().UILink(), 5, typeof(MechanicsAssemblySpeedSkill));
|
|
this.Initialize("Combustion Engine", typeof(CombustionEngineRecipe));
|
|
|
|
CraftingComponent.AddRecipe(typeof(MachineShopObject), this);
|
|
}
|
|
}
|
|
|
|
|
|
[Serialized]
|
|
[Weight(1000)]
|
|
[Currency]
|
|
public partial class CombustionEngineItem :
|
|
Item
|
|
{
|
|
public override string FriendlyName { get { return "Combustion Engine"; } }
|
|
public override string Description { get { return "An engine that generates power by combustion of fuel."; } }
|
|
|
|
}
|
|
|
|
} |