Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: make debug ui ignore target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 13, 2023
1 parent 1960f62 commit 2e2017e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions RotationSolver.Basic/Rotations/CustomRotation_Ability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,13 @@ private bool AutoDefense(byte abilitiesRemaining, JobRole role, bool helpDefense
//A lot targets are targeting on me.
if (tarOnMeCount > 1 && !IsMoving)
{
if (!helpDefenseSingle) DataCenter.SetAutoStatus(AutoStatus.DefenseSingle, true);
if (ArmsLength.CanUse(out act)) return true;
if (DefenseSingleAbility(abilitiesRemaining, out act)) return true;
}

//Big damage casting action.
if (tarOnMeCount == 1 && DataCenter.IsHostileCastingToTank)
{
if (!helpDefenseSingle) DataCenter.SetAutoStatus(AutoStatus.DefenseSingle, true);
if (DefenseSingleAbility(abilitiesRemaining, out act)) return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public abstract partial class CustomRotation
/// <summary>
/// Whether the number of party members is 8.
/// </summary>
protected static bool IsFullParty => DataCenter.PartyMembers.Count() is 8;
protected static bool IsFullParty => PartyMembers.Count() is 8;

protected static IEnumerable<float> PartyMembersHP => DataCenter.PartyMembersHP;
protected static float PartyMembersMinHP => DataCenter.PartyMembersMinHP;
Expand Down
9 changes: 5 additions & 4 deletions RotationSolver/UI/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,11 @@ private unsafe static void Display(this IBaseAction action, bool IsActive) => ac
ImGui.Text("Cast Time: " + action.CastTime.ToString());
ImGui.Text("MP: " + action.MPNeed.ToString());
#endif
ImGui.Text($"Can Use: {action.CanUse(out _)} ");
ImGui.Text("Must Use:" + action.CanUse(out _, CanUseOption.MustUse).ToString());
ImGui.Text("Empty Use:" + action.CanUse(out _, CanUseOption.EmptyOrSkipCombo).ToString());
ImGui.Text("Must & Empty Use:" + action.CanUse(out _, CanUseOption.MustUse | CanUseOption.EmptyOrSkipCombo).ToString());
var option = CanUseOption.IgnoreTarget;
ImGui.Text($"Can Use: {action.CanUse(out _, option)} ");
ImGui.Text("Must Use:" + action.CanUse(out _, option | CanUseOption.MustUse).ToString());
ImGui.Text("Empty Use:" + action.CanUse(out _, option | CanUseOption.EmptyOrSkipCombo).ToString());
ImGui.Text("Must & Empty Use:" + action.CanUse(out _, option | CanUseOption.MustUse | CanUseOption.EmptyOrSkipCombo).ToString());
if (action.Target != null)
{
ImGui.Text("Target Name: " + action.Target.Name);
Expand Down

0 comments on commit 2e2017e

Please sign in to comment.