Skip to main content

StatModifierConstructor

A internal class in Root.Township, Alta.StatSystem. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Serialized recipe for one stat modifier, set up in the inspector on a ThresholdStat level and turned into a StatModifier when that level applies.

Constructors​

MemberWhat it is
StatModifierConstructor()Creates a StatModifierConstructor with default values.

Fields​

4 private and internal fields
MemberWhat it is
private bool hasBuffEffectsWhether the modifier shows buff effects.
private bool isMultiplierWhether value multiplies the stat rather than adding to it.
private StatDefinition targetStatThe stat the modifier changes.
private float valueAmount added to, or multiplied into, the target stat.

Methods​

MemberWhat it is
StatModifier GetModifier()Builds a new StatModifier from the serialized settings.

Used in​

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