Skip to main content

BuildupTeleportEffect

A class in Root.Township, Alta.Alchemy.

Build-up effect that teleports the target to a random point in a spawn area once enough strength has built up.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private SpawnAreaIdentifier landingTargetSpawn area to teleport to.
private float minStrengthToApplyBuilt-up strength needed before the teleport happens. Defaults to 0.8.

Methods​

MemberWhat it is
protected override void Apply(EffectHandler target, float strength)Teleports the target to a random spawn position in landingTarget when strength is above minStrengthToApply.