Beispiel #1
0
        private static void Update(bool force = false)
        {
            if (!force && DateTime.UtcNow.Subtract(_lastUpdateTime).TotalMilliseconds < 250)
                return;

            _lastUpdateTime = DateTime.UtcNow;

            var currentRift = ZetaDia.CurrentRift;
            if (currentRift == null)
                return;

            RiftQuest = new RiftQuest();

            var currentWorldId = ZetaDia.CurrentWorldSnoId;

            CurrentRift = currentRift;
            IsInRift = RiftWorldIds.Contains(currentWorldId); ;
            CurrentWorldId = currentWorldId;
            IsStarted = currentRift.IsStarted;
            Type = currentRift.Type; ;
            CurrentDepth = GetDepthByWorldId(currentWorldId); ;
            IsGreaterRiftStarted = IsStarted && Type == RiftType.Greater;
            IsInGreaterRift = IsInRift && Type == RiftType.Greater;

            IsLockedOutOfRift = !ZetaDia.Me.IsParticipatingInTieredLootRun && IsGreaterRiftStarted;

            IsGreaterRiftProfile = Player.CurrentMessage != null && 
                Player.CurrentMessage.ProfileTagName != null && 
                Player.CurrentMessage.ProfileTagName.ToLower().Contains("greater");
        }
Beispiel #2
0
        private static void Update(bool force = false)
        {
            if (!force && DateTime.UtcNow.Subtract(_lastUpdateTime).TotalMilliseconds < 250)
            {
                return;
            }

            _lastUpdateTime = DateTime.UtcNow;

            var currentRift = ZetaDia.CurrentRift;

            if (currentRift == null)
            {
                return;
            }

            RiftQuest = new RiftQuest();

            var currentWorldId = ZetaDia.CurrentWorldSnoId;

            CurrentRift          = currentRift;
            IsInRift             = RiftWorldIds.Contains(currentWorldId);;
            CurrentWorldId       = currentWorldId;
            IsStarted            = currentRift.IsStarted;
            Type                 = currentRift.Type;;
            CurrentDepth         = GetDepthByWorldId(currentWorldId);;
            IsGreaterRiftStarted = IsStarted && Type == RiftType.Greater;
            IsInGreaterRift      = IsInRift && Type == RiftType.Greater;

            IsLockedOutOfRift = !ZetaDia.Me.IsParticipatingInTieredLootRun && IsGreaterRiftStarted;

            IsGreaterRiftProfile = Player.CurrentMessage != null &&
                                   Player.CurrentMessage.ProfileTagName != null &&
                                   Player.CurrentMessage.ProfileTagName.ToLower().Contains("greater");
        }