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

◆ ItemCheck_EmitUseVisuals()

Rectangle Terraria.Player.ItemCheck_EmitUseVisuals ( Item sItem,
Rectangle itemRectangle )
inlineprivate

Definition at line 44093 of file Player.cs.

44094 {
44095 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
44096 //IL_00ee: Unknown result type (might be due to invalid IL or missing references)
44097 //IL_00f5: Unknown result type (might be due to invalid IL or missing references)
44098 //IL_00fa: Unknown result type (might be due to invalid IL or missing references)
44099 //IL_0100: Unknown result type (might be due to invalid IL or missing references)
44100 //IL_011d: Unknown result type (might be due to invalid IL or missing references)
44101 //IL_0123: Unknown result type (might be due to invalid IL or missing references)
44102 //IL_0139: Unknown result type (might be due to invalid IL or missing references)
44103 //IL_0143: Unknown result type (might be due to invalid IL or missing references)
44104 //IL_0148: Unknown result type (might be due to invalid IL or missing references)
44105 //IL_0191: Unknown result type (might be due to invalid IL or missing references)
44106 //IL_0198: Unknown result type (might be due to invalid IL or missing references)
44107 //IL_019f: Unknown result type (might be due to invalid IL or missing references)
44108 //IL_01a4: Unknown result type (might be due to invalid IL or missing references)
44109 //IL_01aa: Unknown result type (might be due to invalid IL or missing references)
44110 //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
44111 //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
44112 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
44113 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
44114 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
44115 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
44116 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
44117 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
44118 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
44119 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
44120 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
44121 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
44122 //IL_01f1: Unknown result type (might be due to invalid IL or missing references)
44123 //IL_01f8: Unknown result type (might be due to invalid IL or missing references)
44124 //IL_01ff: Unknown result type (might be due to invalid IL or missing references)
44125 //IL_0204: Unknown result type (might be due to invalid IL or missing references)
44126 //IL_020a: Unknown result type (might be due to invalid IL or missing references)
44127 //IL_0227: Unknown result type (might be due to invalid IL or missing references)
44128 //IL_022d: Unknown result type (might be due to invalid IL or missing references)
44129 //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
44130 //IL_02b2: Unknown result type (might be due to invalid IL or missing references)
44131 //IL_02b9: Unknown result type (might be due to invalid IL or missing references)
44132 //IL_02be: Unknown result type (might be due to invalid IL or missing references)
44133 //IL_02c4: Unknown result type (might be due to invalid IL or missing references)
44134 //IL_02fc: Unknown result type (might be due to invalid IL or missing references)
44135 //IL_0302: Unknown result type (might be due to invalid IL or missing references)
44136 //IL_0263: Unknown result type (might be due to invalid IL or missing references)
44137 //IL_026a: Unknown result type (might be due to invalid IL or missing references)
44138 //IL_0271: Unknown result type (might be due to invalid IL or missing references)
44139 //IL_0276: Unknown result type (might be due to invalid IL or missing references)
44140 //IL_027c: Unknown result type (might be due to invalid IL or missing references)
44141 //IL_0299: Unknown result type (might be due to invalid IL or missing references)
44142 //IL_029f: Unknown result type (might be due to invalid IL or missing references)
44143 //IL_036d: Unknown result type (might be due to invalid IL or missing references)
44144 //IL_0374: Unknown result type (might be due to invalid IL or missing references)
44145 //IL_037b: Unknown result type (might be due to invalid IL or missing references)
44146 //IL_0380: Unknown result type (might be due to invalid IL or missing references)
44147 //IL_0386: Unknown result type (might be due to invalid IL or missing references)
44148 //IL_039f: Unknown result type (might be due to invalid IL or missing references)
44149 //IL_03a5: Unknown result type (might be due to invalid IL or missing references)
44150 //IL_0472: Unknown result type (might be due to invalid IL or missing references)
44151 //IL_0479: Unknown result type (might be due to invalid IL or missing references)
44152 //IL_0480: Unknown result type (might be due to invalid IL or missing references)
44153 //IL_0485: Unknown result type (might be due to invalid IL or missing references)
44154 //IL_048b: Unknown result type (might be due to invalid IL or missing references)
44155 //IL_04a4: Unknown result type (might be due to invalid IL or missing references)
44156 //IL_04aa: Unknown result type (might be due to invalid IL or missing references)
44157 //IL_04c0: Unknown result type (might be due to invalid IL or missing references)
44158 //IL_04ca: Unknown result type (might be due to invalid IL or missing references)
44159 //IL_04cf: Unknown result type (might be due to invalid IL or missing references)
44160 //IL_03da: Unknown result type (might be due to invalid IL or missing references)
44161 //IL_03e1: Unknown result type (might be due to invalid IL or missing references)
44162 //IL_03e8: Unknown result type (might be due to invalid IL or missing references)
44163 //IL_03ed: Unknown result type (might be due to invalid IL or missing references)
44164 //IL_03f3: Unknown result type (might be due to invalid IL or missing references)
44165 //IL_040c: Unknown result type (might be due to invalid IL or missing references)
44166 //IL_0412: Unknown result type (might be due to invalid IL or missing references)
44167 //IL_056b: Unknown result type (might be due to invalid IL or missing references)
44168 //IL_0572: Unknown result type (might be due to invalid IL or missing references)
44169 //IL_0579: Unknown result type (might be due to invalid IL or missing references)
44170 //IL_057e: Unknown result type (might be due to invalid IL or missing references)
44171 //IL_0584: Unknown result type (might be due to invalid IL or missing references)
44172 //IL_05bb: Unknown result type (might be due to invalid IL or missing references)
44173 //IL_05c1: Unknown result type (might be due to invalid IL or missing references)
44174 //IL_04e3: Unknown result type (might be due to invalid IL or missing references)
44175 //IL_04f0: Unknown result type (might be due to invalid IL or missing references)
44176 //IL_04fb: Unknown result type (might be due to invalid IL or missing references)
44177 //IL_0502: Unknown result type (might be due to invalid IL or missing references)
44178 //IL_0508: Unknown result type (might be due to invalid IL or missing references)
44179 //IL_0521: Unknown result type (might be due to invalid IL or missing references)
44180 //IL_052b: Unknown result type (might be due to invalid IL or missing references)
44181 //IL_0530: Unknown result type (might be due to invalid IL or missing references)
44182 //IL_053e: Unknown result type (might be due to invalid IL or missing references)
44183 //IL_054f: Unknown result type (might be due to invalid IL or missing references)
44184 //IL_0554: Unknown result type (might be due to invalid IL or missing references)
44185 //IL_0559: Unknown result type (might be due to invalid IL or missing references)
44186 //IL_042c: Unknown result type (might be due to invalid IL or missing references)
44187 //IL_0433: Unknown result type (might be due to invalid IL or missing references)
44188 //IL_043a: Unknown result type (might be due to invalid IL or missing references)
44189 //IL_0441: Unknown result type (might be due to invalid IL or missing references)
44190 //IL_0447: Unknown result type (might be due to invalid IL or missing references)
44191 //IL_05fb: Unknown result type (might be due to invalid IL or missing references)
44192 //IL_0602: Unknown result type (might be due to invalid IL or missing references)
44193 //IL_0609: Unknown result type (might be due to invalid IL or missing references)
44194 //IL_060e: Unknown result type (might be due to invalid IL or missing references)
44195 //IL_0614: Unknown result type (might be due to invalid IL or missing references)
44196 //IL_064a: Unknown result type (might be due to invalid IL or missing references)
44197 //IL_0650: Unknown result type (might be due to invalid IL or missing references)
44198 //IL_072d: Unknown result type (might be due to invalid IL or missing references)
44199 //IL_0734: Unknown result type (might be due to invalid IL or missing references)
44200 //IL_073b: Unknown result type (might be due to invalid IL or missing references)
44201 //IL_0740: Unknown result type (might be due to invalid IL or missing references)
44202 //IL_0746: Unknown result type (might be due to invalid IL or missing references)
44203 //IL_077d: Unknown result type (might be due to invalid IL or missing references)
44204 //IL_0783: Unknown result type (might be due to invalid IL or missing references)
44205 //IL_06b1: Unknown result type (might be due to invalid IL or missing references)
44206 //IL_06ca: Unknown result type (might be due to invalid IL or missing references)
44207 //IL_06d0: Unknown result type (might be due to invalid IL or missing references)
44208 //IL_06d2: Unknown result type (might be due to invalid IL or missing references)
44209 //IL_06d7: Unknown result type (might be due to invalid IL or missing references)
44210 //IL_06d9: Unknown result type (might be due to invalid IL or missing references)
44211 //IL_06dc: Unknown result type (might be due to invalid IL or missing references)
44212 //IL_06e3: Unknown result type (might be due to invalid IL or missing references)
44213 //IL_06f1: Unknown result type (might be due to invalid IL or missing references)
44214 //IL_06f7: Unknown result type (might be due to invalid IL or missing references)
44215 //IL_07ae: Unknown result type (might be due to invalid IL or missing references)
44216 //IL_07b5: Unknown result type (might be due to invalid IL or missing references)
44217 //IL_07bc: Unknown result type (might be due to invalid IL or missing references)
44218 //IL_07c1: Unknown result type (might be due to invalid IL or missing references)
44219 //IL_07c7: Unknown result type (might be due to invalid IL or missing references)
44220 //IL_0802: Unknown result type (might be due to invalid IL or missing references)
44221 //IL_0808: Unknown result type (might be due to invalid IL or missing references)
44222 //IL_082c: Unknown result type (might be due to invalid IL or missing references)
44223 //IL_0836: Unknown result type (might be due to invalid IL or missing references)
44224 //IL_083b: Unknown result type (might be due to invalid IL or missing references)
44225 //IL_08ff: Unknown result type (might be due to invalid IL or missing references)
44226 //IL_0900: Unknown result type (might be due to invalid IL or missing references)
44227 //IL_0905: Unknown result type (might be due to invalid IL or missing references)
44228 //IL_090b: Unknown result type (might be due to invalid IL or missing references)
44229 //IL_0922: Unknown result type (might be due to invalid IL or missing references)
44230 //IL_0954: Unknown result type (might be due to invalid IL or missing references)
44231 //IL_0959: Unknown result type (might be due to invalid IL or missing references)
44232 //IL_0975: Unknown result type (might be due to invalid IL or missing references)
44233 //IL_097f: Unknown result type (might be due to invalid IL or missing references)
44234 //IL_0984: Unknown result type (might be due to invalid IL or missing references)
44235 //IL_0860: Unknown result type (might be due to invalid IL or missing references)
44236 //IL_0867: Unknown result type (might be due to invalid IL or missing references)
44237 //IL_086e: Unknown result type (might be due to invalid IL or missing references)
44238 //IL_0873: Unknown result type (might be due to invalid IL or missing references)
44239 //IL_0879: Unknown result type (might be due to invalid IL or missing references)
44240 //IL_08b1: Unknown result type (might be due to invalid IL or missing references)
44241 //IL_08b7: Unknown result type (might be due to invalid IL or missing references)
44242 //IL_08db: Unknown result type (might be due to invalid IL or missing references)
44243 //IL_08e5: Unknown result type (might be due to invalid IL or missing references)
44244 //IL_08ea: Unknown result type (might be due to invalid IL or missing references)
44245 //IL_0996: Unknown result type (might be due to invalid IL or missing references)
44246 //IL_0997: Unknown result type (might be due to invalid IL or missing references)
44247 //IL_099c: Unknown result type (might be due to invalid IL or missing references)
44248 //IL_09a2: Unknown result type (might be due to invalid IL or missing references)
44249 //IL_09d7: Unknown result type (might be due to invalid IL or missing references)
44250 //IL_09ef: Unknown result type (might be due to invalid IL or missing references)
44251 //IL_09f9: Unknown result type (might be due to invalid IL or missing references)
44252 //IL_09fe: Unknown result type (might be due to invalid IL or missing references)
44253 //IL_0a2d: Unknown result type (might be due to invalid IL or missing references)
44254 //IL_0a34: Unknown result type (might be due to invalid IL or missing references)
44255 //IL_0a3b: Unknown result type (might be due to invalid IL or missing references)
44256 //IL_0a40: Unknown result type (might be due to invalid IL or missing references)
44257 //IL_0a46: Unknown result type (might be due to invalid IL or missing references)
44258 //IL_0a7e: Unknown result type (might be due to invalid IL or missing references)
44259 //IL_0a84: Unknown result type (might be due to invalid IL or missing references)
44260 //IL_0aa8: Unknown result type (might be due to invalid IL or missing references)
44261 //IL_0ab2: Unknown result type (might be due to invalid IL or missing references)
44262 //IL_0ab7: Unknown result type (might be due to invalid IL or missing references)
44263 //IL_0c91: Unknown result type (might be due to invalid IL or missing references)
44264 //IL_0c98: Unknown result type (might be due to invalid IL or missing references)
44265 //IL_0c9f: Unknown result type (might be due to invalid IL or missing references)
44266 //IL_0ca4: Unknown result type (might be due to invalid IL or missing references)
44267 //IL_0caa: Unknown result type (might be due to invalid IL or missing references)
44268 //IL_0ce2: Unknown result type (might be due to invalid IL or missing references)
44269 //IL_0ce8: Unknown result type (might be due to invalid IL or missing references)
44270 //IL_0d65: Unknown result type (might be due to invalid IL or missing references)
44271 //IL_0d6c: Unknown result type (might be due to invalid IL or missing references)
44272 //IL_0d73: Unknown result type (might be due to invalid IL or missing references)
44273 //IL_0d78: Unknown result type (might be due to invalid IL or missing references)
44274 //IL_0d7e: Unknown result type (might be due to invalid IL or missing references)
44275 //IL_0d97: Unknown result type (might be due to invalid IL or missing references)
44276 //IL_0d9d: Unknown result type (might be due to invalid IL or missing references)
44277 //IL_0db3: Unknown result type (might be due to invalid IL or missing references)
44278 //IL_0dbd: Unknown result type (might be due to invalid IL or missing references)
44279 //IL_0dc2: Unknown result type (might be due to invalid IL or missing references)
44280 //IL_0b15: Unknown result type (might be due to invalid IL or missing references)
44281 //IL_0b2e: Unknown result type (might be due to invalid IL or missing references)
44282 //IL_0b34: Unknown result type (might be due to invalid IL or missing references)
44283 //IL_0b36: Unknown result type (might be due to invalid IL or missing references)
44284 //IL_0b3b: Unknown result type (might be due to invalid IL or missing references)
44285 //IL_0b3d: Unknown result type (might be due to invalid IL or missing references)
44286 //IL_0b40: Unknown result type (might be due to invalid IL or missing references)
44287 //IL_0b47: Unknown result type (might be due to invalid IL or missing references)
44288 //IL_0b55: Unknown result type (might be due to invalid IL or missing references)
44289 //IL_0b5b: Unknown result type (might be due to invalid IL or missing references)
44290 //IL_0b89: Unknown result type (might be due to invalid IL or missing references)
44291 //IL_0b90: Unknown result type (might be due to invalid IL or missing references)
44292 //IL_0b97: Unknown result type (might be due to invalid IL or missing references)
44293 //IL_0b9c: Unknown result type (might be due to invalid IL or missing references)
44294 //IL_0ba2: Unknown result type (might be due to invalid IL or missing references)
44295 //IL_0bdd: Unknown result type (might be due to invalid IL or missing references)
44296 //IL_0be3: Unknown result type (might be due to invalid IL or missing references)
44297 //IL_0bf8: Unknown result type (might be due to invalid IL or missing references)
44298 //IL_0bfa: Unknown result type (might be due to invalid IL or missing references)
44299 //IL_0c28: Unknown result type (might be due to invalid IL or missing references)
44300 //IL_0c32: Unknown result type (might be due to invalid IL or missing references)
44301 //IL_0c37: Unknown result type (might be due to invalid IL or missing references)
44302 //IL_0c45: Unknown result type (might be due to invalid IL or missing references)
44303 //IL_0c4a: Unknown result type (might be due to invalid IL or missing references)
44304 //IL_0c51: Unknown result type (might be due to invalid IL or missing references)
44305 //IL_0c56: Unknown result type (might be due to invalid IL or missing references)
44306 //IL_0c5b: Unknown result type (might be due to invalid IL or missing references)
44307 //IL_19bd: Unknown result type (might be due to invalid IL or missing references)
44308 //IL_19c3: Unknown result type (might be due to invalid IL or missing references)
44309 //IL_1069: Unknown result type (might be due to invalid IL or missing references)
44310 //IL_1070: Unknown result type (might be due to invalid IL or missing references)
44311 //IL_1077: Unknown result type (might be due to invalid IL or missing references)
44312 //IL_107c: Unknown result type (might be due to invalid IL or missing references)
44313 //IL_1082: Unknown result type (might be due to invalid IL or missing references)
44314 //IL_10bd: Unknown result type (might be due to invalid IL or missing references)
44315 //IL_10c3: Unknown result type (might be due to invalid IL or missing references)
44316 //IL_10e7: Unknown result type (might be due to invalid IL or missing references)
44317 //IL_10f1: Unknown result type (might be due to invalid IL or missing references)
44318 //IL_10f6: Unknown result type (might be due to invalid IL or missing references)
44319 //IL_1914: Unknown result type (might be due to invalid IL or missing references)
44320 //IL_191b: Unknown result type (might be due to invalid IL or missing references)
44321 //IL_1922: Unknown result type (might be due to invalid IL or missing references)
44322 //IL_1927: Unknown result type (might be due to invalid IL or missing references)
44323 //IL_192d: Unknown result type (might be due to invalid IL or missing references)
44324 //IL_1964: Unknown result type (might be due to invalid IL or missing references)
44325 //IL_196a: Unknown result type (might be due to invalid IL or missing references)
44326 //IL_115f: Unknown result type (might be due to invalid IL or missing references)
44327 //IL_1166: Unknown result type (might be due to invalid IL or missing references)
44328 //IL_116d: Unknown result type (might be due to invalid IL or missing references)
44329 //IL_1172: Unknown result type (might be due to invalid IL or missing references)
44330 //IL_1178: Unknown result type (might be due to invalid IL or missing references)
44331 //IL_1191: Unknown result type (might be due to invalid IL or missing references)
44332 //IL_1197: Unknown result type (might be due to invalid IL or missing references)
44333 //IL_11cd: Unknown result type (might be due to invalid IL or missing references)
44334 //IL_11d7: Unknown result type (might be due to invalid IL or missing references)
44335 //IL_11dc: Unknown result type (might be due to invalid IL or missing references)
44336 //IL_1202: Unknown result type (might be due to invalid IL or missing references)
44337 //IL_1209: Unknown result type (might be due to invalid IL or missing references)
44338 //IL_1210: Unknown result type (might be due to invalid IL or missing references)
44339 //IL_1215: Unknown result type (might be due to invalid IL or missing references)
44340 //IL_121b: Unknown result type (might be due to invalid IL or missing references)
44341 //IL_1253: Unknown result type (might be due to invalid IL or missing references)
44342 //IL_1259: Unknown result type (might be due to invalid IL or missing references)
44343 //IL_127d: Unknown result type (might be due to invalid IL or missing references)
44344 //IL_1287: Unknown result type (might be due to invalid IL or missing references)
44345 //IL_128c: Unknown result type (might be due to invalid IL or missing references)
44346 //IL_12cd: Unknown result type (might be due to invalid IL or missing references)
44347 //IL_12d4: Unknown result type (might be due to invalid IL or missing references)
44348 //IL_12db: Unknown result type (might be due to invalid IL or missing references)
44349 //IL_12e0: Unknown result type (might be due to invalid IL or missing references)
44350 //IL_12e6: Unknown result type (might be due to invalid IL or missing references)
44351 //IL_131d: Unknown result type (might be due to invalid IL or missing references)
44352 //IL_1323: Unknown result type (might be due to invalid IL or missing references)
44353 //IL_1347: Unknown result type (might be due to invalid IL or missing references)
44354 //IL_1351: Unknown result type (might be due to invalid IL or missing references)
44355 //IL_1356: Unknown result type (might be due to invalid IL or missing references)
44356 //IL_139a: Unknown result type (might be due to invalid IL or missing references)
44357 //IL_13a1: Unknown result type (might be due to invalid IL or missing references)
44358 //IL_13a8: Unknown result type (might be due to invalid IL or missing references)
44359 //IL_13ad: Unknown result type (might be due to invalid IL or missing references)
44360 //IL_13b3: Unknown result type (might be due to invalid IL or missing references)
44361 //IL_13eb: Unknown result type (might be due to invalid IL or missing references)
44362 //IL_13f1: Unknown result type (might be due to invalid IL or missing references)
44363 //IL_1463: Unknown result type (might be due to invalid IL or missing references)
44364 //IL_146a: Unknown result type (might be due to invalid IL or missing references)
44365 //IL_1471: Unknown result type (might be due to invalid IL or missing references)
44366 //IL_1476: Unknown result type (might be due to invalid IL or missing references)
44367 //IL_147c: Unknown result type (might be due to invalid IL or missing references)
44368 //IL_1495: Unknown result type (might be due to invalid IL or missing references)
44369 //IL_149b: Unknown result type (might be due to invalid IL or missing references)
44370 //IL_150f: Unknown result type (might be due to invalid IL or missing references)
44371 //IL_1516: Unknown result type (might be due to invalid IL or missing references)
44372 //IL_151d: Unknown result type (might be due to invalid IL or missing references)
44373 //IL_1522: Unknown result type (might be due to invalid IL or missing references)
44374 //IL_1528: Unknown result type (might be due to invalid IL or missing references)
44375 //IL_1541: Unknown result type (might be due to invalid IL or missing references)
44376 //IL_1547: Unknown result type (might be due to invalid IL or missing references)
44377 //IL_15d2: Unknown result type (might be due to invalid IL or missing references)
44378 //IL_15d9: Unknown result type (might be due to invalid IL or missing references)
44379 //IL_15e0: Unknown result type (might be due to invalid IL or missing references)
44380 //IL_15e5: Unknown result type (might be due to invalid IL or missing references)
44381 //IL_15eb: Unknown result type (might be due to invalid IL or missing references)
44382 //IL_160c: Unknown result type (might be due to invalid IL or missing references)
44383 //IL_1612: Unknown result type (might be due to invalid IL or missing references)
44384 //IL_1859: Unknown result type (might be due to invalid IL or missing references)
44385 //IL_1860: Unknown result type (might be due to invalid IL or missing references)
44386 //IL_1867: Unknown result type (might be due to invalid IL or missing references)
44387 //IL_186c: Unknown result type (might be due to invalid IL or missing references)
44388 //IL_1872: Unknown result type (might be due to invalid IL or missing references)
44389 //IL_1888: Unknown result type (might be due to invalid IL or missing references)
44390 //IL_188e: Unknown result type (might be due to invalid IL or missing references)
44391 //IL_18c4: Unknown result type (might be due to invalid IL or missing references)
44392 //IL_18ce: Unknown result type (might be due to invalid IL or missing references)
44393 //IL_18d3: Unknown result type (might be due to invalid IL or missing references)
44394 //IL_172d: Unknown result type (might be due to invalid IL or missing references)
44395 //IL_1734: Unknown result type (might be due to invalid IL or missing references)
44396 //IL_173b: Unknown result type (might be due to invalid IL or missing references)
44397 //IL_1741: Unknown result type (might be due to invalid IL or missing references)
44398 if (sItem.type == 989 && Main.rand.Next(5) == 0)
44399 {
44400 int num30 = Main.rand.Next(3);
44401 int num = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, num30 switch
44402 {
44403 0 => 15,
44404 1 => 57,
44405 _ => 58,
44406 }, direction * 2, 0f, 150, default(Color), 1.3f);
44407 Dust obj = Main.dust[num];
44408 obj.velocity *= 0.2f;
44409 }
44410 if (sItem.type == 2880 && Main.rand.Next(2) == 0)
44411 {
44412 int type2 = Utils.SelectRandom<int>(Main.rand, 226, 229);
44413 int num12 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, type2, direction * 2, 0f, 150);
44414 Dust obj2 = Main.dust[num12];
44415 obj2.velocity *= 0.2f;
44416 Main.dust[num12].noGravity = true;
44417 }
44418 if ((sItem.type == 44 || sItem.type == 45 || sItem.type == 103 || sItem.type == 104) && Main.rand.Next(15) == 0)
44419 {
44420 Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 14, direction * 2, 0f, 150, default(Color), 1.3f);
44421 }
44422 if (sItem.type == 46 && Main.rand.Next(15) == 0)
44423 {
44424 Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 14, direction * 2, 0f, 150, default(Color), 1.3f);
44425 }
44426 if (sItem.type == 273 || sItem.type == 675)
44427 {
44428 if (Main.rand.Next(5) == 0)
44429 {
44430 Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 14, direction * 2, 0f, 150, default(Color), 1.4f);
44431 }
44432 int num23 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 27, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 1.2f);
44433 Main.dust[num23].noGravity = true;
44434 Main.dust[num23].velocity.X /= 2f;
44435 Main.dust[num23].velocity.Y /= 2f;
44436 }
44437 if (sItem.type == 723 && Main.rand.Next(2) == 0)
44438 {
44439 int num24 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 64, 0f, 0f, 150, default(Color), 1.2f);
44440 Main.dust[num24].noGravity = true;
44441 }
44442 if (sItem.type == 65)
44443 {
44444 if (Main.rand.Next(5) == 0)
44445 {
44446 Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 58, 0f, 0f, 150, default(Color), 1.2f);
44447 }
44448 if (Main.rand.Next(10) == 0)
44449 {
44450 Gore.NewGore(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), default(Vector2), Main.rand.Next(16, 18));
44451 }
44452 }
44453 if (sItem.type == 3065)
44454 {
44455 int num25 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 58, 0f, 0f, 150, default(Color), 1.2f);
44456 Dust obj3 = Main.dust[num25];
44457 obj3.velocity *= 0.5f;
44458 if (Main.rand.Next(8) == 0)
44459 {
44460 int num26 = Gore.NewGore(new Vector2((float)((Rectangle)(ref itemRectangle)).Center.X, (float)((Rectangle)(ref itemRectangle)).Center.Y), default(Vector2), 16);
44461 Gore obj4 = Main.gore[num26];
44462 obj4.velocity *= 0.5f;
44463 Gore obj5 = Main.gore[num26];
44464 obj5.velocity += new Vector2((float)direction, 0f);
44465 }
44466 }
44467 if (sItem.type == 190)
44468 {
44469 int num27 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 40, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 0, default(Color), 1.2f);
44470 Main.dust[num27].noGravity = true;
44471 }
44472 else if (sItem.type == 213 || sItem.type == 5295)
44473 {
44474 int num28 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 3, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 0, default(Color), 1.2f);
44475 Main.dust[num28].noGravity = true;
44476 }
44477 if (sItem.type == 121)
44478 {
44479 for (int i = 0; i < 2; i++)
44480 {
44481 GetPointOnSwungItemPath(70f, 70f, 0.2f + 0.8f * Main.rand.NextFloat(), GetAdjustedItemScale(sItem), out var location, out var outwardDirection);
44482 Vector2 vector = outwardDirection.RotatedBy((float)Math.PI / 2f * (float)direction * gravDir);
44483 Dust.NewDustPerfect(location, 6, vector * 4f, 100, default(Color), 2.5f).noGravity = true;
44484 }
44485 }
44486 if (sItem.type == 122 || sItem.type == 217)
44487 {
44488 int num29 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 6, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 1.9f);
44489 Main.dust[num29].noGravity = true;
44490 }
44491 if (sItem.type == 155)
44492 {
44493 int num2 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 172, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 0.9f);
44494 Main.dust[num2].noGravity = true;
44495 Dust obj6 = Main.dust[num2];
44496 obj6.velocity *= 0.1f;
44497 }
44498 if (sItem.type == 676 && Main.rand.Next(3) == 0)
44499 {
44500 int num3 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 67, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 90, default(Color), 1.5f);
44501 Main.dust[num3].noGravity = true;
44502 Dust obj7 = Main.dust[num3];
44503 obj7.velocity *= 0.2f;
44504 }
44505 if (sItem.type == 3063)
44506 {
44507 int num4 = Dust.NewDust(itemRectangle.TopLeft(), itemRectangle.Width, itemRectangle.Height, 66, 0f, 0f, 150, Color.Transparent, 0.85f);
44508 Main.dust[num4].color = Main.hslToRgb(Main.rand.NextFloat(), 1f, 0.5f);
44509 Main.dust[num4].noGravity = true;
44510 Dust obj8 = Main.dust[num4];
44511 obj8.velocity /= 2f;
44512 }
44513 if (sItem.type == 3823)
44514 {
44515 Dust dust = Dust.NewDustDirect(itemRectangle.TopLeft(), itemRectangle.Width, itemRectangle.Height, 6, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, Color.Transparent, 0.7f);
44516 dust.noGravity = true;
44517 dust.velocity *= 2f;
44518 dust.fadeIn = 0.9f;
44519 }
44520 if (sItem.type == 724 && Main.rand.Next(5) == 0)
44521 {
44522 int num5 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 67, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 90, default(Color), 1.5f);
44523 Main.dust[num5].noGravity = true;
44524 Dust obj9 = Main.dust[num5];
44525 obj9.velocity *= 0.2f;
44526 }
44527 if (sItem.type >= 795 && sItem.type <= 802)
44528 {
44529 for (int j = 0; j < 2; j++)
44530 {
44531 GetPointOnSwungItemPath(60f, 60f, 0.2f + 0.8f * Main.rand.NextFloat(), GetAdjustedItemScale(sItem), out var location2, out var outwardDirection2);
44532 Vector2 vector2 = outwardDirection2.RotatedBy((float)Math.PI / 2f * (float)direction * gravDir);
44533 Dust.NewDustPerfect(location2, 5, vector2 * 2f, 100, default(Color), 0.7f + Main.rand.NextFloat() * 0.6f);
44534 if (Main.rand.Next(20) == 0)
44535 {
44536 int num6 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 115, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 140, default(Color), 0.7f);
44537 Main.dust[num6].position = location2;
44538 Main.dust[num6].fadeIn = 1.2f;
44539 Main.dust[num6].noGravity = true;
44540 Dust obj10 = Main.dust[num6];
44541 obj10.velocity *= 0.25f;
44542 Dust obj11 = Main.dust[num6];
44543 obj11.velocity += vector2 * 5f;
44544 }
44545 }
44546 }
44547 if (sItem.type == 367)
44548 {
44549 int num7 = 0;
44550 if (Main.rand.Next(3) == 0)
44551 {
44552 num7 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 57, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 1.1f);
44553 Main.dust[num7].noGravity = true;
44554 Main.dust[num7].velocity.X /= 2f;
44555 Main.dust[num7].velocity.Y /= 2f;
44556 Main.dust[num7].velocity.X += direction * 2;
44557 }
44558 if (Main.rand.Next(4) == 0)
44559 {
44560 num7 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 43, 0f, 0f, 254, default(Color), 0.3f);
44561 Dust obj12 = Main.dust[num7];
44562 obj12.velocity *= 0f;
44563 }
44564 }
44565 else if (sItem.type != 368)
44566 {
44567 _ = sItem.type;
44568 }
44569 if (sItem.type == 4258 || sItem.type == 4259 || (sItem.type >= 198 && sItem.type <= 203) || (sItem.type >= 3764 && sItem.type <= 3769))
44570 {
44571 float num8 = 0.5f;
44572 float num9 = 0.5f;
44573 float num10 = 0.5f;
44574 if (sItem.type == 198 || sItem.type == 3764)
44575 {
44576 num8 *= 0.1f;
44577 num9 *= 0.5f;
44578 num10 *= 1.2f;
44579 }
44580 else if (sItem.type == 199 || sItem.type == 3765)
44581 {
44582 num8 *= 1f;
44583 num9 *= 0.2f;
44584 num10 *= 0.1f;
44585 }
44586 else if (sItem.type == 200 || sItem.type == 3766)
44587 {
44588 num8 *= 0.1f;
44589 num9 *= 1f;
44590 num10 *= 0.2f;
44591 }
44592 else if (sItem.type == 201 || sItem.type == 3767)
44593 {
44594 num8 *= 0.8f;
44595 num9 *= 0.1f;
44596 num10 *= 1f;
44597 }
44598 else if (sItem.type == 202 || sItem.type == 3768)
44599 {
44600 num8 *= 0.8f;
44601 num9 *= 0.9f;
44602 num10 *= 1f;
44603 }
44604 else if (sItem.type == 203 || sItem.type == 3769)
44605 {
44606 num8 *= 0.8f;
44607 num9 *= 0.8f;
44608 num10 *= 0f;
44609 }
44610 else if (sItem.type == 4258 || sItem.type == 4259)
44611 {
44612 num8 *= 0.9f;
44613 num9 *= 0.5f;
44614 num10 *= 0f;
44615 }
44616 Lighting.AddLight((int)((itemLocation.X + 6f + velocity.X) / 16f), (int)((itemLocation.Y - 14f) / 16f), num8, num9, num10);
44617 }
44618 if (frostBurn && sItem.melee && !sItem.noMelee && !sItem.noUseGraphic && Main.rand.Next(2) == 0)
44619 {
44620 int num11 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 135, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 2.5f);
44621 Main.dust[num11].noGravity = true;
44622 Dust obj13 = Main.dust[num11];
44623 obj13.velocity *= 0.7f;
44624 Main.dust[num11].velocity.Y -= 0.5f;
44625 }
44626 if (sItem.melee && !sItem.noMelee && !sItem.noUseGraphic && meleeEnchant > 0)
44627 {
44628 if (meleeEnchant == 1)
44629 {
44630 if (Main.rand.Next(3) == 0)
44631 {
44632 int num13 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 171, 0f, 0f, 100);
44633 Main.dust[num13].noGravity = true;
44634 Main.dust[num13].fadeIn = 1.5f;
44635 Dust obj14 = Main.dust[num13];
44636 obj14.velocity *= 0.25f;
44637 }
44638 }
44639 else if (meleeEnchant == 2)
44640 {
44641 if (Main.rand.Next(2) == 0)
44642 {
44643 int num14 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 75, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 2.5f);
44644 Main.dust[num14].noGravity = true;
44645 Dust obj15 = Main.dust[num14];
44646 obj15.velocity *= 0.7f;
44647 Main.dust[num14].velocity.Y -= 0.5f;
44648 }
44649 }
44650 else if (meleeEnchant == 3)
44651 {
44652 if (Main.rand.Next(2) == 0)
44653 {
44654 int num15 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 6, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 2.5f);
44655 Main.dust[num15].noGravity = true;
44656 Dust obj16 = Main.dust[num15];
44657 obj16.velocity *= 0.7f;
44658 Main.dust[num15].velocity.Y -= 0.5f;
44659 }
44660 }
44661 else if (meleeEnchant == 4)
44662 {
44663 int num16 = 0;
44664 if (Main.rand.Next(2) == 0)
44665 {
44666 num16 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 57, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 1.1f);
44667 Main.dust[num16].noGravity = true;
44668 Main.dust[num16].velocity.X /= 2f;
44669 Main.dust[num16].velocity.Y /= 2f;
44670 }
44671 }
44672 else if (meleeEnchant == 5)
44673 {
44674 if (Main.rand.Next(2) == 0)
44675 {
44676 int num17 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 169, 0f, 0f, 100);
44677 Main.dust[num17].velocity.X += direction;
44678 Main.dust[num17].velocity.Y += 0.2f;
44679 Main.dust[num17].noGravity = true;
44680 }
44681 }
44682 else if (meleeEnchant == 6)
44683 {
44684 if (Main.rand.Next(2) == 0)
44685 {
44686 int num18 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 135, 0f, 0f, 100);
44687 Main.dust[num18].velocity.X += direction;
44688 Main.dust[num18].velocity.Y += 0.2f;
44689 Main.dust[num18].noGravity = true;
44690 }
44691 }
44692 else if (meleeEnchant == 7)
44693 {
44694 if (Main.rand.Next(20) == 0)
44695 {
44696 int type3 = Main.rand.Next(139, 143);
44697 int num19 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, type3, velocity.X, velocity.Y, 0, default(Color), 1.2f);
44698 Main.dust[num19].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
44699 Main.dust[num19].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
44700 Main.dust[num19].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
44701 Main.dust[num19].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
44702 Main.dust[num19].scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
44703 }
44704 if (Main.rand.Next(40) == 0)
44705 {
44706 int type4 = Main.rand.Next(276, 283);
44707 int num20 = Gore.NewGore(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), velocity, type4);
44708 Main.gore[num20].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
44709 Main.gore[num20].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
44710 Main.gore[num20].scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
44711 Main.gore[num20].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
44712 Main.gore[num20].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
44713 }
44714 }
44715 else if (meleeEnchant == 8 && Main.rand.Next(4) == 0)
44716 {
44717 int num21 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 46, 0f, 0f, 100);
44718 Main.dust[num21].noGravity = true;
44719 Main.dust[num21].fadeIn = 1.5f;
44720 Dust obj17 = Main.dust[num21];
44721 obj17.velocity *= 0.25f;
44722 }
44723 }
44724 if (magmaStone && sItem.melee && !sItem.noMelee && !sItem.noUseGraphic && Main.rand.Next(3) != 0)
44725 {
44726 int num22 = Dust.NewDust(new Vector2((float)itemRectangle.X, (float)itemRectangle.Y), itemRectangle.Width, itemRectangle.Height, 6, velocity.X * 0.2f + (float)(direction * 3), velocity.Y * 0.2f, 100, default(Color), 2.5f);
44727 Main.dust[num22].noGravity = true;
44728 Main.dust[num22].velocity.X *= 2f;
44729 Main.dust[num22].velocity.Y *= 2f;
44730 }
44732 return itemRectangle;
44733 }
Vector2 Center
Definition Entity.cs:70
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
static void MeleeEffects(Player player, Item sItem, Rectangle itemRectangle)
void GetPointOnSwungItemPath(float spriteWidth, float spriteHeight, float normalizedPointOnPath, float itemScale, out Vector2 location, out Vector2 outwardDirection)
Definition Player.cs:44068
byte meleeEnchant
The vanilla flask effect which the player currently has active; these affect all melee weapons and wh...
Definition Player.cs:1281
float GetAdjustedItemScale(Item item)
Used to determine what the overall scale of an item should be. M:Terraria.ModLoader....
Definition Player.cs:41782
Vector2 itemLocation
Definition Player.cs:1670

References Terraria.Lighting.AddLight(), Terraria.Entity.Center, Terraria.Entity.direction, Terraria.Main.dust, Terraria.Player.frostBurn, Terraria.Player.GetAdjustedItemScale(), Terraria.Player.GetPointOnSwungItemPath(), Terraria.Main.gore, Terraria.Player.gravDir, Terraria.Main.hslToRgb(), Terraria.Player.itemLocation, Terraria.Player.magmaStone, Terraria.ModLoader.CombinedHooks.MeleeEffects(), Terraria.Player.meleeEnchant, Terraria.Dust.NewDust(), Terraria.Dust.NewDustDirect(), Terraria.Dust.NewDustPerfect(), Terraria.Gore.NewGore(), Terraria.Main.rand, and Terraria.Entity.velocity.

Referenced by Terraria.Player.ItemCheck_OwnerOnlyCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: