an effect that modifies a stat while it is active by adding to it
https://adventure.softleitner.com/manual/effect
|
int | Modify (AttributeStat stat, int value) |
| applies the modification
|
|
void | Terminate () |
|
virtual void | Add (EffectBase prefab) |
|
virtual string | GetValue () |
|
virtual void | SetValue (string data) |
|
override string | ToString () |
|
◆ Modify()
int AdventureCore.StatEffect.Modify |
( |
AttributeStat | stat, |
|
|
int | value ) |
applies the modification
- Parameters
-
attribute | the stat that will be modified |
value | the value before modification |
- Returns
- the modified value
Implements AdventureCore.IStatModifier.
◆ OnDestroy()
override void AdventureCore.StatEffect.OnDestroy |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Start()
override void AdventureCore.StatEffect.Start |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ ModifierPriority
int AdventureCore.StatEffect.ModifierPriority |
|
get |
modifiers are applied in the order of their priority
this means higher priority modifiers are applied before lower ones
Implements AdventureCore.IStatModifier.
◆ ModifierStats
IEnumerable<AttributeStat> AdventureCore.StatEffect.ModifierStats |
|
get |