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

Commit

Permalink
fix: add Ping for rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 20, 2023
1 parent b519dbc commit 1eb1bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public abstract partial class CustomRotation
protected static ClientLanguage Language => Service.Language;
protected static TerritoryContentType TerritoryContentType => DataCenter.TerritoryContentType;

protected static float Ping => DataCenter.Ping;

public static uint AdjustId(uint id) => Service.GetAdjustedActionId(id);
public static ActionID AdjustId(ActionID id) => Service.GetAdjustedActionId(id);
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/UI/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ public unsafe static void Display(this IBaseItem item, bool IsActive) => item.Dr
if (Service.Config.InDebug)
{
ImGui.Text("Status: " + ActionManager.Instance()->GetActionStatus(ActionType.Item, item.ID).ToString());
ImGui.Text("Status: " + ActionManager.Instance()->GetActionStatus(ActionType.Item, item.ID + 1000000).ToString());
ImGui.Text("Status HQ: " + ActionManager.Instance()->GetActionStatus(ActionType.Item, item.ID + 1000000).ToString());
var remain = ActionManager.Instance()->GetRecastTime(ActionType.Item, item.ID) - ActionManager.Instance()->GetRecastTimeElapsed(ActionType.Item, item.ID);
ImGui.Text("remain: " + remain.ToString());
ImGui.Text("CanUse: " + item.CanUse(out _).ToString());
Expand Down

0 comments on commit 1eb1bd5

Please sign in to comment.