10930 {
10932 {
10933 byte meleeEnchant = Main.player[
owner].meleeEnchant;
10934 if (meleeEnchant == 1)
10935 {
10936 Main.player[i].AddBuff(70, 60 * Main.rand.Next(5, 10),
quiet:
false);
10937 }
10938 if (meleeEnchant == 2)
10939 {
10940 Main.player[i].AddBuff(39, 60 * Main.rand.Next(3, 7),
quiet:
false);
10941 }
10942 if (meleeEnchant == 3)
10943 {
10944 Main.player[i].AddBuff(24, 60 * Main.rand.Next(3, 7),
quiet:
false);
10945 }
10946 if (meleeEnchant == 5)
10947 {
10948 Main.player[i].AddBuff(69, 60 * Main.rand.Next(10, 20),
quiet:
false);
10949 }
10950 if (meleeEnchant == 6)
10951 {
10952 Main.player[i].AddBuff(31, 60 * Main.rand.Next(1, 4),
quiet:
false);
10953 }
10954 if (meleeEnchant == 8)
10955 {
10956 Main.player[i].AddBuff(20, 60 * Main.rand.Next(5, 10),
quiet:
false);
10957 }
10958 }
10960 {
10961 Main.player[i].AddBuff(24, 180);
10962 }
10964 {
10965 Main.player[i].AddBuff(323, 60 * Main.rand.Next(8, 16),
quiet:
false);
10966 }
10968 {
10969 Main.player[i].AddBuff(24, 60 * Main.rand.Next(3, 7),
quiet:
false);
10970 }
10972 {
10973 Main.player[i].AddBuff(39, 60 * Main.rand.Next(3, 7),
quiet:
false);
10974 }
10976 {
10977 Main.player[i].AddBuff(324, 60 * Main.rand.Next(1, 8),
quiet:
false);
10978 }
10980 {
10981 if (Main.rand.Next(4) == 0)
10982 {
10983 Main.player[i].AddBuff(24, 360,
quiet:
false);
10984 }
10985 else if (Main.rand.Next(2) == 0)
10986 {
10987 Main.player[i].AddBuff(24, 240,
quiet:
false);
10988 }
10989 else
10990 {
10991 Main.player[i].AddBuff(24, 120,
quiet:
false);
10992 }
10993 }
10994 if (
type == 2 && Main.rand.Next(3) == 0)
10995 {
10996 Main.player[i].AddBuff(24, 180,
quiet:
false);
10997 }
10999 {
11000 if (Main.rand.Next(3) == 0)
11001 {
11002 Main.player[i].AddBuff(44, 240,
quiet:
false);
11003 }
11004 }
11005 else if (
type == 15)
11006 {
11008 if (Main.remixWorld)
11009 {
11011 }
11012 if (Main.rand.Next(2) == 0)
11013 {
11015 }
11016 }
11017 else if (
type == 253)
11018 {
11019 if (Main.rand.Next(2) == 0)
11020 {
11021 Main.player[i].AddBuff(44, 480,
quiet:
false);
11022 }
11023 }
11024 else if (
type == 19)
11025 {
11026 if (Main.rand.Next(5) == 0)
11027 {
11028 Main.player[i].AddBuff(24, 180,
quiet:
false);
11029 }
11030 }
11031 else if (
type == 113)
11032 {
11033 if (Main.rand.Next(5) == 0)
11034 {
11035 Main.player[i].AddBuff(44, 180,
quiet:
false);
11036 }
11037 }
11038 else if (
type == 33)
11039 {
11040 if (Main.rand.Next(5) == 0)
11041 {
11042 Main.player[i].AddBuff(20, 420,
quiet:
false);
11043 }
11044 }
11045 else if (
type == 976)
11046 {
11047 if (Main.rand.Next(4) == 0)
11048 {
11049 Main.player[i].AddBuff(20, 420,
quiet:
false);
11050 }
11051 }
11052 else if (
type == 34)
11053 {
11054 if (Main.rand.Next(2) == 0)
11055 {
11056 Main.player[i].AddBuff(24, 240,
quiet:
false);
11057 }
11058 }
11059 else if (
type == 35)
11060 {
11061 if (Main.rand.Next(4) == 0)
11062 {
11063 Main.player[i].AddBuff(24, 180,
quiet:
false);
11064 }
11065 }
11066 else if (
type == 54)
11067 {
11068 if (Main.rand.Next(2) == 0)
11069 {
11070 Main.player[i].AddBuff(20, 600,
quiet:
false);
11071 }
11072 }
11073 else if (
type == 267)
11074 {
11075 if (Main.rand.Next(3) == 0)
11076 {
11077 Main.player[i].AddBuff(20, 3600,
quiet:
false);
11078 }
11079 else
11080 {
11081 Main.player[i].AddBuff(20, 1800,
quiet:
false);
11082 }
11083 }
11084 else if (
type == 63)
11085 {
11086 if (Main.rand.Next(3) != 0)
11087 {
11088 Main.player[i].AddBuff(31, 120,
quiet:
false);
11089 }
11090 }
11091 else if (
type == 85 ||
type == 188)
11092 {
11093 Main.player[i].AddBuff(24, 1200,
quiet:
false);
11094 }
11096 {
11097 Main.player[i].AddBuff(39, 420,
quiet:
false);
11098 }
11100 {
11101 Main.player[i].AddBuff(69, 900,
quiet:
false);
11102 }
11103 else if (
type == 282 ||
type == 283)
11104 {
11105 Main.player[i].AddBuff(70, 600,
quiet:
false);
11106 }
11108 {
11109 if (Main.rand.Next(3) == 0)
11110 {
11111 Main.player[i].AddBuff(24, 600,
quiet:
false);
11112 }
11113 else
11114 {
11115 Main.player[i].AddBuff(24, 300,
quiet:
false);
11116 }
11117 }
11119 {
11120 Main.player[i].AddBuff(39, 300,
quiet:
false);
11121 }
11122 else if (
type == 265)
11123 {
11124 Main.player[i].AddBuff(20, 1200,
quiet:
false);
11125 }
11126 else if (
type == 355)
11127 {
11128 Main.player[i].AddBuff(70, 1800,
quiet:
false);
11129 }
11130 }
static bool[] IsAWhip
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile will use whip ...
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...