Skip to main content

StatThresholdValue

A struct in Root.Township, Alta.PlayerStates.

A stat change applied when a player dies, listed in DeadStateSettings.StatsToModifyOnDeath and run by StatManager.DeathReset. It can set the stat always, or only when it's past a threshold.

Fields​

MemberWhat it is
bool keepUnlessAboveValueIf set, the stat is only changed when it's above value.
bool keepUnlessBelowValueIf set, the stat is only changed when it's below value.
StatDefinition secondaryStatDefinitionSecond stat set when the threshold triggers.
float secondaryValueBase value given to the second stat.
bool settingSecondaryIf set, a threshold trigger also sets secondaryStatDefinition to secondaryValue. Only works with one of the keep options on.
StatDefinition statDefinitionThe stat to change.
float valueBase value the stat is set to, and the threshold when a keep option is on.

Used in​

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