Skip to main content

BurnEffect

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​

MemberWhat it is
BurnEffect()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private Dictionary<StatManager, Stat> burningManagerThe burn stat of each stat manager currently burning.
private float fireTickBurn added per stat manager update. Defaults to 1.

Methods​

MemberWhat 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
MemberWhat it is
private void Burn(StatManager manager)Adds fireTick to the target's burn stat on each stat manager update.