Recipe - NeisesMike/VehicleFramework GitHub Wiki
The Recipe is used to dictate what ingredients the Player must spend to build your vehicle.
Overview
ModVehicle has the field:
public virtual Dictionary<TechType, int> Recipe => new Dictionary<TechType, int>() { { TechType.Titanium, 1 } };
It's easiest to show an example, I think. Here's the Crush's Recipe:
public override Dictionary<TechType, int> Recipe
{
get
{
Dictionary<TechType, int> recipe = new Dictionary<TechType, int>();
recipe.Add(TechType.Titanium, 4);
recipe.Add(TechType.PowerCell, 1);
recipe.Add(TechType.Glass, 1);
recipe.Add(TechType.Lubricant, 1);
recipe.Add(TechType.Lead, 1);
recipe.Add(TechType.ComputerChip, 1);
return recipe;
}
}