Skip to content

Class: StackedStatusEffect ​

csharp
public abstract class StackedStatusEffect : StatusEffect, ILogicUpdate, ICleanup, ICustomDestroyRoutine

Fields ​

NameDeclarationDescription
autoDecay`[BoxGroup("Stack Settings", true, false, 0)]
[ToggleGroup("Stack Settings/autoDecay", "Auto Decay")]
public bool autoDecay`
decayAllAtOnce`[BoxGroup("Stack Settings", true, false, 0)]
[ToggleGroup("Stack Settings/autoDecay", "Auto Decay")]
[ToggleLeft]
public bool decayAllAtOnce`
decayCount`[BoxGroup("Stack Settings", true, false, 0)]
[HideIf("decayAllAtOnce", true)]
[ToggleGroup("Stack Settings/autoDecay", "Auto Decay")]
public int decayCount`
decayTime`[BoxGroup("Stack Settings", true, false, 0)]
[ToggleGroup("Stack Settings/autoDecay", "Auto Decay")]
public float decayTime`
killOnZeroStack`[BoxGroup("Stack Settings", true, false, 0)]
public bool killOnZeroStack`
maxStack`[BoxGroup("Stack Settings", true, false, 0)]
public int maxStack`
resetTimerOnStackChange`[BoxGroup("Stack Settings", true, false, 0)]
[ToggleGroup("Stack Settings/autoDecay", "Auto Decay")]
[ToggleLeft]
public bool resetTimerOnStackChange`

Properties ​

NameDeclarationDescription
remainingDecayTimepublic float remainingDecayTime { get; }
stackpublic int stack { get; }

Methods ​

ActiveLogicUpdate(float) ​

csharp
protected override void ActiveLogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

AddStack(int) ​

csharp
public void AddStack(int value = 1)

Parameters:

NameTypeDescription
valueint

OnCreate() ​

csharp
protected override void OnCreate()

OnDestroyActor() ​

csharp
protected override void OnDestroyActor()

OnStackChange(int, int) ​

Called everywhere when stack count changes.

csharp
protected virtual void OnStackChange(int oldStack, int newStack)

Parameters:

NameTypeDescription
oldStackint
newStackint

RemoveStack(int) ​

csharp
public void RemoveStack(int value = 1)

Parameters:

NameTypeDescription
valueint

ResetDecayTimer() ​

csharp
public void ResetDecayTimer()

SetStack(int) ​

csharp
public void SetStack(int stack)

Parameters:

NameTypeDescription
stackint

Maintained by the Shape of Dreams Modding Community