Skip to main content

SmelterUpgrades

A class in Root.Township, Alta.Blacksmithing.

An unlockable set of smelter abilities: extra recipes, metals it can melt for moulds, and a speed bonus. Applied through SmelterUnlockManager.

Constructors​

MemberWhat it is
SmelterUpgrades()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private float bonusSmelterSpeedBacking field for BonusSmelterSpeed, added to the smelter speed multiplier while unlocked.
private PhysicalMaterial[] physicalMaterialsBacking field for PhysicalMaterials: ingot materials the smelter accepts once unlocked.
private SmeltingRecipe[] recipesBacking field for Recipes: smelting recipes unlocked.

Properties​

MemberWhat it is
float BonusSmelterSpeed { get; }Added to the smelter's speed multiplier while this upgrade is unlocked, and taken off again when it is locked.
IReadOnlyCollection<PhysicalMaterial> PhysicalMaterials { get; }Metal materials whose ingots the smelter may pour into moulds once this is unlocked.
IReadOnlyCollection<SmeltingRecipe> Recipes { get; }Smelting recipes the smelter can run once this is unlocked.

Used in​

Members of other types that take, return or hold a SmelterUpgrades: