48041 {
48042 if (!Main.player[
owner].active)
48043 {
48045 return;
48046 }
48047 bool flag = false;
48048 bool flag2 =
false;
48049 bool flag3 =
false;
48050 bool flag4 =
false;
48051 bool flag5 =
false;
48052 int num = 85;
48055 {
48056 num = 120;
48057 }
48059 {
48060 num = 100;
48061 }
48063 {
48064 num = 50;
48065 }
48067 {
48068 case 816:
48069 case 821:
48070 case 825:
48071 case 854:
48072 case 858:
48073 case 859:
48074 case 860:
48075 case 885:
48076 case 889:
48077 case 891:
48078 case 897:
48079 case 899:
48080 case 900:
48081 case 934:
48082 num = 95;
48083 break;
48084 case 884:
48085 case 890:
48086 num = 80;
48087 break;
48088 case 881:
48089 num = 95;
48090 if (Main.player[
owner].ownedProjectileCounts[881] > 0)
48091 {
48092 num = 120;
48093 }
48094 break;
48095 }
48097 {
48098 Main.CurrentFrameFlags.HadAnActiveInteractibleProjectile = true;
48099 flag = true;
48100 }
48102 {
48104 {
48107 }
48109 }
48110 else if (
type == 266)
48111 {
48113 }
48114 bool flag7 =
ai[0] == -1f ||
ai[0] == -2f;
48115 bool num2 =
ai[0] == -1f;
48118 {
48119 if (Main.player[
owner].dead)
48120 {
48121 Main.player[
owner].bunny =
false;
48122 }
48123 if (Main.player[
owner].bunny)
48124 {
48126 }
48127 }
48129 {
48130 if (Main.player[
owner].dead)
48131 {
48132 Main.player[
owner].penguin =
false;
48133 }
48134 if (Main.player[
owner].penguin)
48135 {
48137 }
48138 }
48140 {
48141 if (Main.player[
owner].dead)
48142 {
48143 Main.player[
owner].puppy =
false;
48144 }
48145 if (Main.player[
owner].puppy)
48146 {
48148 }
48149 }
48151 {
48152 if (Main.player[
owner].dead)
48153 {
48154 Main.player[
owner].grinch =
false;
48155 }
48156 if (Main.player[
owner].grinch)
48157 {
48159 }
48160 }
48162 {
48163 if (Main.player[
owner].dead)
48164 {
48165 Main.player[
owner].turtle =
false;
48166 }
48167 if (Main.player[
owner].turtle)
48168 {
48170 }
48171 }
48173 {
48174 if (Main.player[
owner].dead)
48175 {
48176 Main.player[
owner].eater =
false;
48177 }
48178 if (Main.player[
owner].eater)
48179 {
48181 }
48182 }
48184 {
48185 if (Main.player[
owner].dead)
48186 {
48187 Main.player[
owner].skeletron =
false;
48188 }
48189 if (Main.player[
owner].skeletron)
48190 {
48192 }
48193 }
48195 {
48196 if (Main.player[
owner].dead)
48197 {
48198 Main.player[
owner].hornet =
false;
48199 }
48200 if (Main.player[
owner].hornet)
48201 {
48203 }
48204 }
48206 {
48207 if (Main.player[
owner].dead)
48208 {
48209 Main.player[
owner].tiki =
false;
48210 }
48211 if (Main.player[
owner].tiki)
48212 {
48214 }
48215 }
48217 {
48218 if (Main.player[
owner].dead)
48219 {
48220 Main.player[
owner].lizard =
false;
48221 }
48222 if (Main.player[
owner].lizard)
48223 {
48225 }
48226 }
48228 {
48229 if (Main.player[
owner].dead)
48230 {
48231 Main.player[
owner].parrot =
false;
48232 }
48233 if (Main.player[
owner].parrot)
48234 {
48236 }
48237 }
48239 {
48240 if (Main.player[
owner].dead)
48241 {
48242 Main.player[
owner].truffle =
false;
48243 }
48244 if (Main.player[
owner].truffle)
48245 {
48247 }
48248 }
48250 {
48251 if (Main.player[
owner].dead)
48252 {
48253 Main.player[
owner].sapling =
false;
48254 }
48255 if (Main.player[
owner].sapling)
48256 {
48258 }
48259 }
48261 {
48262 if (Main.player[
owner].dead)
48263 {
48264 Main.player[
owner].cSapling =
false;
48265 }
48266 if (Main.player[
owner].cSapling)
48267 {
48269 }
48270 }
48272 {
48273 if (Main.player[
owner].dead)
48274 {
48275 Main.player[
owner].spider =
false;
48276 }
48277 if (Main.player[
owner].spider)
48278 {
48280 }
48281 }
48283 {
48284 if (Main.player[
owner].dead)
48285 {
48286 Main.player[
owner].squashling =
false;
48287 }
48288 if (Main.player[
owner].squashling)
48289 {
48291 }
48292 }
48294 {
48295 if (Main.player[
owner].dead)
48296 {
48297 Main.player[
owner].wisp =
false;
48298 }
48299 if (Main.player[
owner].wisp)
48300 {
48302 }
48303 }
48305 {
48306 if (Main.player[
owner].dead)
48307 {
48308 Main.player[
owner].dino =
false;
48309 }
48310 if (Main.player[
owner].dino)
48311 {
48313 }
48314 }
48316 {
48317 if (Main.player[
owner].dead)
48318 {
48319 Main.player[
owner].babyFaceMonster =
false;
48320 }
48321 if (Main.player[
owner].babyFaceMonster)
48322 {
48324 }
48325 }
48327 {
48328 if (Main.player[
owner].dead)
48329 {
48330 Main.player[
owner].petFlagSugarGlider =
false;
48331 }
48332 if (Main.player[
owner].petFlagSugarGlider)
48333 {
48335 }
48336 }
48338 {
48339 if (Main.player[
owner].dead)
48340 {
48341 Main.player[
owner].slime =
false;
48342 }
48343 if (Main.player[
owner].slime)
48344 {
48346 }
48347 }
48349 {
48350 if (Main.player[
owner].dead)
48351 {
48352 Main.player[
owner].eyeSpring =
false;
48353 }
48354 if (Main.player[
owner].eyeSpring)
48355 {
48357 }
48358 }
48360 {
48361 if (Main.player[
owner].dead)
48362 {
48363 Main.player[
owner].snowman =
false;
48364 }
48365 if (Main.player[
owner].snowman)
48366 {
48368 }
48369 }
48371 {
48372 if (Main.player[
owner].dead)
48373 {
48374 Main.player[
owner].blackCat =
false;
48375 }
48376 if (Main.player[
owner].blackCat)
48377 {
48379 }
48380 }
48382 {
48383 if (Main.player[
owner].dead)
48384 {
48385 Main.player[
owner].zephyrfish =
false;
48386 }
48387 if (Main.player[
owner].zephyrfish)
48388 {
48390 }
48391 }
48393 {
48394 if (Main.player[
owner].dead)
48395 {
48396 Main.player[
owner].petFlagBabyShark =
false;
48397 }
48398 if (Main.player[
owner].petFlagBabyShark)
48399 {
48401 }
48402 }
48404 {
48405 if (Main.player[
owner].dead)
48406 {
48407 Main.player[
owner].petFlagLilHarpy =
false;
48408 }
48409 if (Main.player[
owner].petFlagLilHarpy)
48410 {
48412 }
48413 }
48415 {
48416 if (Main.player[
owner].dead)
48417 {
48418 Main.player[
owner].petFlagFennecFox =
false;
48419 }
48420 if (Main.player[
owner].petFlagFennecFox)
48421 {
48423 }
48424 }
48426 {
48427 if (Main.player[
owner].dead)
48428 {
48429 Main.player[
owner].petFlagGlitteryButterfly =
false;
48430 }
48431 if (Main.player[
owner].petFlagGlitteryButterfly)
48432 {
48434 }
48435 }
48437 {
48438 if (Main.player[
owner].dead)
48439 {
48440 Main.player[
owner].petFlagBabyImp =
false;
48441 }
48442 if (Main.player[
owner].petFlagBabyImp)
48443 {
48445 }
48446 }
48448 {
48449 if (Main.player[
owner].dead)
48450 {
48451 Main.player[
owner].petFlagBabyRedPanda =
false;
48452 }
48453 if (Main.player[
owner].petFlagBabyRedPanda)
48454 {
48456 }
48457 }
48459 {
48460 if (Main.player[
owner].dead)
48461 {
48462 Main.player[
owner].petFlagPlantero =
false;
48463 }
48464 if (Main.player[
owner].petFlagPlantero)
48465 {
48467 }
48468 }
48470 {
48471 if (Main.player[
owner].dead)
48472 {
48473 Main.player[
owner].petFlagDynamiteKitten =
false;
48474 }
48475 if (Main.player[
owner].petFlagDynamiteKitten)
48476 {
48478 }
48479 }
48481 {
48482 if (Main.player[
owner].dead)
48483 {
48484 Main.player[
owner].petFlagBabyWerewolf =
false;
48485 }
48486 if (Main.player[
owner].petFlagBabyWerewolf)
48487 {
48489 }
48490 }
48492 {
48493 if (Main.player[
owner].dead)
48494 {
48495 Main.player[
owner].petFlagShadowMimic =
false;
48496 }
48497 if (Main.player[
owner].petFlagShadowMimic)
48498 {
48500 }
48501 }
48503 {
48504 if (Main.player[
owner].dead)
48505 {
48506 Main.player[
owner].petFlagVoltBunny =
false;
48507 }
48508 if (Main.player[
owner].petFlagVoltBunny)
48509 {
48511 }
48512 }
48514 {
48515 if (Main.player[
owner].dead)
48516 {
48517 Main.player[
owner].petFlagKingSlimePet =
false;
48518 }
48519 if (Main.player[
owner].petFlagKingSlimePet)
48520 {
48522 }
48523 }
48525 {
48526 if (Main.player[
owner].dead)
48527 {
48528 Main.player[
owner].petFlagBrainOfCthulhuPet =
false;
48529 }
48530 if (Main.player[
owner].petFlagBrainOfCthulhuPet)
48531 {
48533 }
48534 }
48536 {
48537 if (Main.player[
owner].dead)
48538 {
48539 Main.player[
owner].petFlagSkeletronPet =
false;
48540 }
48541 if (Main.player[
owner].petFlagSkeletronPet)
48542 {
48544 }
48545 }
48547 {
48548 if (Main.player[
owner].dead)
48549 {
48550 Main.player[
owner].petFlagQueenBeePet =
false;
48551 }
48552 if (Main.player[
owner].petFlagQueenBeePet)
48553 {
48555 }
48556 }
48558 {
48559 if (Main.player[
owner].dead)
48560 {
48561 Main.player[
owner].petFlagSkeletronPrimePet =
false;
48562 }
48563 if (Main.player[
owner].petFlagSkeletronPrimePet)
48564 {
48566 }
48567 }
48569 {
48570 if (Main.player[
owner].dead)
48571 {
48572 Main.player[
owner].petFlagPlanteraPet =
false;
48573 }
48574 if (Main.player[
owner].petFlagPlanteraPet)
48575 {
48577 }
48578 }
48580 {
48581 if (Main.player[
owner].dead)
48582 {
48583 Main.player[
owner].petFlagGolemPet =
false;
48584 }
48585 if (Main.player[
owner].petFlagGolemPet)
48586 {
48588 }
48589 }
48591 {
48592 if (Main.player[
owner].dead)
48593 {
48594 Main.player[
owner].petFlagDukeFishronPet =
false;
48595 }
48596 if (Main.player[
owner].petFlagDukeFishronPet)
48597 {
48599 }
48600 }
48602 {
48603 if (Main.player[
owner].dead)
48604 {
48605 Main.player[
owner].petFlagMoonLordPet =
false;
48606 }
48607 if (Main.player[
owner].petFlagMoonLordPet)
48608 {
48610 }
48611 }
48613 {
48614 if (Main.player[
owner].dead)
48615 {
48616 Main.player[
owner].petFlagEverscreamPet =
false;
48617 }
48618 if (Main.player[
owner].petFlagEverscreamPet)
48619 {
48621 }
48622 }
48624 {
48625 if (Main.player[
owner].dead)
48626 {
48627 Main.player[
owner].petFlagMartianPet =
false;
48628 }
48629 if (Main.player[
owner].petFlagMartianPet)
48630 {
48632 }
48633 }
48635 {
48636 if (Main.player[
owner].dead)
48637 {
48638 Main.player[
owner].petFlagDD2OgrePet =
false;
48639 }
48640 if (Main.player[
owner].petFlagDD2OgrePet)
48641 {
48643 }
48644 }
48646 {
48647 if (Main.player[
owner].dead)
48648 {
48649 Main.player[
owner].petFlagDD2BetsyPet =
false;
48650 }
48651 if (Main.player[
owner].petFlagDD2BetsyPet)
48652 {
48654 }
48655 }
48657 {
48658 if (Main.player[
owner].dead)
48659 {
48660 Main.player[
owner].petFlagQueenSlimePet =
false;
48661 }
48662 if (Main.player[
owner].petFlagQueenSlimePet)
48663 {
48665 }
48666 }
48668 {
48669 if (Main.player[
owner].dead)
48670 {
48671 Main.player[
owner].petFlagBerniePet =
false;
48672 }
48673 if (Main.player[
owner].petFlagBerniePet)
48674 {
48676 }
48677 }
48679 {
48680 if (Main.player[
owner].dead)
48681 {
48682 Main.player[
owner].petFlagDeerclopsPet =
false;
48683 }
48684 if (Main.player[
owner].petFlagDeerclopsPet)
48685 {
48687 }
48688 }
48690 {
48691 if (Main.player[
owner].dead)
48692 {
48693 Main.player[
owner].petFlagPigPet =
false;
48694 }
48695 if (Main.player[
owner].petFlagPigPet)
48696 {
48698 }
48699 }
48701 {
48702 if (Main.player[
owner].dead)
48703 {
48704 Main.player[
owner].petFlagChesterPet =
false;
48705 }
48706 if (Main.player[
owner].petFlagChesterPet)
48707 {
48709 }
48710 }
48712 {
48713 if (Main.player[
owner].dead)
48714 {
48715 Main.player[
owner].petFlagJunimoPet =
false;
48716 }
48717 if (Main.player[
owner].petFlagJunimoPet)
48718 {
48720 }
48721 }
48723 {
48724 if (Main.player[
owner].dead)
48725 {
48726 Main.player[
owner].petFlagBlueChickenPet =
false;
48727 }
48728 if (Main.player[
owner].petFlagBlueChickenPet)
48729 {
48731 }
48732 }
48734 {
48735 if (Main.player[
owner].dead)
48736 {
48737 Main.player[
owner].petFlagSpiffo =
false;
48738 }
48739 if (Main.player[
owner].petFlagSpiffo)
48740 {
48742 }
48743 }
48745 {
48746 if (Main.player[
owner].dead)
48747 {
48748 Main.player[
owner].petFlagCaveling =
false;
48749 }
48750 if (Main.player[
owner].petFlagCaveling)
48751 {
48753 }
48754 }
48756 {
48757 if (Main.player[
owner].dead)
48758 {
48759 Main.player[
owner].pygmy =
false;
48760 }
48761 if (Main.player[
owner].pygmy)
48762 {
48764 }
48765 }
48767 {
48768 if (Main.player[
owner].dead)
48769 {
48770 Main.player[
owner].spiderMinion =
false;
48771 }
48772 if (Main.player[
owner].spiderMinion)
48773 {
48775 }
48776 }
48778 {
48779 if (Main.player[
owner].dead)
48780 {
48781 Main.player[
owner].miniMinotaur =
false;
48782 }
48783 if (Main.player[
owner].miniMinotaur)
48784 {
48786 }
48787 }
48789 {
48791 }
48793 {
48794 num = 10;
48796 if (Main.player[
owner].position.X + (
float)(Main.player[
owner].width / 2) <
position.
X + (
float)(
width / 2) - (
float)num + (
float)
num3)
48797 {
48799 }
48800 else if (Main.player[
owner].position.X + (
float)(Main.player[
owner].width / 2) >
position.
X + (
float)(
width / 2) + (
float)num + (
float)
num3)
48801 {
48803 }
48804 }
48805 else if (
type == 891)
48806 {
48807 num = 30;
48808 float num4 = -50 * -Main.player[
owner].direction;
48811 {
48813 }
48815 {
48817 }
48818 }
48820 {
48821 num = 10;
48823 int num6 = ((player.Center.X - base.Center.X > 0f) ? 1 : (-1));
48824 if (player.velocity.X != 0f)
48825 {
48826 num6 = player.direction;
48827 }
48829 float num8 = player.Center.X +
num7;
48830 if (
num8 <
base.Center.X - (
float)num)
48831 {
48833 }
48834 else if (
num8 >
base.Center.X + (
float)num)
48835 {
48837 }
48838 }
48839 else if (Main.player[
owner].position.X + (
float)(Main.player[
owner].width / 2) <
position.
X + (
float)(
width / 2) - (
float)num)
48840 {
48842 }
48843 else if (Main.player[
owner].position.X + (
float)(Main.player[
owner].width / 2) >
position.
X + (
float)(
width / 2) + (
float)num)
48844 {
48846 }
48848 {
48851 num = 30;
48852 }
48854 {
48857 }
48859 {
48867 {
48869 }
48872 float num15 = 2000f;
48875 {
48878 {
48879 velocity.Y = -6f;
48880 }
48881 }
48883 {
48885 {
48887 }
48890 {
48892 }
48894 {
48896 }
48898 {
48900 }
48902 {
48904 }
48905 }
48906 else
48907 {
48909 {
48911 }
48915 }
48917 {
48919 for (
int i = 0;
i < 12;
i++)
48920 {
48921 float speedX = 1f - Main.rand.NextFloat() * 2f;
48922 float speedY = 1f - Main.rand.NextFloat() * 2f;
48924 Main.dust[
num18].noLightEmittence =
true;
48925 Main.dust[
num18].noGravity =
true;
48926 }
48927 base.Center = Main.player[
owner].Center;
48929 if (Main.myPlayer ==
owner)
48930 {
48932 }
48933 }
48935 {
48937 {
48938 velocity.X +=
num9;
48940 {
48941 velocity.X +=
num9;
48942 }
48943 }
48945 {
48946 velocity.X -=
num9;
48948 {
48949 velocity.X -=
num9;
48950 }
48951 }
48952 }
48954 {
48956 {
48957 velocity.Y +=
num9;
48959 {
48960 velocity.Y +=
num9;
48961 }
48962 }
48964 {
48965 velocity.Y -=
num9;
48967 {
48968 velocity.Y -=
num9;
48969 }
48970 }
48971 }
48975 {
48978 }
48980 {
48982 }
48983 return;
48984 }
48986 {
48987 float num19 = 0.1f;
48994 {
48996 }
49000 {
49002 }
49004 {
49006 }
49007 float num25 = 2000f;
49010 {
49013 {
49014 velocity.Y = -6f;
49015 }
49016 }
49018 {
49020 {
49022 }
49025 {
49027 }
49029 {
49031 }
49033 {
49035 }
49037 {
49039 }
49040 }
49041 else
49042 {
49044 {
49046 }
49050 }
49052 {
49054 for (
int j = 0;
j < 12;
j++)
49055 {
49056 float speedX2 = 1f - Main.rand.NextFloat() * 2f;
49057 float speedY2 = 1f - Main.rand.NextFloat() * 2f;
49059 Main.dust[
num28].noLightEmittence =
true;
49060 Main.dust[
num28].noGravity =
true;
49061 }
49062 base.Center = Main.player[
owner].Center;
49064 if (Main.myPlayer ==
owner)
49065 {
49067 }
49068 }
49070 {
49071 velocity.X +=
num19;
49073 {
49074 velocity.X +=
num19;
49075 }
49076 }
49078 {
49079 velocity.X -=
num19;
49081 {
49082 velocity.X -=
num19;
49083 }
49084 }
49086 {
49087 velocity.Y +=
num19;
49089 {
49090 velocity.Y +=
num19;
49091 }
49092 }
49094 {
49095 velocity.Y -=
num19;
49097 {
49098 velocity.Y -=
num19;
49099 }
49100 }
49101 localAI[0] += Main.rand.Next(10);
49103 {
49105 {
49107 {
49109 }
49110 else
49111 {
49113 }
49114 }
49117 {
49119 }
49120 }
49121 else
49122 {
49124 float num29 = velocity.X * 0.1f;
49126 {
49129 {
49131 }
49132 }
49134 {
49137 {
49139 }
49140 }
49141 }
49143 {
49145 }
49147 {
49149 }
49150 return;
49151 }
49153 {
49154 float num30 = 0.4f;
49156 {
49158 }
49160 {
49162 }
49166 float num33 = 400f;
49168 float num35 = 2000f;
49169 bool flag9 =
false;
49174 {
49176 float num38 = (float)
Math.
Sin((
float)Math.PI * 2f * ((float)Main.player[
owner].miscCounter / 60f));
49179 {
49182 }
49184 num36 += (float)(70 * -Main.player[
owner].direction);
49185 }
49186 else
49187 {
49189 {
49190 num37 += (float)Main.rand.Next(-10, 21);
49191 num36 += (float)Main.rand.Next(-10, 21);
49192 }
49193 num36 += (float)(60 * -Main.player[
owner].direction);
49195 }
49198 {
49200 }
49205 {
49207 }
49209 {
49211 }
49213 {
49215 {
49217 }
49219 }
49221 {
49223 }
49225 {
49228 {
49229 velocity.Y = -6f;
49230 }
49231 }
49233 {
49235 {
49237 {
49239 }
49240 else
49241 {
49243 }
49244 }
49246 }
49247 else
49248 {
49250 {
49252 {
49254 }
49256 {
49258 }
49260 {
49262 }
49264 {
49266 }
49267 }
49268 else if (
type == 815 ||
type == 817)
49269 {
49271 {
49273 }
49275 {
49277 }
49279 {
49281 }
49282 }
49283 else if (
type == 380)
49284 {
49286 {
49288 }
49290 {
49292 }
49294 {
49296 }
49297 }
49298 else if (
type == 198 ||
type == 886)
49299 {
49301 {
49303 }
49305 {
49307 }
49309 {
49311 }
49312 }
49313 else if (
type == 774)
49314 {
49316 {
49318 }
49320 {
49322 }
49324 {
49326 }
49327 }
49331 }
49333 {
49334 velocity.X +=
num30;
49336 {
49337 velocity.X +=
num30;
49338 }
49339 }
49341 {
49342 velocity.X -=
num30;
49344 {
49345 velocity.X -=
num30;
49346 }
49347 }
49349 {
49350 velocity.Y +=
num30;
49352 {
49353 velocity.Y +=
num30 * 2f;
49354 }
49355 }
49357 {
49358 velocity.Y -=
num30;
49360 {
49361 velocity.Y -=
num30 * 2f;
49362 }
49363 }
49364 if ((double)velocity.X > 0.25)
49365 {
49367 }
49368 else if ((double)velocity.X < -0.25)
49369 {
49371 }
49375 {
49378 {
49380 }
49382 {
49384 }
49386 {
49388 }
49389 for (
int k = 0;
k < 12;
k++)
49390 {
49391 float speedX3 = 1f - Main.rand.NextFloat() * 2f;
49392 float speedY3 = 1f - Main.rand.NextFloat() * 2f;
49394 Main.dust[
num44].noLightEmittence =
true;
49395 Main.dust[
num44].noGravity =
true;
49396 }
49397 base.Center = Main.player[
owner].Center;
49399 if (Main.myPlayer ==
owner)
49400 {
49402 }
49403 }
49409 {
49411 }
49413 {
49418 {
49421 }
49422 }
49424 {
49429 }
49431 {
49436 {
49440 }
49441 }
49443 {
49447 }
49449 {
49453 }
49455 {
49456 if (Main.player[
owner].velocity.Length() < 2f &&
vector4.Length() < 10f)
49457 {
49460 }
49463 {
49466 }
49468 }
49470 {
49474 {
49476 }
49479 {
49481 }
49483 }
49485 {
49489 {
49491 }
49492 }
49493 return;
49494 }
49496 {
49497 float num49 = 0.2f;
49503 if (Main.player[
owner].controlLeft)
49504 {
49506 }
49507 else if (Main.player[
owner].controlRight)
49508 {
49510 }
49511 if (Main.player[
owner].controlDown)
49512 {
49514 }
49515 else
49516 {
49517 if (Main.player[
owner].controlUp)
49518 {
49520 }
49522 }
49525 {
49526 position.X +=
num51;
49527 position.Y +=
num52;
49528 }
49530 {
49532 {
49535 {
49537 }
49538 }
49541 {
49542 velocity.X =
num51;
49543 velocity.Y =
num52;
49544 }
49545 else
49546 {
49550 }
49551 if ((double)velocity.X > 0.5)
49552 {
49554 }
49555 else if ((double)velocity.X < -0.5)
49556 {
49558 }
49563 {
49566 }
49568 {
49570 }
49572 {
49574 }
49575 for (
int l = 0;
l < 2;
l++)
49576 {
49578 Main.dust[
num54].velocity *= 0.2f;
49579 Main.dust[
num54].noGravity =
true;
49580 Main.dust[
num54].scale = 1.25f;
49582 }
49583 return;
49584 }
49586 {
49588 }
49589 if ((double)velocity.X > 0.5)
49590 {
49592 }
49593 else if ((double)velocity.X < -0.5)
49594 {
49596 }
49599 {
49600 velocity.X =
num51;
49601 velocity.Y =
num52;
49604 {
49608 }
49610 }
49615 {
49616 velocity.X +=
num49;
49618 {
49619 velocity.X *= 0.99f;
49620 }
49621 }
49623 {
49624 velocity.X -=
num49;
49626 {
49627 velocity.X *= 0.99f;
49628 }
49629 }
49631 {
49632 velocity.Y +=
num49;
49634 {
49635 velocity.Y *= 0.99f;
49636 }
49637 }
49639 {
49640 velocity.Y -=
num49;
49642 {
49643 velocity.Y *= 0.99f;
49644 }
49645 }
49647 {
49649 }
49652 {
49655 }
49657 {
49659 }
49660 return;
49661 }
49663 {
49664 float num55 = 0.1f;
49673 {
49675 }
49679 float num62 = 2000f;
49682 {
49685 {
49686 velocity.Y = -6f;
49687 }
49688 }
49690 {
49691 velocity.X =
num57;
49692 velocity.Y =
num58;
49694 }
49695 else
49696 {
49698 {
49701 }
49705 }
49707 {
49709 for (
int m = 0;
m < 12;
m++)
49710 {
49711 float speedX4 = 1f - Main.rand.NextFloat() * 2f;
49712 float speedY4 = 1f - Main.rand.NextFloat() * 2f;
49714 Main.dust[
num65].noLightEmittence =
true;
49715 Main.dust[
num65].noGravity =
true;
49716 }
49717 base.Center = Main.player[
owner].Center;
49719 if (Main.myPlayer ==
owner)
49720 {
49722 }
49723 }
49725 {
49726 velocity.X +=
num55;
49728 {
49729 velocity.X +=
num55;
49730 }
49731 }
49733 {
49734 velocity.X -=
num55;
49736 {
49737 velocity.X -=
num55;
49738 }
49739 }
49741 {
49742 velocity.Y +=
num55;
49744 {
49745 velocity.Y +=
num55;
49746 }
49747 }
49749 {
49750 velocity.Y -=
num55;
49752 {
49753 velocity.Y -=
num55;
49754 }
49755 }
49760 {
49763 {
49764 return;
49765 }
49768 {
49770 {
49772 }
49774 {
49776 }
49777 }
49778 else
49779 {
49781 {
49783 }
49785 {
49787 }
49788 }
49789 }
49790 else
49791 {
49794 {
49797 }
49799 {
49801 }
49803 {
49805 }
49806 }
49807 return;
49808 }
49810 {
49812 float num66 = 0.15f;
49823 float num73 = 2000f;
49826 {
49827 velocity.Y = -6f;
49828 }
49830 {
49833 {
49835 }
49837 }
49838 else
49839 {
49841 {
49844 }
49848 }
49850 {
49853 {
49855 }
49856 for (
int n = 0;
n < 12;
n++)
49857 {
49858 float speedX5 = 1f - Main.rand.NextFloat() * 2f;
49859 float speedY5 = 1f - Main.rand.NextFloat() * 2f;
49861 Main.dust[
num76].noLightEmittence =
true;
49862 Main.dust[
num76].noGravity =
true;
49863 }
49864 base.Center =
player3.Center;
49866 if (Main.myPlayer ==
owner)
49867 {
49869 }
49870 }
49872 {
49873 velocity.X +=
num66;
49875 {
49876 velocity.X +=
num66;
49877 }
49878 }
49880 {
49881 velocity.X -=
num66;
49883 {
49884 velocity.X -=
num66;
49885 }
49886 }
49888 {
49889 velocity.Y +=
num66;
49891 {
49892 velocity.Y +=
num66;
49893 }
49894 }
49896 {
49897 velocity.Y -=
num66;
49899 {
49900 velocity.Y -=
num66;
49901 }
49902 }
49907 {
49909 if (
rotation > (
float)Math.PI * 2f)
49910 {
49912 }
49916 {
49918 }
49920 {
49923 {
49925 }
49926 }
49927 return;
49928 }
49931 {
49933 }
49936 {
49938 {
49939 case 10:
49941 break;
49942 case 20:
49944 break;
49945 case 30:
49947 break;
49948 case 40:
49950 break;
49951 }
49952 }
49954 {
49957 {
49959 }
49960 }
49962 {
49965 {
49967 }
49968 }
49970 {
49972 }
49973 return;
49974 }
49976 if (flag)
49977 {
49979 }
49981 {
49984 {
49986 }
49988 {
49990 }
49992 {
49993 case 816:
49994 case 825:
49995 case 854:
49996 case 858:
49997 case 859:
49998 case 860:
49999 case 881:
50000 case 884:
50001 case 890:
50002 case 891:
50003 case 897:
50004 case 900:
50005 case 934:
50007 break;
50008 case 821:
50009 case 899:
50011 break;
50012 }
50014 {
50017 {
50019 }
50021 {
50023 }
50025 {
50027 }
50028 }
50029 if (Main.player[
owner].rocketDelay2 > 0)
50030 {
50032 }
50038 {
50040 {
50041 position.X = Main.player[
owner].position.X + (float)(Main.player[
owner].width / 2) - (float)(
width / 2);
50042 position.Y = Main.player[
owner].position.Y + (float)(Main.player[
owner].height / 2) - (float)(
height / 2);
50043 }
50045 {
50047 {
50049 {
50050 velocity.Y = 0f;
50051 }
50053 {
50054 velocity.Y = 0f;
50055 }
50056 }
50058 }
50059 }
50060 }
50061 if ((
type == 209 ||
type == 956) &&
ai[0] != 0f)
50062 {
50063 if (Main.player[
owner].velocity.Y == 0f &&
alpha >= 100)
50064 {
50065 position.X = Main.player[
owner].position.X + (float)(Main.player[
owner].width / 2) - (float)(
width / 2);
50066 position.Y = Main.player[
owner].position.Y + (float)Main.player[
owner].height - (
float)
height;
50068 }
50069 else
50070 {
50071 velocity.X = 0f;
50072 velocity.Y = 0f;
50074 {
50076 Main.dust[
num82].velocity.X += Main.rand.NextFloat() - 0.5f;
50077 Main.dust[
num82].velocity.Y += (Main.rand.NextFloat() + 0.5f) * -1f;
50078 if (Main.rand.Next(3) != 0)
50079 {
50080 Main.dust[
num82].noGravity =
true;
50081 }
50082 }
50085 {
50087 }
50088 }
50089 }
50090 else if (
ai[0] != 0f && !
flag7)
50091 {
50092 float num83 = 0.2f;
50095 {
50097 }
50099 {
50102 }
50104 {
50107 }
50112 {
50113 num85 -= (float)(40 * Main.player[
owner].direction);
50114 float num86 = 700f;
50116 {
50118 }
50122 {
50123 if (!Main.npc[
num88].CanBeChasedBy(
this))
50124 {
50125 continue;
50126 }
50127 float num89 = Main.npc[
num88].position.X + (float)(Main.npc[
num88].width / 2);
50128 float num90 = Main.npc[
num88].position.Y + (float)(Main.npc[
num88].height / 2);
50130 {
50132 {
50134 }
50136 break;
50137 }
50138 }
50140 {
50142 }
50144 {
50146 }
50147 }
50150 {
50152 }
50158 {
50160 }
50162 {
50164 }
50166 {
50169 }
50171 {
50173 }
50175 {
50179 {
50181 }
50183 {
50185 }
50186 }
50188 {
50190 }
50192 {
50195 {
50196 velocity.Y = -6f;
50197 }
50198 }
50200 {
50203 }
50204 else
50205 {
50209 }
50211 {
50213 {
50215 {
50217 }
50219 {
50221 }
50222 }
50223 else if (
num95 > 600f)
50224 {
50226 {
50228 }
50230 {
50232 }
50233 }
50234 else if (
num95 > 400f)
50235 {
50237 {
50239 }
50241 {
50243 }
50244 }
50245 else
50246 {
50248 {
50250 }
50252 {
50254 }
50255 }
50256 velocity.X = (velocity.X * 34f +
num85) / 35f;
50257 velocity.Y = (velocity.Y * 34f +
num91) / 35f;
50258 }
50259 else if (
type == 875)
50260 {
50262 {
50264 {
50265 velocity.X +=
num83;
50266 }
50268 {
50269 velocity.X -=
num83;
50270 }
50272 {
50273 velocity.Y +=
num83;
50274 }
50276 {
50277 velocity.Y -=
num83;
50278 }
50279 }
50280 else
50281 {
50283 }
50284 }
50285 else
50286 {
50288 {
50289 velocity.X +=
num83;
50291 {
50292 velocity.X +=
num83 * 1.5f;
50293 }
50294 }
50296 {
50297 velocity.X -=
num83;
50299 {
50300 velocity.X -=
num83 * 1.5f;
50301 }
50302 }
50304 {
50305 velocity.Y +=
num83;
50307 {
50308 velocity.Y +=
num83 * 1.5f;
50309 }
50310 }
50312 {
50313 velocity.Y -=
num83;
50315 {
50316 velocity.Y -=
num83 * 1.5f;
50317 }
50318 }
50319 }
50321 {
50323 }
50325 {
50326 frame = Main.rand.Next(12, 18);
50328 }
50330 {
50331 if ((double)velocity.X > 0.5)
50332 {
50334 }
50335 else if ((double)velocity.X < -0.5)
50336 {
50338 }
50339 }
50341 {
50344 {
50347 }
50349 {
50353 {
50355 }
50356 }
50358 }
50359 else if (
type == 900)
50360 {
50363 {
50365 }
50368 {
50371 }
50373 {
50377 {
50379 }
50380 }
50382 }
50383 else if (
type == 899)
50384 {
50387 {
50389 }
50392 {
50395 }
50397 {
50401 {
50403 }
50404 }
50409 {
50411 }
50412 }
50413 else if (
type == 897)
50414 {
50418 {
50421 }
50423 {
50427 {
50429 }
50430 }
50434 }
50435 else if (
type == 891)
50436 {
50440 {
50443 }
50445 {
50449 {
50451 }
50452 }
50456 }
50457 else if (
type == 890)
50458 {
50461 {
50463 }
50466 {
50469 }
50471 {
50475 {
50477 }
50478 }
50480 }
50481 else if (
type == 884)
50482 {
50485 {
50487 }
50490 {
50493 }
50495 {
50499 {
50501 }
50502 }
50506 }
50507 else if (
type == 881 ||
type == 934)
50508 {
50511 {
50513 }
50515 {
50517 }
50520 {
50523 }
50525 {
50527 }
50531 }
50532 else if (
type == 875)
50533 {
50535 {
50538 }
50540 {
50542 }
50546 }
50547 else if (
type == 825)
50548 {
50550 {
50553 }
50555 {
50557 }
50559 }
50560 else if (
type == 854)
50561 {
50563 {
50565 }
50567 {
50570 }
50572 {
50574 }
50578 }
50579 else if (
type == 858)
50580 {
50582 {
50585 }
50587 {
50589 }
50593 }
50594 else if (
type == 859)
50595 {
50597 {
50600 }
50602 {
50604 }
50606 }
50607 else if (
type == 860)
50608 {
50610 {
50613 }
50615 {
50618 }
50620 {
50622 }
50626 }
50627 else if (
type == 816)
50628 {
50630 {
50633 }
50635 {
50637 }
50639 }
50640 else if (
type == 821)
50641 {
50643 {
50646 }
50648 {
50650 }
50652 }
50653 else if (
type == 958)
50654 {
50657 {
50659 }
50661 {
50664 }
50666 {
50669 }
50671 {
50673 }
50675 }
50676 else if (
type == 960)
50677 {
50680 {
50682 }
50688 }
50689 else if (
type == 959)
50690 {
50693 {
50695 }
50700 if (
num97 > 0f && Main.rand.NextFloat() < 0.3f +
num97 * 0.3f)
50701 {
50703 dust.noGravity = true;
50704 dust.fadeIn = 1f;
50705 dust.velocity.X = velocity.X * 0.3f;
50706 dust.position = base.Top +
new Vector2(0f, -10f) +
new Vector2(Main.rand.NextFloatDirection() * 30f, Main.rand.NextFloatDirection() * 10f);
50707 dust.velocity *= 0.7f;
50708 dust.position += dust.velocity * 2f;
50709 }
50710 }
50711 else if (
type == 994)
50712 {
50715 {
50717 }
50720 {
50723 }
50725 {
50727 }
50729 }
50730 else if (
type == 998)
50731 {
50734 {
50736 }
50739 {
50742 }
50744 {
50746 }
50748 }
50749 else if (
type == 1003)
50750 {
50753 {
50755 }
50758 {
50761 }
50763 {
50765 }
50767 }
50768 else if (
type == 1004)
50769 {
50772 {
50774 }
50777 {
50780 }
50782 {
50784 }
50786 }
50787 else if (
type == 112)
50788 {
50790 {
50792 }
50793 else
50794 {
50796 }
50797 }
50798 else if (
type >= 390 &&
type <= 392)
50799 {
50800 int num98 = (int)(
base.Center.X / 16f);
50801 int num99 = (int)(
base.Center.Y / 16f);
50803 {
50807 {
50810 }
50812 {
50814 }
50816 {
50818 }
50819 }
50820 else
50821 {
50824 {
50827 }
50829 {
50831 }
50833 }
50834 }
50835 else if (
type == 334)
50836 {
50839 {
50842 }
50844 {
50846 }
50848 }
50849 else if (
type == 353)
50850 {
50853 {
50856 }
50858 {
50860 }
50862 }
50863 else if (
type == 127)
50864 {
50867 {
50870 }
50872 {
50874 }
50876 }
50877 else if (
type == 269)
50878 {
50880 {
50882 }
50884 {
50887 }
50888 else
50889 {
50892 {
50895 }
50896 }
50898 }
50899 else if (
type == 266)
50900 {
50903 {
50906 }
50908 {
50910 }
50912 }
50913 else if (
type == 324)
50914 {
50917 {
50920 }
50922 {
50924 }
50926 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.9f, 0.6f, 0.2f);
50928 {
50931 Main.dust[
num102].scale *= 1.8f + (float)Main.rand.Next(10) * 0.1f;
50932 Main.dust[
num102].velocity *= 0.2f;
50934 {
50936 }
50937 Main.dust[
num102].noGravity =
true;
50939 Main.dust[
num102].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f;
50940 Main.dust[
num102].velocity *= 0.05f;
50942 {
50944 }
50945 }
50946 }
50947 else if (
type == 268)
50948 {
50951 {
50954 }
50956 {
50958 }
50960 }
50961 else if (
type == 200)
50962 {
50965 {
50968 }
50970 {
50972 }
50974 }
50975 else if (
type == 208)
50976 {
50980 {
50983 }
50985 {
50987 }
50989 {
50991 }
50992 }
50993 else if (
type == 236)
50994 {
50997 {
50999 }
51000 else
51001 {
51003 }
51005 {
51008 }
51010 {
51012 }
51014 {
51016 }
51017 }
51018 else if (
type == 499)
51019 {
51022 {
51024 }
51025 else
51026 {
51028 }
51030 {
51033 }
51035 {
51037 }
51039 {
51041 }
51042 }
51043 else if (
type == 765)
51044 {
51048 {
51051 }
51053 {
51055 }
51057 {
51059 }
51060 }
51061 else if (
type == 314)
51062 {
51066 {
51069 }
51071 {
51073 }
51075 {
51077 }
51078 }
51079 else if (
type == 319)
51080 {
51084 {
51087 }
51089 {
51091 }
51093 {
51095 }
51096 }
51097 else if (
type == 210)
51098 {
51102 {
51105 }
51107 {
51109 }
51111 {
51113 }
51114 }
51115 else if (
type == 313)
51116 {
51120 position.X +=
width / 2;
51122 position.X -=
width / 2;
51126 }
51127 else if (
type == 398)
51128 {
51129 if ((double)velocity.X > 0.5)
51130 {
51132 }
51133 else if ((double)velocity.X < -0.5)
51134 {
51136 }
51139 {
51142 }
51144 {
51146 }
51148 }
51150 {
51152 }
51153 else
51154 {
51156 }
51158 {
51160 {
51162 if (Main.rand.Next(4) == 0)
51163 {
51165 }
51167 Main.dust[
num104].velocity.X = Main.dust[
num104].velocity.X * 0.2f;
51168 Main.dust[
num104].velocity.Y = Main.dust[
num104].velocity.Y * 0.2f - 0.2f;
51169 Main.dust[
num104].noGravity =
true;
51170 }
51171 else if (
type == 897)
51172 {
51174 if (Main.rand.Next(4) == 0)
51175 {
51177 }
51179 Main.dust[
num106].velocity.X = Main.dust[
num106].velocity.X * 0.2f;
51180 Main.dust[
num106].velocity.Y = Main.dust[
num106].velocity.Y * 0.2f - 0.2f;
51181 Main.dust[
num106].noGravity =
true;
51182 }
51183 else if (
type == 875)
51184 {
51185 if (Main.rand.Next(3) == 0)
51186 {
51187 Gore.NewGorePerfect(
base.Center +
new Vector2(-10f + (
float)Main.rand.Next(-20, 20) * 0.5f, -10f + (float)Main.rand.Next(-20, 20) * 0.5f),
velocity * 0.1f, 1225, 0.5f + Main.rand.NextFloat() * 1f);
51191 Main.dust[
num107].noGravity =
true;
51192 }
51193 }
51194 else if (
type == 860)
51195 {
51197 Main.dust[
num108].velocity.X = Main.dust[
num108].velocity.X * 0.2f;
51198 Main.dust[
num108].velocity.Y = Main.dust[
num108].velocity.Y * 0.2f - 0.2f;
51199 Main.dust[
num108].velocity +=
new Vector2((
float)Main.rand.Next(-10, 10) * 0.4f, (
float)Main.rand.Next(-10, 10) * 0.4f) * 0.5f;
51200 Main.dust[
num108].noGravity =
true;
51201 }
51202 else if (
type == 858)
51203 {
51205 if (Main.rand.Next(4) == 0)
51206 {
51208 }
51210 Main.dust[
num110].velocity.X = Main.dust[
num110].velocity.X * 0.2f;
51211 Main.dust[
num110].velocity.Y = Main.dust[
num110].velocity.Y * 0.2f - 0.2f;
51212 Main.dust[
num110].noGravity =
true;
51213 }
51214 else if (
type == 112)
51215 {
51217 if (Main.rand.Next(4) == 0)
51218 {
51220 }
51221 int num112 = Dust.NewDust(
base.Center +
new Vector2(12 *
spriteDirection, 4f).RotatedBy(
rotation) +
new Vector2(-5f, -5f), 10, 10,
num111, (0f -
velocity.
X) * 0.5f,
velocity.
Y * 0.5f, 0,
default(
Color), 1.3f);
51222 Main.dust[
num112].velocity.X = Main.dust[
num112].velocity.X * 0.2f;
51223 Main.dust[
num112].velocity.Y = Main.dust[
num112].velocity.Y * 0.2f - 0.2f;
51224 Main.dust[
num112].noGravity =
true;
51225 }
51226 else if (
type == 854)
51227 {
51228 if (Main.rand.Next(6) == 0)
51229 {
51235 {
51236 Gore gore = Gore.NewGorePerfect(
base.Center +
new Vector2((
float)Main.rand.Next(-30, 30) * 0.5f, (
float)Main.rand.Next(-30, 30) * 0.5f),
velocity * -0.2f, 910);
51237 gore.Frame.CurrentColumn = 0;
51238 gore.timeLeft = 1;
51239 }
51240 }
51241 }
51243 {
51245 Main.dust[
num114].velocity.X = Main.dust[
num114].velocity.X * 0.2f;
51246 Main.dust[
num114].velocity.Y = Main.dust[
num114].velocity.Y * 0.2f;
51247 Main.dust[
num114].noGravity =
true;
51248 }
51249 }
51250 }
51251 else
51252 {
51254 {
51260 {
51262 }
51264 {
51266 }
51267 else
51268 {
51277 {
51282 {
51284 {
51288 }
51290 {
51295 }
51296 }
51297 }
51299 {
51301 {
51302 if (!Main.npc[
num127].CanBeChasedBy(
this))
51303 {
51304 continue;
51305 }
51310 {
51312 {
51316 }
51318 {
51323 }
51324 }
51325 }
51326 }
51328 {
51330 }
51332 if ((double)position.Y > Main.worldSurface * 16.0)
51333 {
51335 }
51337 {
51340 {
51343 }
51345 {
51348 }
51349 }
51351 {
51355 {
51357 {
51360 }
51362 {
51365 }
51366 }
51367 else if (
owner == Main.myPlayer)
51368 {
51371 float num134 =
num118 - vector11.X + (float)Main.rand.Next(-20, 21);
51373 num135 =
num135 * (float)Main.rand.Next(0, 100) * 0.001f;
51382 Main.projectile[
num140].timeLeft = 300;
51384 {
51386 }
51388 {
51390 }
51392 }
51393 }
51394 }
51395 }
51400 {
51405 {
51407 }
51409 {
51411 }
51412 else
51413 {
51421 {
51426 {
51428 {
51432 }
51434 {
51439 }
51440 }
51441 }
51443 {
51445 {
51446 if (!Main.npc[
num149].CanBeChasedBy(
this))
51447 {
51448 continue;
51449 }
51454 {
51456 {
51460 }
51462 {
51467 }
51468 }
51469 }
51470 }
51472 {
51474 }
51476 {
51478 }
51480 {
51484 {
51486 {
51490 {
51492 }
51493 }
51499 value.Width +=
num155 * 2;
51500 value.Height +=
num155 * 2;
51502 {
51506 {
51507 velocity.Y *= 0.5f;
51508 }
51510 {
51511 velocity.Y *= 0.5f;
51512 }
51514 {
51515 velocity.X *= 0.5f;
51516 }
51518 {
51519 velocity.X *= 0.5f;
51520 }
51522 {
51525 }
51529 {
51531 {
51533 if (
base.Center.Y > Main.projectile[
num156].Center.Y)
51534 {
51537 }
51538 else
51539 {
51542 }
51543 if (
base.Center.X > Main.projectile[
num156].Center.X)
51544 {
51547 }
51548 else
51549 {
51552 }
51553 }
51554 }
51555 }
51556 }
51557 }
51559 if ((double)position.Y > Main.worldSurface * 16.0)
51560 {
51562 }
51564 {
51566 if ((double)position.Y > Main.worldSurface * 16.0)
51567 {
51569 }
51570 }
51572 {
51575 {
51578 }
51580 {
51583 }
51584 }
51587 {
51590 }
51592 {
51597 {
51600 }
51602 {
51605 }
51607 {
51610 {
51611 velocity.Y = -10f;
51612 }
51614 {
51615 velocity.Y = -13f;
51616 }
51618 {
51619 velocity.Y = -15f;
51620 }
51622 {
51623 velocity.Y = -17f;
51624 }
51626 {
51627 velocity.Y = -18f;
51628 }
51629 }
51631 {
51634 {
51636 }
51638 {
51640 }
51641 }
51642 }
51643 else
51644 {
51646 }
51647 }
51648 }
51650 {
51653 }
51655 {
51657 }
51658 else if (
type >= 390 &&
type <= 392)
51659 {
51663 {
51665 }
51666 }
51668 {
51670 {
51672 }
51674 {
51676 }
51677 else
51678 {
51680 }
51681 }
51683 {
51685 }
51687 {
51689 }
51693 {
51696 }
51698 {
51701 }
51703 {
51706 }
51708 {
51711 }
51713 {
51716 }
51718 {
51721 }
51723 {
51727 {
51730 }
51732 {
51734 }
51735 }
51737 {
51741 {
51744 }
51745 }
51747 {
51749 }
51751 {
51753 }
51755 {
51756 if ((double)velocity.X > -3.5)
51757 {
51759 }
51760 else
51761 {
51762 velocity.X -=
num164 * 0.25f;
51763 }
51764 }
51766 {
51767 if ((double)velocity.X < 3.5)
51768 {
51770 }
51771 else
51772 {
51773 velocity.X +=
num164 * 0.25f;
51774 }
51775 }
51776 else
51777 {
51778 velocity.X *= 0.9f;
51780 {
51781 velocity.X = 0f;
51782 }
51783 }
51785 {
51786 velocity.X *= 0.95f;
51787 if ((
double)velocity.X > -0.1 && (double)
velocity.
X < 0.1)
51788 {
51789 velocity.X = 0f;
51790 }
51793 }
51795 {
51799 {
51801 }
51803 {
51805 }
51807 {
51809 }
51812 {
51814 }
51815 }
51817 {
51819 }
51821 {
51823 }
51825 {
51827 }
51829 {
51831 }
51834 {
51836 {
51840 {
51842 }
51844 {
51846 }
51848 }
51850 {
51854 {
51856 {
51857 velocity.Y = -3.1f;
51858 }
51859 else
51860 {
51861 try
51862 {
51866 {
51868 }
51870 {
51872 }
51875 {
51876 velocity.Y = -5.1f;
51877 }
51879 {
51880 velocity.Y = -7.1f;
51881 }
51883 {
51884 velocity.Y = -11.1f;
51885 }
51887 {
51888 velocity.Y = -10.1f;
51889 }
51890 else
51891 {
51892 velocity.Y = -9.1f;
51893 }
51894 }
51895 catch
51896 {
51897 velocity.Y = -9.1f;
51898 }
51899 }
51901 {
51903 }
51904 }
51905 }
51907 {
51908 velocity.Y -= 6f;
51909 }
51910 }
51912 {
51914 }
51916 {
51917 velocity.X = 0f -
num165;
51918 }
51920 {
51922 }
51924 {
51926 }
51928 {
51930 }
51932 {
51934 }
51936 {
51938 {
51940 }
51942 {
51944 }
51945 }
51947 {
51949 }
51950 bool flag16 = position.X - oldPosition.X == 0f;
51952 {
51954 {
51956 Main.dust[
num170].velocity.X += Main.rand.NextFloat() - 0.5f;
51957 Main.dust[
num170].velocity.Y += (Main.rand.NextFloat() + 0.5f) * -1f;
51958 if (Main.rand.Next(3) != 0)
51959 {
51960 Main.dust[
num170].noGravity =
true;
51961 }
51964 {
51966 }
51967 }
51969 {
51971 }
51973 {
51975 if (Main.player[
owner].Center.X <
base.Center.X)
51976 {
51978 }
51980 }
51981 else
51982 {
51986 {
51989 }
51991 {
51993 }
51994 }
51995 velocity.Y += 0.4f;
51997 {
51998 velocity.Y = 10f;
51999 }
52000 }
52001 else if (
type == 958)
52002 {
52004 {
52007 }
52009 {
52011 if (Main.player[
owner].Center.X <
base.Center.X)
52012 {
52014 }
52017 {
52020 {
52022 localAI[0] = Main.rand.Next(100);
52023 }
52024 }
52025 else
52026 {
52028 }
52029 }
52030 else
52031 {
52036 {
52039 }
52041 {
52043 }
52044 }
52045 velocity.Y += 0.4f;
52047 {
52048 velocity.Y = 10f;
52049 }
52050 }
52051 else if (
type == 959)
52052 {
52054 {
52055 frame = ((velocity.Y > 0f) ? 10 : 9);
52056 }
52058 {
52060 if (Main.player[
owner].Center.X <
base.Center.X)
52061 {
52063 }
52065 }
52066 else
52067 {
52071 {
52074 }
52076 {
52078 }
52079 }
52080 velocity.Y += 0.4f;
52082 {
52083 velocity.Y = 10f;
52084 }
52085 }
52086 else if (
type == 998)
52087 {
52089 {
52091 }
52093 {
52095 if (Main.player[
owner].Center.X <
base.Center.X)
52096 {
52098 }
52100 }
52101 else
52102 {
52106 {
52109 }
52111 {
52113 }
52114 }
52115 velocity.Y += 0.4f;
52117 {
52118 velocity.Y = 10f;
52119 }
52120 }
52121 else if (
type == 1003)
52122 {
52124 {
52126 }
52128 {
52130 if (Main.player[
owner].Center.X <
base.Center.X)
52131 {
52133 }
52135 }
52136 else
52137 {
52141 {
52144 }
52146 {
52148 }
52149 }
52150 velocity.Y += 0.4f;
52152 {
52153 velocity.Y = 10f;
52154 }
52155 }
52156 else if (
type == 1004)
52157 {
52159 {
52161 }
52163 {
52165 if (Main.player[
owner].Center.X <
base.Center.X)
52166 {
52168 }
52170 }
52171 else
52172 {
52176 {
52179 }
52181 {
52183 }
52184 }
52185 velocity.Y += 0.4f;
52187 {
52188 velocity.Y = 10f;
52189 }
52190 }
52191 else if (
type == 994)
52192 {
52194 {
52196 }
52198 {
52200 if (Main.player[
owner].Center.X <
base.Center.X)
52201 {
52203 }
52206 {
52209 }
52211 {
52213 }
52214 }
52215 else
52216 {
52220 {
52223 }
52225 {
52227 }
52228 }
52229 velocity.Y += 0.4f;
52231 {
52232 velocity.Y = 10f;
52233 }
52234 }
52235 else if (
type == 960)
52236 {
52239 {
52244 }
52246 {
52248 {
52250 if (Main.player[
owner].Center.X <
base.Center.X)
52251 {
52253 }
52254 }
52256 {
52259 {
52262 }
52264 {
52266 }
52267 }
52269 {
52271 {
52273 {
52276 }
52280 {
52284 }
52285 }
52286 else
52287 {
52290 {
52293 {
52295 }
52297 }
52298 }
52299 }
52300 else
52301 {
52304 {
52307 }
52309 {
52313 {
52316 }
52317 }
52318 else
52319 {
52322 {
52324 }
52326 }
52327 }
52328 }
52329 else
52330 {
52336 {
52339 }
52341 {
52343 }
52344 }
52345 velocity.Y += 0.4f;
52347 {
52348 velocity.Y = 10f;
52349 }
52350 }
52351 else if (
type == 816)
52352 {
52354 {
52356 }
52358 {
52360 if (Main.player[
owner].Center.X <
base.Center.X)
52361 {
52363 }
52365 {
52368 }
52370 {
52372 }
52373 }
52374 else
52375 {
52379 {
52381 }
52383 {
52385 }
52387 {
52390 }
52392 {
52394 }
52395 }
52396 velocity.Y += 0.4f;
52398 {
52399 velocity.Y = 10f;
52400 }
52401 }
52403 {
52405 {
52408 {
52411 }
52413 {
52416 }
52417 }
52419 {
52421 {
52424 {
52428 {
52430 }
52431 }
52434 {
52436 }
52438 {
52440 {
52442 Main.gore[
num181].velocity =
new Vector2((
float)Main.rand.Next(1, 10) * 0.3f * (
float)(-
spriteDirection), 0f - (2f + (
float)Main.rand.Next(4) * 0.3f));
52443 }
52444 }
52445 }
52446 else if (
frame == 0)
52447 {
52451 }
52452 else
52453 {
52456 {
52459 }
52461 {
52464 }
52465 }
52466 }
52467 velocity.Y += 0.4f;
52469 {
52470 velocity.Y = 10f;
52471 }
52472 }
52474 {
52476 {
52478 }
52480 {
52482 if (Main.player[
owner].Center.X <
base.Center.X)
52483 {
52485 }
52487 {
52489 {
52492 }
52493 }
52494 else if (
frame > 3)
52495 {
52498 }
52499 else
52500 {
52502 {
52505 }
52507 {
52509 }
52510 }
52511 }
52512 else
52513 {
52517 {
52519 }
52521 {
52523 }
52526 {
52529 }
52531 {
52533 }
52534 }
52535 velocity.Y += 0.4f;
52537 {
52538 velocity.Y = 10f;
52539 }
52540 }
52541 else if (
type == 858)
52542 {
52544 {
52546 }
52548 {
52550 if (Main.player[
owner].Center.X <
base.Center.X)
52551 {
52553 }
52555 }
52556 else
52557 {
52561 {
52564 }
52566 {
52568 }
52569 }
52570 velocity.Y += 0.4f;
52572 {
52573 velocity.Y = 10f;
52574 }
52575 }
52576 else if (
type == 900)
52577 {
52580 {
52583 }
52585 {
52587 if (Main.player[
owner].Center.X <
base.Center.X)
52588 {
52590 }
52593 }
52594 else
52595 {
52598 {
52601 }
52603 {
52606 }
52608 {
52610 }
52611 }
52612 velocity.Y += 0.4f;
52614 {
52615 velocity.Y = 10f;
52616 }
52617 }
52618 else if (
type == 899)
52619 {
52622 {
52625 }
52627 {
52629 if (Main.player[
owner].Center.X <
base.Center.X)
52630 {
52632 }
52635 }
52636 else
52637 {
52640 {
52643 }
52645 {
52648 }
52650 {
52652 }
52653 }
52654 velocity.Y += 0.4f;
52656 {
52657 velocity.Y = 10f;
52658 }
52659 }
52660 else if (
type == 897)
52661 {
52664 {
52667 }
52669 {
52671 if (Main.player[
owner].Center.X <
base.Center.X)
52672 {
52674 }
52677 }
52678 else
52679 {
52682 {
52685 }
52687 {
52690 }
52692 {
52694 }
52695 }
52696 velocity.Y += 0.4f;
52698 {
52699 velocity.Y = 10f;
52700 }
52701 }
52702 else if (
type == 891)
52703 {
52706 {
52709 }
52711 {
52715 }
52716 else
52717 {
52720 {
52723 }
52725 {
52728 }
52730 {
52732 }
52733 }
52734 velocity.Y += 0.4f;
52736 {
52737 velocity.Y = 10f;
52738 }
52739 }
52740 else if (
type == 890)
52741 {
52744 {
52747 }
52749 {
52751 if (Main.player[
owner].Center.X <
base.Center.X)
52752 {
52754 }
52757 }
52758 else
52759 {
52762 {
52765 }
52767 {
52770 }
52772 {
52774 }
52775 }
52776 velocity.Y += 0.4f;
52778 {
52779 velocity.Y = 10f;
52780 }
52781 }
52782 else if (
type == 884)
52783 {
52786 {
52788 {
52790 }
52791 else
52792 {
52794 }
52796 }
52798 {
52800 if (Main.player[
owner].Center.X <
base.Center.X)
52801 {
52803 }
52806 }
52807 else
52808 {
52811 {
52814 }
52816 {
52818 }
52819 }
52820 velocity.Y += 0.4f;
52822 {
52823 velocity.Y = 10f;
52824 }
52825 }
52826 else if (
type == 881 ||
type == 934)
52827 {
52829 if (Main.player[
owner].Center.X <
base.Center.X)
52830 {
52832 }
52834 {
52837 {
52840 {
52842 }
52844 }
52845 }
52847 {
52850 {
52853 {
52855 }
52857 }
52858 }
52859 else if (
frame == 0)
52860 {
52862 }
52864 {
52867 {
52869 }
52871 }
52872 if (
wet && Main.player[
owner].position.Y + (
float)Main.player[
owner].height < position.Y + (float)
height &&
localAI[0] == 0f)
52873 {
52875 {
52876 velocity.Y -= 0.2f;
52877 }
52879 {
52880 velocity.Y *= 0.95f;
52881 }
52882 }
52883 else
52884 {
52885 velocity.Y += 0.4f;
52886 }
52888 {
52889 velocity.Y = 10f;
52890 }
52891 }
52892 else if (
type == 875)
52893 {
52895 {
52897 {
52899 }
52900 else
52901 {
52903 }
52905 }
52907 {
52909 if (Main.player[
owner].Center.X <
base.Center.X)
52910 {
52912 }
52915 }
52916 else
52917 {
52920 {
52923 }
52925 {
52927 }
52928 }
52929 velocity.Y += 0.4f;
52931 {
52932 velocity.Y = 10f;
52933 }
52934 }
52935 else if (
type == 854)
52936 {
52938 {
52940 }
52942 {
52944 if (Main.player[
owner].Center.X <
base.Center.X)
52945 {
52947 }
52949 {
52952 }
52954 {
52956 }
52957 }
52958 else
52959 {
52963 {
52965 }
52967 {
52969 }
52971 {
52974 }
52976 {
52978 }
52979 }
52980 velocity.Y += 0.4f;
52982 {
52983 velocity.Y = 10f;
52984 }
52985 }
52986 else if (
type == 825)
52987 {
52989 {
52992 }
52994 {
52996 if (Main.player[
owner].Center.X <
base.Center.X)
52997 {
52999 }
53001 {
53004 {
53007 }
53009 {
53011 }
53012 }
53014 {
53017 {
53020 }
53022 {
53024 }
53025 }
53026 else
53027 {
53029 {
53031 {
53034 }
53036 {
53038 }
53039 }
53041 {
53043 }
53044 else
53045 {
53047 }
53049 {
53051 if (
localAI[0] > 300f && Main.rand.Next(50) == 0)
53052 {
53053 switch (Main.rand.Next(2))
53054 {
53055 case 0:
53057 break;
53058 case 1:
53060 break;
53061 }
53062 }
53063 }
53064 }
53065 }
53066 else
53067 {
53072 {
53074 }
53076 {
53078 }
53080 {
53083 }
53085 {
53087 }
53089 {
53091 }
53092 }
53093 velocity.Y += 0.4f;
53095 {
53096 velocity.Y = 10f;
53097 }
53098 }
53099 else if (
type == 821)
53100 {
53102 {
53105 }
53107 {
53109 if (Main.player[
owner].Center.X <
base.Center.X)
53110 {
53112 }
53115 {
53118 {
53120 }
53122 {
53125 }
53127 {
53129 }
53131 {
53134 }
53135 }
53136 else
53137 {
53139 {
53142 }
53144 {
53146 }
53147 }
53148 }
53149 else
53150 {
53155 {
53157 }
53159 {
53161 }
53163 {
53166 {
53168 }
53170 }
53172 {
53174 }
53175 }
53176 velocity.Y += 0.4f;
53178 {
53179 velocity.Y = 10f;
53180 }
53181 }
53183 {
53185 {
53187 {
53190 }
53192 {
53195 {
53198 }
53200 {
53202 }
53203 }
53204 }
53206 {
53209 {
53212 }
53213 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53214 {
53218 {
53221 }
53223 {
53225 }
53227 {
53229 }
53230 }
53231 else
53232 {
53235 }
53236 }
53238 {
53241 }
53243 {
53246 }
53247 velocity.Y += 0.4f;
53249 {
53250 velocity.Y = 10f;
53251 }
53253 }
53254 else if (
type == 268)
53255 {
53257 {
53259 {
53261 }
53263 {
53267 {
53269 }
53271 {
53273 }
53275 {
53277 }
53279 {
53281 }
53282 else
53283 {
53285 }
53286 }
53287 else
53288 {
53289 velocity.X *= 0.8f;
53293 {
53295 }
53297 {
53299 }
53301 {
53303 }
53305 {
53307 }
53309 {
53310 velocity.X *= 2f;
53312 velocity.Y = -6.1f;
53315 {
53318 Main.dust[
num195].velocity *= 0.4f;
53319 }
53320 }
53321 else
53322 {
53324 }
53325 }
53326 }
53328 {
53331 }
53332 else
53333 {
53336 }
53337 velocity.Y += 0.4f;
53339 {
53340 velocity.Y = 10f;
53341 }
53342 }
53343 else if (
type == 269)
53344 {
53345 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53346 {
53348 {
53351 }
53352 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53353 {
53355 Main.dust[
num196].noGravity =
true;
53356 Main.dust[
num196].velocity *= 0.3f;
53357 Main.dust[
num196].noLight =
true;
53361 {
53364 }
53366 {
53368 }
53369 }
53370 else
53371 {
53374 }
53375 }
53376 else
53377 {
53380 }
53381 velocity.Y += 0.4f;
53383 {
53384 velocity.Y = 10f;
53385 }
53386 }
53387 else if (
type == 313)
53388 {
53389 int i3 = (int)(
base.Center.X / 16f);
53396 {
53398 }
53400 {
53402 }
53404 {
53406 }
53408 {
53412 position.X +=
width / 2;
53414 position.X -=
width / 2;
53423 {
53424 velocity.X *= 0.9f;
53425 velocity.Y *= 0.9f;
53427 {
53429 }
53430 }
53431 else
53432 {
53433 velocity.X = (velocity.X * 9f +
num199) / 10f;
53434 velocity.Y = (velocity.Y * 9f +
num200) / 10f;
53435 }
53437 {
53440 }
53443 {
53446 }
53448 {
53450 }
53452 {
53454 }
53455 }
53456 else
53457 {
53460 {
53462 }
53464 {
53466 }
53470 position.X +=
width / 2;
53472 position.X -=
width / 2;
53473 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53474 {
53476 {
53479 }
53480 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53481 {
53485 {
53488 }
53490 {
53492 }
53493 }
53494 else
53495 {
53498 }
53499 }
53500 else
53501 {
53504 }
53505 velocity.Y += 0.4f;
53507 {
53508 velocity.Y = 10f;
53509 }
53510 }
53511 }
53512 else if (
type >= 390 &&
type <= 392)
53513 {
53514 int i4 = (int)(
base.Center.X / 16f);
53521 {
53523 }
53525 {
53527 }
53529 {
53531 }
53533 {
53537 position.X +=
width / 2;
53539 position.X -=
width / 2;
53544 {
53547 }
53548 else if (!Collision.CanHitLine(
base.Center, 1, 1, Main.player[
owner].Center, 1, 1))
53549 {
53551 }
53553 {
53556 {
53558 }
53559 }
53560 else if (
v11.Length() < 800f || !
flag13)
53561 {
53563 }
53565 {
53568 }
53569 else
53570 {
53572 }
53575 {
53578 }
53580 {
53582 }
53584 {
53586 }
53587 }
53588 else
53589 {
53591 {
53593 }
53595 {
53597 }
53599 {
53601 }
53605 position.X +=
width / 2;
53607 position.X -=
width / 2;
53608 if (!
flag13 && !Collision.CanHitLine(
base.Center, 1, 1, Main.player[
owner].Center, 1, 1))
53609 {
53611 }
53613 {
53616 {
53618 }
53621 {
53623 {
53624 velocity.Y = -10f;
53625 }
53627 {
53628 velocity.Y = -13f;
53629 }
53631 {
53632 velocity.Y = -15f;
53633 }
53635 {
53636 velocity.Y = -17f;
53637 }
53639 {
53640 velocity.Y = -18f;
53641 }
53642 }
53643 }
53645 {
53648 {
53651 }
53653 {
53655 }
53657 {
53659 }
53660 }
53661 else if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53662 {
53664 {
53667 }
53668 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53669 {
53673 {
53676 }
53678 {
53680 }
53681 }
53682 else
53683 {
53686 }
53687 }
53688 else
53689 {
53692 }
53693 velocity.Y += 0.4f;
53695 {
53696 velocity.Y = 10f;
53697 }
53698 }
53699 }
53700 else if (
type == 314)
53701 {
53702 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53703 {
53705 {
53708 }
53709 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53710 {
53714 {
53717 }
53719 {
53721 }
53722 }
53723 else
53724 {
53727 }
53728 }
53729 else
53730 {
53733 }
53734 velocity.Y += 0.4f;
53736 {
53737 velocity.Y = 10f;
53738 }
53739 }
53740 else if (
type == 319)
53741 {
53742 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53743 {
53745 {
53748 }
53749 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53750 {
53754 {
53757 }
53759 {
53761 }
53762 }
53763 else
53764 {
53767 }
53768 }
53769 else
53770 {
53773 }
53774 velocity.Y += 0.4f;
53776 {
53777 velocity.Y = 10f;
53778 }
53779 }
53780 else if (
type == 236)
53781 {
53782 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53783 {
53785 {
53788 }
53789 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53790 {
53792 {
53794 }
53798 {
53801 }
53803 {
53805 }
53806 }
53807 else
53808 {
53811 }
53812 }
53813 else
53814 {
53817 }
53818 velocity.Y += 0.4f;
53820 {
53821 velocity.Y = 10f;
53822 }
53823 }
53824 else if (
type == 499)
53825 {
53826 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53827 {
53829 {
53832 }
53833 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53834 {
53836 {
53838 }
53842 {
53845 }
53847 {
53849 }
53850 }
53851 else
53852 {
53855 }
53856 }
53857 else
53858 {
53861 }
53862 velocity.Y += 0.4f;
53864 {
53865 velocity.Y = 10f;
53866 }
53867 }
53868 else if (
type == 765)
53869 {
53870 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53871 {
53873 {
53876 }
53877 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53878 {
53880 {
53882 }
53886 {
53889 }
53891 {
53893 }
53894 }
53895 else
53896 {
53899 }
53900 }
53901 else
53902 {
53905 }
53906 velocity.Y += 0.4f;
53908 {
53909 velocity.Y = 10f;
53910 }
53911 }
53912 else if (
type == 266)
53913 {
53914 if (
velocity.
Y >= 0f && (
double)velocity.Y <= 0.8)
53915 {
53917 {
53919 }
53920 else
53921 {
53923 }
53924 }
53925 else
53926 {
53928 }
53930 {
53933 }
53935 {
53937 }
53938 if (
wet && Main.player[
owner].position.Y + (
float)Main.player[
owner].height < position.Y + (float)
height &&
localAI[0] == 0f)
53939 {
53941 {
53942 velocity.Y -= 0.2f;
53943 }
53945 {
53946 velocity.Y *= 0.95f;
53947 }
53948 }
53949 else
53950 {
53951 velocity.Y += 0.4f;
53952 }
53954 {
53955 velocity.Y = 10f;
53956 }
53957 }
53958 else if (
type == 334)
53959 {
53961 {
53963 {
53965 {
53968 {
53971 }
53973 {
53975 }
53976 }
53977 else
53978 {
53981 }
53982 }
53983 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
53984 {
53988 {
53991 }
53993 {
53995 }
53996 }
53997 else if (
frame > 0)
53998 {
54001 {
54004 }
54006 {
54008 }
54009 }
54010 else
54011 {
54014 }
54015 }
54017 {
54020 }
54022 {
54025 }
54026 velocity.Y += 0.4f;
54028 {
54029 velocity.Y = 10f;
54030 }
54031 }
54032 else if (
type == 353)
54033 {
54035 {
54037 {
54040 }
54041 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
54042 {
54046 {
54049 }
54051 {
54053 }
54054 }
54055 else
54056 {
54059 }
54060 }
54062 {
54065 }
54067 {
54070 }
54071 velocity.Y += 0.4f;
54073 {
54074 velocity.Y = 10f;
54075 }
54076 }
54077 else if (
type == 111)
54078 {
54080 {
54082 {
54085 }
54086 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
54087 {
54091 {
54094 }
54096 {
54098 }
54099 }
54100 else
54101 {
54104 }
54105 }
54107 {
54110 }
54112 {
54115 }
54116 velocity.Y += 0.4f;
54118 {
54119 velocity.Y = 10f;
54120 }
54121 }
54122 else if (
type == 112)
54123 {
54125 {
54127 {
54130 }
54131 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
54132 {
54136 {
54139 }
54141 {
54143 }
54144 }
54145 else
54146 {
54149 }
54150 }
54152 {
54155 }
54156 velocity.Y += 0.4f;
54158 {
54159 velocity.Y = 10f;
54160 }
54161 }
54162 else if (
type == 127)
54163 {
54165 {
54167 {
54170 }
54171 else if ((
double)velocity.X < -0.1 || (double)
velocity.
X > 0.1)
54172 {
54176 {
54179 }
54181 {
54183 }
54184 }
54185 else
54186 {
54189 }
54190 }
54191 else
54192 {
54195 }
54196 velocity.Y += 0.4f;
54198 {
54199 velocity.Y = 10f;
54200 }
54201 }
54202 else if (
type == 200)
54203 {
54205 {
54207 {
54210 }
54211 else if ((
double)velocity.X < -0.1 || (double)
velocity.
X > 0.1)
54212 {
54216 {
54219 }
54221 {
54223 }
54224 }
54225 else
54226 {
54229 }
54230 }
54231 else
54232 {
54236 {
54238 }
54240 {
54243 }
54245 {
54247 }
54249 {
54251 }
54252 }
54253 velocity.Y += 0.1f;
54255 {
54256 velocity.Y = 4f;
54257 }
54258 }
54259 else if (
type == 208)
54260 {
54262 {
54264 {
54266 }
54268 {
54270 }
54273 }
54274 else
54275 {
54279 {
54282 }
54284 {
54286 }
54288 {
54290 }
54291 }
54292 velocity.Y += 0.1f;
54294 {
54295 velocity.Y = 4f;
54296 }
54297 }
54298 else if (
type == 209)
54299 {
54301 {
54304 {
54306 }
54307 }
54309 {
54311 {
54314 }
54315 else if ((
double)velocity.X < -0.1 || (double)
velocity.
X > 0.1)
54316 {
54320 {
54323 }
54325 {
54327 }
54329 {
54331 }
54332 }
54333 else
54334 {
54337 }
54338 }
54339 else
54340 {
54344 }
54345 velocity.Y += 0.4f;
54347 {
54348 velocity.Y = 10f;
54349 }
54350 }
54351 else if (
type == 324)
54352 {
54354 {
54355 if ((
double)velocity.X < -0.1 || (double)
velocity.
X > 0.1)
54356 {
54360 {
54363 }
54365 {
54367 }
54369 {
54371 }
54372 }
54373 else
54374 {
54377 }
54378 }
54379 else
54380 {
54383 }
54384 velocity.Y += 0.4f;
54386 {
54387 velocity.Y = 14f;
54388 }
54389 }
54390 else if (
type == 210)
54391 {
54393 {
54394 if ((
double)velocity.X < -0.1 || (double)
velocity.
X > 0.1)
54395 {
54399 {
54402 }
54404 {
54406 }
54407 }
54408 else
54409 {
54412 }
54413 }
54414 else
54415 {
54419 {
54422 }
54424 {
54426 }
54428 {
54430 }
54431 }
54432 velocity.Y += 0.4f;
54434 {
54435 velocity.Y = 10f;
54436 }
54437 }
54438 else if (
type == 398)
54439 {
54441 {
54443 {
54446 }
54447 else if ((
double)velocity.X < -0.8 || (double)
velocity.
X > 0.8)
54448 {
54452 {
54455 }
54457 {
54459 }
54460 }
54461 else
54462 {
54465 }
54466 }
54468 {
54471 }
54472 velocity.Y += 0.4f;
54474 {
54475 velocity.Y = 10f;
54476 }
54477 }
54478 }
54480 {
54482 DelegateMethods.v3_1 =
new Vector3(1f, 0.61f, 0.16f) * 1.5f;
54483 Utils.PlotTileLine(
base.Center,
base.Center +
velocity * 6f, 20f, DelegateMethods.CastLightOpen);
54484 Utils.PlotTileLine(
base.Left,
base.Right, 20f, DelegateMethods.CastLightOpen);
54485 }
54486 }
static float Clamp(float value, float min, float max)
static double Atan2(double y, double x)
static double Sqrt(double d)
static double Abs(double value)
static double Sin(double a)
static byte Max(byte val1, byte val2)
static ArmorShaderDataSet Armor
IEntitySource GetProjectileSource_FromThis()
bool Chester_IsAnyPlayerTrackingThisProjectile()
NPC OwnerMinionAttackTargetNPC
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)
static float Dot(Vector2 value1, Vector2 value2)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)