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

◆ StatusPlayer()

void Terraria.Projectile.StatusPlayer ( int i)
inline

Definition at line 10748 of file Projectile.cs.

10749 {
10750 if (Main.player[i].creativeGodMode)
10751 {
10752 return;
10753 }
10754 if (type == 119)
10755 {
10756 Main.player[i].AddBuff(324, 240);
10757 }
10758 if (type == 359)
10759 {
10760 Main.player[i].AddBuff(324, 420);
10761 }
10762 if (type == 472)
10763 {
10764 Main.player[i].AddBuff(149, Main.rand.Next(30, 150));
10765 }
10766 if (type == 961)
10767 {
10768 Main.player[i].AddBuff(47, 20);
10769 }
10770 if (type == 467)
10771 {
10772 Main.player[i].AddBuff(24, Main.rand.Next(30, 150));
10773 }
10774 if (type == 581)
10775 {
10776 if (Main.expertMode)
10777 {
10778 Main.player[i].AddBuff(164, Main.rand.Next(300, 540));
10779 }
10780 else if (Main.rand.Next(2) == 0)
10781 {
10782 Main.player[i].AddBuff(164, Main.rand.Next(360, 720));
10783 }
10784 }
10785 if (type == 687)
10786 {
10787 Main.player[i].AddBuff(24, 60 * Main.rand.Next(7, 11));
10788 }
10789 if (type == 258 && Main.rand.Next(2) == 0)
10790 {
10791 Main.player[i].AddBuff(24, 60 * Main.rand.Next(5, 8));
10792 }
10793 if (type == 572 && Main.rand.Next(3) != 0)
10794 {
10795 Main.player[i].AddBuff(20, Main.rand.Next(120, 240));
10796 }
10797 if (type == 276)
10798 {
10799 if (Main.expertMode)
10800 {
10801 Main.player[i].AddBuff(20, Main.rand.Next(120, 540));
10802 }
10803 else if (Main.rand.Next(2) == 0)
10804 {
10805 Main.player[i].AddBuff(20, Main.rand.Next(180, 420));
10806 }
10807 }
10808 if (type == 436 && Main.rand.Next(5) >= 2)
10809 {
10810 Main.player[i].AddBuff(31, 300);
10811 }
10812 if (type == 435 && Main.rand.Next(3) != 0)
10813 {
10814 Main.player[i].AddBuff(144, 300);
10815 }
10816 if (type == 682)
10817 {
10818 Main.player[i].AddBuff(196, 300);
10819 }
10820 if (type == 437)
10821 {
10822 Main.player[i].AddBuff(144, 60 * Main.rand.Next(4, 9));
10823 }
10824 if (type == 348)
10825 {
10826 if (Main.rand.Next(2) == 0)
10827 {
10828 Main.player[i].AddBuff(46, 600);
10829 }
10830 else
10831 {
10832 Main.player[i].AddBuff(46, 300);
10833 }
10834 if (Main.rand.Next(3) != 0)
10835 {
10836 if (Main.rand.Next(16) == 0)
10837 {
10838 Main.player[i].AddBuff(47, 60);
10839 }
10840 else if (Main.rand.Next(12) == 0)
10841 {
10842 Main.player[i].AddBuff(47, 40);
10843 }
10844 else if (Main.rand.Next(8) == 0)
10845 {
10846 Main.player[i].AddBuff(47, 20);
10847 }
10848 }
10849 }
10850 if (type == 349)
10851 {
10852 if (Main.rand.Next(3) == 0)
10853 {
10854 Main.player[i].AddBuff(46, 600);
10855 }
10856 else if (Main.rand.Next(2) == 0)
10857 {
10858 Main.player[i].AddBuff(46, 300);
10859 }
10860 }
10861 if (type >= 399 && type <= 402 && !hostile)
10862 {
10863 Main.player[i].AddBuff(24, 60 * Main.rand.Next(3, 7));
10864 }
10865 if (type == 55 || type == 719)
10866 {
10867 if (Main.rand.Next(3) == 0)
10868 {
10869 Main.player[i].AddBuff(20, 600);
10870 }
10871 else if (Main.expertMode)
10872 {
10873 Main.player[i].AddBuff(20, Main.rand.Next(60, 300));
10874 }
10875 }
10876 if (type == 44 && Main.rand.Next(3) == 0)
10877 {
10878 Main.player[i].AddBuff(22, 900);
10879 }
10880 if (type == 293)
10881 {
10882 Main.player[i].AddBuff(80, 60 * Main.rand.Next(2, 7));
10883 }
10884 if (type == 299)
10885 {
10886 Main.player[i].AddBuff(23, 240);
10887 }
10888 if (type == 82 && Main.rand.Next(3) == 0)
10889 {
10890 Main.player[i].AddBuff(24, 420);
10891 }
10892 if (type == 285 && !hostile)
10893 {
10894 if (Main.rand.Next(3) == 0)
10895 {
10896 Main.player[i].AddBuff(31, 180);
10897 }
10898 else
10899 {
10900 Main.player[i].AddBuff(31, 60);
10901 }
10902 }
10903 if (type == 96 || type == 101)
10904 {
10905 if (Main.rand.Next(6) == 0)
10906 {
10907 Main.player[i].AddBuff(39, 180);
10908 }
10909 else if (Main.rand.Next(4) == 0)
10910 {
10911 Main.player[i].AddBuff(39, 180);
10912 }
10913 else if (Main.rand.Next(2) == 0)
10914 {
10915 Main.player[i].AddBuff(39, 120);
10916 }
10917 }
10918 else if (type == 288)
10919 {
10920 Main.player[i].AddBuff(69, 900);
10921 }
10922 else if (type == 253 && !hostile)
10923 {
10924 Main.player[i].AddBuff(324, 600);
10925 }
10926 if (type == 291 || type == 292)
10927 {
10928 Main.player[i].AddBuff(24, 60 * Main.rand.Next(8, 16));
10929 }
10930 if (type == 98)
10931 {
10932 Main.player[i].AddBuff(20, 600);
10933 }
10934 if (type == 184)
10935 {
10936 Main.player[i].AddBuff(20, 900);
10937 }
10938 if (type == 980)
10939 {
10940 Main.player[i].AddBuff(70, 300);
10941 }
10942 if (type == 290)
10943 {
10944 Main.player[i].AddBuff(32, 60 * Main.rand.Next(5, 16));
10945 }
10946 if (type == 174)
10947 {
10948 Main.player[i].AddBuff(46, 1200);
10949 if (!Main.player[i].frozen && Main.rand.Next(20) == 0)
10950 {
10951 Main.player[i].AddBuff(47, 90);
10952 }
10953 else if (!Main.player[i].frozen && Main.expertMode && Main.rand.Next(20) == 0)
10954 {
10955 Main.player[i].AddBuff(47, 60);
10956 }
10957 }
10958 if (type == 257)
10959 {
10960 Main.player[i].AddBuff(46, 2700);
10961 if (!Main.player[i].frozen && Main.rand.Next(5) == 0)
10962 {
10963 Main.player[i].AddBuff(47, 60);
10964 }
10965 }
10966 if (type == 177)
10967 {
10968 Main.player[i].AddBuff(46, 1500);
10969 if (!Main.player[i].frozen && Main.rand.Next(10) == 0)
10970 {
10971 Main.player[i].AddBuff(47, Main.rand.Next(30, 120));
10972 }
10973 }
10974 if (type == 128 && Main.rand.Next(3) == 0)
10975 {
10976 Main.player[i].AddBuff(44, 360);
10977 }
10978 if (type == 176)
10979 {
10980 if (Main.rand.Next(4) == 0)
10981 {
10982 Main.player[i].AddBuff(20, 1200);
10983 }
10984 else if (Main.rand.Next(2) == 0)
10985 {
10986 Main.player[i].AddBuff(20, 300);
10987 }
10988 }
10989 }

References Terraria.Main.expertMode, Terraria.Projectile.hostile, Terraria.Main.player, Terraria.Main.rand, and Terraria.Projectile.type.

Referenced by Terraria.Projectile.BombsHurtPlayers(), and Terraria.Projectile.Damage().