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.
- Listed in Players and characters
Fields
| Member | What it is |
|---|---|
bool keepUnlessAboveValue | If set, the stat is only changed when it's above value. |
bool keepUnlessBelowValue | If set, the stat is only changed when it's below value. |
StatDefinition secondaryStatDefinition | Second stat set when the threshold triggers. |
float secondaryValue | Base value given to the second stat. |
bool settingSecondary | If set, a threshold trigger also sets secondaryStatDefinition to secondaryValue. Only works with one of the keep options on. |
StatDefinition statDefinition | The stat to change. |
float value | Base 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: