PlayerHealthVisualEffectsSettings.NightmareEffectController
A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Client: drives the nightmare status effect for the local player, a particle effect at their feet and extra fog, from the nightmare stat.
Constructors
Fields
8 private and internal fields
| Member | What it is |
|---|
private PooledObject activeNightMareEffect | The spawned nightmare effect, or null. |
private AnimationCurve fogDensityOverValue | Curve from stat value to fog density. |
private PooledObjectDefinition nightmareEffectDefinition | Pooled effect spawned for the nightmare. |
private Stat nightmareStat | The local player's nightmare stat. |
private StatDefinition nightmareStatDefinition | Which stat is the nightmare stat. |
private IUnityUpdateMethod updateEffect | Handle for the per frame UpdateEffect registration. |
private ValueOperatedParticleSystem valueOperator | Particle system on the effect that is fed the stat value. |
private bool wasNightmareActive | Unused flag. |
Methods
| Member | What it is |
|---|
void SetupNightmare(StatManager manager) | Finds the nightmare stat in a stat manager and listens for it changing. |
2 private and internal methods
| Member | What it is |
|---|
private void UpdateEffect() | Each frame, keeps the effect at the player's feet, or releases it once the stat drops to 0.11 or the player dies. |
private void UpdateFog(Stat stat) | Spawns the effect when the stat goes above 0.11 and sets or releases fog density from the stat's value. |
Used in
Members of other types that take, return or hold a NightmareEffectController: