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

Commit

Permalink
fix: more precise click
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 25, 2023
1 parent 19570f8 commit b5eddf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void DrawParamBasic()
ref Service.Config.MaxPing, Service.Default.MaxPing, min: 100, max: 500);

ImGui.SameLine();
ImGui.Text(" Your Ping: " + DataCenter.Ping.ToString("F3"));
ImGui.Text(" Your Ping: " + DataCenter.RealPing.ToString("F3"));

DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_ActionAhead,
ref Service.Config.ActionAhead, Service.Default.ActionAhead, max: 0.4f);
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/Updaters/ActionUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ internal unsafe static void DoAction()
&& ActionManager.Instance()->QueuedActionId != NextAction.AdjustedID
|| Service.Player.CurrentHp == 0) return;

var ahead = Math.Max(0.4f, Service.Config.ActionAhead);
var maxAhead = Math.Max(DataCenter.MinAnimationLock - DataCenter.Ping - 0.03f, 0.08f);
var ahead = Math.Min(maxAhead, Service.Config.ActionAhead);

//GCD
var canUseGCD = DataCenter.WeaponRemain <= ahead;
Expand Down

0 comments on commit b5eddf8

Please sign in to comment.