From: Liza Carvelli Date: Thu, 11 Jul 2024 11:00:47 +0000 (+0200) Subject: Handle Solution Nine aetheryte not working for aethernet shortcut usage X-Git-Tag: v1.4~4 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=ba33cdce4b42cad09dfbc93df91c38f7a446fa75;p=Questionable.git Handle Solution Nine aetheryte not working for aethernet shortcut usage --- diff --git a/Questionable/Controller/Steps/BaseFactory/AethernetShortcut.cs b/Questionable/Controller/Steps/BaseFactory/AethernetShortcut.cs index f48dccb7..5bcd6349 100644 --- a/Questionable/Controller/Steps/BaseFactory/AethernetShortcut.cs +++ b/Questionable/Controller/Steps/BaseFactory/AethernetShortcut.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using System.Linq; using System.Numerics; using Dalamud.Plugin.Services; using Microsoft.Extensions.DependencyInjection; @@ -66,6 +68,23 @@ internal static class AethernetShortcut _teleported = true; return true; } + else if (From == EAetheryteLocation.SolutionNine) + { + logger.LogInformation("Moving to S9 aetheryte"); + List nearbyPoints = + [ + new(7.225532f, 8.467899f, -7.1670876f), + new(7.177844f, 8.467899f, 7.2216787f), + new(-7.0762224f, 8.467898f, 7.1924725f), + new(-7.1289554f, 8.467898f, -7.0594683f) + ]; + + Vector3 closestPoint = nearbyPoints.MinBy(x => (playerPosition - x).Length()); + _moving = true; + movementController.NavigateTo(EMovementType.Quest, (uint)From, closestPoint, false, true, + 0.25f); + return true; + } else { logger.LogInformation("Moving to aethernet shortcut");