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

◆ ProbeEvents()

void Terraria.GameContent.UI.EmoteBubble.ProbeEvents ( List< int > list)
inlineprivate

Definition at line 587 of file EmoteBubble.cs.

588 {
589 if (BirthdayParty.PartyIsUp && Main.rand.Next(3) == 0)
590 {
591 list.Add(Utils.SelectRandom<int>(Main.rand, 127, 128, 129, 126));
592 }
593 if (Main.bloodMoon || (!Main.dayTime && Main.rand.Next(4) == 0))
594 {
595 list.Add(18);
596 }
597 if (Main.eclipse || (Main.hardMode && Main.rand.Next(4) == 0))
598 {
599 list.Add(19);
600 }
601 if ((!Main.dayTime || WorldGen.spawnMeteor) && NPC.downedBoss2)
602 {
603 list.Add(99);
604 }
605 if (Main.pumpkinMoon || ((NPC.downedHalloweenKing || NPC.downedHalloweenTree) && !Main.dayTime))
606 {
607 list.Add(20);
608 }
609 if (Main.snowMoon || ((NPC.downedChristmasIceQueen || NPC.downedChristmasSantank || NPC.downedChristmasTree) && !Main.dayTime))
610 {
611 list.Add(21);
612 }
614 {
615 list.Add(133);
616 }
617 }

References Terraria.Main.bloodMoon, Terraria.Main.dayTime, Terraria.NPC.downedBoss2, Terraria.NPC.downedChristmasIceQueen, Terraria.NPC.downedChristmasSantank, Terraria.NPC.downedChristmasTree, Terraria.NPC.downedHalloweenKing, Terraria.NPC.downedHalloweenTree, Terraria.GameContent.Events.DD2Event.DownedInvasionAnyDifficulty, Terraria.Main.eclipse, Terraria.Main.hardMode, Terraria.GameContent.Events.DD2Event.Ongoing, Terraria.GameContent.Events.BirthdayParty.PartyIsUp, Terraria.Main.pumpkinMoon, Terraria.Main.rand, Terraria.Main.snowMoon, and Terraria.WorldGen.spawnMeteor.

Referenced by Terraria.GameContent.UI.EmoteBubble.PickNPCEmote().

+ Here is the caller graph for this function: