public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         MonsterStatus.Clear();
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         Phantasms.Clear();
     }
 }
示例#3
0
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (Hud.Game.Me.HeroClassDefinition.HeroClass != HeroClass.Necromancer)
            {
                return;
            }

            ActiveTarget = null;
            ResetRinger(true);

            var items = Hud.Game.Items.Where(x => x.Location == ItemLocation.RightHand);

            foreach (var item in items)
            {
                if (item.SnoItem.Sno != Hud.Sno.SnoItems.P6_Unique_Phylactery_02.Sno)
                {
                    continue;
                }

                foreach (var perfection in item.Perfections)
                {
                    if (perfection.Attribute == Hud.Sno.Attributes.Item_Power_Passive)
                    {
                        legpower = (int)(perfection.Cur * 100);
                        return;
                    }
                }
            }
        }
示例#4
0
 public void OnNewArea(bool isNewGame, ISnoArea area)
 {
     if (isNewGame)
     {
         ClearData();
         Show            = false;
         tablesProcessed = false;
     }
     if (!Hud.Game.IsInTown)
     {
         currentFloor = area.NameLocalized;
         if (!MonsterProgression.ContainsKey(currentFloor) &&
             !MonsterSeenCount.ContainsKey(currentFloor) &&
             !MonsterSummonedCount.ContainsKey(currentFloor) &&
             !MonsterTracked.ContainsKey(currentFloor) &&
             !MonsterKilledCount.ContainsKey(currentFloor))
         {
             //add floor in data collection structures
             MonsterTracked.Add(currentFloor, new HashSet <uint>());
             MonsterProgression.Add(currentFloor, new Dictionary <string, float>());
             MonsterSeenCount.Add(currentFloor, new Dictionary <string, int>());
             MonsterKilledCount.Add(currentFloor, new Dictionary <string, int>());
             MonsterSummonedCount.Add(currentFloor, new Dictionary <string, int>());
         }
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         CheckSize();
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         Snapshots.Clear();
     }
 }
示例#7
0
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (newGame)
            {
                if (resetWayPoint)
                {
                    wayPointList.Clear();
                }

                showSummary = false;
                PoolMarkers.Clear();
                lastWayPointSno = 0;
                poolTotal       = 0;
                for (var i = 0; i < 6; i++)
                {
                    poolFind[i] = 0;
                    poolUsed[i] = 0;
                }
                return;
            }

            if (area.IsTown)
            {
                lastAct         = 0;
                lastWayPointSno = 0;
            }
        }
示例#8
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         _lastNewGame.Restart();
     }
 }
示例#9
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         redDoor0 = false;
         redDoor1 = false;
         redDoor2 = false;
         redDoor3 = false;
         finished = false;
     }
     else
     {
         if (area.Sno == 256767)
         {
             redDoor0 = true;
         }
         if (area.Sno == 256106)
         {
             redDoor1 = true;
         }
         if (area.Sno == 256742)
         {
             redDoor2 = true;
         }
         if (area.Sno == 374239)
         {
             redDoor3 = true;
         }
         if (redDoor0 && redDoor1 && redDoor2 && redDoor3 && !finished)
         {
             times++;
             finished = true;
         }
     }
 }
示例#10
0
 public void OnNewAreaEliteCirclePlugin(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         StrickenMonsterStatus.Clear();
     }
 }
示例#11
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         settings.cb_ShowOnlyForCurrentClass_CheckedChanged(null, null);
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (lastPack.IsRunning)
     {
         lastPack.Stop();
         lastPack.Reset();
     }
 }
示例#13
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame || (MyIndex != Hud.Game.Me.Index))                // Fix partialment the newGame limitation
     {
         MyIndex = Hud.Game.Me.Index;
         Phantasms.Clear();
     }
 }
示例#14
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         BannersList.Clear();
         BannersAreas.Clear();
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         legendaries.Clear();
         legendaries.Add("0");
     }
 }
示例#16
0
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (!newGame)
            {
                return;
            }

            StateGuard(true);
        }
示例#17
0
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (!newGame)
            {
                return;
            }

            lastPlayerCount = -1;
        }
示例#18
0
 // if New Game the initialization
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         Hud.Sound.Speak("New Game");
         OriginalSheetDPS = 0;
         OriginalSheetEHP = 0;
         First            = true;
     }
 }
示例#19
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         if (TurnOffWhenNewGameStarts)
         {
             TurnedOn = false;
         }
     }
 }
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (newGame)
            {
                PlayerCount = Hud.Game.Players.Count();

                //reset
                ResetBonusPool();
            }
        }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         for (int i = 0; i < 4; i++)
         {
             StackCount[i] = 0;
         }
     }
 }
示例#22
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         RedDoor0 = false;
         RedDoor1 = false;
         RedDoor2 = false;
         RedDoor3 = false;
         Finished = false;
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         TimerStarted = false;
         Speak        = true;
         TextMsg      = true;
         Alarm        = true;
         AlarmCount   = 0;
     }
 }
示例#24
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         for (int i = 0; i < 4; i++)
         {
             DeadTimes[i] = 0;
             GhostTime[i] = 0;
             Dead[i]      = false;
         }
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (riftQuest == null || (riftQuest != null && riftQuest.State == QuestState.none))
     {
         var message = "----- New Game -----";
         if (CurrentAnime == null || CurrentAnime != message)
         {
             CurrentAnime = message;
             Hud.TextLog.Log("BossAnimeLog", message, true, true);
         }
     }
 }
示例#26
0
        public void OnNewArea(bool newGame, ISnoArea area)
        {
            if (newGame)
            {
                Show = false;

                PlayerCount = Hud.Game.Players.Count();

                //reset
                ResetTownWatch();
            }
        }
示例#27
0
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         _IsStoryMode = Hud.Game.SpecialArea == SpecialArea.None && !Hud.Game.Bounties.Any();
         TotalTimeWatch.Reset();
         A1TimeWatch.Reset();
         A2TimeWatch.Reset();
         A3TimeWatch.Reset();
         A4TimeWatch.Reset();
         A5TimeWatch.Reset();
     }
 }
示例#28
0
 // New Game initialization
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         FPSWarningCnt = 0;
         First         = true;
         Logging       = false;
         BossFirst     = true;
         aTimeStamp    = false;
         ScanMonsters  = false;
         IsGRift       = false;
     }
 }
 public void OnNewArea(bool newGame, ISnoArea area)
 {
     if (newGame)
     {
         if (HeroName != Hud.Game.Me.HeroName)
         {
             HeroName     = Hud.Game.Me.HeroName;
             freeSpaceTwo = int.MaxValue;
             foreach (var key in InventorySlots.Keys.ToList()) // empty dictionary values
             {
                 InventorySlots[key] = string.Empty;
             }
         }
     }
 }
 public static string CustAreaName(this ISnoArea snoArea, bool showAct = false)
 {
     if (snoArea.Code.StartsWith("x1_lr_l"))
     {
         return(snoArea.Code.Replace("x1_lr_level_", riftMapName));
     }
     if (showAct)
     {
         var actrev = snoArea.ActFixed();
         if (actrev > 0)
         {
             return("A" + actrev + " - " + snoArea.NameLocalized);
         }
     }
     return(snoArea.NameLocalized);
 }