Skip to main content

Effect

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

Base of the legacy effect classes (DurationEffect, EnvironmentalEffect). It only remembers the handler it was applied to; current effects use EffectDefinition instead.

Constructors​

MemberWhat it is
protected Effect()Creates an Effect with default values.

Properties​

MemberWhat it is
virtual float Cooldown { get; }Cooldown in seconds; -1 (none) unless a subclass overrides it.
EffectHandler Handler { get; private set; }The EffectHandler this effect was last applied to.
virtual bool IsDuration { get; }False here; true for DurationEffect subclasses.

Methods​

MemberWhat it is
virtual void Apply(EffectHandler handler)Stores the EffectHandler the effect was applied to. Subclasses add behaviour.