Skip to main content

EffectDefinition

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

Base asset for an alchemy or food effect applied to an EffectHandler. Stored under the hashed path Cooking/Effects.

Constructors​

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

Fields​

MemberWhat it is
Glyph effectGlyphGlyph shown for this effect.

Methods​

MemberWhat it is
virtual void CheckApply(EffectHandler target, float strength)Entry point for applying the effect. The base version just calls Apply; subclasses can add checks.
protected abstract void Apply(EffectHandler target, float strength)Applies the effect at the given strength. Subclasses implement it.

Used in​

Members of other types that take, return or hold a EffectDefinition: