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

◆ ProbeDebuffs()

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

Definition at line 417 of file EmoteBubble.cs.

418 {
419 if (plr.Center.Y > (float)(Main.maxTilesY * 16 - 3200) || plr.onFire || ((NPC)anchor.entity).onFire || plr.onFire2)
420 {
421 list.Add(9);
422 }
423 if (Main.rand.Next(2) == 0)
424 {
425 list.Add(11);
426 }
427 if (plr.poisoned || ((NPC)anchor.entity).poisoned || plr.ZoneJungle)
428 {
429 list.Add(8);
430 }
431 if (plr.inventory[plr.selectedItem].type == 215 || Main.rand.Next(3) == 0)
432 {
433 list.Add(10);
434 }
435 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), Terraria.GameContent.UI.EmoteBubble.anchor, Terraria.GameContent.UI.WorldUIAnchor.entity, System.list, Terraria.Main.maxTilesY, and Terraria.Main.rand.

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