Skip to main content

EnvironmentalEffect<T>

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

Legacy duration effect that does not stack: extra copies join a shared list and the effect only finishes when the last copy stops. Not used by the current effect system.

Constructors​

MemberWhat it is
EnvironmentalEffect()Creates an EnvironmentalEffect with default values.

Fields​

1 private and internal field
MemberWhat it is
private List<T> applyingCopies of this effect currently applied to the same handler.

Methods​

MemberWhat it is
override void Apply(EffectHandler handler)Stores the handler and adds this effect to its applying list.
override bool CheckStackAllowed(T newEffect)Adds the new copy to the applying list and refuses to stack it as its own effect.
override void Stop()Hands the list over to the next copy if there is one, otherwise calls Finished.
protected virtual void Finished()Called when the last copy stops. Empty here; subclasses put clean-up in it.
1 private and internal method
MemberWhat it is
private void ApplyingStopped(T effect)Removes a stopped copy from the applying list.