public override void OnStart() { if (Level == 0) { Level = -1; } _stopwatch.Start(); //AdvDia.Update(true); _riftCoroutine = new RiftCoroutine(RiftType.Nephalem); }
public override void OnStart() { if (!Adventurer.Enabled) { Logger.Error("Plugin is not enabled. Please enable Adventurer and try again."); _isDone = true; return; } PluginEvents.CurrentProfileType = ProfileType.Rift; _stopwatch.Start(); //AdvDia.Update(true); _riftCoroutine = new RiftCoroutine(RiftType.Greater); }
public override void OnStart() { if (Level == 0) { Level = -1; } _stopwatch.Start(); var riftOptions = new RiftCoroutine.RiftOptions { RiftCount = RiftCount > 0 ? RiftCount : PluginSettings.Current.RiftCount, IsEmpowered = IsEmpowered || PluginSettings.Current.UseEmpoweredRifts }; _riftCoroutine = new RiftCoroutine(RiftType.Nephalem, riftOptions); }
public override async Task <bool> StartTask() { if (Level == 0) { Level = -1; } var riftOptions = new RiftCoroutine.RiftOptions { RiftCount = RiftCount > 0 ? RiftCount : PluginSettings.Current.RiftCount, IsEmpowered = IsEmpowered || PluginSettings.Current.UseEmpoweredRifts, NormalRiftForXPShrine = IsGetXPShrine || PluginSettings.Current.NormalRiftForXPShrine, }; _riftCoroutine = new RiftCoroutine(SelectedRiftType, riftOptions); return(false); }
public override void OnStart() { if (!Adventurer.Enabled) { Logger.Error("Plugin is not enabled. Please enable Adventurer and try again."); _isDone = true; return; } var riftOptions = new RiftCoroutine.RiftOptions { RiftCount = RiftCount > 0 ? RiftCount : PluginSettings.Current.RiftCount, }; PluginEvents.CurrentProfileType = ProfileType.Rift; _stopwatch.Start(); //AdvDia.Update(true); _riftCoroutine = new RiftCoroutine(RiftType.Nephalem, riftOptions); }
public override void OnStart() { if (!Adventurer.Enabled) { Logger.Error("Plugin is not enabled. Please enable Adventurer and try again."); _isDone = true; return; } var riftOptions = new RiftCoroutine.RiftOptions { RiftCount = RiftCount > 0 ? RiftCount : PluginSettings.Current.RiftCount, IsEmpowered = IsEmpowered || PluginSettings.Current.UseEmpoweredRifts }; PluginEvents.CurrentProfileType = ProfileType.Rift; _stopwatch.Start(); _riftCoroutine = new RiftCoroutine(RiftType.Greater, riftOptions); }
public override async Task <bool> MainTask() { if (!await RiftCoroutine.RunRift(SelectedRiftType, Level, PluginSettings.Current.EmpoweredRiftLevelLimit, IsEmpowered || PluginSettings.Current.UseEmpoweredRifts, IsGetXPShrine || PluginSettings.Current.NormalRiftForXPShrine)) { return(false); } // When _remainingRuns has a negative start value we just keep going. if (_remainingRuns < 0) { return(false); } // We just completed a rift. Let's decrement remaining runs. Interlocked.Decrement(ref _remainingRuns); // When remaining runs equals 0 we are done. return(_remainingRuns == 0); }
public override void ResetCachedDone(bool force = false) { _isDone = false; _riftCoroutine = null; }