public override bool AddToWorld() { if (!base.AddToWorld()) { return(false); } TeleporterEffect mob = new TeleporterEffect(); mob.CurrentRegion = this.CurrentRegion; mob.Position = this.Position; mob.Heading = this.Heading; mob.Health = mob.MaxHealth; mob.MaxSpeedBase = 0; if (mob.AddToWorld()) { sfx = mob; } return(true); }
public override bool AddToWorld() { if (!base.AddToWorld()) return false; TeleporterEffect mob = new TeleporterEffect(); mob.CurrentRegion = this.CurrentRegion; mob.X = this.X; mob.Y = this.Y; mob.Z = this.Z; mob.Heading = this.Heading; mob.Health = mob.MaxHealth; mob.MaxSpeedBase = 0; if (mob.AddToWorld()) sfx = mob; return true; }