Skip to main content

ThresholdStat.ThresholdLevel

A class in Root.Township, Alta.StatSystem.

One level of a ThresholdStat: a name, the fraction it starts at, and the stat modifiers that apply while the stat is at that level. Defaults are empty at 0 and full at 0.3.

Constructors​

MemberWhat it is
ThresholdLevel(string name, float minThreshold)Creates a ThresholdStat.ThresholdLevel from name and minThreshold.

Fields​

4 private and internal fields
MemberWhat it is
private StatModifierConstructor[] constructorsModifier recipes applied while this level is active.
private bool hasNotchBacking field for HasNotch. Defaults to true.
private float minThresholdBacking field for MinThreshold.
private string nameBacking field for Name.

Properties​

MemberWhat it is
bool HasNotch { get; }Whether the stat bar draws a notch at this level's threshold.
float MinThreshold { get; }Lowest stat value, as a fraction, at which this level applies.
string Name { get; }Level name, such as empty or full.

Methods​

MemberWhat it is
ModifierSet GetSet(StatManager manager)Builds a ModifierSet for the given stat manager holding a modifier from each constructor.

Used in​

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