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

◆ ProbeDebuffs()

void Terraria.GameContent.UI.EmoteBubble.ProbeDebuffs ( List< int > list,
Player plr )
inlineprivate

Definition at line 619 of file EmoteBubble.cs.

620 {
621 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
622 if (plr.Center.Y > (float)(Main.maxTilesY * 16 - 3200) || plr.onFire || ((NPC)anchor.entity).onFire || plr.onFire2)
623 {
624 list.Add(9);
625 }
626 if (Main.rand.Next(2) == 0)
627 {
628 list.Add(11);
629 }
630 if (plr.poisoned || ((NPC)anchor.entity).poisoned || plr.ZoneJungle)
631 {
632 list.Add(8);
633 }
634 if (plr.inventory[plr.selectedItem].type == 215 || Main.rand.Next(3) == 0)
635 {
636 list.Add(10);
637 }
638 }

References Terraria.GameContent.UI.EmoteBubble.anchor, Terraria.GameContent.UI.WorldUIAnchor.entity, Terraria.Main.maxTilesY, and Terraria.Main.rand.

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

+ Here is the caller graph for this function: