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

◆ Colliding()

bool Terraria.Projectile.Colliding ( Rectangle myRect,
Rectangle targetRect )
inline

Definition at line 14236 of file Projectile.cs.

14237 {
14238 //IL_006d: Unknown result type (might be due to invalid IL or missing references)
14239 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
14240 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
14241 //IL_007a: Unknown result type (might be due to invalid IL or missing references)
14242 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
14243 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
14244 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
14245 //IL_0088: Unknown result type (might be due to invalid IL or missing references)
14246 //IL_008d: Unknown result type (might be due to invalid IL or missing references)
14247 //IL_0ce7: Unknown result type (might be due to invalid IL or missing references)
14248 //IL_0ce8: Unknown result type (might be due to invalid IL or missing references)
14249 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
14250 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
14251 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
14252 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
14253 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
14254 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
14255 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
14256 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
14257 //IL_00dd: Unknown result type (might be due to invalid IL or missing references)
14258 //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
14259 //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
14260 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
14261 //IL_0d05: Unknown result type (might be due to invalid IL or missing references)
14262 //IL_012d: Unknown result type (might be due to invalid IL or missing references)
14263 //IL_012f: Unknown result type (might be due to invalid IL or missing references)
14264 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
14265 //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
14266 //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
14267 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
14268 //IL_01a8: Unknown result type (might be due to invalid IL or missing references)
14269 //IL_0145: Unknown result type (might be due to invalid IL or missing references)
14270 //IL_014e: Unknown result type (might be due to invalid IL or missing references)
14271 //IL_0153: Unknown result type (might be due to invalid IL or missing references)
14272 //IL_0d23: Unknown result type (might be due to invalid IL or missing references)
14273 //IL_0d24: Unknown result type (might be due to invalid IL or missing references)
14274 //IL_0d29: Unknown result type (might be due to invalid IL or missing references)
14275 //IL_0d2a: Unknown result type (might be due to invalid IL or missing references)
14276 //IL_0d30: Unknown result type (might be due to invalid IL or missing references)
14277 //IL_0d36: Unknown result type (might be due to invalid IL or missing references)
14278 //IL_0d3c: Unknown result type (might be due to invalid IL or missing references)
14279 //IL_0d49: Unknown result type (might be due to invalid IL or missing references)
14280 //IL_0d4e: Unknown result type (might be due to invalid IL or missing references)
14281 //IL_0249: Unknown result type (might be due to invalid IL or missing references)
14282 //IL_025d: Unknown result type (might be due to invalid IL or missing references)
14283 //IL_0262: Unknown result type (might be due to invalid IL or missing references)
14284 //IL_0271: Unknown result type (might be due to invalid IL or missing references)
14285 //IL_0276: Unknown result type (might be due to invalid IL or missing references)
14286 //IL_027b: Unknown result type (might be due to invalid IL or missing references)
14287 //IL_027f: Unknown result type (might be due to invalid IL or missing references)
14288 //IL_0211: Unknown result type (might be due to invalid IL or missing references)
14289 //IL_0213: Unknown result type (might be due to invalid IL or missing references)
14290 //IL_0ddf: Unknown result type (might be due to invalid IL or missing references)
14291 //IL_0de0: Unknown result type (might be due to invalid IL or missing references)
14292 //IL_0de5: Unknown result type (might be due to invalid IL or missing references)
14293 //IL_0de6: Unknown result type (might be due to invalid IL or missing references)
14294 //IL_0dec: Unknown result type (might be due to invalid IL or missing references)
14295 //IL_0df3: Unknown result type (might be due to invalid IL or missing references)
14296 //IL_0e00: Unknown result type (might be due to invalid IL or missing references)
14297 //IL_0e05: Unknown result type (might be due to invalid IL or missing references)
14298 //IL_0e0b: Unknown result type (might be due to invalid IL or missing references)
14299 //IL_0e12: Unknown result type (might be due to invalid IL or missing references)
14300 //IL_0e19: Unknown result type (might be due to invalid IL or missing references)
14301 //IL_0e1e: Unknown result type (might be due to invalid IL or missing references)
14302 //IL_03bd: Unknown result type (might be due to invalid IL or missing references)
14303 //IL_03c2: Unknown result type (might be due to invalid IL or missing references)
14304 //IL_040f: Unknown result type (might be due to invalid IL or missing references)
14305 //IL_0ee8: Unknown result type (might be due to invalid IL or missing references)
14306 //IL_0ee9: Unknown result type (might be due to invalid IL or missing references)
14307 //IL_0eee: Unknown result type (might be due to invalid IL or missing references)
14308 //IL_0eef: Unknown result type (might be due to invalid IL or missing references)
14309 //IL_0ef5: Unknown result type (might be due to invalid IL or missing references)
14310 //IL_0efb: Unknown result type (might be due to invalid IL or missing references)
14311 //IL_0f01: Unknown result type (might be due to invalid IL or missing references)
14312 //IL_0f0e: Unknown result type (might be due to invalid IL or missing references)
14313 //IL_0f13: Unknown result type (might be due to invalid IL or missing references)
14314 //IL_0494: Unknown result type (might be due to invalid IL or missing references)
14315 //IL_0495: Unknown result type (might be due to invalid IL or missing references)
14316 //IL_0498: Unknown result type (might be due to invalid IL or missing references)
14317 //IL_049d: Unknown result type (might be due to invalid IL or missing references)
14318 //IL_04a2: Unknown result type (might be due to invalid IL or missing references)
14319 //IL_04ae: Unknown result type (might be due to invalid IL or missing references)
14320 //IL_04b5: Unknown result type (might be due to invalid IL or missing references)
14321 //IL_04c0: Unknown result type (might be due to invalid IL or missing references)
14322 //IL_04c5: Unknown result type (might be due to invalid IL or missing references)
14323 //IL_04c9: Unknown result type (might be due to invalid IL or missing references)
14324 //IL_04d1: Unknown result type (might be due to invalid IL or missing references)
14325 //IL_04e0: Unknown result type (might be due to invalid IL or missing references)
14326 //IL_0417: Unknown result type (might be due to invalid IL or missing references)
14327 //IL_0418: Unknown result type (might be due to invalid IL or missing references)
14328 //IL_041d: Unknown result type (might be due to invalid IL or missing references)
14329 //IL_041e: Unknown result type (might be due to invalid IL or missing references)
14330 //IL_0424: Unknown result type (might be due to invalid IL or missing references)
14331 //IL_0429: Unknown result type (might be due to invalid IL or missing references)
14332 //IL_042d: Unknown result type (might be due to invalid IL or missing references)
14333 //IL_0432: Unknown result type (might be due to invalid IL or missing references)
14334 //IL_0438: Unknown result type (might be due to invalid IL or missing references)
14335 //IL_043d: Unknown result type (might be due to invalid IL or missing references)
14336 //IL_0441: Unknown result type (might be due to invalid IL or missing references)
14337 //IL_0446: Unknown result type (might be due to invalid IL or missing references)
14338 //IL_0fba: Unknown result type (might be due to invalid IL or missing references)
14339 //IL_0fbb: Unknown result type (might be due to invalid IL or missing references)
14340 //IL_0fc0: Unknown result type (might be due to invalid IL or missing references)
14341 //IL_0fc1: Unknown result type (might be due to invalid IL or missing references)
14342 //IL_0fc7: Unknown result type (might be due to invalid IL or missing references)
14343 //IL_0fcd: Unknown result type (might be due to invalid IL or missing references)
14344 //IL_0fd3: Unknown result type (might be due to invalid IL or missing references)
14345 //IL_0fdd: Unknown result type (might be due to invalid IL or missing references)
14346 //IL_0fe2: Unknown result type (might be due to invalid IL or missing references)
14347 //IL_0e90: Unknown result type (might be due to invalid IL or missing references)
14348 //IL_0e91: Unknown result type (might be due to invalid IL or missing references)
14349 //IL_0e96: Unknown result type (might be due to invalid IL or missing references)
14350 //IL_0e97: Unknown result type (might be due to invalid IL or missing references)
14351 //IL_0e9d: Unknown result type (might be due to invalid IL or missing references)
14352 //IL_0ea3: Unknown result type (might be due to invalid IL or missing references)
14353 //IL_0eaa: Unknown result type (might be due to invalid IL or missing references)
14354 //IL_0eb1: Unknown result type (might be due to invalid IL or missing references)
14355 //IL_0eb6: Unknown result type (might be due to invalid IL or missing references)
14356 //IL_05b2: Unknown result type (might be due to invalid IL or missing references)
14357 //IL_02e2: Unknown result type (might be due to invalid IL or missing references)
14358 //IL_02e8: Unknown result type (might be due to invalid IL or missing references)
14359 //IL_02f2: Unknown result type (might be due to invalid IL or missing references)
14360 //IL_02f7: Unknown result type (might be due to invalid IL or missing references)
14361 //IL_02fc: Unknown result type (might be due to invalid IL or missing references)
14362 //IL_030d: Unknown result type (might be due to invalid IL or missing references)
14363 //IL_0312: Unknown result type (might be due to invalid IL or missing references)
14364 //IL_0319: Unknown result type (might be due to invalid IL or missing references)
14365 //IL_0338: Unknown result type (might be due to invalid IL or missing references)
14366 //IL_0357: Unknown result type (might be due to invalid IL or missing references)
14367 //IL_05ba: Unknown result type (might be due to invalid IL or missing references)
14368 //IL_05bb: Unknown result type (might be due to invalid IL or missing references)
14369 //IL_05c0: Unknown result type (might be due to invalid IL or missing references)
14370 //IL_05c1: Unknown result type (might be due to invalid IL or missing references)
14371 //IL_05c7: Unknown result type (might be due to invalid IL or missing references)
14372 //IL_05cd: Unknown result type (might be due to invalid IL or missing references)
14373 //IL_05d4: Unknown result type (might be due to invalid IL or missing references)
14374 //IL_05db: Unknown result type (might be due to invalid IL or missing references)
14375 //IL_05e0: Unknown result type (might be due to invalid IL or missing references)
14376 //IL_0630: Unknown result type (might be due to invalid IL or missing references)
14377 //IL_0635: Unknown result type (might be due to invalid IL or missing references)
14378 //IL_0638: Unknown result type (might be due to invalid IL or missing references)
14379 //IL_063d: Unknown result type (might be due to invalid IL or missing references)
14380 //IL_064e: Unknown result type (might be due to invalid IL or missing references)
14381 //IL_035f: Unknown result type (might be due to invalid IL or missing references)
14382 //IL_0360: Unknown result type (might be due to invalid IL or missing references)
14383 //IL_0365: Unknown result type (might be due to invalid IL or missing references)
14384 //IL_0366: Unknown result type (might be due to invalid IL or missing references)
14385 //IL_036b: Unknown result type (might be due to invalid IL or missing references)
14386 //IL_036d: Unknown result type (might be due to invalid IL or missing references)
14387 //IL_0371: Unknown result type (might be due to invalid IL or missing references)
14388 //IL_0376: Unknown result type (might be due to invalid IL or missing references)
14389 //IL_037b: Unknown result type (might be due to invalid IL or missing references)
14390 //IL_037d: Unknown result type (might be due to invalid IL or missing references)
14391 //IL_0381: Unknown result type (might be due to invalid IL or missing references)
14392 //IL_0386: Unknown result type (might be due to invalid IL or missing references)
14393 //IL_06d1: Unknown result type (might be due to invalid IL or missing references)
14394 //IL_06d6: Unknown result type (might be due to invalid IL or missing references)
14395 //IL_0723: Unknown result type (might be due to invalid IL or missing references)
14396 //IL_0656: Unknown result type (might be due to invalid IL or missing references)
14397 //IL_0657: Unknown result type (might be due to invalid IL or missing references)
14398 //IL_065c: Unknown result type (might be due to invalid IL or missing references)
14399 //IL_065d: Unknown result type (might be due to invalid IL or missing references)
14400 //IL_0663: Unknown result type (might be due to invalid IL or missing references)
14401 //IL_0668: Unknown result type (might be due to invalid IL or missing references)
14402 //IL_066c: Unknown result type (might be due to invalid IL or missing references)
14403 //IL_0671: Unknown result type (might be due to invalid IL or missing references)
14404 //IL_0677: Unknown result type (might be due to invalid IL or missing references)
14405 //IL_067c: Unknown result type (might be due to invalid IL or missing references)
14406 //IL_0680: Unknown result type (might be due to invalid IL or missing references)
14407 //IL_0685: Unknown result type (might be due to invalid IL or missing references)
14408 //IL_072b: Unknown result type (might be due to invalid IL or missing references)
14409 //IL_072c: Unknown result type (might be due to invalid IL or missing references)
14410 //IL_0731: Unknown result type (might be due to invalid IL or missing references)
14411 //IL_0732: Unknown result type (might be due to invalid IL or missing references)
14412 //IL_0738: Unknown result type (might be due to invalid IL or missing references)
14413 //IL_073d: Unknown result type (might be due to invalid IL or missing references)
14414 //IL_0741: Unknown result type (might be due to invalid IL or missing references)
14415 //IL_0746: Unknown result type (might be due to invalid IL or missing references)
14416 //IL_074c: Unknown result type (might be due to invalid IL or missing references)
14417 //IL_0751: Unknown result type (might be due to invalid IL or missing references)
14418 //IL_0755: Unknown result type (might be due to invalid IL or missing references)
14419 //IL_075a: Unknown result type (might be due to invalid IL or missing references)
14420 //IL_0795: Unknown result type (might be due to invalid IL or missing references)
14421 //IL_0796: Unknown result type (might be due to invalid IL or missing references)
14422 //IL_079b: Unknown result type (might be due to invalid IL or missing references)
14423 //IL_079d: Unknown result type (might be due to invalid IL or missing references)
14424 //IL_079e: Unknown result type (might be due to invalid IL or missing references)
14425 //IL_07a3: Unknown result type (might be due to invalid IL or missing references)
14426 //IL_07a5: Unknown result type (might be due to invalid IL or missing references)
14427 //IL_07aa: Unknown result type (might be due to invalid IL or missing references)
14428 //IL_07ba: Unknown result type (might be due to invalid IL or missing references)
14429 //IL_07bc: Unknown result type (might be due to invalid IL or missing references)
14430 //IL_07bf: Unknown result type (might be due to invalid IL or missing references)
14431 //IL_07c5: Unknown result type (might be due to invalid IL or missing references)
14432 //IL_07ca: Unknown result type (might be due to invalid IL or missing references)
14433 //IL_07d2: Unknown result type (might be due to invalid IL or missing references)
14434 //IL_07dc: Unknown result type (might be due to invalid IL or missing references)
14435 //IL_07e1: Unknown result type (might be due to invalid IL or missing references)
14436 //IL_0886: Unknown result type (might be due to invalid IL or missing references)
14437 //IL_07f9: Unknown result type (might be due to invalid IL or missing references)
14438 //IL_07fb: Unknown result type (might be due to invalid IL or missing references)
14439 //IL_07fe: Unknown result type (might be due to invalid IL or missing references)
14440 //IL_0804: Unknown result type (might be due to invalid IL or missing references)
14441 //IL_0809: Unknown result type (might be due to invalid IL or missing references)
14442 //IL_0811: Unknown result type (might be due to invalid IL or missing references)
14443 //IL_081b: Unknown result type (might be due to invalid IL or missing references)
14444 //IL_0820: Unknown result type (might be due to invalid IL or missing references)
14445 //IL_08c4: Unknown result type (might be due to invalid IL or missing references)
14446 //IL_08c9: Unknown result type (might be due to invalid IL or missing references)
14447 //IL_088f: Unknown result type (might be due to invalid IL or missing references)
14448 //IL_0838: Unknown result type (might be due to invalid IL or missing references)
14449 //IL_083a: Unknown result type (might be due to invalid IL or missing references)
14450 //IL_083d: Unknown result type (might be due to invalid IL or missing references)
14451 //IL_0843: Unknown result type (might be due to invalid IL or missing references)
14452 //IL_0848: Unknown result type (might be due to invalid IL or missing references)
14453 //IL_0850: Unknown result type (might be due to invalid IL or missing references)
14454 //IL_085a: Unknown result type (might be due to invalid IL or missing references)
14455 //IL_085f: Unknown result type (might be due to invalid IL or missing references)
14456 //IL_089a: Unknown result type (might be due to invalid IL or missing references)
14457 //IL_08a3: Unknown result type (might be due to invalid IL or missing references)
14458 //IL_08dc: Unknown result type (might be due to invalid IL or missing references)
14459 //IL_08e1: Unknown result type (might be due to invalid IL or missing references)
14460 //IL_08e3: Unknown result type (might be due to invalid IL or missing references)
14461 //IL_08e5: Unknown result type (might be due to invalid IL or missing references)
14462 //IL_0a33: Unknown result type (might be due to invalid IL or missing references)
14463 //IL_08f3: Unknown result type (might be due to invalid IL or missing references)
14464 //IL_0902: Unknown result type (might be due to invalid IL or missing references)
14465 //IL_0911: Unknown result type (might be due to invalid IL or missing references)
14466 //IL_1014: Unknown result type (might be due to invalid IL or missing references)
14467 //IL_1015: Unknown result type (might be due to invalid IL or missing references)
14468 //IL_101a: Unknown result type (might be due to invalid IL or missing references)
14469 //IL_101b: Unknown result type (might be due to invalid IL or missing references)
14470 //IL_1021: Unknown result type (might be due to invalid IL or missing references)
14471 //IL_1027: Unknown result type (might be due to invalid IL or missing references)
14472 //IL_102d: Unknown result type (might be due to invalid IL or missing references)
14473 //IL_103a: Unknown result type (might be due to invalid IL or missing references)
14474 //IL_103f: Unknown result type (might be due to invalid IL or missing references)
14475 //IL_0a3c: Unknown result type (might be due to invalid IL or missing references)
14476 //IL_09cb: Unknown result type (might be due to invalid IL or missing references)
14477 //IL_09d0: Unknown result type (might be due to invalid IL or missing references)
14478 //IL_09d5: Unknown result type (might be due to invalid IL or missing references)
14479 //IL_09d9: Unknown result type (might be due to invalid IL or missing references)
14480 //IL_09e0: Unknown result type (might be due to invalid IL or missing references)
14481 //IL_09e9: Unknown result type (might be due to invalid IL or missing references)
14482 //IL_09f0: Unknown result type (might be due to invalid IL or missing references)
14483 //IL_09f9: Unknown result type (might be due to invalid IL or missing references)
14484 //IL_0a05: Unknown result type (might be due to invalid IL or missing references)
14485 //IL_1071: Unknown result type (might be due to invalid IL or missing references)
14486 //IL_1072: Unknown result type (might be due to invalid IL or missing references)
14487 //IL_1077: Unknown result type (might be due to invalid IL or missing references)
14488 //IL_1078: Unknown result type (might be due to invalid IL or missing references)
14489 //IL_107e: Unknown result type (might be due to invalid IL or missing references)
14490 //IL_1084: Unknown result type (might be due to invalid IL or missing references)
14491 //IL_108a: Unknown result type (might be due to invalid IL or missing references)
14492 //IL_1097: Unknown result type (might be due to invalid IL or missing references)
14493 //IL_109c: Unknown result type (might be due to invalid IL or missing references)
14494 //IL_0a47: Unknown result type (might be due to invalid IL or missing references)
14495 //IL_0a50: Unknown result type (might be due to invalid IL or missing references)
14496 //IL_10ce: Unknown result type (might be due to invalid IL or missing references)
14497 //IL_10cf: Unknown result type (might be due to invalid IL or missing references)
14498 //IL_10d4: Unknown result type (might be due to invalid IL or missing references)
14499 //IL_10d5: Unknown result type (might be due to invalid IL or missing references)
14500 //IL_10db: Unknown result type (might be due to invalid IL or missing references)
14501 //IL_10e1: Unknown result type (might be due to invalid IL or missing references)
14502 //IL_10e7: Unknown result type (might be due to invalid IL or missing references)
14503 //IL_10ec: Unknown result type (might be due to invalid IL or missing references)
14504 //IL_10f2: Unknown result type (might be due to invalid IL or missing references)
14505 //IL_10f7: Unknown result type (might be due to invalid IL or missing references)
14506 //IL_10fc: Unknown result type (might be due to invalid IL or missing references)
14507 //IL_1106: Unknown result type (might be due to invalid IL or missing references)
14508 //IL_110b: Unknown result type (might be due to invalid IL or missing references)
14509 //IL_0aff: Unknown result type (might be due to invalid IL or missing references)
14510 //IL_0aaf: Unknown result type (might be due to invalid IL or missing references)
14511 //IL_0ac3: Unknown result type (might be due to invalid IL or missing references)
14512 //IL_0ac8: Unknown result type (might be due to invalid IL or missing references)
14513 //IL_0ad7: Unknown result type (might be due to invalid IL or missing references)
14514 //IL_0adc: Unknown result type (might be due to invalid IL or missing references)
14515 //IL_0ae1: Unknown result type (might be due to invalid IL or missing references)
14516 //IL_0ae5: Unknown result type (might be due to invalid IL or missing references)
14517 //IL_0962: Unknown result type (might be due to invalid IL or missing references)
14518 //IL_0967: Unknown result type (might be due to invalid IL or missing references)
14519 //IL_096c: Unknown result type (might be due to invalid IL or missing references)
14520 //IL_0970: Unknown result type (might be due to invalid IL or missing references)
14521 //IL_1141: Unknown result type (might be due to invalid IL or missing references)
14522 //IL_1146: Unknown result type (might be due to invalid IL or missing references)
14523 //IL_114b: Unknown result type (might be due to invalid IL or missing references)
14524 //IL_115b: Unknown result type (might be due to invalid IL or missing references)
14525 //IL_1161: Unknown result type (might be due to invalid IL or missing references)
14526 //IL_1163: Unknown result type (might be due to invalid IL or missing references)
14527 //IL_116e: Unknown result type (might be due to invalid IL or missing references)
14528 //IL_1173: Unknown result type (might be due to invalid IL or missing references)
14529 //IL_1175: Unknown result type (might be due to invalid IL or missing references)
14530 //IL_1176: Unknown result type (might be due to invalid IL or missing references)
14531 //IL_117b: Unknown result type (might be due to invalid IL or missing references)
14532 //IL_117c: Unknown result type (might be due to invalid IL or missing references)
14533 //IL_1182: Unknown result type (might be due to invalid IL or missing references)
14534 //IL_1187: Unknown result type (might be due to invalid IL or missing references)
14535 //IL_118e: Unknown result type (might be due to invalid IL or missing references)
14536 //IL_1193: Unknown result type (might be due to invalid IL or missing references)
14537 //IL_1199: Unknown result type (might be due to invalid IL or missing references)
14538 //IL_119e: Unknown result type (might be due to invalid IL or missing references)
14539 //IL_11a5: Unknown result type (might be due to invalid IL or missing references)
14540 //IL_11aa: Unknown result type (might be due to invalid IL or missing references)
14541 //IL_0b08: Unknown result type (might be due to invalid IL or missing references)
14542 //IL_11dc: Unknown result type (might be due to invalid IL or missing references)
14543 //IL_11dd: Unknown result type (might be due to invalid IL or missing references)
14544 //IL_11e2: Unknown result type (might be due to invalid IL or missing references)
14545 //IL_11e3: Unknown result type (might be due to invalid IL or missing references)
14546 //IL_11e9: Unknown result type (might be due to invalid IL or missing references)
14547 //IL_11ef: Unknown result type (might be due to invalid IL or missing references)
14548 //IL_11f5: Unknown result type (might be due to invalid IL or missing references)
14549 //IL_1202: Unknown result type (might be due to invalid IL or missing references)
14550 //IL_1207: Unknown result type (might be due to invalid IL or missing references)
14551 //IL_0b7e: Unknown result type (might be due to invalid IL or missing references)
14552 //IL_0b83: Unknown result type (might be due to invalid IL or missing references)
14553 //IL_0b8a: Unknown result type (might be due to invalid IL or missing references)
14554 //IL_0b8f: Unknown result type (might be due to invalid IL or missing references)
14555 //IL_0b13: Unknown result type (might be due to invalid IL or missing references)
14556 //IL_0b1c: Unknown result type (might be due to invalid IL or missing references)
14557 //IL_1246: Unknown result type (might be due to invalid IL or missing references)
14558 //IL_1247: Unknown result type (might be due to invalid IL or missing references)
14559 //IL_124c: Unknown result type (might be due to invalid IL or missing references)
14560 //IL_124d: Unknown result type (might be due to invalid IL or missing references)
14561 //IL_1253: Unknown result type (might be due to invalid IL or missing references)
14562 //IL_1259: Unknown result type (might be due to invalid IL or missing references)
14563 //IL_125f: Unknown result type (might be due to invalid IL or missing references)
14564 //IL_1264: Unknown result type (might be due to invalid IL or missing references)
14565 //IL_1269: Unknown result type (might be due to invalid IL or missing references)
14566 //IL_126e: Unknown result type (might be due to invalid IL or missing references)
14567 //IL_1278: Unknown result type (might be due to invalid IL or missing references)
14568 //IL_1283: Unknown result type (might be due to invalid IL or missing references)
14569 //IL_1288: Unknown result type (might be due to invalid IL or missing references)
14570 //IL_0bd7: Unknown result type (might be due to invalid IL or missing references)
14571 //IL_0ba2: Unknown result type (might be due to invalid IL or missing references)
14572 //IL_0ba7: Unknown result type (might be due to invalid IL or missing references)
14573 //IL_0bb0: Unknown result type (might be due to invalid IL or missing references)
14574 //IL_0bb5: Unknown result type (might be due to invalid IL or missing references)
14575 //IL_0c47: Unknown result type (might be due to invalid IL or missing references)
14576 //IL_0c4c: Unknown result type (might be due to invalid IL or missing references)
14577 //IL_0bdf: Unknown result type (might be due to invalid IL or missing references)
14578 //IL_0be1: Unknown result type (might be due to invalid IL or missing references)
14579 //IL_0c5d: Unknown result type (might be due to invalid IL or missing references)
14580 //IL_0c62: Unknown result type (might be due to invalid IL or missing references)
14581 //IL_0c67: Unknown result type (might be due to invalid IL or missing references)
14582 //IL_0c69: Unknown result type (might be due to invalid IL or missing references)
14583 //IL_0c6b: Unknown result type (might be due to invalid IL or missing references)
14584 //IL_0c74: Unknown result type (might be due to invalid IL or missing references)
14585 //IL_0c76: Unknown result type (might be due to invalid IL or missing references)
14586 //IL_0c7b: Unknown result type (might be due to invalid IL or missing references)
14587 //IL_0c7d: Unknown result type (might be due to invalid IL or missing references)
14588 //IL_0c85: Unknown result type (might be due to invalid IL or missing references)
14589 //IL_0bfc: Unknown result type (might be due to invalid IL or missing references)
14590 //IL_0c01: Unknown result type (might be due to invalid IL or missing references)
14591 //IL_0c10: Unknown result type (might be due to invalid IL or missing references)
14592 //IL_0c11: Unknown result type (might be due to invalid IL or missing references)
14593 //IL_0c16: Unknown result type (might be due to invalid IL or missing references)
14594 //IL_0c24: Unknown result type (might be due to invalid IL or missing references)
14595 //IL_0c29: Unknown result type (might be due to invalid IL or missing references)
14596 //IL_1304: Unknown result type (might be due to invalid IL or missing references)
14597 //IL_130f: Unknown result type (might be due to invalid IL or missing references)
14598 //IL_1319: Unknown result type (might be due to invalid IL or missing references)
14599 //IL_1320: Unknown result type (might be due to invalid IL or missing references)
14600 //IL_1325: Unknown result type (might be due to invalid IL or missing references)
14601 //IL_132a: Unknown result type (might be due to invalid IL or missing references)
14602 //IL_132d: Unknown result type (might be due to invalid IL or missing references)
14603 //IL_1338: Unknown result type (might be due to invalid IL or missing references)
14604 //IL_1342: Unknown result type (might be due to invalid IL or missing references)
14605 //IL_1349: Unknown result type (might be due to invalid IL or missing references)
14606 //IL_134e: Unknown result type (might be due to invalid IL or missing references)
14607 //IL_1353: Unknown result type (might be due to invalid IL or missing references)
14608 //IL_1355: Unknown result type (might be due to invalid IL or missing references)
14609 //IL_1356: Unknown result type (might be due to invalid IL or missing references)
14610 //IL_135b: Unknown result type (might be due to invalid IL or missing references)
14611 //IL_135c: Unknown result type (might be due to invalid IL or missing references)
14612 //IL_1361: Unknown result type (might be due to invalid IL or missing references)
14613 //IL_1363: Unknown result type (might be due to invalid IL or missing references)
14614 //IL_0caa: Unknown result type (might be due to invalid IL or missing references)
14615 //IL_0cac: Unknown result type (might be due to invalid IL or missing references)
14616 //IL_0cb3: Unknown result type (might be due to invalid IL or missing references)
14617 //IL_0cb8: Unknown result type (might be due to invalid IL or missing references)
14618 //IL_0cba: Unknown result type (might be due to invalid IL or missing references)
14619 //IL_0cbf: Unknown result type (might be due to invalid IL or missing references)
14620 //IL_0cc3: Unknown result type (might be due to invalid IL or missing references)
14621 //IL_0cdc: Unknown result type (might be due to invalid IL or missing references)
14622 //IL_13e3: Unknown result type (might be due to invalid IL or missing references)
14623 //IL_1512: Unknown result type (might be due to invalid IL or missing references)
14624 //IL_1518: Unknown result type (might be due to invalid IL or missing references)
14625 //IL_1525: Unknown result type (might be due to invalid IL or missing references)
14626 //IL_152b: Unknown result type (might be due to invalid IL or missing references)
14627 //IL_152d: Unknown result type (might be due to invalid IL or missing references)
14628 //IL_154a: Unknown result type (might be due to invalid IL or missing references)
14629 //IL_154f: Unknown result type (might be due to invalid IL or missing references)
14630 //IL_1568: Unknown result type (might be due to invalid IL or missing references)
14631 //IL_156d: Unknown result type (might be due to invalid IL or missing references)
14632 //IL_1574: Unknown result type (might be due to invalid IL or missing references)
14633 //IL_157a: Unknown result type (might be due to invalid IL or missing references)
14634 //IL_157c: Unknown result type (might be due to invalid IL or missing references)
14635 //IL_1581: Unknown result type (might be due to invalid IL or missing references)
14636 //IL_1590: Unknown result type (might be due to invalid IL or missing references)
14637 //IL_1595: Unknown result type (might be due to invalid IL or missing references)
14638 //IL_159a: Unknown result type (might be due to invalid IL or missing references)
14639 //IL_159e: Unknown result type (might be due to invalid IL or missing references)
14640 //IL_148d: Unknown result type (might be due to invalid IL or missing references)
14641 Rectangle val;
14642 if (aiStyle == 15)
14643 {
14644 if (ai[0] == 0f)
14645 {
14646 Vector2 mountedCenter = Main.player[owner].MountedCenter;
14647 Vector2 vector = targetRect.ClosestPointInRect(mountedCenter) - mountedCenter;
14648 vector.Y /= 0.8f;
14649 float num = 55f;
14650 return ((Vector2)(ref vector)).Length() <= num;
14651 }
14652 }
14653 else if (type == 973)
14654 {
14655 Vector2 v = targetRect.ClosestPointInRect(base.Center) - base.Center;
14656 v.SafeNormalize(Vector2.UnitX);
14657 float num12 = 100f * scale;
14658 if (((Vector2)(ref v)).Length() < num12 && Collision.CanHit(base.Center, 0, 0, ((Rectangle)(ref targetRect)).Center.ToVector2(), 0, 0))
14659 {
14660 return true;
14661 }
14662 }
14663 else
14664 {
14665 if (type == 85)
14666 {
14667 if (!((Rectangle)(ref myRect)).Intersects(targetRect))
14668 {
14669 return false;
14670 }
14671 return Collision.CanHit(base.Center, 0, 0, ((Rectangle)(ref targetRect)).Center.ToVector2(), 0, 0);
14672 }
14673 if (type == 985)
14674 {
14675 float coneLength = 90f * scale;
14676 float maximumAngle = (float)Math.PI / 4f;
14677 float coneRotation = rotation;
14678 if (targetRect.IntersectsConeFastInaccurate(base.Center, coneLength, coneRotation, maximumAngle) && Collision.CanHit(base.Center, 0, 0, ((Rectangle)(ref targetRect)).Center.ToVector2(), 0, 0))
14679 {
14680 return true;
14681 }
14682 }
14683 else
14684 {
14685 if (aiStyle == 190)
14686 {
14687 float coneLength2 = 94f * scale;
14688 float num21 = (float)Math.PI * 2f / 25f * ai[0];
14689 float maximumAngle2 = (float)Math.PI / 4f;
14690 float num22 = rotation + num21;
14691 if (targetRect.IntersectsConeSlowMoreAccurate(base.Center, coneLength2, num22, maximumAngle2))
14692 {
14693 return true;
14694 }
14695 float num23 = Utils.Remap(localAI[0], ai[1] * 0.3f, ai[1] * 0.5f, 1f, 0f);
14696 if (num23 > 0f)
14697 {
14698 float coneRotation2 = num22 - (float)Math.PI / 4f * ai[0] * num23;
14699 if (targetRect.IntersectsConeSlowMoreAccurate(base.Center, coneLength2, coneRotation2, maximumAngle2))
14700 {
14701 return true;
14702 }
14703 }
14704 return false;
14705 }
14706 if (type == 623)
14707 {
14708 if (ai[0] == 2f)
14709 {
14710 Rectangle value = Utils.CenteredRectangle(base.Center + new Vector2((float)(direction * 40), 0f), new Vector2(80f, 40f));
14711 if (((Rectangle)(ref targetRect)).Intersects(value))
14712 {
14713 return true;
14714 }
14715 }
14716 }
14717 else
14718 {
14719 if (type == 933)
14720 {
14721 float collisionPoint = 0f;
14722 float num24 = 40f;
14723 for (int i = 14; i < oldPos.Length; i += 15)
14724 {
14725 float num25 = localAI[0] - (float)i;
14726 if (!(num25 < 0f) && !(num25 > 60f))
14727 {
14728 Vector2 vector4 = oldPos[i] + base.Size / 2f;
14729 Vector2 vector5 = (oldRot[i] + (float)Math.PI / 2f).ToRotationVector2();
14730 _lanceHitboxBounds.X = (int)vector4.X - _lanceHitboxBounds.Width / 2;
14731 _lanceHitboxBounds.Y = (int)vector4.Y - _lanceHitboxBounds.Height / 2;
14732 if (((Rectangle)(ref _lanceHitboxBounds)).Intersects(targetRect) && Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), vector4 - vector5 * num24, vector4 + vector5 * num24, 20f, ref collisionPoint))
14733 {
14734 return true;
14735 }
14736 }
14737 }
14738 Vector2 vector6 = (rotation + (float)Math.PI / 2f).ToRotationVector2();
14739 _lanceHitboxBounds.X = (int)position.X - _lanceHitboxBounds.Width / 2;
14740 _lanceHitboxBounds.Y = (int)position.Y - _lanceHitboxBounds.Height / 2;
14741 if (((Rectangle)(ref _lanceHitboxBounds)).Intersects(targetRect) && Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center - vector6 * num24, base.Center + vector6 * num24, 20f, ref collisionPoint))
14742 {
14743 return true;
14744 }
14745 return false;
14746 }
14747 if (type == 927)
14748 {
14749 for (float num26 = 0f; num26 <= 1f; num26 += 0.05f)
14750 {
14751 float num27 = Utils.Remap(num26, 0f, 1f, 1f, 5f);
14752 Rectangle rectangle = myRect;
14753 Vector2 vector7 = velocity.SafeNormalize(Vector2.Zero) * (float)width * num27 * scale;
14754 ((Rectangle)(ref rectangle)).Offset((int)vector7.X, (int)vector7.Y);
14755 if (((Rectangle)(ref rectangle)).Intersects(targetRect))
14756 {
14757 return true;
14758 }
14759 }
14760 }
14761 else
14762 {
14763 if (type == 877 || type == 878 || type == 879)
14764 {
14765 float f = rotation - (float)Math.PI / 4f - (float)Math.PI / 2f - ((spriteDirection == 1) ? ((float)Math.PI) : 0f);
14766 float collisionPoint10 = 0f;
14767 float num2 = 95f;
14768 _lanceHitboxBounds.X = (int)position.X - _lanceHitboxBounds.Width / 2;
14769 _lanceHitboxBounds.Y = (int)position.Y - _lanceHitboxBounds.Height / 2;
14770 if (((Rectangle)(ref _lanceHitboxBounds)).Intersects(targetRect) && Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + f.ToRotationVector2() * num2, 23f * scale, ref collisionPoint10))
14771 {
14772 return true;
14773 }
14774 return false;
14775 }
14776 if (type == 974)
14777 {
14778 float f4 = rotation;
14779 float collisionPoint11 = 0f;
14780 float num3 = 46f * scale;
14781 float num4 = 8f;
14782 Vector2 vector8 = f4.ToRotationVector2();
14783 Rectangle hitbox = base.Hitbox;
14784 ((Rectangle)(ref hitbox)).Inflate((int)num3, (int)num3);
14785 if (((Rectangle)(ref hitbox)).Intersects(targetRect) && Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center - vector8 * num3, base.Center + vector8 * num3, num4 * scale, ref collisionPoint11))
14786 {
14787 return true;
14788 }
14789 return false;
14790 }
14791 if (type == 919 || type == 932)
14792 {
14793 float f5 = rotation;
14794 float collisionPoint12 = 0f;
14795 float num5 = 40f;
14796 Vector2 vector9 = f5.ToRotationVector2();
14797 _lanceHitboxBounds.X = (int)position.X - _lanceHitboxBounds.Width / 2;
14798 _lanceHitboxBounds.Y = (int)position.Y - _lanceHitboxBounds.Height / 2;
14799 if (((Rectangle)(ref _lanceHitboxBounds)).Intersects(targetRect) && Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center - vector9 * num5, base.Center + vector9 * num5, 8f, ref collisionPoint12))
14800 {
14801 return true;
14802 }
14803 return false;
14804 }
14805 if (type == 923)
14806 {
14807 float collisionPoint13 = 0f;
14808 _ = scale;
14809 float f6 = rotation;
14810 Vector2 objectPosition = targetRect.TopLeft();
14811 Vector2 objectDimensions = targetRect.Size();
14812 Vector2 vector10 = f6.ToRotationVector2();
14813 float num6 = scale * 0.7f;
14814 if (Collision.CheckAABBvLineCollision(objectPosition, objectDimensions, base.Center, base.Center + vector10 * scale * 510f, num6 * 100f, ref collisionPoint13))
14815 {
14816 return true;
14817 }
14818 if (Collision.CheckAABBvLineCollision(objectPosition, objectDimensions, base.Center, base.Center + vector10 * scale * 660f, num6 * 60f, ref collisionPoint13))
14819 {
14820 return true;
14821 }
14822 if (Collision.CheckAABBvLineCollision(objectPosition, objectDimensions, base.Center, base.Center + vector10 * scale * 800f, num6 * 10f, ref collisionPoint13))
14823 {
14824 return true;
14825 }
14826 return false;
14827 }
14828 if (type == 598 && targetRect.Width > 8 && targetRect.Height > 8)
14829 {
14830 ((Rectangle)(ref targetRect)).Inflate(-targetRect.Width / 8, -targetRect.Height / 8);
14831 }
14832 else
14833 {
14834 if (type == 872)
14835 {
14836 Rectangle hitbox2 = base.Hitbox;
14837 int num7 = 80;
14838 for (int j = 0; j < num7; j += 2)
14839 {
14840 Vector2 vector11 = oldPos[j];
14841 if (!(vector11 == Vector2.Zero))
14842 {
14843 hitbox2.X = (int)vector11.X;
14844 hitbox2.Y = (int)vector11.Y;
14845 if (((Rectangle)(ref hitbox2)).Intersects(targetRect))
14846 {
14847 return true;
14848 }
14849 }
14850 }
14851 return false;
14852 }
14853 if (type == 871)
14854 {
14856 for (int k = 0; k < num8; k++)
14857 {
14858 HallowBossPelletStormInfo hallowBossPelletStormInfo = AI_172_GetPelletStormInfo(k);
14859 for (int l = 0; l < hallowBossPelletStormInfo.BulletsInStorm; l++)
14860 {
14861 if (hallowBossPelletStormInfo.IsValid(l))
14862 {
14863 val = hallowBossPelletStormInfo.GetBulletHitbox(l, base.Center);
14864 if (((Rectangle)(ref val)).Intersects(targetRect))
14865 {
14866 return true;
14867 }
14868 }
14869 }
14870 }
14871 return false;
14872 }
14874 {
14875 WhipPointsForCollision.Clear();
14877 for (int m = 0; m < WhipPointsForCollision.Count; m++)
14878 {
14879 Point point = WhipPointsForCollision[m].ToPoint();
14880 ((Rectangle)(ref myRect)).Location = new Point(point.X - myRect.Width / 2, point.Y - myRect.Height / 2);
14881 if (((Rectangle)(ref myRect)).Intersects(targetRect))
14882 {
14883 return true;
14884 }
14885 }
14886 return false;
14887 }
14888 if (type == 614 && targetRect.Width > 8 && targetRect.Height > 8)
14889 {
14890 ((Rectangle)(ref targetRect)).Inflate(-targetRect.Width / 8, -targetRect.Height / 8);
14891 }
14892 else if (type == 963 && ai[0] >= 2f)
14893 {
14894 ((Rectangle)(ref targetRect)).Inflate(30, 30);
14895 }
14896 else if (type == 758)
14897 {
14898 if (ai[0] == 2f)
14899 {
14900 val = Utils.CenteredRectangle(base.Center + new Vector2((float)(spriteDirection * 30), 0f), new Vector2(50f, 20f));
14901 if (((Rectangle)(ref val)).Intersects(targetRect))
14902 {
14903 return true;
14904 }
14905 }
14906 }
14907 else if (type == 636 && targetRect.Width > 8 && targetRect.Height > 8)
14908 {
14909 ((Rectangle)(ref targetRect)).Inflate(-targetRect.Width / 8, -targetRect.Height / 8);
14910 }
14911 else if (type == 607)
14912 {
14913 myRect.X += (int)velocity.X;
14914 myRect.Y += (int)velocity.Y;
14915 }
14916 else if (type == 661)
14917 {
14918 if (Vector2.Distance(((Rectangle)(ref myRect)).Center.ToVector2(), ((Rectangle)(ref targetRect)).Center.ToVector2()) > 500f || !Collision.CanHitLine(((Rectangle)(ref myRect)).Center.ToVector2(), 0, 0, ((Rectangle)(ref targetRect)).Center.ToVector2(), 0, 0))
14919 {
14920 return false;
14921 }
14922 }
14923 else
14924 {
14925 if (aiStyle == 137)
14926 {
14927 if (((Rectangle)(ref myRect)).Intersects(targetRect) && targetRect.Distance(base.Center) < (float)(height / 2 - 20))
14928 {
14929 if (AI_137_CanHit(((Rectangle)(ref targetRect)).Center.ToVector2()))
14930 {
14931 return true;
14932 }
14933 if (AI_137_CanHit(targetRect.TopLeft() + new Vector2((float)(targetRect.Width / 2), 0f)))
14934 {
14935 return true;
14936 }
14937 }
14938 return false;
14939 }
14940 if (aiStyle == 19)
14941 {
14942 Vector2 center = base.Center;
14944 {
14945 Vector2 vector2 = ((Rectangle)(ref extensionBox)).Center.ToVector2();
14946 float num9 = Vector2.Distance(vector2, center);
14947 Vector2 size = extensionBox.Size();
14948 float num10 = MathHelper.Max((float)extensionBox.Width, (float)extensionBox.Height);
14949 if (num10 < 12f)
14950 {
14951 num10 = 12f;
14952 }
14953 for (float num11 = num10; num11 < num9; num11 += num10)
14954 {
14955 val = Utils.CenteredRectangle(Vector2.Lerp(center, vector2, num11 / num9), size);
14956 if (((Rectangle)(ref val)).Intersects(targetRect))
14957 {
14958 return true;
14959 }
14960 }
14961 if (((Rectangle)(ref extensionBox)).Intersects(targetRect))
14962 {
14963 return true;
14964 }
14965 }
14966 }
14967 }
14968 }
14969 }
14970 }
14971 }
14972 }
14973 bool? flag = ProjectileLoader.Colliding(this, myRect, targetRect);
14974 if (flag.HasValue)
14975 {
14976 return flag.GetValueOrDefault();
14977 }
14978 if (((Rectangle)(ref myRect)).Intersects(targetRect))
14979 {
14980 return true;
14981 }
14982 if (type == 461)
14983 {
14984 float collisionPoint14 = 0f;
14985 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * localAI[1], 22f * scale, ref collisionPoint14))
14986 {
14987 return true;
14988 }
14989 return false;
14990 }
14991 if (type == 697 || type == 707)
14992 {
14993 float f2 = rotation - (float)Math.PI / 4f * (float)Math.Sign(velocity.X);
14994 float collisionPoint15 = 0f;
14995 float num13 = 50f;
14996 if (type == 697)
14997 {
14998 num13 = 65f;
14999 }
15000 if (type == 707)
15001 {
15002 num13 = 110f;
15003 }
15004 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center + f2.ToRotationVector2() * (0f - num13), base.Center + f2.ToRotationVector2() * num13, 23f * scale, ref collisionPoint15))
15005 {
15006 return true;
15007 }
15008 return false;
15009 }
15010 if (type == 699)
15011 {
15012 float f3 = rotation - (float)Math.PI / 4f * (float)Math.Sign(velocity.X) + ((spriteDirection == -1) ? ((float)Math.PI) : 0f);
15013 float collisionPoint16 = 0f;
15014 float num14 = -95f;
15015 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + f3.ToRotationVector2() * num14, 23f * scale, ref collisionPoint16))
15016 {
15017 return true;
15018 }
15019 return false;
15020 }
15021 if (type == 642)
15022 {
15023 float collisionPoint17 = 0f;
15024 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * localAI[1], 30f * scale, ref collisionPoint17))
15025 {
15026 return true;
15027 }
15028 return false;
15029 }
15030 if (type == 802 || type == 842 || type == 938 || type == 939 || type == 940 || type == 941 || type == 942 || type == 943 || type == 944 || type == 945)
15031 {
15032 float collisionPoint2 = 0f;
15033 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * 6f, 10f * scale, ref collisionPoint2))
15034 {
15035 return true;
15036 }
15037 return false;
15038 }
15039 if (type == 632)
15040 {
15041 float collisionPoint3 = 0f;
15042 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * localAI[1], 22f * scale, ref collisionPoint3))
15043 {
15044 return true;
15045 }
15046 return false;
15047 }
15048 if (type == 455)
15049 {
15050 float collisionPoint4 = 0f;
15051 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * localAI[1], 36f * scale, ref collisionPoint4))
15052 {
15053 return true;
15054 }
15055 return false;
15056 }
15057 if (type == 611)
15058 {
15059 float collisionPoint5 = 0f;
15060 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity + velocity.SafeNormalize(Vector2.Zero) * 48f, 16f * scale, ref collisionPoint5))
15061 {
15062 return true;
15063 }
15064 return false;
15065 }
15066 if (type == 684)
15067 {
15068 float collisionPoint6 = 0f;
15069 Vector2 vector3 = velocity.SafeNormalize(Vector2.UnitY).RotatedBy(-1.5707963705062866) * scale;
15070 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center - vector3 * 40f, base.Center + vector3 * 40f, 16f * scale, ref collisionPoint6))
15071 {
15072 return true;
15073 }
15074 return false;
15075 }
15076 if (type == 537)
15077 {
15078 float collisionPoint7 = 0f;
15079 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity * localAI[1], 22f * scale, ref collisionPoint7))
15080 {
15081 return true;
15082 }
15083 return false;
15084 }
15085 if (type == 756 || type == 961)
15086 {
15087 float collisionPoint8 = 0f;
15088 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), base.Center, base.Center + velocity.SafeNormalize(-Vector2.UnitY) * 200f * scale, 22f * scale, ref collisionPoint8))
15089 {
15090 return true;
15091 }
15092 return false;
15093 }
15094 if (type == 687)
15095 {
15096 float collisionPoint9 = 0f;
15097 float num15 = ai[0] / 25f;
15098 if (num15 > 1f)
15099 {
15100 num15 = 1f;
15101 }
15102 float num16 = (ai[0] - 38f) / 40f;
15103 if (num16 < 0f)
15104 {
15105 num16 = 0f;
15106 }
15107 Vector2 lineStart = base.Center + rotation.ToRotationVector2() * 400f * num16;
15108 Vector2 lineEnd = base.Center + rotation.ToRotationVector2() * 400f * num15;
15109 if (Collision.CheckAABBvLineCollision(targetRect.TopLeft(), targetRect.Size(), lineStart, lineEnd, 40f * scale, ref collisionPoint9))
15110 {
15111 return true;
15112 }
15113 return false;
15114 }
15115 if (type == 466 || type == 580 || type == 686)
15116 {
15117 for (int n = 0; n < oldPos.Length && (oldPos[n].X != 0f || oldPos[n].Y != 0f); n++)
15118 {
15119 myRect.X = (int)oldPos[n].X;
15120 myRect.Y = (int)oldPos[n].Y;
15121 if (((Rectangle)(ref myRect)).Intersects(targetRect))
15122 {
15123 return true;
15124 }
15125 }
15126 return false;
15127 }
15128 if (type == 711)
15129 {
15130 if (penetrate != -1)
15131 {
15132 for (int num17 = 0; num17 < oldPos.Length && (oldPos[num17].X != 0f || oldPos[num17].Y != 0f); num17++)
15133 {
15134 myRect.X = (int)oldPos[num17].X;
15135 myRect.Y = (int)oldPos[num17].Y;
15136 if (((Rectangle)(ref myRect)).Intersects(targetRect))
15137 {
15138 return true;
15139 }
15140 }
15141 }
15142 }
15143 else if (type == 464 && ai[1] != 1f)
15144 {
15145 Vector2 val2 = Utils.RotatedBy(new Vector2(0f, -720f), velocity.ToRotation());
15146 float num18 = ai[0] % 45f / 45f;
15147 Vector2 spinningpoint = val2 * num18;
15148 for (int num19 = 0; num19 < 6; num19++)
15149 {
15150 float num20 = (float)num19 * ((float)Math.PI * 2f) / 6f;
15151 val = Utils.CenteredRectangle(base.Center + spinningpoint.RotatedBy(num20), new Vector2(30f, 30f));
15152 if (((Rectangle)(ref val)).Intersects(targetRect))
15153 {
15154 return true;
15155 }
15156 }
15157 }
15158 return false;
15159 }
Vector2 Center
Definition Entity.cs:70
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static bool[] IsAWhip
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile will use whip ...
static ? bool Colliding(Projectile projectile, Rectangle projHitbox, Rectangle targetHitbox)
This serves as the central class from which projectile-related functions are carried out....
HallowBossPelletStormInfo AI_172_GetPelletStormInfo(int stormIndex)
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
float[] oldRot
Holds the value of F:Terraria.Projectile.rotation from previous updates from newest to oldest....
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int penetrate
The remaining number of npc can this projectile hit before dying. (Or tile bounces)....
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
static void FillWhipControlPoints(Projectile proj, List< Vector2 > controlPoints)
Vector2[] oldPos
Holds the value of F:Terraria.Entity.position from previous updates from newest to oldest....
static Rectangle _lanceHitboxBounds
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
bool AI_019_Spears_GetExtensionHitbox(out Rectangle extensionBox)
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
int AI_172_GetPelletStormsCount()
List< Vector2 > WhipPointsForCollision
bool AI_137_CanHit(Vector2 targetPosition)
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....

References Terraria.Projectile._lanceHitboxBounds, Terraria.Projectile.ai, Terraria.Projectile.AI_019_Spears_GetExtensionHitbox(), Terraria.Projectile.AI_137_CanHit(), Terraria.Projectile.AI_172_GetPelletStormInfo(), Terraria.Projectile.AI_172_GetPelletStormsCount(), Terraria.Projectile.aiStyle, Terraria.Collision.CanHit(), Terraria.Collision.CanHitLine(), Terraria.Entity.Center, Terraria.Utils.CenteredRectangle(), Terraria.Collision.CheckAABBvLineCollision(), Terraria.ModLoader.ProjectileLoader.Colliding(), Terraria.Entity.direction, Terraria.Projectile.FillWhipControlPoints(), Terraria.Entity.height, Terraria.ID.ProjectileID.Sets.IsAWhip, Terraria.Projectile.localAI, Terraria.Projectile.oldPos, Terraria.Projectile.oldRot, Terraria.Projectile.owner, Terraria.Projectile.penetrate, Terraria.Main.player, Terraria.Entity.position, Terraria.Utils.Remap(), Terraria.Utils.RotatedBy(), Terraria.Projectile.rotation, Terraria.Projectile.scale, Terraria.Projectile.spriteDirection, Terraria.Projectile.type, Terraria.Entity.velocity, Terraria.Projectile.WhipPointsForCollision, and Terraria.Entity.width.

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

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