From 7b23dd52bf1f1e90f35c007cc353c89a160fdaec Mon Sep 17 00:00:00 2001 From: xanunderscore <149614526+xanunderscore@users.noreply.github.com> Date: Sat, 4 May 2024 22:29:14 -0400 Subject: [PATCH] math --- BossMod/Modules/Endwalker/Ultimate/TOP/P1Pantokrator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BossMod/Modules/Endwalker/Ultimate/TOP/P1Pantokrator.cs b/BossMod/Modules/Endwalker/Ultimate/TOP/P1Pantokrator.cs index 8027318017..9e2034cb60 100644 --- a/BossMod/Modules/Endwalker/Ultimate/TOP/P1Pantokrator.cs +++ b/BossMod/Modules/Endwalker/Ultimate/TOP/P1Pantokrator.cs @@ -27,9 +27,9 @@ public override void DrawArenaForeground(int pcSlot, Actor pc) { var nesw = Service.Config.Get().P1PantokratorNESW; var flame1Dir = Casters[0].CastInfo!.Rotation - Module.PrimaryActor.Rotation; + // if ne/sw, set of safe cones is offset by 1 rotation if (nesw) - // if NE/SW, treat flamethrower as offset by 45 degrees, since NE/1 marker is pivot point instead of true north/A marker - flame1Dir += 45.Degrees(); + flame1Dir += 60.Degrees(); var dir = flame1Dir.Normalized().Deg switch { @@ -40,8 +40,8 @@ public override void DrawArenaForeground(int pcSlot, Actor pc) (> 135 and < 165) or (> -45 and < -15) => 60.Degrees(), _ => -90.Degrees(), // assume groups go CW }; + // undo direction adjustment to correct target safe spot if (nesw) - // if NE/SW, the set of correct safespots is offset from the N/S ones by 60 degrees, i.e. one flamethrower rotation dir -= 60.Degrees(); var offset = 12 * (Module.PrimaryActor.Rotation + dir).ToDirection(); var pos = group == 1 ? Module.Center + offset : Module.Center - offset;