Example #1
0
 public override void OnStart()
 {
     if (Level == 0)
     {
         Level = -1;
     }
     _stopwatch.Start();
     //AdvDia.Update(true);
     _riftCoroutine = new RiftCoroutine(RiftType.Nephalem);
 }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }
Example #7
0
        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);
        }
Example #8
0
 public override void ResetCachedDone(bool force = false)
 {
     _isDone        = false;
     _riftCoroutine = null;
 }