Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurochi51 committed Sep 17, 2023
1 parent dd3fbb9 commit 580ba4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TickTracker/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public sealed class Plugin : IDalamudPlugin
public string Name => "Tick Tracker";
public WindowSystem WindowSystem = new("TickTracker");
private readonly string commandName = "/tick";
private readonly float actorTickInterval = 3, fastTickInterval = 1.5f;
private const float ActorTickInterval = 3;
private double syncValue = 1;
private bool inCombat, healTriggered, mpGainTriggered, finishedLoading;
private bool syncAvailable = true, nullSheet = true;
private double syncValue = 1;
private uint lastHPValue, lastMPValue, lastGPValue;
private uint currentHP = 1, currentMP = 1, currentGP = 1, maxHP = 2, maxMP = 2, maxGP = 2;
private Task? loadingTask;
Expand Down Expand Up @@ -194,7 +194,7 @@ private void OnFrameworkUpdate(Framework framework)
}
UpdateResources(player);
UpdateBarState(Enemy, jobType);
if (syncValue + actorTickInterval <= now || syncAvailable)
if (syncValue + ActorTickInterval <= now || syncAvailable)
{
if (syncAvailable)
{
Expand All @@ -203,7 +203,7 @@ private void OnFrameworkUpdate(Framework framework)
}
else
{
syncValue += actorTickInterval;
syncValue += ActorTickInterval;
}
}
if (loadingTask is not null && loadingTask.IsCompleted)
Expand Down

0 comments on commit 580ba4d

Please sign in to comment.