Skip to main content

SpiritStateSettings

A class in Root.Township, Alta.PlayerStates.

Settings asset for spirit mode (SpiritState), the state used during unlock challenges.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private SoundEffectSet enterSpiritModeSfxBacking field for EnterSpiritModeSfx.
private SoundEffectSet exitSpiritModeSfxBacking field for ExitSpiritModeSfx.
private float fallDamageSnapThresholdBacking field for FallDamageSnapThreshold.
private StatDefinition hungerStatBacking field for HungerStat.
private float snapDistanceBacking field for SnapDistance.

Properties​

MemberWhat it is
SoundEffectSet EnterSpiritModeSfx { get; }Sound played on entering spirit mode.
SoundEffectSet ExitSpiritModeSfx { get; }Sound played on leaving spirit mode.
float FallDamageSnapThreshold { get; }Fall or command damage at or above this ends spirit mode, or sends the player back to the checkpoint during an unlock (default 2).
StatDefinition HungerStat { get; }Stat turned off while in spirit mode and back on after.
float SnapDistance { get; }Server: moving further than this from the unlock checkpoint cancels the unlock (default 300).
override Type StateType { get; }SpiritState.

Used in​

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