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
| Member | What it is |
|---|
protected BuildUpconcoctionEffect() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private float buildupDuration | Seconds a build-up lasts after the first dose. Defaults to 1. |
private Dictionary<EffectHandler, float> buildupMap | Running strength per effect handler during its build-up window. |
Methods
| Member | What 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
| Member | What it is |
|---|
private IEnumerator RunBuildup(EffectHandler target) (iterator) | Coroutine that clears the target's running strength after buildupDuration. |