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

Commit

Permalink
fix: fixed cd on NextWindow.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 20, 2023
1 parent fc77c0c commit 5f660a0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
19 changes: 19 additions & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"3": 0.6,
"5": 2.1,
"9": 0.6,
"15": 0.6,
"16": 0.6,
"20": 0.6,
"23": 0.6,
"28": 0.6,
"31": 0.6,
"37": 0.6,
"42": 0.6,
Expand All @@ -23,6 +30,8 @@
"2876": 0.6,
"2878": 0.6,
"2890": 0.6,
"3538": 0.6,
"3539": 0.6,
"3546": 0.6,
"3547": 0.6,
"3549": 0.6,
Expand All @@ -41,6 +50,8 @@
"3640": 0.6,
"3643": 0.6,
"4262": 0.6,
"7383": 0.6,
"7384": 0.6,
"7386": 0.6,
"7387": 0.6,
"7389": 0.6,
Expand All @@ -59,6 +70,9 @@
"7546": 0.6,
"7548": 0.6,
"9826": 0.1,
"16459": 0.6,
"16460": 0.6,
"16461": 0.6,
"16465": 0.6,
"16469": 0.6,
"16470": 0.6,
Expand All @@ -70,6 +84,11 @@
"16500": 0.6,
"16501": 0.6,
"17209": 0.6,
"25746": 0.6,
"25747": 0.6,
"25748": 0.6,
"25749": 0.6,
"25750": 0.6,
"25753": 1.15,
"25755": 0.6,
"25756": 0.6,
Expand Down
1 change: 1 addition & 0 deletions RotationSolver.Basic/Rotations/Basic/PLD_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public abstract class PLD_Base : CustomRotation
{
FilterForHostiles = LowBlow.FilterForHostiles,
ActionCheck = b => LowBlow.IsCoolingDown,
StatusProvide = new StatusID[] { StatusID.Stun },
};

public static IBaseAction FightOrFlight { get; } = new BaseAction(ActionID.FightOrFlight, ActionOption.Buff);
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/UI/CooldownWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public override void Draw()
}

static readonly uint progressCol = ImGui.ColorConvertFloat4ToU32(new Vector4(0.6f, 0.6f, 0.6f, 0.7f));

private static void DrawActionCooldown(IAction act)
{
var width = Service.Config.CooldownWindowIconSize;
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/UI/NextActionWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public static unsafe void DrawGcdCooldown(float width, bool drawTittle)
var actionRemain = DataCenter.ActionRemain;
if(remain > actionRemain + 0.6f + DataCenter.Ping)
{
var value = (total - remain + actionRemain) / total;
var value = total - remain + actionRemain;

if (value > DataCenter.CastingTotal)
{
var pt = cursor + new Vector2(width, 0) * value / total;

ImGui.GetWindowDrawList().AddLine(pt, pt + new Vector2(0, height),
ImGui.ColorConvertFloat4ToU32(ImGuiColors.DalamudRed));
ImGui.ColorConvertFloat4ToU32(ImGuiColors.DalamudRed), 2);
}
}
}
Expand Down

0 comments on commit 5f660a0

Please sign in to comment.