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

◆ ProbeEvents()

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

Definition at line 385 of file EmoteBubble.cs.

386 {
387 if (BirthdayParty.PartyIsUp && Main.rand.Next(3) == 0)
388 {
389 list.Add(Utils.SelectRandom<int>(Main.rand, 127, 128, 129, 126));
390 }
391 if (Main.bloodMoon || (!Main.dayTime && Main.rand.Next(4) == 0))
392 {
393 list.Add(18);
394 }
395 if (Main.eclipse || (Main.hardMode && Main.rand.Next(4) == 0))
396 {
397 list.Add(19);
398 }
399 if ((!Main.dayTime || WorldGen.spawnMeteor) && NPC.downedBoss2)
400 {
401 list.Add(99);
402 }
403 if (Main.pumpkinMoon || ((NPC.downedHalloweenKing || NPC.downedHalloweenTree) && !Main.dayTime))
404 {
405 list.Add(20);
406 }
407 if (Main.snowMoon || ((NPC.downedChristmasIceQueen || NPC.downedChristmasSantank || NPC.downedChristmasTree) && !Main.dayTime))
408 {
409 list.Add(21);
410 }
412 {
413 list.Add(133);
414 }
415 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), 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, System.list, 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().