51 lines
2.0 KiB
C#
51 lines
2.0 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(RoadConstructionSkill), 3)]
|
|
public partial class AsphaltRampUpgradeRecipe : Recipe
|
|
{
|
|
public AsphaltRampUpgradeRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<AsphaltRampItem>(),
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<ConcreteItem>(typeof(RoadConstructionEfficiencySkill), 3, RoadConstructionEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<StoneRampItem>(typeof(RoadConstructionEfficiencySkill), 3, RoadConstructionEfficiencySkill.MultiplicativeStrategy),
|
|
new CraftingElement<DirtItem>(typeof(RoadConstructionEfficiencySkill), 3, RoadConstructionEfficiencySkill.MultiplicativeStrategy),
|
|
};
|
|
this.CraftMinutes = CreateCraftTimeValue(typeof(AsphaltRampUpgradeRecipe), Item.Get<AsphaltRampItem>().UILink(), 5, typeof(RoadConstructionSkill));
|
|
this.Initialize("Asphalt Ramp Upgrade", typeof(AsphaltRampUpgradeRecipe));
|
|
|
|
CraftingComponent.AddRecipe(typeof(WainwrightTableObject), this);
|
|
}
|
|
}
|
|
|
|
[Serialized]
|
|
[Constructed]
|
|
[Road(1)]
|
|
[RequiresSkill(typeof(RoadConstructionEfficiencySkill), 3)]
|
|
public partial class AsphaltRampUpgradeBlock :
|
|
Block
|
|
{ }
|
|
|
|
} |