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

Commit

Permalink
fix: pelotion Usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 7, 2023
1 parent 628f196 commit 70c72dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RotationSolver/Data/RandomDelay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace RotationSolver.Data;

internal struct RandomDelay
{
DateTime _startDelayTime = DateTime.MinValue;
DateTime _startDelayTime = DateTime.Now;
float _delayTime = -1;
Func<(float min, float max)> _getRange;
Random _ran = new Random(DateTime.Now.Millisecond);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ internal RoleAction(ActionID actionID, JobRole[] roles, bool isFriendly = false,
StatusProvide = new StatusID[] { StatusID.TrueNorth },
};

static readonly RandomDelay _pelotonDelay = new RandomDelay(() =>
static RandomDelay _pelotonDelay = new RandomDelay(() =>
(Service.Configuration.PelotonDelayMin, Service.Configuration.PelotonDelayMax));
/// <summary>
/// 速行
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/ActionUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static TimeSpan CombatTime
}
}

private static RandomDelay _GCDDelay = new RandomDelay(() => (Service.Configuration.WeaponDelayMin, Service.Configuration.WeaponDelayMax));
static RandomDelay _GCDDelay = new RandomDelay(() => (Service.Configuration.WeaponDelayMin, Service.Configuration.WeaponDelayMax));

internal static float WeaponRemain { get; private set; } = 0;

Expand Down

0 comments on commit 70c72dd

Please sign in to comment.