TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ CheckMechaMayhem()

static void Terraria.GameContent.Achievements.AchievementsHelper.CheckMechaMayhem ( int justKilled = -1)
inlinestatic

Definition at line 397 of file AchievementsHelper.cs.

398 {
399 if (!mayhemOK)
400 {
401 if (NPC.AnyNPCs(127) && NPC.AnyNPCs(134) && NPC.AnyNPCs(126) && NPC.AnyNPCs(125))
402 {
403 mayhemOK = true;
404 mayhem1down = false;
405 mayhem2down = false;
406 mayhem3down = false;
407 }
408 return;
409 }
410 if (justKilled == 125 || justKilled == 126)
411 {
412 mayhem1down = true;
413 }
414 else if (!NPC.AnyNPCs(125) && !NPC.AnyNPCs(126) && !mayhem1down)
415 {
416 mayhemOK = false;
417 return;
418 }
419 if (justKilled == 134)
420 {
421 mayhem2down = true;
422 }
423 else if (!NPC.AnyNPCs(134) && !mayhem2down)
424 {
425 mayhemOK = false;
426 return;
427 }
428 if (justKilled == 127)
429 {
430 mayhem3down = true;
431 }
432 else if (!NPC.AnyNPCs(127) && !mayhem3down)
433 {
434 mayhemOK = false;
435 return;
436 }
438 {
440 }
441 }

References Terraria.NPC.AnyNPCs(), Terraria.GameContent.Achievements.AchievementsHelper.mayhem1down, Terraria.GameContent.Achievements.AchievementsHelper.mayhem2down, Terraria.GameContent.Achievements.AchievementsHelper.mayhem3down, Terraria.GameContent.Achievements.AchievementsHelper.mayhemOK, and Terraria.GameContent.Achievements.AchievementsHelper.NotifyProgressionEvent().

Referenced by Terraria.NPC.CountKillForAchievements(), and Terraria.NPC.SpawnBoss().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: