A class in Root.Township, Alta.Alchemy.
Effect that keeps raising the target's burn stat while active. A positive strength starts it, zero or less stops it.
Constructors
| Member | What it is |
|---|
BurnEffect() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private Dictionary<StatManager, Stat> burningManager | The burn stat of each stat manager currently burning. |
private float fireTick | Burn added per stat manager update. Defaults to 1. |
Methods
| Member | What it is |
|---|
protected override void Apply(EffectHandler target, float strength) | With positive strength, hooks the target's stat updates to add burn; otherwise unhooks and forgets the target. |
1 private and internal method
| Member | What it is |
|---|
private void Burn(StatManager manager) | Adds fireTick to the target's burn stat on each stat manager update. |