NotifyProgressionEvent() public static method

public static NotifyProgressionEvent ( int eventID ) : void
eventID int
return void
Ejemplo n.º 1
0
 public static void CheckMechaMayhem(int justKilled = -1)
 {
     if (!AchievementsHelper.mayhemOK)
     {
         if (!NPC.AnyNPCs((int)sbyte.MaxValue) || !NPC.AnyNPCs(134) || (!NPC.AnyNPCs(126) || !NPC.AnyNPCs(125)))
         {
             return;
         }
         AchievementsHelper.mayhemOK    = true;
         AchievementsHelper.mayhem1down = false;
         AchievementsHelper.mayhem2down = false;
         AchievementsHelper.mayhem3down = false;
     }
     else
     {
         if (justKilled != 125 && justKilled != 126)
         {
             if (!NPC.AnyNPCs(125) && !NPC.AnyNPCs(126) && !AchievementsHelper.mayhem1down)
             {
                 AchievementsHelper.mayhemOK = false;
                 return;
             }
         }
         else
         {
             AchievementsHelper.mayhem1down = true;
         }
         if (justKilled == 134)
         {
             AchievementsHelper.mayhem2down = true;
         }
         else if (!NPC.AnyNPCs(134) && !AchievementsHelper.mayhem2down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (justKilled == (int)sbyte.MaxValue)
         {
             AchievementsHelper.mayhem3down = true;
         }
         else if (!NPC.AnyNPCs((int)sbyte.MaxValue) && !AchievementsHelper.mayhem3down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (!AchievementsHelper.mayhem1down || !AchievementsHelper.mayhem2down || !AchievementsHelper.mayhem3down)
         {
             return;
         }
         AchievementsHelper.NotifyProgressionEvent(21);
     }
 }
Ejemplo n.º 2
0
 // Token: 0x06000FF3 RID: 4083 RVA: 0x003FD378 File Offset: 0x003FB578
 public static void CheckMechaMayhem(int justKilled = -1)
 {
     if (!AchievementsHelper.mayhemOK)
     {
         if (NPC.AnyNPCs(127) && NPC.AnyNPCs(134) && NPC.AnyNPCs(126) && NPC.AnyNPCs(125))
         {
             AchievementsHelper.mayhemOK    = true;
             AchievementsHelper.mayhem1down = false;
             AchievementsHelper.mayhem2down = false;
             AchievementsHelper.mayhem3down = false;
             return;
         }
     }
     else
     {
         if (justKilled == 125 || justKilled == 126)
         {
             AchievementsHelper.mayhem1down = true;
         }
         else if (!NPC.AnyNPCs(125) && !NPC.AnyNPCs(126) && !AchievementsHelper.mayhem1down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (justKilled == 134)
         {
             AchievementsHelper.mayhem2down = true;
         }
         else if (!NPC.AnyNPCs(134) && !AchievementsHelper.mayhem2down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (justKilled == 127)
         {
             AchievementsHelper.mayhem3down = true;
         }
         else if (!NPC.AnyNPCs(127) && !AchievementsHelper.mayhem3down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (AchievementsHelper.mayhem1down && AchievementsHelper.mayhem2down && AchievementsHelper.mayhem3down)
         {
             AchievementsHelper.NotifyProgressionEvent(21);
         }
     }
 }
 public static void CheckMechaMayhem(int justKilled = -1)
 {
     if (AchievementsHelper.mayhemOK)
     {
         if (justKilled == 125 || justKilled == 126)
         {
             AchievementsHelper.mayhem1down = true;
         }
         else if (!NPC.AnyNPCs(NPCID.Retinazer) && !NPC.AnyNPCs(NPCID.Spazmatism) && !AchievementsHelper.mayhem1down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (justKilled == 134)
         {
             AchievementsHelper.mayhem2down = true;
         }
         else if (!NPC.AnyNPCs(NPCID.TheDestroyer) && !AchievementsHelper.mayhem2down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (justKilled == 127)
         {
             AchievementsHelper.mayhem3down = true;
         }
         else if (!NPC.AnyNPCs(NPCID.SkeletronPrime) && !AchievementsHelper.mayhem3down)
         {
             AchievementsHelper.mayhemOK = false;
             return;
         }
         if (AchievementsHelper.mayhem1down && AchievementsHelper.mayhem2down && AchievementsHelper.mayhem3down)
         {
             AchievementsHelper.NotifyProgressionEvent(21);
         }
     }
     else if (NPC.AnyNPCs(NPCID.SkeletronPrime) && NPC.AnyNPCs(NPCID.TheDestroyer) && NPC.AnyNPCs(NPCID.Spazmatism) && NPC.AnyNPCs(NPCID.Retinazer))
     {
         AchievementsHelper.mayhemOK    = true;
         AchievementsHelper.mayhem1down = false;
         AchievementsHelper.mayhem2down = false;
         AchievementsHelper.mayhem3down = false;
         return;
     }
 }