Skip to main content

BuildUpconcoctionEffect

An abstract class in Root.Township, Alta.Alchemy.

Base for effects whose strength adds up over repeated doses within a short window. Each dose's strength is added to the running total before applying.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float buildupDurationSeconds a build-up lasts after the first dose. Defaults to 1.
private Dictionary<EffectHandler, float> buildupMapRunning strength per effect handler during its build-up window.

Methods​

MemberWhat it is
override void CheckApply(EffectHandler target, float strength)Adds this dose to the target's running strength (starting the window on the first dose), then applies the total.
1 private and internal method
MemberWhat it is
private IEnumerator RunBuildup(EffectHandler target) (iterator)Coroutine that clears the target's running strength after buildupDuration.