From e2a52d44237b2bdea81cf575a19a384a1bedec66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Sat, 4 Feb 2023 22:44:47 +0800 Subject: [PATCH] fix: add a rotation name in debug. --- .../CustomRotation/CustomRotation_Ability.cs | 1 - .../Rotations/RangedMagicial/BLM/BLM_Alpha.cs | 28 +++++++++++++++++++ .../Windows/RotationConfigWindow_Debug.cs | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 RotationSolver/Rotations/RangedMagicial/BLM/BLM_Alpha.cs diff --git a/RotationSolver/Rotations/CustomRotation/CustomRotation_Ability.cs b/RotationSolver/Rotations/CustomRotation/CustomRotation_Ability.cs index bc0c88bef..5b31f477b 100644 --- a/RotationSolver/Rotations/CustomRotation/CustomRotation_Ability.cs +++ b/RotationSolver/Rotations/CustomRotation/CustomRotation_Ability.cs @@ -49,7 +49,6 @@ private bool Ability(byte abilitiesRemaining, IAction nextGCD, out IAction act, //Run! if (!InCombat && IsMoving && role == JobRole.RangedPhysical - && !Service.ClientState.LocalPlayer.HasStatus(false, StatusID.Peloton) && Peloton.CanUse(out act, mustUse: true)) return true; return false; diff --git a/RotationSolver/Rotations/RangedMagicial/BLM/BLM_Alpha.cs b/RotationSolver/Rotations/RangedMagicial/BLM/BLM_Alpha.cs new file mode 100644 index 000000000..4f6fe83b8 --- /dev/null +++ b/RotationSolver/Rotations/RangedMagicial/BLM/BLM_Alpha.cs @@ -0,0 +1,28 @@ +using RotationSolver.Actions; +using RotationSolver.Rotations.Basic; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace RotationSolver.Rotations.RangedMagicial.BLM; + +internal class BLM_Alpha : BLM_Base +{ + public override string GameVersion => "6.31"; + + public override string RotationName => "Alpha"; + + private protected override bool AttackAbility(byte abilitiesRemaining, out IAction act) + { + act = null; + return false; + } + + private protected override bool GeneralGCD(out IAction act) + { + act = null; + return false; + } +} diff --git a/RotationSolver/Windows/RotationConfigWindow_Debug.cs b/RotationSolver/Windows/RotationConfigWindow_Debug.cs index 15510b471..58e13fb5e 100644 --- a/RotationSolver/Windows/RotationConfigWindow_Debug.cs +++ b/RotationSolver/Windows/RotationConfigWindow_Debug.cs @@ -69,6 +69,7 @@ private unsafe void DrawDebugTab() if (ImGui.CollapsingHeader("Next Action")) { + ImGui.Text(RotationUpdater.RightNowRotation.RotationName); ImGui.Text(RSCommands.SpecialType.ToString()); ActionUpdater.NextAction?.Display(false);