StatusEffectData
Last updated
Last updated
StatusEffectDatas contains all of the necessary data to describe a StatusEffect.
Group | The Status Effect group. Multiple groups can be selected. |
ComparableName | The ComparableName that groups similar effects together. |
BaseValue | The base value is used mainly when calculating how effects should be stacked. An Effect can use this value over its own. |
Icon | An optional sprite to keep a reference to. |
StatusEffectName | An optional name to keep a reference to. |
Description | An optional description to keep a reference to. |
AllowEffectStacking | True if multiple StatusEffects of the same StatusEffectData can exist on the same MonoBehaviour. |
NonStackingBehaviour | When stacking is not allowed, the behaviour determines how to resolve a situation when the same StatusEffect is added. See below for more information. |
MaxStack | The maximum stack that can be added to a MonoBehaviour. |
Effects | The list of Effects. |
Conditions | The list of Conditionals. |
Modules | The list of Modules. |
The non-stacking behavior determines how a duplicate status effect should resolve.
MatchHighestValue | Match Highest Value will take the value of the effect and recalculate the duration to the equivalent final value over the time. This is the recommended option for non-stacking behaviour. |
TakeHighestValue | Regardless of the durations, use the effect with the highest value. |
TakeHighestDuration | Regardless of the value, use the effect with the highest duration. |
TakeNewest | Use the newest effect. |
TakeOldest | Use the oldest effect. |