Skip to main content

TeleportEffect

A class in Root.Township, Alta.Alchemy.

Chance-based effect that teleports the target to a spawn area. Home sends a player to their own respawn position.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private SpawnAreaIdentifier landingTargetSpawn area to teleport to.

Methods​

MemberWhat it is
protected override void Apply(EffectHandler target, float strength)Teleports to a random point in the landing area. Home uses the player's spawn point (not for spirits); missing areas fall back to RespawnPoint.