예제 #1
0
파일: Move.cs 프로젝트: Swynfel/heirloom
        public override async Task Apply(Element element, Piece launcher, SkillArea area)
        {
            int   totalTiles = area.Count;
            float stepTime   = totalTiles switch
            {
                0 => 0.4f,
                1 => 0.4f,
                2 => 0.4f,
                3 => 0.3f,
                4 => 0.25f,
                5 => 0.2f,
                _ => 0.15f,
            };

            foreach (Tile tile in area.AllTiles().Skip(1))
            {
                await launcher.WalkTo(tile, stepTime);

                launcher.MoveOn(tile);
                // TODO: activate effects on landing tile
            }
        }