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

◆ ProbeExceptions()

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

Definition at line 745 of file EmoteBubble.cs.

746 {
748 if (nPC.type == 17)
749 {
750 list.Add(80);
751 list.Add(85);
752 list.Add(85);
753 list.Add(85);
754 list.Add(85);
755 }
756 else if (nPC.type == 18)
757 {
758 list.Add(73);
759 list.Add(73);
760 list.Add(84);
761 list.Add(75);
762 }
763 else if (nPC.type == 19)
764 {
765 if (other != null && ((NPC)other.entity).type == 22)
766 {
767 list.Add(1);
768 list.Add(1);
769 list.Add(93);
770 list.Add(92);
771 }
772 else if (other != null && ((NPC)other.entity).type == 22)
773 {
774 list.Add(1);
775 list.Add(1);
776 list.Add(93);
777 list.Add(92);
778 }
779 else
780 {
781 list.Add(82);
782 list.Add(82);
783 list.Add(85);
784 list.Add(85);
785 list.Add(77);
786 list.Add(93);
787 }
788 }
789 else if (nPC.type == 20)
790 {
791 if (list.Contains(121))
792 {
793 list.Add(121);
794 list.Add(121);
795 }
796 list.Add(14);
797 list.Add(14);
798 }
799 else if (nPC.type == 22)
800 {
801 if (!Main.bloodMoon)
802 {
803 if (other != null && ((NPC)other.entity).type == 19)
804 {
805 list.Add(1);
806 list.Add(1);
807 list.Add(93);
808 list.Add(92);
809 }
810 else
811 {
812 list.Add(79);
813 }
814 }
815 if (!Main.dayTime)
816 {
817 list.Add(16);
818 list.Add(16);
819 list.Add(16);
820 }
821 }
822 else if (nPC.type == 37)
823 {
824 list.Add(43);
825 list.Add(43);
826 list.Add(43);
827 list.Add(72);
828 list.Add(72);
829 }
830 else if (nPC.type == 38)
831 {
832 if (Main.bloodMoon)
833 {
834 list.Add(77);
835 list.Add(77);
836 list.Add(77);
837 list.Add(81);
838 }
839 else
840 {
841 list.Add(77);
842 list.Add(77);
843 list.Add(81);
844 list.Add(81);
845 list.Add(81);
846 list.Add(90);
847 list.Add(90);
848 }
849 }
850 else if (nPC.type == 54)
851 {
852 if (Main.bloodMoon)
853 {
854 list.Add(43);
855 list.Add(72);
856 list.Add(1);
857 }
858 else
859 {
860 if (list.Contains(111))
861 {
862 list.Add(111);
863 }
864 list.Add(17);
865 }
866 }
867 else if (nPC.type == 107)
868 {
869 if (other != null && ((NPC)other.entity).type == 124)
870 {
871 list.Remove(111);
872 list.Add(0);
873 list.Add(0);
874 list.Add(0);
875 list.Add(17);
876 list.Add(17);
877 list.Add(86);
878 list.Add(88);
879 list.Add(88);
880 }
881 else
882 {
883 if (list.Contains(111))
884 {
885 list.Add(111);
886 list.Add(111);
887 list.Add(111);
888 }
889 list.Add(91);
890 list.Add(92);
891 list.Add(91);
892 list.Add(92);
893 }
894 }
895 else if (nPC.type == 108)
896 {
897 list.Add(100);
898 list.Add(89);
899 list.Add(11);
900 }
901 if (nPC.type == 124)
902 {
903 if (other != null && ((NPC)other.entity).type == 107)
904 {
905 list.Remove(111);
906 list.Add(0);
907 list.Add(0);
908 list.Add(0);
909 list.Add(17);
910 list.Add(17);
911 list.Add(88);
912 list.Add(88);
913 return;
914 }
915 if (list.Contains(109))
916 {
917 list.Add(109);
918 list.Add(109);
919 list.Add(109);
920 }
921 if (list.Contains(108))
922 {
923 list.Remove(108);
924 if (Main.hardMode)
925 {
926 list.Add(108);
927 list.Add(108);
928 }
929 else
930 {
931 list.Add(106);
932 list.Add(106);
933 }
934 }
935 list.Add(43);
936 list.Add(2);
937 }
938 else if (nPC.type == 142)
939 {
940 list.Add(32);
941 list.Add(66);
942 list.Add(17);
943 list.Add(15);
944 list.Add(15);
945 }
946 else if (nPC.type == 160)
947 {
948 list.Add(10);
949 list.Add(89);
950 list.Add(94);
951 list.Add(8);
952 }
953 else if (nPC.type == 178)
954 {
955 list.Add(83);
956 list.Add(83);
957 }
958 else if (nPC.type == 207)
959 {
960 list.Add(28);
961 list.Add(95);
962 list.Add(93);
963 }
964 else if (nPC.type == 208)
965 {
966 list.Add(94);
967 list.Add(17);
968 list.Add(3);
969 list.Add(77);
970 }
971 else if (nPC.type == 209)
972 {
973 list.Add(48);
974 list.Add(83);
975 list.Add(5);
976 list.Add(5);
977 }
978 else if (nPC.type == 227)
979 {
980 list.Add(63);
981 list.Add(68);
982 }
983 else if (nPC.type == 228)
984 {
985 list.Add(24);
986 list.Add(24);
987 list.Add(95);
988 list.Add(8);
989 }
990 else if (nPC.type == 229)
991 {
992 list.Add(93);
993 list.Add(9);
994 list.Add(65);
995 list.Add(120);
996 list.Add(59);
997 }
998 else if (nPC.type == 353)
999 {
1000 if (list.Contains(104))
1001 {
1002 list.Add(104);
1003 list.Add(104);
1004 }
1005 if (list.Contains(111))
1006 {
1007 list.Add(111);
1008 list.Add(111);
1009 }
1010 list.Add(67);
1011 }
1012 else if (nPC.type == 368)
1013 {
1014 list.Add(85);
1015 list.Add(7);
1016 list.Add(79);
1017 }
1018 else if (nPC.type == 369)
1019 {
1020 if (!Main.bloodMoon)
1021 {
1022 list.Add(70);
1023 list.Add(70);
1024 list.Add(76);
1025 list.Add(76);
1026 list.Add(79);
1027 list.Add(79);
1028 if ((double)nPC.position.Y < Main.worldSurface)
1029 {
1030 list.Add(29);
1031 }
1032 }
1033 }
1034 else if (nPC.type == 453)
1035 {
1036 list.Add(72);
1037 list.Add(69);
1038 list.Add(87);
1039 list.Add(3);
1040 }
1041 else if (nPC.type == 441)
1042 {
1043 list.Add(100);
1044 list.Add(100);
1045 list.Add(1);
1046 list.Add(1);
1047 list.Add(1);
1048 list.Add(87);
1049 }
1050 }

References Terraria.GameContent.UI.EmoteBubble.anchor, Terraria.Main.bloodMoon, Terraria.Main.dayTime, Terraria.GameContent.UI.WorldUIAnchor.entity, Terraria.Main.hardMode, System.list, System.other, and Terraria.Main.worldSurface.

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