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

Commit

Permalink
fix: fund back the UpdateNextAction method call.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 24, 2023
1 parent fda0c23 commit b24b0ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 10 additions & 1 deletion Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@
"7562": 0.6,
"7568": 0.1,
"9826": 0.1,
"10084": 2.1,
"13704": 2.1,
"13706": 2.1,
"13707": 2.1,
"14971": 1.1,
"15818": 2.1,
"15989": 0.6,
"15990": 0.6,
"15991": 0.6,
Expand Down Expand Up @@ -249,6 +254,7 @@
"22378": 2.1,
"22379": 2.1,
"22380": 2.1,
"22497": 2.1,
"24284": 0.1,
"24285": 0.6,
"24290": 0.6,
Expand All @@ -269,6 +275,7 @@
"24391": 0.6,
"24393": 0.6,
"24405": 0.6,
"24801": 2.1,
"25746": 0.6,
"25747": 0.6,
"25748": 0.6,
Expand Down Expand Up @@ -307,5 +314,7 @@
"25865": 0.1,
"25870": 0.6,
"25876": 0.6,
"25885": 0.6
"25885": 0.6,
"27970": 2.1,
"31404": 2.1
}
11 changes: 4 additions & 7 deletions RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class MajorUpdater
&& !DataCenter.HasHostilesInRange;

#if DEBUG
private static readonly Dictionary<int, bool> _valus = new Dictionary<int, bool>();
private static readonly Dictionary<int, bool> _values = new Dictionary<int, bool>();
#endif

private static void FrameworkUpdate(Framework framework)
Expand All @@ -33,11 +33,11 @@ private static void FrameworkUpdate(Framework framework)
{
string key = enumNames[i];
bool newValue = Service.Conditions[(Dalamud.Game.ClientState.Conditions.ConditionFlag)indexs[i]];
if (_valus.ContainsKey(i) && _valus[i] != newValue && indexs[i] != 48 && indexs[i] != 27)
if (_values.ContainsKey(i) && _values[i] != newValue && indexs[i] != 48 && indexs[i] != 27)
{
//Service.ToastGui.ShowQuest(indexs[i].ToString() + " " + key + ": " + newValue.ToString());
}
_valus[i] = newValue;
_values[i] = newValue;
}
}
#endif
Expand Down Expand Up @@ -97,10 +97,7 @@ private static void UpdateWork()
RotationUpdater.UpdateRotation();

ActionSequencerUpdater.UpdateActionSequencerAction();
if (!ShouldPreventActions)
{
ActionUpdater.DoAction();
}
ActionUpdater.UpdateNextAction();

RSCommands.UpdateRotationState();

Expand Down

0 comments on commit b24b0ba

Please sign in to comment.