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

◆ ProbeCritters()

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

Definition at line 725 of file EmoteBubble.cs.

726 {
727 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
728 Vector2 center = anchor.entity.Center;
729 float num = 1f;
730 float num2 = 1f;
731 if ((double)center.Y < Main.rockLayer * 16.0)
732 {
733 num2 = 0.2f;
734 }
735 else
736 {
737 num = 0.2f;
738 }
739 if (Main.rand.NextFloat() <= num)
740 {
741 if (Main.dayTime)
742 {
743 list.Add(13);
744 list.Add(12);
745 list.Add(68);
746 list.Add(62);
747 list.Add(63);
748 list.Add(69);
749 list.Add(70);
750 }
751 if (!Main.dayTime || (Main.dayTime && (Main.time < 5400.0 || Main.time > 48600.0)))
752 {
753 list.Add(61);
754 }
755 if (NPC.downedGoblins)
756 {
757 list.Add(64);
758 }
759 if (NPC.downedFrost)
760 {
761 list.Add(66);
762 }
763 if (NPC.downedPirates)
764 {
765 list.Add(65);
766 }
767 if (NPC.downedMartians)
768 {
769 list.Add(71);
770 }
771 if (WorldGen.crimson)
772 {
773 list.Add(67);
774 }
775 }
776 if (Main.rand.NextFloat() <= num2)
777 {
778 list.Add(72);
779 list.Add(69);
780 }
781 }
Vector2 Center
Definition Entity.cs:70

References Terraria.GameContent.UI.EmoteBubble.anchor, Terraria.Entity.Center, Terraria.WorldGen.crimson, Terraria.Main.dayTime, Terraria.NPC.downedFrost, Terraria.NPC.downedGoblins, Terraria.NPC.downedMartians, Terraria.NPC.downedPirates, Terraria.GameContent.UI.WorldUIAnchor.entity, Terraria.Main.rand, Terraria.Main.rockLayer, and Terraria.Main.time.

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

+ Here is the caller graph for this function: