59439 {
59440
59441
59442
59443
59444
59445
59446
59448 {
59449 return;
59450 }
59454 bool flag = true;
59456 {
59457 flag = false;
59458 }
59459 if (
owner == Main.myPlayer && flag)
59460 {
59461 Main.player[
owner].TryCancelChannel(
this);
59462 }
59463 if (Main.getGoodWorld &&
aiStyle == 16)
59464 {
59466 }
59467 if (Main.netMode != 1 && Main.getGoodWorld)
59468 {
59470 {
59472 }
59474 {
59476 }
59477 }
59479 {
59480 if (
position.
Y - (
float)
height <= (
float)(16 * Main.offScreenRange) &&
owner == Main.myPlayer)
59481 {
59482 Main.Achievements.GetCondition("TO_INFINITY_AND_BEYOND", "Do").Complete();
59483 }
59487 for (
int i = 0;
i < 15;
i++)
59488 {
59490 dust.fadeIn = 0f;
59492 dust2.velocity *= 0.5f;
59493 }
59494 for (
int j = 0;
j < 5;
j++)
59495 {
59497 dust3.noGravity = true;
59499 dust2.velocity *= 2.5f;
59502 dust2.velocity *= 2f;
59503 dust3.noGravity = true;
59504 }
59505 for (
int k = 0;
k < 3;
k++)
59506 {
59509 dust2.velocity *= 2f;
59510 dust4.noGravity = true;
59511 }
59512 for (
int l = -1;
l <= 1;
l += 2)
59513 {
59514 for (
int m = -1;
m <= 1;
m += 2)
59515 {
59516 if (Main.rand.Next(5) == 0)
59517 {
59520 gore2.velocity *= 0.2f;
59522 gore2.scale *= 0.65f;
59524 gore2.velocity +=
new Vector2(
l,
m) * 0.5f;
59525 }
59526 }
59527 }
59528 }
59529 else if (
type == 949)
59530 {
59535 {
59538 if (Main.rand.Next(3) != 0)
59539 {
59540 Main.dust[
num5].noGravity =
true;
59541 }
59543 dust2.velocity *= 0.8f;
59545 {
59546 Main.dust[
num5].color =
new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB);
59547 Main.dust[
num5].noGravity =
true;
59548 }
59549 }
59550 }
59551 else if (
type == 985)
59552 {
59554 {
59557 for (
int n = 0;
n < 20;
n++)
59558 {
59559 float num6 = Main.rand.NextFloatDirection();
59562 Vector2 vector2 = base.Center + f.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0f, 1f, 60f, 85f) *
scale;
59563 float num8 = Main.rand.NextFloat();
59570 dust2.position -= dust5.velocity * Main.rand.NextFloat() * 3f;
59572 dust2.scale *= 1f -
num8;
59573 }
59575 {
59576 float num10 = Main.rand.NextFloatDirection();
59579 Vector2 vector3 = base.Center +
f2.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0f, 1f, 70f, 85f) *
scale;
59580 float num12 = Main.rand.NextFloat() * 0.25f;
59587 dust2.position -= dust6.velocity * Main.rand.NextFloat() * 3f;
59589 dust2.scale *= 1f -
num12;
59590 }
59592 {
59593 float num14 = Main.rand.NextFloatDirection();
59596 Vector2 vector4 = base.Center +
f3.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0f, 1f, 60f, 75f) *
scale;
59597 float num16 = Main.rand.NextFloat() * 0.25f;
59604 dust2.position -= dust7.velocity * Main.rand.NextFloat() * 3f;
59606 dust2.scale *= 1f -
num16;
59607 }
59608 }
59609 }
59610 else if (
type == 756)
59611 {
59613 {
59615 dust8.velocity.Y += -0.3f;
59617 dust2.velocity +=
velocity * 0.2f;
59618 dust8.scale = 1f;
59619 dust8.alpha = 100;
59620 }
59621 }
59622 else if (
type == 961)
59623 {
59625 {
59627 dust9.velocity.Y += -0.3f;
59629 dust2.velocity +=
velocity * 0.2f;
59630 dust9.scale = 1f;
59631 dust9.alpha = 100;
59632 }
59633 }
59634 else if (
type == 962)
59635 {
59637 {
59638 Dust
dust10 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(16f, 16f) *
scale, 16, Main.rand.NextVector2Circular(2f, 2f));
59640 dust2.velocity +=
velocity * 0.1f;
59641 dust10.scale = 1f;
59642 dust10.alpha = 100;
59643 }
59644 }
59645 else if (
type == 932)
59646 {
59650 Main.rand.NextFloat();
59653 {
59655 int num22 = Main.rand.Next(1, 3);
59658 {
59660 }
59662 {
59664 }
59668 {
59671 dust2.velocity *= Main.rand.NextFloat() * 0.8f;
59672 Main.dust[
num25].noGravity =
true;
59673 Main.dust[
num25].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
59674 Main.dust[
num25].fadeIn = Main.rand.NextFloat() * 1.2f *
num23;
59676 dust2.scale *=
num23;
59678 {
59681 dust2.scale /= 2f;
59683 dust2.fadeIn *= 0.85f;
59684 dust11.color =
new Color(255, 255, 255, 255);
59685 }
59686 }
59687 }
59688 }
59689 else if (
type == 931)
59690 {
59694 Main.rand.NextFloat();
59696 {
59699 {
59700 break;
59701 }
59702 int num27 = Main.rand.Next(1, 3);
59705 {
59707 }
59709 {
59711 }
59715 {
59718 dust2.velocity *= Main.rand.NextFloat() * 0.8f;
59719 Main.dust[
num30].noGravity =
true;
59720 Main.dust[
num30].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
59721 Main.dust[
num30].fadeIn = Main.rand.NextFloat() * 1.2f *
num28;
59723 dust2.scale *=
num28;
59725 {
59728 dust2.scale /= 2f;
59730 dust2.fadeIn *= 0.85f;
59731 dust12.color =
new Color(255, 255, 255, 255);
59732 }
59733 }
59734 }
59735 }
59736 else if (
type == 79)
59737 {
59747 float num31 = Main.rand.NextFloat();
59749 {
59752 {
59753 break;
59754 }
59756 int num33 = Main.rand.Next(1, 4);
59760 {
59762 }
59764 {
59766 }
59768 {
59770 }
59775 {
59778 dust2.velocity *= Main.rand.NextFloat() * 0.8f;
59779 Main.dust[
num36].noGravity =
true;
59780 Main.dust[
num36].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
59781 Main.dust[
num36].fadeIn = Main.rand.NextFloat() * 1.2f *
num34;
59783 dust2.velocity +=
vector8 * 6f;
59785 dust2.scale *=
num34;
59788 {
59791 dust2.scale /= 2f;
59793 dust2.fadeIn *= 0.85f;
59794 dust13.color =
new Color(255, 255, 255, 255);
59795 }
59796 }
59797 }
59799 {
59801 {
59802 PositionInWorld =
base.Center,
59805 }
59807 {
59808 int num39 = Dust.NewDust(
position,
width,
height, 66, 0f, 0f, 100, Main.hslToRgb(Main.rand.NextFloat(), 1f, 0.5f), 1.7f);
59809 Main.dust[
num39].noGravity =
true;
59811 dust2.velocity *= 3f;
59812 }
59813 }
59814 else if (
type == 16)
59815 {
59826 {
59829 {
59830 break;
59831 }
59832 Color newColor2 = Main.hslToRgb(4f / 9f + Main.rand.NextFloat() * (2f / 9f), 1f, 0.65f);
59833 int num41 = Main.rand.Next(1, 4);
59836 {
59838 }
59840 {
59842 }
59846 {
59847 if (Main.rand.Next(3) == 0)
59848 {
59851 dust2.velocity *= Main.rand.NextFloat() * 0.8f;
59852 Main.dust[
num44].noGravity =
true;
59853 Main.dust[
num44].scale = Main.rand.NextFloat() * 0.8f;
59854 Main.dust[
num44].fadeIn = Main.rand.NextFloat() * 1.2f *
num42;
59858 dust2.scale *=
num42;
59860 {
59863 dust2.scale /= 2f;
59865 dust2.fadeIn /= 2f;
59866 dust14.color =
new Color(255, 255, 255, 255);
59867 }
59868 }
59869 else
59870 {
59872 Main.rand.Next(2);
59873 dust15.noGravity = true;
59875 dust2.velocity *= 2f;
59879 dust2.scale *=
num42;
59880 dust15.fadeIn = (0.6f + Main.rand.NextFloat() * 0.4f) *
num42;
59881 dust15.noLightEmittence = (dust15.noLight = true);
59882 }
59883 }
59884 }
59886 {
59888 dust16.noGravity = true;
59889 dust16.velocity = Main.rand.NextVector2Circular(1f, 1f) * 1.5f;
59890 dust16.scale = 1.2f + Main.rand.NextFloat() * 0.5f;
59891 dust16.noLightEmittence = (dust16.noLight = true);
59893 dust2.velocity +=
velocity * 0.01f;
59895 dust2.position += dust16.velocity * Main.rand.Next(1, 16);
59898 dust2.velocity *= 1.2f;
59899 dust16.noLightEmittence = (dust16.noLight = true);
59901 dust2.velocity +=
velocity * 0.01f;
59903 dust2.scale *= 0.8f + Main.rand.NextFloat() * 0.2f;
59905 dust2.position += dust16.velocity * Main.rand.Next(1, 16);
59906 }
59907 }
59908 else if (
type == 34)
59909 {
59920 {
59923 {
59924 break;
59925 }
59926 Color newColor3 = Main.hslToRgb(Main.rand.NextFloat() * (1f / 9f), 1f, 0.5f);
59927 int num47 = Main.rand.Next(1, 5);
59930 {
59932 }
59934 {
59936 }
59940 {
59941 if (Main.rand.Next(3) == 0)
59942 {
59945 dust2.velocity *= Main.rand.NextFloat() * 0.8f;
59946 Main.dust[
num50].noGravity =
true;
59947 Main.dust[
num50].scale = Main.rand.NextFloat() * 1f;
59948 Main.dust[
num50].fadeIn = Main.rand.NextFloat() * 2f;
59952 dust2.scale *=
num48;
59954 {
59957 dust2.scale /= 2f;
59959 dust2.fadeIn /= 2f;
59960 dust17.color =
new Color(255, 255, 255, 255);
59961 }
59962 }
59963 else
59964 {
59967 if (Main.rand.Next(2) == 0)
59968 {
59969 dust18.noGravity = true;
59971 dust2.scale *= 2.5f;
59972 }
59974 dust2.velocity *= 2f;
59978 dust2.scale *=
num48;
59979 dust18.noLightEmittence = (dust18.noLight = true);
59980 }
59981 }
59982 }
59984 {
59986 dust19.noGravity = true;
59987 dust19.velocity = Main.rand.NextVector2Circular(1f, 1f) * 6f;
59988 dust19.scale = 1.6f;
59989 dust19.fadeIn = 1.3f + Main.rand.NextFloat() * 1f;
59990 dust19.noLightEmittence = (dust19.noLight = true);
59992 dust2.velocity +=
velocity * 0.1f;
59995 dust2.velocity *= 2f;
59996 dust19.noLightEmittence = (dust19.noLight = true);
59998 dust2.velocity +=
velocity * 0.1f;
59999 }
60000 }
60002 {
60008 {
60009 Dust
dust20 = Dust.NewDustPerfect(
base.Center, 267);
60010 dust20.fadeIn = 1f;
60011 dust20.noGravity = true;
60012 dust20.alpha = 100;
60014 if (
num55 % 4 == 0)
60015 {
60016 dust20.velocity =
num54.ToRotationVector2() * 3.2f;
60017 dust20.scale = 2.3f;
60018 }
60019 else if (
num55 % 2 == 0)
60020 {
60021 dust20.velocity =
num54.ToRotationVector2() * 1.8f;
60022 dust20.scale = 1.9f;
60023 }
60024 else
60025 {
60026 dust20.velocity =
num54.ToRotationVector2();
60027 dust20.scale = 1.6f;
60028 }
60031 dust2.velocity +=
velocity * Main.rand.NextFloat() * 0.5f;
60032 }
60033 }
60037 {
60040 {
60044 if (Main.rand.Next(3) == 0)
60045 {
60047 {
60048 0 =>
new Color(226, 116, 56),
60049 1 =>
new Color(243, 175, 93),
60050 2 =>
new Color(254, 210, 146),
60051 _ =>
new Color(176, 64, 36),
60055 dust21.fadeIn = 1f;
60056 }
60057 else
60058 {
60063 }
60064 }
60065 }
60067 {
60069 {
60071 int num58 = Dust.NewDust(
position +
base.Size * Main.rand.NextVector2Square(0f, 1f), 4, 4, 4,
vector15.X,
vector15.Y, 80,
new Color(78, 136, 255, 150), 1.5f);
60072 Main.dust[
num58].noGravity =
true;
60073 }
60074 }
60076 {
60078 {
60081 Main.dust[
num60].noGravity =
true;
60082 }
60083 }
60085 {
60087 {
60090 Main.dust[
num62].noGravity =
true;
60091 }
60092 }
60094 {
60096 {
60099 Main.dust[
num64].noGravity =
true;
60100 }
60101 }
60103 {
60105 {
60106 Dust.NewDustPerfect(
position +
base.Size * Main.rand.NextVector2Square(0f, 1f), 278,
Vector2.
UnitY.RotatedBy(
num65 * ((
float)Math.PI * 2f) + Main.rand.NextFloat() * ((float)
Math.
PI * 2f) * 0.5f) * (2f + Main.rand.NextFloat() * 0.5f), 150,
Color.
Lerp(
Color.
White,
Color.
Gold, Main.rand.NextFloat()), 0.4f).noGravity =
true;
60107 }
60109 {
60110 Dust.NewDustPerfect(
position +
base.Size * Main.rand.NextVector2Square(0f, 1f), 278,
Vector2.
UnitY.RotatedBy(
num66 * ((
float)Math.PI * 2f) + Main.rand.NextFloat() * ((float)
Math.
PI * 2f) * 0.5f) * (1f + Main.rand.NextFloat() * 0.5f), 150,
Color.
Lerp(
Color.
White, Main.OurFavoriteColor, Main.rand.NextFloat()), 0.7f).noGravity =
true;
60111 }
60112 }
60114 {
60116 {
60118 }
60120 {
60121 Dust.NewDustPerfect(
base.Center, 278,
Vector2.
UnitY.RotatedBy(
num68 * ((
float)Math.PI * 2f) + Main.rand.NextFloat() * ((float)
Math.
PI * 2f) * 0.5f) * (4f + Main.rand.NextFloat() * 2f), 150,
Color.
Lerp(
Color.
White,
Color.
HotPink, Main.rand.NextFloat() * 0.5f + 0.5f)).noGravity =
true;
60122 }
60124 {
60125 Dust.NewDustPerfect(
base.Center, 278,
Vector2.
UnitY.RotatedBy(
num69 * ((
float)Math.PI * 2f) + Main.rand.NextFloat() * ((float)
Math.
PI * 2f) * 0.5f) * (2f + Main.rand.NextFloat() * 1f), 150,
Color.
Lerp(
Color.
White,
Color.
Orange, Main.rand.NextFloat() * 0.5f + 0.5f)).noGravity =
true;
60126 }
60129 {
60131 {
60132 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) * 3f, Utils.SelectRandom<
int>(Main.rand, 16));
60133 }
60134 }
60136 {
60137 PositionInWorld = base.Center
60145 }
60147 {
60149 }
60151 {
60153 }
60154 else if (
type == 711)
60155 {
60157 }
60158 else if (
type == 704)
60159 {
60162 {
60163 activeSound.Volume = 0f;
60165 }
60166 }
60168 {
60176 {
60178 Main.dust[
num72].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60179 }
60181 {
60183 Main.dust[
num74].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60184 Main.dust[
num74].noGravity =
true;
60186 dust2.velocity *= 2f;
60187 }
60189 {
60192 Main.dust[
num76].noGravity =
true;
60194 dust2.velocity *= 2f;
60195 }
60196 }
60197 else if (
type == 711)
60198 {
60201 {
60205 {
60206 int num79 = Utils.SelectRandom<
int>(Main.rand, 6, 55, 158);
60208 Main.dust[
num80].alpha = 200;
60210 dust2.velocity *= 2.4f;
60212 dust2.scale += Main.rand.NextFloat();
60214 dust2.scale -= 0.5f;
60215 if (Main.dust[
num80].type == 55)
60216 {
60218 }
60219 Main.dust[
num80].noLight =
true;
60220 }
60221 }
60223 {
60227 {
60228 if (Main.rand.Next(3) != 0)
60229 {
60230 int num83 = Utils.SelectRandom<
int>(Main.rand, 55);
60232 Main.dust[
num84].alpha = 120;
60234 dust2.velocity *= 2.4f;
60236 dust2.scale += Main.rand.NextFloat() * 0.7f;
60238 dust2.scale -= 0.5f;
60239 if (Main.dust[
num84].type == 55)
60240 {
60242 }
60243 Main.dust[
num84].noLight =
true;
60244 }
60245 }
60246 }
60248 {
60252 {
60253 if (Main.rand.Next(3) != 0)
60254 {
60255 int num87 = Utils.SelectRandom<
int>(Main.rand, 55);
60257 Main.dust[
num88].alpha = 80;
60259 dust2.velocity *= 0.3f;
60261 dust2.velocity +=
velocity * 0.5f;
60263 dust2.scale += Main.rand.NextFloat() * 0.7f;
60265 dust2.scale -= 0.5f;
60266 if (Main.dust[
num88].type == 55)
60267 {
60269 }
60270 Main.dust[
num88].noLight =
true;
60271 }
60272 }
60273 }
60275 {
60276 if (Main.rand.Next(3) != 0)
60277 {
60280 dust23.noGravity = true;
60281 dust23.scale = 1.25f + Main.rand.NextFloat();
60282 dust23.fadeIn = 1.5f;
60284 dust2.velocity *= 6f;
60285 dust23.noLight = true;
60286 }
60287 }
60289 {
60290 if (Main.rand.Next(3) != 0)
60291 {
60294 dust24.noGravity = true;
60295 dust24.scale = 1.25f + Main.rand.NextFloat();
60296 dust24.fadeIn = 1.5f;
60298 dust2.velocity *= 6f;
60299 dust24.noLight = true;
60300 dust24.color =
new Color(0, 0, 220, 128);
60301 }
60302 }
60303 if (
owner == Main.myPlayer)
60304 {
60306 base.Size =
new Vector2(140f);
60312 }
60313 }
60314 else if (
type == 662 ||
type == 685)
60315 {
60320 {
60321 if (Main.rand.Next(2) == 0)
60322 {
60324 continue;
60325 }
60327 dust25.position = (dust25.position +
base.Center) / 2f;
60331 dust2.velocity *= 0.5f;
60332 dust25.noGravity = true;
60334 }
60335 }
60337 {
60342 {
60343 if (Main.rand.Next(2) == 0)
60344 {
60346 continue;
60347 }
60349 dust26.position = (dust26.position +
base.Center) / 2f;
60353 dust2.velocity *= 0.5f;
60354 dust26.noGravity = true;
60356 }
60358 }
60360 {
60370 if (Main.player[
owner].setApprenticeT3)
60371 {
60381 }
60388 {
60390 Main.dust[
num105].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60391 }
60393 {
60395 dust27.position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 10f;
60397 dust2.velocity *= 16f;
60398 if (
dust27.velocity.Y > -2f)
60399 {
60400 dust27.velocity.Y *= -0.4f;
60401 }
60402 dust27.noLight = true;
60403 dust27.noGravity = true;
60404 }
60406 {
60408 dust28.position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60410 dust2.velocity *= 2f;
60411 dust28.noGravity = true;
60413 }
60415 {
60418 Main.dust[
num109].noGravity =
true;
60420 dust2.velocity *= 3f;
60421 }
60423 {
60426 Main.dust[
num111].noGravity =
true;
60428 dust2.velocity *= 3f;
60429 }
60431 {
60432 int num113 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
60433 Main.gore[
num113].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60435 gore2.position -= Vector2.One * 16f;
60436 if (Main.rand.Next(2) == 0)
60437 {
60438 Main.gore[
num113].position.Y -= 30f;
60439 }
60441 gore2.velocity *= 0.3f;
60442 Main.gore[
num113].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
60443 Main.gore[
num113].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
60444 }
60445 }
60446 else if (
type == 681)
60447 {
60448 position.X +=
width / 2;
60449 position.Y +=
height / 2;
60453 position.X -=
width / 2;
60454 position.Y -=
height / 2;
60456 {
60459 dust2.velocity *= 1.4f;
60462 dust2.velocity *= 1.4f;
60463 Main.dust[
num115].noGravity =
true;
60464 Main.dust[
num115].fadeIn = 2f;
60465 }
60467 {
60469 Main.dust[
num117].noGravity =
true;
60471 dust2.velocity *= 5f;
60474 dust2.velocity *= 3f;
60475 }
60478 gore2.velocity *= 0.4f;
60479 Main.gore[
num118].velocity.X += 1f;
60480 Main.gore[
num118].velocity.Y += 1f;
60483 gore2.velocity *= 0.4f;
60484 Main.gore[
num118].velocity.X -= 1f;
60485 Main.gore[
num118].velocity.Y += 1f;
60488 gore2.velocity *= 0.4f;
60489 Main.gore[
num118].velocity.X += 1f;
60490 Main.gore[
num118].velocity.Y -= 1f;
60493 gore2.velocity *= 0.4f;
60494 Main.gore[
num118].velocity.X -= 1f;
60495 Main.gore[
num118].velocity.Y -= 1f;
60496 position.X +=
width / 2;
60497 position.Y +=
height / 2;
60500 position.X -=
width / 2;
60501 position.Y -=
height / 2;
60503 }
60505 {
60509 {
60510 Dust
dust29 = Dust.NewDustDirect(
base.Center -
vector24 / 2f, (
int)
vector24.X, (
int)
vector24.Y, 4, 0f, 0f, 100,
new Color(255, 255, 255, 110), 1.1f);
60512 dust2.velocity *= 1.4f;
60513 }
60515 {
60516 Dust
dust30 = Dust.NewDustDirect(
base.Center -
vector24 / 2f, (
int)
vector24.X, (
int)
vector24.Y, 4, 0f, 0f, 50,
new Color(245, 200, 30, 155), 1.2f);
60517 dust30.noGravity = true;
60519 dust2.velocity *= 4f;
60520 dust30 = Dust.NewDustDirect(
base.Center -
vector24 / 2f, (
int)
vector24.X, (
int)
vector24.Y, 4, 0f, 0f, 50,
new Color(245, 200, 30, 155), 0.8f);
60522 dust2.velocity *= 2f;
60523 }
60524 }
60526 {
60527 PopupText.ClearSonarText();
60529 {
60531 }
60533 }
60535 {
60536 int num121 = Utils.SelectRandom<
int>(Main.rand, 242, 73, 72, 71, 255);
60546 {
60549 num121 = Utils.SelectRandom<
int>(Main.rand, 242, 59, 88);
60554 }
60563 {
60564 num121 = Utils.SelectRandom<
int>(Main.rand, 242, 73, 72, 71, 255);
60566 {
60567 num121 = Utils.SelectRandom<
int>(Main.rand, 242, 59, 88);
60568 }
60570 Main.dust[
num129].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60571 Main.dust[
num129].noGravity =
true;
60573 dust2.velocity *= 3f;
60575 dust2.velocity +=
vector26 * Main.rand.NextFloat();
60577 Main.dust[
num129].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60579 dust2.velocity *= 2f;
60580 Main.dust[
num129].noGravity =
true;
60581 Main.dust[
num129].fadeIn = 1f;
60582 Main.dust[
num129].color = Color.Crimson * 0.5f;
60584 dust2.velocity +=
vector26 * Main.rand.NextFloat();
60585 }
60587 {
60590 Main.dust[
num131].noGravity =
true;
60592 dust2.velocity *= 0.5f;
60594 dust2.velocity +=
vector26 * (0.6f + 0.6f * Main.rand.NextFloat());
60595 }
60596 }
60597 else if (
type == 651)
60598 {
60600 {
60604 if (Main.netMode == 1)
60605 {
60607 }
60608 else
60609 {
60611 }
60612 }
60613 }
60614 else if (
type == 641)
60615 {
60616 if (
owner == Main.myPlayer)
60617 {
60619 {
60620 if (Main.projectile[
num132].active && Main.projectile[
num132].owner ==
owner && Main.projectile[
num132].type == 642)
60621 {
60622 Main.projectile[
num132].Kill();
60623 }
60624 }
60625 }
60626 }
60627 else if (
type == 643)
60628 {
60629 if (
owner == Main.myPlayer)
60630 {
60632 {
60633 if (Main.projectile[
num133].active && Main.projectile[
num133].owner ==
owner && Main.projectile[
num133].type == 644)
60634 {
60635 Main.projectile[
num133].Kill();
60636 }
60637 }
60638 }
60639 }
60640 else if (
type == 645)
60641 {
60644 {
60646 }
60648 {
60650 Main.dust[
num136].noGravity =
true;
60652 dust2.velocity *= 3f;
60654 {
60655 Main.dust[
num136].noLight =
true;
60656 }
60659 dust2.velocity *= 2f;
60660 Main.dust[
num136].noGravity =
true;
60662 {
60663 Main.dust[
num136].noLight =
true;
60664 }
60665 }
60667 {
60670 gore2.velocity *= 0.3f;
60671 Main.gore[
num138].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
60672 Main.gore[
num138].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
60673 }
60674 }
60675 else if (
type == 636)
60676 {
60679 {
60683 {
60684 int num141 = Utils.SelectRandom<
int>(Main.rand, 6, 259, 158);
60686 Main.dust[
num142].alpha = 200;
60688 dust2.velocity *= 2.4f;
60690 dust2.scale += Main.rand.NextFloat();
60691 }
60692 }
60693 if (Main.myPlayer ==
owner)
60694 {
60695 NewProjectile(
GetProjectileSource_FromThis(),
base.Center.X,
base.Center.Y, 0f, 0f, 953,
damage, 10f,
owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
60696 }
60697 }
60698 else if (
type == 614)
60699 {
60701 {
60703 dust31.noGravity = true;
60705 dust2.velocity *= 3f;
60706 }
60707 }
60709 {
60711 if (Main.myPlayer ==
owner)
60712 {
60728 }
60729 }
60731 {
60737 {
60739 Main.dust[
num148].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60740 }
60742 {
60744 Main.dust[
num150].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60745 Main.dust[
num150].noGravity =
true;
60747 dust2.velocity *= 3f;
60750 Main.dust[
num150].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60752 dust2.velocity *= 2f;
60753 Main.dust[
num150].noGravity =
true;
60754 Main.dust[
num150].fadeIn = 2.5f;
60756 }
60758 {
60761 Main.dust[
num152].noGravity =
true;
60763 dust2.velocity *= 3f;
60765 }
60767 {
60770 Main.dust[
num154].noGravity =
true;
60772 dust2.velocity *= 3f;
60773 }
60775 {
60776 int num156 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
60777 Main.gore[
num156].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60779 gore2.velocity *= 0.3f;
60780 Main.gore[
num156].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
60781 Main.gore[
num156].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
60782 }
60783 }
60784 else if (
type == 661)
60785 {
60797 {
60799 Main.dust[
num160].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
num157 / 2f;
60800 }
60802 {
60804 Main.dust[
num162].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
num157 / 2f;
60805 Main.dust[
num162].noGravity =
true;
60806 Main.dust[
num162].noLight =
true;
60808 dust2.velocity *= 3f;
60810 dust2.velocity +=
DirectionTo(Main.dust[
num162].position) * (2f + Main.rand.NextFloat() * 4f);
60812 Main.dust[
num162].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
num157 / 2f;
60814 dust2.velocity *= 2f;
60815 Main.dust[
num162].noGravity =
true;
60816 Main.dust[
num162].fadeIn = 1f;
60817 Main.dust[
num162].color = Color.Crimson * 0.5f;
60818 Main.dust[
num162].noLight =
true;
60821 }
60823 {
60826 Main.dust[
num164].noGravity =
true;
60827 Main.dust[
num164].noLight =
true;
60829 dust2.velocity *= 3f;
60832 }
60834 {
60837 Main.dust[
num166].noGravity =
true;
60839 dust2.velocity *= 3f;
60842 }
60843 }
60844 else if (
type == 617)
60845 {
60854 {
60856 Main.dust[
num168].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60857 }
60859 {
60861 Main.dust[
num170].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60862 Main.dust[
num170].noGravity =
true;
60864 dust2.velocity *= 3f;
60866 Main.dust[
num170].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60868 dust2.velocity *= 2f;
60869 Main.dust[
num170].noGravity =
true;
60870 Main.dust[
num170].fadeIn = 1f;
60871 Main.dust[
num170].color = Color.Crimson * 0.5f;
60872 }
60874 {
60877 Main.dust[
num172].noGravity =
true;
60879 dust2.velocity *= 3f;
60880 }
60882 {
60885 Main.dust[
num174].noGravity =
true;
60887 dust2.velocity *= 3f;
60888 }
60890 {
60891 int num176 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
60892 Main.gore[
num176].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
60894 gore2.velocity *= 0.3f;
60895 Main.gore[
num176].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
60896 Main.gore[
num176].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
60897 }
60898 if (Main.myPlayer ==
owner)
60899 {
60901 {
60902 if (Main.projectile[
num177].active && Main.projectile[
num177].type == 618 && Main.projectile[
num177].ai[1] == (
float)
whoAmI)
60903 {
60904 Main.projectile[
num177].Kill();
60905 }
60906 }
60907 int num178 = Main.rand.Next(5, 9);
60908 int num179 = Main.rand.Next(5, 9);
60909 int num180 = Utils.SelectRandom<
int>(Main.rand, 86, 90);
60912 {
60913 Vector2 vector28 = base.Center + Utils.RandomVector2(Main.rand, -30f, 30f);
60916 {
60917 vector29 =
new Vector2(Main.rand.Next(-100, 101), Main.rand.Next(-100, 101));
60918 }
60921 {
60922 vector29.Y *= -1f;
60923 }
60924 vector29 *= (float)Main.rand.Next(70, 101) * 0.1f;
60926 }
60928 {
60929 Vector2 vector30 = base.Center + Utils.RandomVector2(Main.rand, -30f, 30f);
60932 {
60933 vector31 =
new Vector2(Main.rand.Next(-100, 101), Main.rand.Next(-100, 101));
60934 }
60937 {
60938 vector31.Y *= -1f;
60939 }
60940 vector31 *= (float)Main.rand.Next(40, 81) * 0.1f;
60942 }
60943 }
60944 }
60945 else if (
type == 658)
60946 {
60948 {
60951 if (Main.rand.Next(3) == 0)
60952 {
60953 Main.dust[
num185].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
60954 Main.dust[
num185].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
60957 }
60958 else
60959 {
60960 Main.dust[
num185].scale = 1f + (float)Main.rand.Next(-10, 11) * 0.01f;
60961 }
60962 Main.dust[
num185].noGravity =
true;
60964 dust2.velocity *= 1.25f;
60967 }
60968 }
60969 else if (
type == 620 ||
type == 618)
60970 {
60972 {
60974 }
60976 {
60979 if (Main.rand.Next(3) == 0)
60980 {
60981 Main.dust[
num187].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
60982 Main.dust[
num187].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
60985 }
60986 else
60987 {
60988 Main.dust[
num187].scale = 1f + (float)Main.rand.Next(-10, 11) * 0.01f;
60989 }
60990 Main.dust[
num187].noGravity =
true;
60992 dust2.velocity *= 1.25f;
60995 }
60996 }
60997 else if (
type == 619)
60998 {
61001 {
61004 if (Main.rand.Next(3) == 0)
61005 {
61006 Main.dust[
num189].fadeIn = 1.1f + (float)Main.rand.Next(-10, 11) * 0.01f;
61007 Main.dust[
num189].scale = 0.35f + (float)Main.rand.Next(-10, 11) * 0.01f;
61010 }
61011 else
61012 {
61013 Main.dust[
num189].scale = 1.2f + (float)Main.rand.Next(-10, 11) * 0.01f;
61014 }
61015 Main.dust[
num189].noGravity =
true;
61017 dust2.velocity *= 2.5f;
61020 }
61021 if (Main.myPlayer ==
owner)
61022 {
61023 int num190 = Main.rand.Next(3, 6);
61025 {
61028 {
61029 vector32 =
new Vector2(Main.rand.Next(-100, 101), Main.rand.Next(-100, 101));
61030 }
61032 vector32 *= (float)Main.rand.Next(70, 101) * 0.1f;
61034 }
61035 }
61036 }
61038 {
61041 color.A = byte.MaxValue;
61043 {
61045 Dust
dust32 = Main.dust[Dust.NewDust(
base.Center, 0, 0, 263)];
61046 dust32.position =
base.Center;
61048 dust32.color = color;
61049 dust32.scale = 2f;
61050 dust32.noLight = true;
61051 dust32.noGravity = true;
61052 }
61053 }
61055 {
61060 if (Main.expertMode)
61061 {
61063 }
61068 {
61070 Main.dust[
num195].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61071 }
61073 {
61075 Main.dust[
num197].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61076 Main.dust[
num197].noGravity =
true;
61078 dust2.velocity *= 2f;
61079 }
61081 {
61084 Main.dust[
num199].noGravity =
true;
61086 dust2.velocity *= 2f;
61087 }
61088 }
61090 {
61092 {
61102 {
61104 Main.dust[
num204].noGravity =
true;
61106 {
61108 Main.dust[
num204].fadeIn = 1.5f + Main.rand.NextFloat() * 0.5f;
61111 }
61112 else
61113 {
61114 Main.dust[
num204].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * Main.rand.NextFloat() *
width / 3f;
61115 Main.dust[
num204].fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
61117 dust2.velocity *= 2f;
61118 }
61119 }
61121 {
61124 Main.dust[
num207].fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
61125 Main.dust[
num207].noGravity =
true;
61127 dust2.velocity *= 1.5f;
61128 }
61129 }
61130 }
61131 else if (
type >= 625 &&
type <= 628)
61132 {
61134 {
61136 Main.dust[
num209].noGravity =
true;
61137 Main.dust[
num209].noLight =
true;
61138 }
61139 }
61141 {
61142 int num210 = Main.rand.Next(5, 10);
61144 {
61145 int num212 = Dust.NewDust(
base.Center, 0, 0, 229, 0f, 0f, 100);
61147 dust2.velocity *= 1.6f;
61148 Main.dust[
num212].velocity.Y -= 1f;
61150 dust2.position -= Vector2.One * 4f;
61152 Main.dust[
num212].noGravity =
true;
61153 }
61154 }
61156 {
61163 {
61165 Main.dust[
num214].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61166 }
61168 {
61170 Main.dust[
num216].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61171 Main.dust[
num216].noGravity =
true;
61173 dust2.velocity *= 3f;
61174 }
61176 {
61179 Main.dust[
num218].noGravity =
true;
61181 dust2.velocity *= 3f;
61182 }
61184 {
61187 Main.dust[
num220].noGravity =
true;
61189 dust2.velocity *= 3f;
61190 }
61191 }
61192 else if (
type == 585)
61193 {
61196 {
61198 Main.dust[
num222].noGravity =
true;
61200 dust2.velocity *= 1.2f;
61201 Main.dust[
num222].scale = 1.3f;
61205 Main.dust[
num222].noGravity =
true;
61207 dust2.velocity *= 3f;
61208 }
61209 }
61210 else if (
type == 590)
61211 {
61215 {
61217 }
61219 {
61222 dust2.velocity *= 2f;
61223 Main.dust[
num225].noGravity =
true;
61224 }
61225 float num226 = 0.6f + Main.rand.NextFloat() * 0.4f;
61228 {
61230 }
61233 gore2.velocity *= 0.3f;
61236 gore2.velocity *= 0.3f;
61239 gore2.velocity *= 0.3f;
61240 }
61241 else if (
type == 587)
61242 {
61244 newColor5.A = 200;
61247 {
61249 Main.dust[
num230].noGravity =
true;
61251 dust2.velocity *= 1.2f;
61252 Main.dust[
num230].scale = 0.9f;
61256 Main.dust[
num230].noGravity =
true;
61258 dust2.velocity *= 2f;
61259 }
61260 }
61261 else if (
type == 572)
61262 {
61264 {
61267 dust2.velocity *= 3f;
61268 Main.dust[
num232].noGravity =
true;
61269 Main.dust[
num232].scale = 1.25f;
61271 }
61272 }
61273 else if (
type == 581)
61274 {
61276 {
61277 int num234 = Utils.SelectRandom<
int>(Main.rand, 229, 229, 161);
61279 dust33.noGravity = true;
61280 dust33.scale = 1.25f + Main.rand.NextFloat();
61281 dust33.fadeIn = 0.25f;
61283 dust2.velocity *= 2f;
61284 dust33.noLight = true;
61285 }
61286 }
61287 else if (
type == 671)
61288 {
61290 {
61291 int num236 = Utils.SelectRandom<
int>(Main.rand, 27, 27, 62);
61293 dust34.noGravity = true;
61294 dust34.scale = 1.25f + Main.rand.NextFloat();
61295 dust34.fadeIn = 0.25f;
61297 dust2.velocity *= 2f;
61298 dust34.noLight = true;
61299 }
61300 }
61301 else if (
type == 811 ||
type == 814)
61302 {
61304 {
61306 dust35.scale = 1.25f + Main.rand.NextFloat();
61308 dust2.velocity *= 2f;
61309 }
61310 }
61311 else if (
type == 819)
61312 {
61315 {
61317 dust36.scale = 1f + Main.rand.NextFloat() * 0.5f;
61319 dust2.velocity *= 1.5f;
61320 }
61321 }
61322 else if (
type == 675)
61323 {
61325 {
61326 int num240 = Utils.SelectRandom<
int>(Main.rand, 27, 242, 73, 72, 71, 255, 255, 255);
61328 dust37.noGravity = true;
61329 dust37.scale = 1.25f + Main.rand.NextFloat();
61330 dust37.fadeIn = 0.25f;
61332 dust2.velocity *= 3f;
61333 dust37.noLight = true;
61334 }
61335 }
61336 else if (
type == 676)
61337 {
61339 {
61340 int num242 = Utils.SelectRandom<
int>(Main.rand, 4, 256);
61342 dust38.scale = 0.8f + Main.rand.NextFloat() * 0.6f;
61343 dust38.fadeIn = 0.5f;
61345 dust2.velocity *= 4.5f;
61346 dust38.noLight = true;
61347 if (
dust38.velocity.Y > 0f)
61348 {
61350 dust2.velocity *= -0.5f;
61351 }
61353 {
61354 dust38.color =
new Color(80, 170, 40, 120);
61355 }
61356 }
61358 {
61359 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.
Lerp(-5f, 5f, Main.rand.NextFloat()), (0f - Main.rand.NextFloat()) * 5f), 1024);
61360 }
61362 {
61363 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.
Lerp(-5f, 5f, Main.rand.NextFloat()), (0f - Main.rand.NextFloat()) * 5f), 1025);
61364 }
61366 {
61367 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.
Lerp(-5f, 5f, Main.rand.NextFloat()), (0f - Main.rand.NextFloat()) * 5f), 1026);
61368 }
61370 {
61371 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.
Lerp(-0.5f, 0.5f, Main.rand.NextFloat()), (0f - Main.rand.NextFloat()) * 2f), 1026);
61372 }
61373 if (Main.netMode != 2)
61374 {
61375 Player player = Main.player[Main.myPlayer];
61376 if (!player.dead && player.active && (player.Center -
base.Center).Length() < 300f && !player.creativeGodMode)
61377 {
61379 }
61380 }
61381 }
61382 else if (
type == 686)
61383 {
61386 {
61390 {
61391 int num249 = Utils.SelectRandom<
int>(Main.rand, 6, 55, 158);
61393 Main.dust[
num250].alpha = 200;
61395 dust2.velocity *= 2.4f;
61397 dust2.scale += Main.rand.NextFloat();
61399 dust2.scale -= 0.5f;
61400 if (Main.dust[
num250].type == 55)
61401 {
61403 }
61404 Main.dust[
num250].noLight =
true;
61405 }
61406 }
61408 {
61412 {
61413 int num253 = Utils.SelectRandom<
int>(Main.rand, 55);
61415 Main.dust[
num254].alpha = 120;
61417 dust2.velocity *= 2.4f;
61419 dust2.scale += Main.rand.NextFloat() * 0.7f;
61421 dust2.scale -= 0.5f;
61422 if (Main.dust[
num254].type == 55)
61423 {
61425 }
61426 Main.dust[
num254].noLight =
true;
61427 }
61428 }
61430 {
61434 {
61435 int num257 = Utils.SelectRandom<
int>(Main.rand, 55);
61437 Main.dust[
num258].alpha = 80;
61439 dust2.velocity *= 0.3f;
61441 dust2.velocity +=
velocity * 0.5f;
61443 dust2.scale += Main.rand.NextFloat() * 0.7f;
61445 dust2.scale -= 0.5f;
61446 if (Main.dust[
num258].type == 55)
61447 {
61449 }
61450 Main.dust[
num258].noLight =
true;
61451 }
61452 }
61454 {
61457 dust39.noGravity = true;
61458 dust39.scale = 1.25f + Main.rand.NextFloat();
61459 dust39.fadeIn = 1.5f;
61461 dust2.velocity *= 6f;
61462 dust39.noLight = true;
61463 }
61464 }
61466 {
61470 {
61477 {
61479 }
61480 else
61481 {
61482 dust40.velocity =
vector34 * Main.rand.Next(45, 91) / 10f;
61483 }
61484 dust40.color = Main.hslToRgb((float)(0.4000000059604645 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f);
61486 dust40.noGravity = true;
61487 dust40.scale = 0.7f;
61488 }
61489 }
61491 {
61500 {
61503 dust2.velocity *= 0.5f;
61504 }
61506 {
61509 gore2.velocity *= 0.5f;
61511 {
61512 case 0:
61513 Main.gore[
num268].velocity.X += 1f;
61514 Main.gore[
num268].velocity.Y += 1f;
61515 break;
61516 case 1:
61517 Main.gore[
num268].velocity.X -= 1f;
61518 Main.gore[
num268].velocity.Y += 1f;
61519 break;
61520 case 2:
61521 Main.gore[
num268].velocity.X += 1f;
61522 Main.gore[
num268].velocity.Y -= 1f;
61523 break;
61524 default:
61525 Main.gore[
num268].velocity.X -= 1f;
61526 Main.gore[
num268].velocity.Y -= 1f;
61527 break;
61528 }
61530 gore2.velocity *= 0.5f;
61531 }
61537 }
61539 {
61543 {
61550 {
61552 }
61553 else
61554 {
61555 dust41.velocity =
vector35 * Main.rand.Next(45, 91) / 10f;
61556 }
61557 dust41.color = Main.hslToRgb((float)(0.4000000059604645 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f);
61559 dust41.noGravity = true;
61560 dust41.scale = 0.7f;
61561 }
61562 }
61563 if (
type == 629 && Main.netMode != 1)
61564 {
61565 switch (Main.npc[(
int)
ai[0]].type)
61566 {
61567 case 517:
61568 if (
NPC.ShieldStrengthTowerSolar != 0)
61569 {
61570 Main.npc[(int)
ai[0]].
ai[3] = 1f;
61571 }
61572 NPC.ShieldStrengthTowerSolar = (int)
MathHelper.
Clamp(
NPC.ShieldStrengthTowerSolar - 1, 0f,
NPC.ShieldStrengthTowerMax);
61573 break;
61574 case 422:
61575 if (
NPC.ShieldStrengthTowerVortex != 0)
61576 {
61577 Main.npc[(int)
ai[0]].
ai[3] = 1f;
61578 }
61579 NPC.ShieldStrengthTowerVortex = (int)
MathHelper.
Clamp(
NPC.ShieldStrengthTowerVortex - 1, 0f,
NPC.ShieldStrengthTowerMax);
61580 break;
61581 case 507:
61582 if (
NPC.ShieldStrengthTowerNebula != 0)
61583 {
61584 Main.npc[(int)
ai[0]].
ai[3] = 1f;
61585 }
61586 NPC.ShieldStrengthTowerNebula = (int)
MathHelper.
Clamp(
NPC.ShieldStrengthTowerNebula - 1, 0f,
NPC.ShieldStrengthTowerMax);
61587 break;
61588 case 493:
61589 if (
NPC.ShieldStrengthTowerStardust != 0)
61590 {
61591 Main.npc[(int)
ai[0]].
ai[3] = 1f;
61592 }
61593 NPC.ShieldStrengthTowerStardust = (int)
MathHelper.
Clamp(
NPC.ShieldStrengthTowerStardust - 1, 0f,
NPC.ShieldStrengthTowerMax);
61594 break;
61595 }
61597 NetMessage.SendData(101);
61598 }
61600 {
61605 }
61607 {
61611 position.X -=
width / 2;
61612 position.Y -=
height / 2;
61614 {
61616 }
61618 {
61620 Main.dust[
num274].noGravity =
true;
61622 dust2.velocity *= 3f;
61625 dust2.velocity *= 2f;
61626 Main.dust[
num274].noGravity =
true;
61627 }
61629 {
61630 int num276 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
61632 gore2.velocity *= 0.3f;
61633 Main.gore[
num276].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
61634 Main.gore[
num276].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
61635 }
61637 }
61639 {
61643 position.X -=
width / 2;
61644 position.Y -=
height / 2;
61646 {
61648 Main.dust[
num278].position =
new Vector2(
width / 2, 0f).RotatedBy(6.2831854820251465 * Main.rand.NextDouble()) * (float)Main.rand.NextDouble() +
base.Center;
61649 }
61651 {
61653 Main.dust[
num280].position =
new Vector2(
width / 2, 0f).RotatedBy(6.2831854820251465 * Main.rand.NextDouble()) * (float)Main.rand.NextDouble() +
base.Center;
61654 Main.dust[
num280].noGravity =
true;
61656 dust2.velocity *= 1f;
61658 Main.dust[
num280].position =
new Vector2(
width / 2, 0f).RotatedBy(6.2831854820251465 * Main.rand.NextDouble()) * (float)Main.rand.NextDouble() +
base.Center;
61660 dust2.velocity *= 1f;
61661 Main.dust[
num280].noGravity =
true;
61662 }
61664 {
61665 int num282 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
61667 gore2.velocity *= 0.3f;
61668 Main.gore[
num282].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
61669 Main.gore[
num282].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
61670 }
61672 }
61674 {
61681 {
61683 Main.dust[
num284].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61684 }
61686 {
61688 Main.dust[
num286].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61689 Main.dust[
num286].noGravity =
true;
61691 dust2.velocity *= 3f;
61693 Main.dust[
num286].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61695 dust2.velocity *= 2f;
61696 Main.dust[
num286].noGravity =
true;
61697 Main.dust[
num286].fadeIn = 2.5f;
61698 }
61700 {
61703 Main.dust[
num288].noGravity =
true;
61705 dust2.velocity *= 3f;
61706 }
61708 {
61711 Main.dust[
num290].noGravity =
true;
61713 dust2.velocity *= 3f;
61714 }
61716 {
61717 int num292 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
61718 Main.gore[
num292].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61720 gore2.velocity *= 0.3f;
61721 Main.gore[
num292].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
61722 Main.gore[
num292].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
61723 }
61724 }
61726 {
61733 {
61735 Main.dust[
num294].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61736 }
61738 {
61740 Main.dust[
num296].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61741 Main.dust[
num296].noGravity =
true;
61743 dust2.velocity *= 3f;
61745 Main.dust[
num296].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61747 dust2.velocity *= 2f;
61748 Main.dust[
num296].noGravity =
true;
61749 Main.dust[
num296].fadeIn = 2.5f;
61750 }
61752 {
61755 Main.dust[
num298].noGravity =
true;
61757 dust2.velocity *= 3f;
61758 }
61760 {
61763 Main.dust[
num300].noGravity =
true;
61765 dust2.velocity *= 3f;
61766 }
61768 {
61769 int num302 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
61770 Main.gore[
num302].position = base.Center +
Vector2.
UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() *
width / 2f;
61772 gore2.velocity *= 0.3f;
61773 Main.gore[
num302].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
61774 Main.gore[
num302].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
61775 }
61776 }
61778 {
61780 {
61782 Main.dust[
num304].noGravity =
true;
61784 dust2.velocity -=
oldVelocity * Main.rand.Next(20, 60) * 0.01f;
61785 }
61786 }
61787 else if (
type == 484)
61788 {
61790 {
61792 Main.dust[
num306].noGravity =
true;
61795 Main.dust[
num306].scale = 0.85f;
61796 }
61797 }
61798 else if (
type == 483)
61799 {
61801 if (
owner == Main.myPlayer)
61802 {
61803 int num307 = Main.rand.Next(4, 8);
61807 {
61809 {
61810 continue;
61811 }
61814 {
61818 {
61819 break;
61820 }
61821 }
61822 }
61824 {
61826 {
61830 {
61831 }
61835 }
61836 }
61839 {
61843 }
61846 {
61847 float num317 = Main.rand.Next(8, 15);
61851 {
61854 }
61857 {
61862 }
61864 }
61865 }
61867 {
61869 Main.dust[
num319].noGravity =
true;
61871 dust2.velocity *= 4f;
61872 }
61874 {
61877 dust2.velocity *= 0.9f;
61878 Main.dust[
num321].scale = 0.9f;
61879 }
61881 {
61883 Main.dust[
num323].noGravity =
true;
61885 dust2.velocity *= 3f;
61888 dust2.velocity *= 2f;
61889 }
61892 gore2.velocity *= 0.3f;
61893 Main.gore[
num324].velocity.X += Main.rand.Next(-1, 2);
61894 Main.gore[
num324].velocity.Y += Main.rand.Next(-1, 2);
61895 if (
owner == Main.myPlayer)
61896 {
61898 position.X -=
num325 / 2;
61899 position.Y -=
num325 / 2;
61904 }
61905 }
61907 {
61910 {
61912 Main.dust[
num327].noGravity =
true;
61914 Main.dust[
num327].velocity =
new Vector2(Main.rand.Next(-100, 101), Main.rand.Next(-100, 101));
61915 Main.dust[
num327].velocity.Normalize();
61917 dust2.velocity *= (float)Main.rand.Next(1, 30) * 0.1f;
61919 }
61920 }
61921 else if (
type == 522)
61922 {
61925 {
61928 if (Main.rand.Next(3) == 0)
61929 {
61930 Main.dust[
num329].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
61931 Main.dust[
num329].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
61934 }
61935 else
61936 {
61937 Main.dust[
num329].scale = 1f + (float)Main.rand.Next(-10, 11) * 0.01f;
61938 }
61939 Main.dust[
num329].noGravity =
true;
61941 dust2.velocity *= 1.25f;
61944 }
61945 }
61946 else if (
type == 521)
61947 {
61950 {
61953 if (Main.rand.Next(3) == 0)
61954 {
61955 Main.dust[
num331].fadeIn = 1.1f + (float)Main.rand.Next(-10, 11) * 0.01f;
61956 Main.dust[
num331].scale = 0.35f + (float)Main.rand.Next(-10, 11) * 0.01f;
61959 }
61960 else
61961 {
61962 Main.dust[
num331].scale = 1.2f + (float)Main.rand.Next(-10, 11) * 0.01f;
61963 }
61964 Main.dust[
num331].noGravity =
true;
61966 dust2.velocity *= 2.5f;
61969 }
61970 if (Main.myPlayer ==
owner)
61971 {
61972 int num332 = Main.rand.Next(3, 6);
61974 {
61977 {
61978 vector40 =
new Vector2(Main.rand.Next(-100, 101), Main.rand.Next(-100, 101));
61979 }
61981 vector40 *= (float)Main.rand.Next(70, 101) * 0.1f;
61983 }
61984 }
61985 }
61987 {
61990 {
61992 Main.dust[
num335].noGravity =
true;
61995 }
61996 }
61998 {
62003 {
62011 }
62013 {
62015 Main.dust[
num340].position =
new Vector2(
width / 2, 0f).RotatedBy(6.2831854820251465 * Main.rand.NextDouble()) * (float)Main.rand.NextDouble() +
base.Center;
62016 }
62018 {
62020 Main.dust[
num342].position =
new Vector2(
width / 2, 0f).RotatedBy(6.2831854820251465 * Main.rand.NextDouble()) * (float)Main.rand.NextDouble() +
base.Center;
62021 Main.dust[
num342].noGravity =
true;
62023 dust2.velocity *= 1f;
62024 }
62026 {
62027 int num344 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
62029 gore2.velocity *= 0.3f;
62030 Main.gore[
num344].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
62031 Main.gore[
num344].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
62032 }
62033 if (
type == 709 && Main.myPlayer ==
owner)
62034 {
62037 {
62039 {
62040 Main.projectile[
num345].ai[1] = 1f;
62041 Main.projectile[
num345].velocity = (base.Center - Main.projectile[
num345].Center) / 5f;
62042 Main.projectile[
num345].netUpdate =
true;
62043 }
62044 }
62046 Main.projectile[
num346].timeLeft = 30 * Main.rand.Next(2, 6);
62050 }
62051 }
62052 if (
owner != Main.myPlayer &&
type == 453 && Main.player[
owner].mount.AbilityActive)
62053 {
62055 }
62057 {
62058 Main.player[
owner].mount.StopAbilityCharge();
62059 }
62061 {
62063 int num347 = Main.rand.Next(5, 9);
62065 {
62066 int num349 = Dust.NewDust(
base.Center, 0, 0, 171, 0f, 0f, 100,
default(
Color), 1.4f);
62068 dust2.velocity *= 0.8f;
62070 Main.dust[
num349].noGravity =
true;
62071 }
62072 if (
owner == Main.myPlayer)
62073 {
62075 if (Main.player[
owner].gravDir == -1f)
62076 {
62077 vector41.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y;
62078 }
62082 }
62083 }
62085 {
62087 {
62089 Main.dust[
num351].noGravity =
true;
62091 dust2.velocity *= 0.45f;
62093 dust2.velocity +=
velocity * 0.9f;
62094 }
62095 }
62097 {
62098 int num352 = Main.rand.Next(5, 10);
62100 {
62101 int num354 = Dust.NewDust(
base.Center, 0, 0, 220, 0f, 0f, 100,
default(
Color), 0.5f);
62103 dust2.velocity *= 1.6f;
62104 Main.dust[
num354].velocity.Y -= 1f;
62106 Main.dust[
num354].noGravity =
true;
62107 }
62108 if (
owner == Main.myPlayer &&
type == 639)
62109 {
62112 if (Main.ProjectileUpdateLoopIndex <
nextSlot && Main.ProjectileUpdateLoopIndex != -1)
62113 {
62115 }
62117 NewProjectile(
GetProjectileSource_FromThis(),
localAI[0],
localAI[1],
vector43.X,
vector43.Y, 640,
damage,
knockBack,
owner, 0f,
num355);
62118 }
62119 }
62121 {
62122 int num356 = Main.rand.Next(15, 25);
62124 {
62125 int num358 = Dust.NewDust(
base.Center, 0, 0, 60, 0f, 0f, 100,
new Color(255, 255, 255, 0), 1.3f);
62127 dust2.velocity *= 8f * (0.3f + 0.7f * Main.rand.NextFloat());
62128 Main.dust[
num358].fadeIn = 1.3f + Main.rand.NextFloat() * 0.2f;
62129 Main.dust[
num358].noLight =
true;
62130 Main.dust[
num358].noGravity =
true;
62132 dust2.position += Main.dust[
num358].velocity * 4f;
62133 }
62134 }
62136 {
62137 int num359 = Main.rand.Next(5, 10);
62139 {
62140 int num361 = Dust.NewDust(
base.Center, 0, 0, 226, 0f, 0f, 100,
default(
Color), 0.5f);
62142 dust2.velocity *= 1.6f;
62143 Main.dust[
num361].velocity.Y -= 1f;
62145 Main.dust[
num361].noGravity =
true;
62146 }
62147 }
62149 {
62150 int num362 = Main.rand.Next(5, 10);
62152 {
62153 int num364 = Dust.NewDust(
base.Center, 0, 0, 226, 0f, 0f, 100,
default(
Color), 0.5f);
62155 dust2.velocity *= 1.6f;
62156 Main.dust[
num364].velocity.Y -= 1f;
62159 Main.dust[
num364].noGravity =
true;
62160 }
62161 }
62163 {
62166 {
62167 int num367 = Dust.NewDust(
base.Center, 0, 0, 272, 0f, 0f, 0,
default(
Color), 0.5f);
62169 dust2.velocity *= 1.6f;
62170 Main.dust[
num367].velocity.Y -= 1f;
62172 }
62173 }
62175 {
62176 int num368 = Main.rand.Next(5, 10);
62178 {
62179 int num370 = Dust.NewDust(
base.Center, 0, 0, 220, 0f, 0f, 100,
default(
Color), 0.5f);
62181 dust2.velocity *= 1.6f;
62182 Main.dust[
num370].velocity.Y -= 1f;
62184 Main.dust[
num370].noGravity =
true;
62185 }
62186 }
62188 {
62189 int num371 = Main.rand.Next(5, 10);
62191 {
62192 int num373 = Dust.NewDust(
base.Center, 0, 0, 229, 0f, 0f, 100,
default(
Color), 0.5f);
62194 dust2.velocity *= 1.6f;
62195 Main.dust[
num373].velocity.Y -= 1f;
62197 dust2.position -= Vector2.One * 4f;
62199 Main.dust[
num373].noGravity =
true;
62200 }
62201 }
62203 {
62205 int num374 = Main.rand.Next(3, 7);
62207 {
62210 dust2.velocity *= 2f;
62211 Main.dust[
num376].noGravity =
true;
62212 }
62213 if (Main.myPlayer ==
owner)
62214 {
62217 {
62219 {
62220 Main.projectile[
num377].ai[1] = 1f;
62221 Main.projectile[
num377].velocity = (base.Center - Main.projectile[
num377].Center) / 5f;
62222 Main.projectile[
num377].netUpdate =
true;
62223 }
62224 }
62226 }
62227 }
62229 {
62230 int num378 = Main.rand.Next(3, 7);
62232 {
62235 dust2.velocity *= 2f;
62236 Main.dust[
num380].noGravity =
true;
62237 }
62238 }
62240 {
62241 int num381 = Main.rand.Next(3, 7);
62243 {
62246 dust2.velocity *= 1.5f;
62247 Main.dust[
num383].noGravity =
true;
62248 }
62249 }
62251 {
62252 int num384 = Main.rand.Next(3, 7);
62254 {
62257 dust2.velocity *= 2f;
62258 Main.dust[
num386].noGravity =
true;
62259 }
62260 }
62262 {
62264 {
62265 int num388 = Dust.NewDust(
base.Center, 10, 10, 27);
62266 Main.dust[
num388].noGravity =
true;
62269 }
62270 }
62272 {
62274 {
62275 int num390 = Dust.NewDust(
base.Center, 10, 10, 27);
62276 Main.dust[
num390].noGravity =
true;
62278 dust2.velocity *= 2f;
62282 dust2.scale += (float)Main.rand.Next(150) * 0.001f;
62283 }
62284 }
62286 {
62290 position.X -=
width / 2;
62291 position.Y -=
height / 2;
62293 {
62295 }
62297 {
62299 Main.dust[
num393].noGravity =
true;
62301 dust2.velocity *= 3f;
62304 dust2.velocity *= 2f;
62305 Main.dust[
num393].noGravity =
true;
62306 }
62308 {
62309 int num395 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
62311 gore2.velocity *= 0.3f;
62312 Main.gore[
num395].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
62313 Main.gore[
num395].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
62314 }
62316 }
62318 {
62323 {
62325 }
62326 position.X -=
width / 2;
62327 position.Y -=
height / 2;
62330 }
62332 {
62336 position.X -=
width / 2;
62337 position.Y -=
height / 2;
62339 {
62341 }
62343 {
62345 Main.dust[
num398].noGravity =
true;
62347 dust2.velocity *= 2f;
62350 dust2.velocity *= 1.2f;
62351 Main.dust[
num398].noGravity =
true;
62352 }
62354 {
62355 int num400 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
62357 gore2.velocity *= 0.3f;
62358 Main.gore[
num400].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
62359 Main.gore[
num400].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
62360 }
62362 }
62364 {
62367 {
62369 {
62371 Main.dust[
num402].color = Main.hslToRgb(Main.rand.NextFloat(), 1f, 0.5f);
62372 Main.dust[
num402].noGravity =
true;
62373 }
62374 }
62375 }
62377 {
62381 if (
owner == Main.myPlayer)
62382 {
62383 int num403 = Main.rand.Next(20, 31);
62385 {
62388 vector45 *= (float)Main.rand.Next(10, 201) * 0.01f;
62390 }
62391 }
62392 }
62394 {
62397 {
62399 }
62400 if (Main.netMode != 1)
62401 {
62403 {
62404 case 868:
62405 WorldGen.TreeTops.RandomizeTreeStyleBasedOnWorldPosition(Main.rand,
base.Center);
62406 break;
62407 case 869:
62408 WorldGen.RandomizeBackgroundBasedOnPlayer(Main.rand, Main.player[
owner]);
62409 break;
62410 case 996:
62412 break;
62413 }
62414 NetMessage.SendData(7);
62415 }
62416 }
62417 else if (
type == 836)
62418 {
62420 {
62423 dust2.velocity *= 0.5f;
62424 Main.dust[
num407].noGravity =
true;
62425 }
62426 }
62428 {
62430 {
62433 dust2.velocity /= 2f;
62434 }
62439 gore2.timeLeft /=
num411;
62442 gore2.timeLeft /=
num411;
62445 gore2.timeLeft /=
num411;
62446 }
62448 {
62452 {
62457 Main.dust[
num414].noGravity =
true;
62458 Main.dust[
num414].noLight =
true;
62460 }
62461 if (
owner == Main.myPlayer)
62462 {
62464 {
62465 int num415 = (Main.expertMode ? 25 : 40);
62466 int num416 =
NewProjectile(
GetProjectileSource_FromThis(),
base.Center.X - (
float)(
direction * 30),
base.Center.Y - 4f, (
float)(-
direction) * 0.01f, 0f, 384,
num415, 4f,
owner, 16f, 15f);
62467 Main.projectile[
num416].netUpdate =
true;
62468 }
62469 else
62470 {
62475 {
62477 }
62478 if (
num418 > Main.maxTilesX - 10)
62479 {
62480 num418 = Main.maxTilesX - 10;
62481 }
62483 {
62485 }
62487 {
62489 }
62493 {
62495 if (tile.active() && (Main.tileSolid[tile.type] || tile.liquid != 0))
62496 {
62498 break;
62499 }
62500 }
62502 int num423 = (Main.expertMode ? 50 : 80);
62503 int num424 =
NewProjectile(
GetProjectileSource_FromThis(),
num418 * 16 + 8,
num417 * 16 - 24, 0f, 0f, 386,
num423, 4f, Main.myPlayer, 16f, 24f);
62504 Main.projectile[
num424].netUpdate =
true;
62505 }
62506 }
62507 }
62508 else if (
type >= 424 &&
type <= 426)
62509 {
62511 position.X +=
width / 2;
62512 position.Y +=
height / 2;
62515 position.X -=
width / 2;
62516 position.Y -=
height / 2;
62518 {
62520 }
62522 {
62524 Main.dust[
num427].noGravity =
true;
62526 dust2.velocity *= 3f;
62529 dust2.velocity *= 2f;
62530 Main.dust[
num427].noGravity =
true;
62531 }
62533 {
62534 int num429 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100f, (
float)(
height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f,
default(
Vector2), Main.rand.Next(61, 64));
62536 gore2.velocity *= 0.3f;
62537 Main.gore[
num429].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
62538 Main.gore[
num429].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
62539 }
62540 if (
owner == Main.myPlayer)
62541 {
62545 }
62547 {
62548 int num431 = Utils.SelectRandom<
int>(Main.rand, 6, 259, 158);
62550 Main.dust[
num432].alpha = 200;
62552 dust2.velocity *= 2.4f;
62554 dust2.scale += Main.rand.NextFloat();
62555 }
62556 }
62558 {
62562 {
62564 }
62566 {
62569 dust2.velocity *= 1.4f;
62570 }
62572 {
62574 Main.dust[
num437].noGravity =
true;
62576 dust2.velocity *= 5f;
62579 dust2.velocity *= 3f;
62580 }
62581 if (Main.myPlayer ==
owner)
62582 {
62584 {
62585 float num439 = (0f -
velocity.
X) * (
float)Main.rand.Next(20, 50) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
62586 float num440 = (0f -
Math.
Abs(
velocity.
Y)) * (
float)Main.rand.Next(30, 50) * 0.01f + (float)Main.rand.Next(-20, 5) * 0.4f;
62588 }
62589 }
62590 }
62592 {
62594 {
62599 dust42.noGravity = true;
62600 }
62601 }
62603 {
62610 {
62612 Main.dust[
num444].position = (Main.dust[
num444].position +
base.Center) / 2f;
62616 dust2.velocity *= 0.5f;
62617 Main.dust[
num444].noGravity =
true;
62619 }
62620 }
62622 {
62628 {
62630 Main.dust[
num446].position = (Main.dust[
num446].position +
base.Center) / 2f;
62634 dust2.velocity *= 0.5f;
62635 Main.dust[
num446].noGravity =
true;
62637 }
62638 }
62640 {
62645 {
62647 Main.dust[
num448].color =
new Color(10, 10, 10, 150);
62648 Main.dust[
num448].position = (Main.dust[
num448].position +
base.Center) / 2f;
62652 dust2.velocity *= 0.5f;
62653 Main.dust[
num448].noGravity =
true;
62655 }
62656 }
62658 {
62661 {
62663 }
62664 }
62666 {
62668 {
62670 Main.dust[
num451].noGravity =
true;
62672 }
62673 }
62675 {
62678 {
62681 if (Main.rand.Next(2) == 0)
62682 {
62684 dust2.alpha += 25;
62685 }
62686 if (Main.rand.Next(2) == 0)
62687 {
62689 dust2.alpha += 25;
62690 }
62691 if (Main.rand.Next(2) == 0)
62692 {
62694 dust2.alpha += 25;
62695 }
62696 if (Main.rand.Next(2) == 0)
62697 {
62698 Main.dust[
num453].scale = 0.6f;
62699 }
62700 else
62701 {
62702 Main.dust[
num453].noGravity =
true;
62703 }
62705 dust2.velocity *= 0.3f;
62709 dust2.velocity *= 1f + (float)Main.rand.Next(-100, 101) * 0.01f;
62710 Main.dust[
num453].velocity.X += (float)Main.rand.Next(-50, 51) * 0.015f;
62711 Main.dust[
num453].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.015f;
62713 }
62714 }
62716 {
62721 {
62724 if (Main.rand.Next(2) == 0)
62725 {
62727 dust2.alpha += 25;
62728 }
62729 if (Main.rand.Next(2) == 0)
62730 {
62732 dust2.alpha += 25;
62733 }
62734 if (Main.rand.Next(2) == 0)
62735 {
62737 dust2.alpha += 25;
62738 }
62739 if (Main.rand.Next(2) == 0)
62740 {
62741 Main.dust[
num456].scale = 0.6f;
62742 }
62743 else
62744 {
62745 Main.dust[
num456].noGravity =
true;
62746 }
62748 dust2.velocity *= 0.3f;
62752 dust2.velocity *= 1f + (float)Main.rand.Next(-100, 101) * 0.01f;
62753 Main.dust[
num456].velocity.X += (float)Main.rand.Next(-50, 51) * 0.015f;
62754 Main.dust[
num456].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.015f;
62756 }
62757 }
62759 {
62761 {
62763 Main.dust[
num458].noGravity =
true;
62764 Main.dust[
num458].velocity.X *= 0.75f;
62765 Main.dust[
num458].velocity.Y *= 0.75f;
62767 dust2.velocity -=
velocity * 0.025f;
62768 }
62769 }
62770 else if (
type == 343)
62771 {
62774 {
62778 Main.dust[
num462].noGravity =
true;
62780 dust2.velocity *= 0.5f;
62781 }
62782 }
62783 else if (
type == 349)
62784 {
62787 {
62789 Main.dust[
num464].noGravity =
true;
62790 Main.dust[
num464].noLight =
true;
62791 Main.dust[
num464].scale = 0.7f;
62792 }
62793 }
62795 {
62798 {
62800 if (Main.rand.Next(2) == 0)
62801 {
62802 Main.dust[
num466].noGravity =
true;
62803 Main.dust[
num466].scale = 1.3f;
62805 dust2.velocity *= 1.5f;
62809 dust2.velocity *= 1.5f;
62810 }
62811 else
62812 {
62814 dust2.velocity *= 0.75f;
62817 Main.dust[
num466].scale = 0.8f;
62818 }
62819 }
62820 }
62822 {
62826 {
62828 }
62830 {
62832 }
62834 {
62836 }
62838 {
62840 }
62841 newColor7.A = 100;
62843 {
62846 dust2.velocity *= 1f + Main.rand.NextFloat() * 1f;
62848 {
62849 Main.dust[
num468].noGravity =
true;
62851 dust2.velocity *= 0.5f;
62852 }
62853 }
62854 }
62856 {
62859 {
62862 {
62864 }
62866 Main.dust[
num471].noGravity =
true;
62867 }
62868 }
62870 {
62873 {
62876 Main.dust[
num474].noLight =
true;
62877 Main.dust[
num474].scale = 0.8f;
62878 }
62879 }
62881 {
62884 {
62886 if (Main.rand.Next(2) == 0)
62887 {
62888 Main.dust[
num476].noGravity =
true;
62889 }
62890 }
62891 }
62893 {
62895 {
62897 if (Main.rand.Next(2) == 0)
62898 {
62899 Main.dust[
num478].noGravity =
true;
62900 }
62901 }
62902 }
62903 else if (
type == 311)
62904 {
62906 {
62908 Main.dust[
num480].scale = 0.85f;
62909 Main.dust[
num480].noGravity =
true;
62911 dust2.velocity +=
velocity * 0.5f;
62912 }
62913 }
62914 else if (
type == 316)
62915 {
62917 {
62919 Main.dust[
num482].scale = 0.85f;
62920 Main.dust[
num482].noGravity =
true;
62922 dust2.velocity +=
velocity * 0.5f;
62923 }
62924 }
62925 else if (
type == 184 ||
type == 195)
62926 {
62929 {
62931 }
62932 }
62933 else if (
type == 275 ||
type == 276)
62934 {
62937 {
62939 }
62940 }
62941 else if (
type == 291)
62942 {
62943 if (
owner == Main.myPlayer)
62944 {
62946 }
62947 }
62948 else if (
type == 295)
62949 {
62950 if (
owner == Main.myPlayer)
62951 {
62953 }
62954 }
62955 else if (
type == 270 ||
type == 837)
62956 {
62959 {
62961 {
62963 Main.dust[
num486].noGravity =
true;
62965 dust2.velocity *= 1.2f;
62966 Main.dust[
num486].scale = 1.3f;
62970 Main.dust[
num486].noGravity =
true;
62972 dust2.velocity *= 3f;
62973 }
62974 }
62975 else
62976 {
62978 {
62980 Main.dust[
num488].noGravity =
true;
62982 dust2.velocity *= 1.2f;
62983 Main.dust[
num488].scale = 1.3f;
62987 Main.dust[
num488].noGravity =
true;
62989 dust2.velocity *= 3f;
62990 }
62991 }
62992 }
62993 else if (
type == 265)
62994 {
62996 {
62998 Main.dust[
num490].noGravity =
true;
63000 dust2.velocity *= 1.2f;
63003 }
63004 }
63005 else if (
type == 355)
63006 {
63008 {
63010 Main.dust[
num492].noGravity =
true;
63012 dust2.velocity *= 1.2f;
63015 }
63016 }
63017 else if (
type == 304)
63018 {
63020 {
63022 Main.dust[
num494].noGravity =
true;
63024 dust2.velocity *= 1.2f;
63027 }
63028 }
63029 else if (
type == 263)
63030 {
63033 {
63034 int num496 = Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 92,
velocity.
X,
velocity.
Y, Main.rand.Next(0, 101),
default(
Color), 1f + (
float)Main.rand.Next(40) * 0.01f);
63035 Main.dust[
num496].noGravity =
true;
63037 dust2.velocity *= 2f;
63038 }
63039 }
63040 else if (
type == 261)
63041 {
63044 {
63047 dust2.velocity *= 2f;
63048 dust43.velocity.Y -= 0.4f;
63049 }
63051 {
63054 dust2.velocity *= 2f;
63055 dust44.noLight = true;
63057 dust2.scale *= 0.8f;
63058 dust44.velocity.Y -= 0.3f;
63059 }
63060 }
63061 else if (
type == 928)
63062 {
63065 {
63067 }
63068 }
63069 else if (
type == 229)
63070 {
63072 {
63074 Main.dust[
num501].noGravity =
true;
63076 dust2.velocity *= 1.5f;
63077 Main.dust[
num501].scale = 1.5f;
63078 }
63079 }
63080 else if (
type == 239)
63081 {
63083 {
63085 Main.dust[
num502].position.X -= 2f;
63086 Main.dust[
num502].alpha = 38;
63088 dust2.velocity *= 0.1f;
63091 Main.dust[
num502].scale = 0.95f;
63092 }
63093 }
63094 else if (
type == 245)
63095 {
63097 {
63099 Main.dust[
num503].noGravity =
true;
63100 Main.dust[
num503].position.X -= 2f;
63101 Main.dust[
num503].alpha = 38;
63103 dust2.velocity *= 0.1f;
63106 Main.dust[
num503].scale = 0.95f;
63107 }
63108 }
63109 else if (
type == 264)
63110 {
63112 {
63114 Main.dust[
num504].noGravity =
true;
63115 Main.dust[
num504].position.X -= 2f;
63116 Main.dust[
num504].alpha = 38;
63118 dust2.velocity *= 0.1f;
63121 Main.dust[
num504].scale = 0.95f;
63122 }
63123 }
63124 else if (
type == 206 ||
type == 225)
63125 {
63128 {
63130 }
63131 }
63132 else if (
type == 227)
63133 {
63136 {
63138 Main.dust[
num507].noGravity =
true;
63140 dust2.velocity +=
oldVelocity * Main.rand.NextFloat();
63141 Main.dust[
num507].scale = 1.5f;
63142 }
63143 }
63144 else if (
type == 237 &&
owner == Main.myPlayer)
63145 {
63147 }
63148 else if (
type == 243 &&
owner == Main.myPlayer)
63149 {
63151 }
63152 else if (
type == 120)
63153 {
63156 {
63159 {
63160 Main.dust[
num509].noGravity =
true;
63161 }
63163 dust2.velocity *= 0.2f;
63164 }
63165 }
63167 {
63169 {
63171 Main.dust[
num511].noGravity =
true;
63172 Main.dust[
num511].scale = 1f;
63173 }
63174 }
63175 else if (
type == 178)
63176 {
63178 {
63179 int num513 = Main.rand.Next(139, 143);
63181 Main.dust[
num514].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
63182 Main.dust[
num514].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
63183 Main.dust[
num514].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63184 Main.dust[
num514].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63185 Main.dust[
num514].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
63186 Main.dust[
num514].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
63188 dust2.scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
63189 }
63191 {
63192 int num516 = Main.rand.Next(276, 283);
63194 Main.gore[
num517].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
63195 Main.gore[
num517].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
63196 Main.gore[
num517].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63197 Main.gore[
num517].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63199 gore2.scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
63200 Main.gore[
num517].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
63201 Main.gore[
num517].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
63202 }
63203 }
63204 else if (
type == 289)
63205 {
63207 {
63208 int num519 = Main.rand.Next(139, 143);
63210 Main.dust[
num520].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
63211 Main.dust[
num520].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
63212 Main.dust[
num520].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63213 Main.dust[
num520].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63214 Main.dust[
num520].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
63215 Main.dust[
num520].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
63217 dust2.scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
63218 }
63220 {
63221 int num522 = Main.rand.Next(276, 283);
63223 Main.gore[
num523].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
63224 Main.gore[
num523].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
63225 Main.gore[
num523].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63226 Main.gore[
num523].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
63228 gore2.scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
63229 Main.gore[
num523].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
63230 Main.gore[
num523].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
63231 }
63232 }
63234 {
63236 {
63238 }
63240 {
63246 {
63248 }
63252 {
63254 }
63259 {
63263 {
63265 }
63272 {
63274 }
63276 {
63278 }
63280 {
63282 {
63284 Main.dust[
num536].noGravity =
true;
63286 dust2.velocity *= 0.3f;
63287 }
63288 }
63295 }
63296 }
63297 }
63298 else if (
type == 171)
63299 {
63301 {
63303 }
63305 {
63311 {
63313 }
63317 {
63319 }
63324 {
63328 {
63330 }
63336 {
63338 {
63340 Main.dust[
num548].noGravity =
true;
63342 dust2.velocity *= 0.3f;
63343 }
63344 }
63351 }
63352 }
63353 }
63354 else if (
type == 117)
63355 {
63358 {
63360 }
63361 }
63362 else if (
type == 166)
63363 {
63366 {
63368 Main.dust[
num551].noGravity =
true;
63371 }
63372 }
63373 else if (
type == 158)
63374 {
63377 {
63379 Main.dust[
num553].noGravity =
true;
63381 dust2.velocity -=
velocity * 0.5f;
63382 }
63383 }
63384 else if (
type == 159)
63385 {
63388 {
63390 Main.dust[
num555].noGravity =
true;
63392 dust2.velocity -=
velocity * 0.5f;
63393 }
63394 }
63395 else if (
type == 160)
63396 {
63399 {
63401 Main.dust[
num557].noGravity =
true;
63403 dust2.velocity -=
velocity * 0.5f;
63404 }
63405 }
63406 else if (
type == 161)
63407 {
63410 {
63412 Main.dust[
num559].noGravity =
true;
63414 dust2.velocity -=
velocity * 0.5f;
63415 }
63416 }
63417 else if (
type >= 191 &&
type <= 194)
63418 {
63421 gore2.velocity *= 0.1f;
63422 }
63423 else if (!Main.projPet[
type])
63424 {
63426 {
63429 {
63431 Main.dust[
num562].noGravity =
true;
63432 Main.dust[
num562].fadeIn = 1f;
63433 Main.dust[
num562].velocity.X *= 2f;
63434 Main.dust[
num562].velocity.Y *= 2f;
63435 Main.dust[
num562].velocity.Y -= Main.rand.NextFloat() * 1.5f;
63436 }
63437 }
63439 {
63442 {
63443 1013 => 243,
63444 727 => 40,
63445 1014 => 12,
63446 1021 => 323,
63448 };
63451 {
63453 if (Main.rand.Next(2) == 0)
63454 {
63456 dust2.scale *= 1.4f;
63457 }
63459 }
63460 if (
type == 1014 &&
owner == Main.myPlayer)
63461 {
63463 if (Main.netMode == 1)
63464 {
63465 NetMessage.SendData(21, -1, -1,
null,
number, 1f);
63466 }
63467 }
63468 }
63469 else if (
type == 1005)
63470 {
63473 {
63475 if (Main.rand.Next(2) == 0)
63476 {
63478 dust2.scale *= 1.1f;
63479 }
63481 }
63482 }
63483 else if (
type == 772)
63484 {
63487 {
63490 }
63492 {
63493 Dust
dust45 = Dust.NewDustDirect(
position,
width,
height, Main.rand.NextFromList<
int>(86, 87, 88, 89, 90), 0f, 0f, 0,
default(
Color), 0.7f);
63494 dust45.noGravity = true;
63496 dust2.velocity *= 2.9f;
63497 dust45.velocity.Y *= 0.8f;
63498 dust45.fadeIn = 1.1f;
63499 }
63501 {
63502 Dust
dust46 = Dust.NewDustDirect(
position,
width,
height, Main.rand.NextFromList<
int>(86, 87, 88, 89, 90), 0f, 0f, 0,
default(
Color), 0.7f);
63503 dust46.noGravity = true;
63505 dust2.velocity *= 2.9f;
63506 dust46.velocity.Y *= 0.8f;
63507 dust46.fadeIn = 1.1f;
63508 dust46.noLight = true;
63509 }
63510 if (
owner == Main.myPlayer)
63511 {
63513 }
63514 }
63515 else if (
type == 763)
63516 {
63518 {
63520 if (Main.rand.Next(2) == 0)
63521 {
63523 dust2.scale *= 0.8f;
63524 }
63525 Main.dust[
num572].noGravity =
true;
63527 }
63528 }
63529 else if (
type == 655)
63530 {
63533 {
63535 if (Main.rand.Next(2) == 0)
63536 {
63538 dust2.scale *= 1.4f;
63539 }
63541 }
63542 if (Main.netMode != 1 && !
wet)
63543 {
63545 if (Main.rand.Next(3) == 0)
63546 {
63548 }
63549 if (Main.rand.Next(3) == 0)
63550 {
63552 }
63553 if (Main.rand.Next(3) == 0)
63554 {
63556 }
63559 {
63560 int num577 = Main.rand.Next(210, 212);
63562 Main.npc[
num578].velocity.X = (float)Main.rand.Next(-200, 201) * 0.002f;
63563 Main.npc[
num578].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.002f;
63564 Main.npc[
num578].netUpdate =
true;
63565 }
63566 }
63567 }
63568 else if (
type == 728)
63569 {
63572 {
63574 }
63576 {
63578 }
63580 {
63581 Dust.NewDustPerfect(
base.Center, 278,
Vector2.
UnitY.RotatedBy(
num581 * ((
float)
Math.
PI * 2f) + Main.rand.NextFloat() * 0.5f) * (2f + Main.rand.NextFloat() * 3f), 150,
Color.
Gold).noGravity =
true;
63582 }
63585 {
63587 {
63588 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) *
velocity.
Length(), Utils.SelectRandom<
int>(Main.rand, 16, 17, 17, 17, 17, 17, 17, 17));
63589 }
63590 }
63591 }
63592 else if (
type == 729)
63593 {
63596 {
63598 dust47.noGravity = true;
63599 dust47.velocity.X *= 2f;
63600 }
63601 }
63603 {
63605 {
63608 {
63610 dust48.noGravity = true;
63611 dust48.velocity.X *= 2f;
63612 }
63614 {
63617 gore2.velocity *= 2f;
63618 }
63619 if (
owner == Main.myPlayer && Main.player[
owner].starCloakCooldown == 0)
63620 {
63621 Main.player[
owner].starCloakCooldown = 60;
63623 if (Main.netMode == 1)
63624 {
63625 NetMessage.SendData(21, -1, -1,
null,
number2, 1f);
63626 }
63627 }
63628 }
63629 else
63630 {
63632 {
63634 }
63635 else
63636 {
63638 }
63640 {
63643 {
63645 dust2.velocity *= 0.75f;
63646 }
63647 }
63649 {
63652 {
63654 gore2.velocity *= 0.5f;
63655 }
63656 }
63657 }
63658 }
63659 else if (
type == 91 ||
type == 92)
63660 {
63663 {
63665 }
63667 {
63669 }
63670 if ((
type == 91 || (
type == 92 &&
ai[0] > 0f)) &&
owner == Main.myPlayer)
63671 {
63672 float x = position.X + (float)Main.rand.Next(-400, 400);
63673 float y = position.Y - (float)Main.rand.Next(600, 900);
63684 {
63686 }
63689 {
63691 Main.projectile[
num595].ai[0] = 1f;
63692 }
63693 else
63694 {
63696 }
63697 }
63698 }
63699 else if (
type == 89)
63700 {
63703 {
63705 Main.dust[
num597].noGravity =
true;
63707 dust2.velocity *= 1.5f;
63709 dust2.scale *= 0.9f;
63710 }
63711 if (
type == 89 &&
owner == Main.myPlayer)
63712 {
63714 {
63715 float num599 = (0f -
velocity.
X) * (
float)Main.rand.Next(40, 70) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
63716 float num600 = (0f -
velocity.
Y) * (
float)Main.rand.Next(40, 70) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
63718 }
63719 }
63720 }
63721 else if (
type == 967)
63722 {
63725 {
63726 int num602 = Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 219,
velocity.
X,
velocity.
Y, 0,
default(
Color), 0.5f + (
float)Main.rand.Next(-20, 40) * 0.01f);
63727 Main.dust[
num602].noGravity =
true;
63728 Main.dust[
num602].velocity = Main.rand.NextVector2Circular(6f, 6f);
63729 }
63730 }
63731 else if (
type == 969)
63732 {
63735 {
63736 activeSound2.Volume = 0f;
63738 }
63739 }
63740 else if (
type == 177)
63741 {
63743 {
63744 int num604 = Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 137, 0f, 0f, Main.rand.Next(0, 101),
default(
Color), 1f + (
float)Main.rand.Next(-20, 40) * 0.01f);
63747 if (Main.rand.Next(3) == 0)
63748 {
63750 dust2.scale *= 0.8f;
63752 dust2.velocity *= 0.5f;
63753 }
63754 else
63755 {
63756 Main.dust[
num604].noGravity =
true;
63757 }
63758 }
63759 }
63761 {
63764 {
63766 }
63769 {
63771 if (Main.rand.Next(3) != 0)
63772 {
63774 dust2.velocity *= 2f;
63775 Main.dust[
num607].noGravity =
true;
63777 dust2.scale *= 1.75f;
63778 }
63779 else
63780 {
63782 dust2.scale *= 0.5f;
63783 }
63784 }
63785 }
63786 else if (
type == 309)
63787 {
63791 {
63793 if (Main.rand.Next(2) == 0)
63794 {
63796 dust2.velocity *= 2f;
63797 Main.dust[
num610].noGravity =
true;
63799 dust2.scale *= 1.75f;
63800 }
63801 }
63802 }
63803 else if (
type == 308)
63804 {
63808 {
63811 dust2.velocity *= 2f;
63812 Main.dust[
num613].noGravity =
true;
63814 dust2.scale *= 1.15f;
63815 }
63816 }
63818 {
63822 {
63824 Main.dust[
num616].noGravity =
true;
63826 dust2.scale *= 1.25f;
63828 dust2.velocity *= 0.5f;
63829 }
63830 }
63831 else if (
type == 597)
63832 {
63835 {
63837 Main.dust[
num618].noGravity =
true;
63839 dust2.scale *= 1.25f;
63841 dust2.velocity *= 0.5f;
63842 }
63843 }
63844 else if (
type == 731)
63845 {
63848 {
63850 if (Main.rand.Next(3) != 0)
63851 {
63852 dust50.noGravity = true;
63854 dust2.scale *= 1.5f;
63856 dust2.velocity *= 0.5f;
63857 }
63858 }
63859 }
63860 else if (
type == 337)
63861 {
63864 {
63866 Main.dust[
num621].noGravity =
true;
63867 }
63868 }
63869 else if (
type == 379 ||
type == 377)
63870 {
63872 {
63874 Main.dust[
num623].scale = (float)Main.rand.Next(1, 10) * 0.1f;
63875 Main.dust[
num623].noGravity =
true;
63876 Main.dust[
num623].fadeIn = 1.5f;
63878 dust2.velocity *= 0.75f;
63879 }
63880 }
63881 else if (
type == 80)
63882 {
63884 {
63887 {
63889 }
63890 }
63894 {
63896 }
63898 {
63900 }
63901 }
63903 {
63905 {
63907 Main.dust[
num628].noGravity =
true;
63908 }
63909 }
63910 else if (
type == 55 ||
type == 719)
63911 {
63913 {
63915 Main.dust[
num630].noGravity =
true;
63916 }
63917 }
63918 else if (
type == 51 ||
type == 267)
63919 {
63922 {
63924 }
63925 }
63926 else if (
type == 478)
63927 {
63928 if (
owner == Main.myPlayer)
63929 {
63931 }
63932 }
63933 else if (
type == 477 ||
type == 479)
63934 {
63936 {
63937 }
63939 }
63941 {
63944 {
63946 }
63947 }
63948 else if (
type == 474)
63949 {
63952 {
63954 }
63955 }
63956 else if (
type == 172)
63957 {
63960 {
63962 }
63963 }
63964 else if (
type == 103)
63965 {
63968 {
63970 if (Main.rand.Next(2) == 0)
63971 {
63973 dust2.scale *= 2.5f;
63974 Main.dust[
num637].noGravity =
true;
63976 dust2.velocity *= 5f;
63977 }
63978 }
63979 }
63980 else if (
type == 278)
63981 {
63984 {
63986 if (Main.rand.Next(2) == 0)
63987 {
63989 dust2.scale *= 1.5f;
63990 Main.dust[
num639].noGravity =
true;
63992 dust2.velocity *= 5f;
63993 }
63994 }
63995 }
63997 {
64000 {
64002 }
64003 }
64004 else if (
type == 330)
64005 {
64008 {
64010 }
64011 }
64012 else if (
type == 4)
64013 {
64016 {
64018 }
64019 }
64020 else if (
type == 5)
64021 {
64024 {
64025 int num644 = Main.rand.Next(3);
64027 {
64028 0 => 15,
64029 1 => 57,
64031 }, velocity.X * 0.5f, velocity.Y * 0.5f, 150,
default(
Color), 1.5f);
64032 }
64033 }
64035 {
64038 {
64040 if (Main.tenthAnniversaryWorld && (
type == 12 ||
type == 955))
64041 {
64043 newColor8.A /= 2;
64044 }
64046 {
64048 }
64050 {
64051 Dust.NewDustPerfect(
base.Center, 278,
Vector2.
UnitY.RotatedBy(
num646 * ((
float)
Math.
PI * 2f) + Main.rand.NextFloat() * 0.5f) * (4f + Main.rand.NextFloat() * 4f), 150,
newColor8).noGravity =
true;
64052 }
64054 {
64055 Dust.NewDustPerfect(
base.Center, 278,
Vector2.
UnitY.RotatedBy(
num647 * ((
float)
Math.
PI * 2f) + Main.rand.NextFloat() * 0.5f) * (2f + Main.rand.NextFloat() * 3f), 150,
Color.
Gold).noGravity =
true;
64056 }
64059 {
64061 {
64062 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) *
velocity.
Length(), Utils.SelectRandom<
int>(Main.rand, 16, 17, 17, 17, 17, 17, 17, 17));
64063 }
64064 }
64065 }
64066 else
64067 {
64071 {
64075 }
64077 {
64079 }
64081 {
64082 int num653 = Main.rand.Next(16, 18);
64084 {
64086 }
64088 }
64090 {
64092 {
64094 }
64096 {
64098 }
64099 }
64100 }
64101 }
64102 else if (
type == 281)
64103 {
64105 {
64107 int num656 = Gore.NewGore(
position,
new Vector2((
float)Main.rand.Next(-20, 21) * 0.2f, (
float)Main.rand.Next(-20, 21) * 0.2f), 76);
64109 gore2.velocity -=
velocity * 0.5f;
64112 gore2.velocity -=
velocity * 0.5f;
64115 {
64118 dust2.velocity *= 1.4f;
64119 }
64121 {
64123 Main.dust[
num660].noGravity =
true;
64125 dust2.velocity *= 5f;
64128 dust2.velocity *= 3f;
64129 }
64132 gore2.velocity *= 0.4f;
64133 Main.gore[
num656].velocity.X += 1f;
64134 Main.gore[
num656].velocity.Y += 1f;
64137 gore2.velocity *= 0.4f;
64138 Main.gore[
num656].velocity.X -= 1f;
64139 Main.gore[
num656].velocity.Y += 1f;
64142 gore2.velocity *= 0.4f;
64143 Main.gore[
num656].velocity.X += 1f;
64144 Main.gore[
num656].velocity.Y -= 1f;
64147 gore2.velocity *= 0.4f;
64148 Main.gore[
num656].velocity.X -= 1f;
64149 Main.gore[
num656].velocity.Y -= 1f;
64151 {
64152 position.X +=
width / 2;
64153 position.Y +=
height / 2;
64156 position.X -=
width / 2;
64157 position.Y -=
height / 2;
64159 {
64161 }
64163 }
64164 }
64165 }
64166 else if (
type == 162)
64167 {
64170 {
64173 dust2.velocity *= 1.4f;
64174 }
64176 {
64178 Main.dust[
num664].noGravity =
true;
64180 dust2.velocity *= 5f;
64183 dust2.velocity *= 3f;
64184 }
64187 gore2.velocity *= 0.4f;
64188 Main.gore[
num665].velocity.X += 1f;
64189 Main.gore[
num665].velocity.Y += 1f;
64192 gore2.velocity *= 0.4f;
64193 Main.gore[
num665].velocity.X -= 1f;
64194 Main.gore[
num665].velocity.Y += 1f;
64197 gore2.velocity *= 0.4f;
64198 Main.gore[
num665].velocity.X += 1f;
64199 Main.gore[
num665].velocity.Y -= 1f;
64202 gore2.velocity *= 0.4f;
64203 Main.gore[
num665].velocity.X -= 1f;
64204 Main.gore[
num665].velocity.Y -= 1f;
64205 position.X +=
width / 2;
64206 position.Y +=
height / 2;
64209 position.X -=
width / 2;
64210 position.Y -=
height / 2;
64212 }
64213 else if (
type == 240)
64214 {
64217 {
64220 dust2.velocity *= 1.4f;
64221 }
64223 {
64225 Main.dust[
num669].noGravity =
true;
64227 dust2.velocity *= 5f;
64230 dust2.velocity *= 3f;
64231 }
64234 gore2.velocity *= 0.4f;
64235 Main.gore[
num670].velocity.X += 1f;
64236 Main.gore[
num670].velocity.Y += 1f;
64239 gore2.velocity *= 0.4f;
64240 Main.gore[
num670].velocity.X -= 1f;
64241 Main.gore[
num670].velocity.Y += 1f;
64244 gore2.velocity *= 0.4f;
64245 Main.gore[
num670].velocity.X += 1f;
64246 Main.gore[
num670].velocity.Y -= 1f;
64249 gore2.velocity *= 0.4f;
64250 Main.gore[
num670].velocity.X -= 1f;
64251 Main.gore[
num670].velocity.Y -= 1f;
64252 position.X +=
width / 2;
64253 position.Y +=
height / 2;
64256 position.X -=
width / 2;
64257 position.Y -=
height / 2;
64259 }
64260 else
64261 {
64265 {
64268 {
64270 Main.dust[
num672].scale = (float)Main.rand.Next(1, 10) * 0.1f;
64271 Main.dust[
num672].noGravity =
true;
64272 Main.dust[
num672].fadeIn = 1.5f;
64274 dust2.velocity *= 0.75f;
64275 }
64276 }
64277 else if (
type == 284)
64278 {
64280 {
64281 int num674 = Main.rand.Next(139, 143);
64283 Main.dust[
num675].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
64284 Main.dust[
num675].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
64285 Main.dust[
num675].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
64286 Main.dust[
num675].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
64287 Main.dust[
num675].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
64288 Main.dust[
num675].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
64290 dust2.scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
64291 }
64293 {
64294 int num677 = Main.rand.Next(276, 283);
64296 Main.gore[
num678].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
64297 Main.gore[
num678].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
64298 Main.gore[
num678].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
64299 Main.gore[
num678].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
64301 gore2.scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
64302 Main.gore[
num678].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
64303 Main.gore[
num678].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
64304 }
64305 }
64306 else if (
type == 286)
64307 {
64310 {
64312 }
64314 {
64316 Main.dust[
num682].noGravity =
true;
64318 dust2.velocity *= 3f;
64321 dust2.velocity *= 2f;
64322 }
64325 gore2.velocity *= 0.3f;
64326 Main.gore[
num683].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
64327 Main.gore[
num683].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
64328 if (
owner == Main.myPlayer)
64329 {
64332 position.X +=
width / 2;
64333 position.Y +=
height / 2;
64336 position.X -=
width / 2;
64337 position.Y -=
height / 2;
64339 }
64340 }
64342 {
64345 }
64346 else if (
type == 981)
64347 {
64351 {
64352 PositionInWorld =
base.Center,
64353 MovementVector = Vector2.Zero
64355 }
64356 else if (
type == 1006)
64357 {
64360 float num684 = Main.rand.NextFloat() * ((float)
Math.
PI * 2f);
64362 {
64368 {
64369 PositionInWorld =
center,
64372 }
64373 }
64374 else if (
type == 660)
64375 {
64378 int num688 = Main.rand.Next(4, 10);
64380 {
64381 int num690 = Dust.NewDust(
base.Center, 0, 0, 180, 0f, 0f, 100);
64383 dust2.velocity *= 1.6f;
64384 Main.dust[
num690].velocity.Y -= 1f;
64386 dust2.velocity += -
velocity * (Main.rand.NextFloat() * 2f - 1f) * 0.5f;
64387 Main.dust[
num690].scale = 2f;
64388 Main.dust[
num690].fadeIn = 0.5f;
64389 Main.dust[
num690].noGravity =
true;
64390 }
64391 }
64392 else if (
type == 761 ||
type == 762)
64393 {
64396 {
64399 {
64401 }
64403 Main.item[
num692].noGrabDelay = 0;
64404 if (Main.netMode == 1 &&
num692 >= 0)
64405 {
64406 NetMessage.SendData(21, -1, -1,
null,
num692, 1f);
64407 }
64408 }
64409 }
64410 else if (
type == 712)
64411 {
64414 int num693 = Main.rand.Next(6, 12);
64416 {
64417 int num695 = Dust.NewDust(
base.Center, 0, 0, 15, 0f, 0f, 100);
64419 dust2.velocity *= 1.6f;
64420 Main.dust[
num695].velocity.Y -= 1f;
64422 dust2.velocity += -
velocity * (Main.rand.NextFloat() * 2f - 1f) * 0.5f;
64423 Main.dust[
num695].scale = 1f;
64424 Main.dust[
num695].fadeIn = 1.5f;
64425 Main.dust[
num695].noGravity =
true;
64426 Main.dust[
num695].color =
new Color(255, 255, 255, 0) * 0.3f;
64428 dust2.velocity *= 0.7f;
64430 dust2.position += Main.dust[
num695].velocity * 5f;
64431 }
64433 {
64436 gore2.velocity *= 4f;
64437 }
64438 }
64439 else if (
type == 638)
64440 {
64443 int num697 = Main.rand.Next(2, 5);
64445 {
64446 int num699 = Dust.NewDust(
base.Center, 0, 0, 229, 0f, 0f, 100);
64448 dust2.velocity *= 1.6f;
64449 Main.dust[
num699].velocity.Y -= 1f;
64451 dust2.position -= Vector2.One * 4f;
64453 Main.dust[
num699].noGravity =
true;
64454 }
64455 }
64456 else if (
type == 15 ||
type == 321)
64457 {
64460 {
64462 Main.dust[
num701].noGravity =
true;
64464 dust2.velocity *= 2f;
64467 dust2.velocity *= 2f;
64468 }
64469 }
64470 else if (
type == 253)
64471 {
64474 {
64476 Main.dust[
num703].noGravity =
true;
64478 dust2.velocity *= 2f;
64481 dust2.velocity *= 2f;
64482 }
64483 }
64484 else if (
type == 95 ||
type == 96)
64485 {
64488 {
64490 Main.dust[
num705].noGravity =
true;
64492 dust2.velocity *= 2f;
64495 dust2.velocity *= 2f;
64496 }
64497 }
64498 else if (
type == 17)
64499 {
64502 {
64504 }
64505 }
64506 else if (
type == 31 ||
type == 42)
64507 {
64510 {
64513 dust2.velocity *= 0.6f;
64514 }
64515 }
64516 else if (
type >= 411 &&
type <= 414)
64517 {
64520 {
64522 }
64524 {
64526 }
64528 {
64530 Main.dust[
num711].noGravity =
true;
64532 dust2.velocity -=
velocity * 0.5f;
64533 }
64534 }
64535 else if (
type == 109)
64536 {
64539 {
64542 dust2.velocity *= 0.6f;
64543 }
64544 }
64545 else if (
type == 39)
64546 {
64549 {
64552 dust2.velocity *= 0.6f;
64553 }
64554 }
64555 else if (
type == 71)
64556 {
64559 {
64562 dust2.velocity *= 0.6f;
64563 }
64564 }
64565 else if (
type == 179)
64566 {
64569 {
64572 dust2.velocity *= 0.6f;
64573 }
64574 }
64575 else if (
type == 40)
64576 {
64579 {
64582 dust2.velocity *= 0.6f;
64583 }
64584 }
64586 {
64589 {
64591 }
64592 }
64593 else if (
type == 583)
64594 {
64597 {
64598 Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 4, 0f, 0f, 100,
new Color(20, 250, 20, 240), 0.8f);
64599 }
64600 }
64601 else if (
type == 584)
64602 {
64605 {
64606 Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 4, 0f, 0f, 100,
new Color(250, 20, 120, 240), 0.8f);
64607 }
64608 }
64609 else if (
type == 24)
64610 {
64612 {
64614 }
64615 }
64616 else if (
type == 27)
64617 {
64620 {
64622 Main.dust[
num727].noGravity =
true;
64624 }
64625 }
64626 else if (
type == 38)
64627 {
64629 {
64631 }
64632 }
64633 else if (
type == 44 ||
type == 45)
64634 {
64637 {
64639 Main.dust[
num730].noGravity =
true;
64641 }
64642 }
64643 else if (
type == 41)
64644 {
64647 {
64649 }
64651 {
64653 Main.dust[
num734].noGravity =
true;
64655 dust2.velocity *= 3f;
64658 dust2.velocity *= 2f;
64659 }
64662 gore2.velocity *= 0.4f;
64663 Main.gore[
num735].velocity.X += (float)Main.rand.Next(-10, 11) * 0.1f;
64664 Main.gore[
num735].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.1f;
64667 gore2.velocity *= 0.4f;
64668 Main.gore[
num735].velocity.X += (float)Main.rand.Next(-10, 11) * 0.1f;
64669 Main.gore[
num735].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.1f;
64670 if (
owner == Main.myPlayer)
64671 {
64673 position.X +=
width / 2;
64674 position.Y +=
height / 2;
64677 position.X -=
width / 2;
64678 position.Y -=
height / 2;
64680 }
64681 }
64682 else if (
type == 514)
64683 {
64686 {
64689 dust2.velocity *= 1.4f;
64690 }
64692 {
64694 Main.dust[
num739].noGravity =
true;
64696 dust2.velocity *= 4.6f;
64699 dust2.velocity *= 3.3f;
64700 if (Main.rand.Next(2) == 0)
64701 {
64704 dust2.velocity *= 2.7f;
64705 }
64706 }
64707 if (
owner == Main.myPlayer)
64708 {
64710 position.X +=
width / 2;
64711 position.Y +=
height / 2;
64714 position.X -=
width / 2;
64715 position.Y -=
height / 2;
64718 }
64719 }
64720 else if (
type == 306)
64721 {
64724 {
64727 dust2.scale *= 1.1f;
64728 Main.dust[
num741].noGravity =
true;
64729 }
64731 {
64734 dust2.velocity *= 2.5f;
64736 dust2.scale *= 0.8f;
64737 Main.dust[
num743].noGravity =
true;
64738 }
64739 if (
owner == Main.myPlayer)
64740 {
64741 int num744 = Main.rand.Next(2, 5);
64742 if (Main.rand.Next(1, 101) == 100)
64743 {
64745 }
64747 {
64748 float num746 = (float)Main.rand.Next(-35, 36) * 0.02f;
64749 float num747 = (float)Main.rand.Next(-35, 36) * 0.02f;
64753 }
64754 }
64755 }
64756 else if (
type == 469)
64757 {
64758 if (
owner == Main.myPlayer)
64759 {
64762 {
64763 if (
num749 % 2 != 1 || Main.rand.Next(3) == 0)
64764 {
64769 float num750 = (float)Main.rand.Next(-35, 36) * 0.01f;
64770 float num751 = (float)Main.rand.Next(-35, 36) * 0.01f;
64772 num750 += oldVelocity.X / 6f;
64773 num751 += oldVelocity.Y / 6f;
64775 Main.projectile[
num752].magic =
false;
64776 Main.projectile[
num752].ranged =
true;
64777 Main.projectile[
num752].penetrate = 2;
64778 }
64779 }
64780 }
64781 }
64782 else if (
type == 183)
64783 {
64786 {
64789 dust2.velocity *= 1f;
64790 }
64792 Main.gore[
num755].velocity.X += 1f;
64793 Main.gore[
num755].velocity.Y += 1f;
64795 gore2.velocity *= 0.3f;
64797 Main.gore[
num755].velocity.X -= 1f;
64798 Main.gore[
num755].velocity.Y += 1f;
64800 gore2.velocity *= 0.3f;
64802 Main.gore[
num755].velocity.X += 1f;
64803 Main.gore[
num755].velocity.Y -= 1f;
64805 gore2.velocity *= 0.3f;
64807 Main.gore[
num755].velocity.X -= 1f;
64808 Main.gore[
num755].velocity.Y -= 1f;
64810 gore2.velocity *= 0.3f;
64811 if (
owner == Main.myPlayer)
64812 {
64813 int num756 = Main.rand.Next(15, 25);
64815 {
64816 float speedX = (float)Main.rand.Next(-35, 36) * 0.02f;
64817 float speedY = (float)Main.rand.Next(-35, 36) * 0.02f;
64819 }
64820 }
64821 }
64823 {
64824 if (
owner != Main.myPlayer)
64825 {
64827 }
64830 {
64832 {
64835 {
64837 }
64839 {
64841 }
64843 {
64845 }
64849 float y2 = Main.dust[
num761].velocity.Y;
64851 {
64853 }
64859 dust2.velocity *= 0.5f;
64861 Main.dust[
num761].velocity.Y +=
y2;
64862 Main.dust[
num761].scale = 1.3f;
64863 Main.dust[
num761].noGravity =
true;
64864 }
64865 }
64867 {
64869 {
64872 {
64874 }
64876 {
64878 }
64882 float y3 = Main.dust[
num767].velocity.Y;
64884 {
64886 }
64890 {
64893 }
64894 else
64895 {
64898 }
64900 dust2.velocity *= 0.5f;
64902 Main.dust[
num767].velocity.Y +=
y3;
64904 {
64905 Main.dust[
num767].scale = 1.3f;
64906 Main.dust[
num767].noGravity =
true;
64907 }
64908 }
64909 }
64911 {
64913 float num770 = Main.rand.Next(5, 9);
64914 float num771 = Main.rand.Next(12, 17);
64915 float value9 = Main.rand.Next(3, 7);
64918 {
64920 {
64923 {
64928 dust2.velocity *= 0.1f;
64929 Main.dust[
num777].noGravity =
true;
64932 }
64933 }
64935 }
64937 {
64939 {
64942 {
64947 dust2.velocity *= 0.1f;
64948 Main.dust[
num782].noGravity =
true;
64951 }
64952 }
64954 }
64956 {
64961 float y4 = Main.dust[
num786].velocity.Y;
64963 {
64965 }
64971 dust2.velocity *= 0.5f;
64973 Main.dust[
num786].velocity.Y +=
y4;
64974 Main.dust[
num786].scale = 1.3f;
64975 Main.dust[
num786].noGravity =
true;
64976 }
64977 }
64979 {
64981 {
64985 {
64987 }
64989 {
64991 }
64993 {
64995 }
64997 {
64999 }
65001 {
65003 }
65005 {
65007 }
65010 float y5 = Main.dust[
num792].velocity.Y;
65012 {
65014 }
65018 {
65021 }
65023 {
65026 }
65028 {
65031 }
65032 else
65033 {
65036 }
65038 dust2.velocity *= 0.5f;
65040 Main.dust[
num792].velocity.Y +=
y5;
65041 if (Main.rand.Next(3) != 0)
65042 {
65043 Main.dust[
num792].scale = 1.3f;
65044 Main.dust[
num792].noGravity =
true;
65045 }
65046 }
65047 }
65049 {
65051 float num795 = Main.rand.Next(5, 9);
65052 float num796 = (float)Main.rand.Next(10, 15) * 0.66f;
65053 float num797 = (float)Main.rand.Next(4, 7) / 2f;
65056 {
65058 {
65060 }
65065 dust2.velocity *= 0.1f;
65068 Main.dust[
num802].scale = 1.3f;
65069 Main.dust[
num802].noGravity =
true;
65070 }
65072 {
65075 {
65077 }
65081 float y6 = Main.dust[
num806].velocity.Y;
65083 {
65085 }
65091 dust2.velocity *= 0.5f;
65093 Main.dust[
num806].velocity.Y +=
y6;
65094 Main.dust[
num806].scale = 1.3f;
65095 Main.dust[
num806].noGravity =
true;
65096 }
65097 }
65099 {
65102 float num809 = Main.rand.Next(3, 6) * 2;
65104 float num811 = ((Main.rand.Next(2) == 0) ? 1f : (-1f));
65107 {
65109 {
65113 }
65114 else
65115 {
65118 }
65123 dust2.velocity *= 0.1f;
65127 {
65128 Main.dust[
num816].scale = 0.9f;
65129 }
65130 Main.dust[
num816].noGravity =
true;
65131 }
65132 }
65134 {
65135 float num817 = (float)Main.rand.NextDouble() * ((float)
Math.
PI * 2f);
65136 float num818 = (float)Main.rand.NextDouble() * ((float)
Math.
PI * 2f);
65137 float num819 = 4f + (float)Main.rand.NextDouble() * 3f;
65138 float num820 = 4f + (float)Main.rand.NextDouble() * 3f;
65141 {
65143 }
65145 {
65149 {
65151 }
65153 {
65155 }
65157 {
65159 }
65161 {
65163 }
65169 {
65170 vector68.X *= 0.5f;
65172 }
65174 {
65175 vector68.Y *= 0.5f;
65177 }
65179 dust2.velocity *= 0.2f;
65183 {
65184 Main.dust[
num825].scale = 1.3f;
65185 Main.dust[
num825].noGravity =
true;
65186 }
65187 }
65188 }
65190 {
65192 float num826 = Main.rand.Next(5, 12);
65193 float num827 = (float)Main.rand.Next(9, 14) * 0.66f;
65194 float num828 = (float)Main.rand.Next(2, 4) * 0.66f;
65197 {
65199 {
65202 {
65207 dust2.velocity *= 0.1f;
65208 Main.dust[
num834].noGravity =
true;
65211 }
65212 }
65214 }
65216 {
65220 {
65222 }
65223 else
65224 {
65226 }
65229 float y7 = Main.dust[
num838].velocity.Y;
65231 {
65233 }
65239 dust2.velocity *= 0.2f;
65241 Main.dust[
num838].velocity.Y +=
y7;
65242 Main.dust[
num838].scale = 1.3f;
65243 Main.dust[
num838].noGravity =
true;
65244 }
65245 }
65246 position.X +=
width / 2;
65247 position.Y +=
height / 2;
65250 position.X -=
width / 2;
65251 position.Y -=
height / 2;
65254 }
65255 else if (
type == 312)
65256 {
65258 position.X +=
width / 2;
65259 position.Y +=
height / 2;
65262 position.X -=
width / 2;
65263 position.Y -=
height / 2;
65265 {
65268 dust2.velocity *= 1.4f;
65269 }
65271 {
65273 Main.dust[
num844].noGravity =
true;
65275 dust2.velocity *= 7f;
65278 dust2.velocity *= 3f;
65279 }
65281 {
65284 {
65286 }
65289 gore2.velocity *=
num846;
65290 Main.gore[
num847].velocity.X += 1f;
65291 Main.gore[
num847].velocity.Y += 1f;
65294 gore2.velocity *=
num846;
65295 Main.gore[
num847].velocity.X -= 1f;
65296 Main.gore[
num847].velocity.Y += 1f;
65299 gore2.velocity *=
num846;
65300 Main.gore[
num847].velocity.X += 1f;
65301 Main.gore[
num847].velocity.Y -= 1f;
65304 gore2.velocity *=
num846;
65305 Main.gore[
num847].velocity.X -= 1f;
65306 Main.gore[
num847].velocity.Y -= 1f;
65307 }
65308 position.X +=
width / 2;
65309 position.Y +=
height / 2;
65312 position.X -=
width / 2;
65313 position.Y -=
height / 2;
65315 }
65316 else if (
type == 910 ||
type == 911)
65317 {
65323 {
65326 dust2.velocity *= 1.4f;
65327 }
65329 {
65331 dust52.noGravity = true;
65332 dust52.velocity.Y -= 1.2f;
65334 dust2.velocity *= 4f;
65336 dust52.velocity.Y -= 1.2f;
65338 dust2.velocity *= 2f;
65339 }
65341 {
65343 {
65345 {
65348 gore2.velocity *= ((
num851 == 1) ? 0.4f : 0.8f);
65351 }
65352 }
65353 }
65354 if (Main.netMode != 1)
65355 {
65358 }
65359 }
65361 {
65364 {
65366 }
65367 else
65368 {
65370 }
65372 int num854 = Dust.dustWater();
65374 {
65377 dust2.velocity *= 1.4f;
65378 }
65380 {
65382 dust54.noGravity = true;
65383 dust54.velocity.Y -= 1.2f;
65385 dust2.velocity *= 7f;
65387 dust54.velocity.Y -= 1.2f;
65389 dust2.velocity *= 4f;
65390 }
65392 {
65394 {
65396 {
65399 gore2.velocity *= ((
num857 == 1) ? 0.4f : 0.8f);
65402 }
65403 }
65404 }
65405 if (Main.netMode != 1)
65406 {
65409 }
65410 }
65412 {
65415 {
65417 }
65418 else
65419 {
65421 }
65425 {
65428 dust2.velocity *= 1.4f;
65429 }
65431 {
65434 dust2.velocity *= 7f;
65437 dust2.velocity *= 4f;
65438 }
65440 {
65442 {
65444 {
65447 gore2.velocity *= ((
num863 == 1) ? 0.4f : 0.8f);
65450 }
65451 }
65452 }
65453 if (Main.netMode != 1)
65454 {
65457 }
65458 }
65460 {
65463 {
65465 }
65466 else
65467 {
65469 }
65473 {
65476 dust2.velocity *= 1.4f;
65477 }
65479 {
65482 dust2.velocity *= 7f;
65485 dust2.velocity *= 4f;
65486 }
65488 {
65490 {
65492 {
65495 gore2.velocity *= ((
num869 == 1) ? 0.4f : 0.8f);
65498 }
65499 }
65500 }
65501 if (Main.netMode != 1)
65502 {
65505 }
65506 }
65508 {
65511 {
65513 }
65514 else
65515 {
65517 }
65521 {
65524 dust2.velocity *= 1.4f;
65525 }
65527 {
65530 dust2.velocity *= 7f;
65533 dust2.velocity *= 4f;
65534 }
65536 {
65538 {
65540 {
65543 gore2.velocity *= ((
num875 == 1) ? 0.4f : 0.8f);
65546 }
65547 }
65548 }
65549 if (Main.netMode != 1)
65550 {
65553 }
65554 }
65556 {
65558 {
65560 }
65561 else
65562 {
65564 }
65568 {
65570 dust61.velocity = (dust61.position -
base.Center).SafeNormalize(
Vector2.
Zero);
65572 dust2.velocity *= 2f + (float)Main.rand.Next(5) * 0.1f;
65573 dust61.velocity.Y -=
num878 * 0.5f;
65574 dust61.color = Color.Black * 0.9f;
65575 if (Main.rand.Next(2) == 0)
65576 {
65577 dust61.scale = 0.5f;
65578 dust61.fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
65579 dust61.color = Color.Black * 0.8f;
65580 }
65581 }
65583 {
65585 dust62.noGravity = true;
65586 dust62.fadeIn = 1.4f;
65587 dust62.velocity = (dust62.position -
base.Center).SafeNormalize(
Vector2.
Zero);
65589 dust2.velocity *= 5.5f + (float)Main.rand.Next(61) * 0.1f;
65590 dust62.velocity.Y -=
num878 * 0.5f;
65592 dust62.velocity = (dust62.position -
base.Center).SafeNormalize(
Vector2.
Zero);
65593 dust62.velocity.Y -=
num878 * 0.25f;
65595 dust2.velocity *= 1.5f + (float)Main.rand.Next(5) * 0.1f;
65596 dust62.fadeIn = 0f;
65597 dust62.scale = 0.6f;
65599 dust62.noGravity =
num880 % 2 == 0;
65600 dust62.velocity = (dust62.position -
base.Center).SafeNormalize(
Vector2.
Zero);
65602 dust2.velocity *= 3f + (float)Main.rand.Next(21) * 0.2f;
65603 dust62.velocity.Y -=
num878 * 0.5f;
65604 dust62.fadeIn = 1.2f;
65606 {
65607 dust62.scale = 0.4f;
65608 dust62.fadeIn = 0f;
65609 }
65610 else
65611 {
65613 dust2.velocity *= 2f + (float)Main.rand.Next(5) * 0.2f;
65614 dust62.velocity.Y -=
num878 * 0.5f;
65615 }
65616 }
65619 {
65620 float num883 = (float)
Math.
PI * 2f * Main.rand.NextFloat();
65622 {
65630 dust63.fadeIn = 1.8f;
65631 dust63.noGravity = true;
65633 dust2.velocity *= (float)
num882 * (Main.rand.NextFloat() * 2f + 0.2f);
65637 dust2.velocity *= 2f;
65638 }
65639 }
65641 {
65643 {
65645 {
65648 gore2.velocity *= (float)
num885 / 3f;
65651 }
65652 }
65653 }
65655 }
65657 {
65662 {
65664 dust64.fadeIn = 0f;
65666 dust2.velocity *= 0.5f;
65667 }
65669 {
65671 dust65.noGravity = true;
65673 dust2.velocity *= 2.5f;
65676 dust2.velocity *= 2f;
65677 dust65.noGravity = true;
65678 }
65680 {
65683 dust2.velocity *= 2f;
65684 dust66.noGravity = true;
65685 }
65687 {
65689 {
65690 if (Main.rand.Next(5) == 0)
65691 {
65694 gore2.velocity *= 0.2f;
65696 gore2.scale *= 0.65f;
65699 }
65700 }
65701 }
65702 }
65704 {
65707 {
65709 }
65710 else
65711 {
65713 }
65716 {
65719 dust2.velocity *= 1.4f;
65720 }
65722 {
65724 dust68.noGravity = true;
65726 dust2.velocity *= 7f;
65729 dust2.velocity *= 4f;
65730 dust68.noGravity = true;
65731 }
65733 {
65736 dust2.velocity *= 4f;
65737 dust69.noGravity = true;
65738 }
65740 {
65742 {
65744 {
65747 gore2.velocity *= ((
num896 == 1) ? 0.4f : 0.8f);
65750 }
65751 }
65752 }
65753 if (
owner == Main.myPlayer)
65754 {
65757 {
65759 }
65761 {
65763 }
65765 {
65767 }
65768 float num900 = Main.rand.NextFloat() * ((float)
Math.
PI * 2f);
65770 {
65775 Projectile projectile = Main.projectile[
num902];
65777 projectile2.timeLeft -= Main.rand.Next(30);
65778 }
65779 }
65780 }
65782 {
65784 {
65786 }
65787 else
65788 {
65790 }
65791 position.X +=
width / 2;
65792 position.Y +=
height / 2;
65795 position.X -=
width / 2;
65796 position.Y -=
height / 2;
65798 {
65801 dust2.velocity *= 1.4f;
65802 }
65804 {
65806 Main.dust[
num906].noGravity =
true;
65808 dust2.velocity *= 7f;
65811 dust2.velocity *= 3f;
65812 }
65814 {
65817 {
65819 }
65822 gore2.velocity *=
num908;
65823 Main.gore[
num909].velocity.X += 1f;
65824 Main.gore[
num909].velocity.Y += 1f;
65827 gore2.velocity *=
num908;
65828 Main.gore[
num909].velocity.X -= 1f;
65829 Main.gore[
num909].velocity.Y += 1f;
65832 gore2.velocity *=
num908;
65833 Main.gore[
num909].velocity.X += 1f;
65834 Main.gore[
num909].velocity.Y -= 1f;
65837 gore2.velocity *=
num908;
65838 Main.gore[
num909].velocity.X -= 1f;
65839 Main.gore[
num909].velocity.Y -= 1f;
65840 }
65841 }
65843 {
65845 {
65847 }
65848 else
65849 {
65851 }
65852 position.X +=
width / 2;
65853 position.Y +=
height / 2;
65856 position.X -=
width / 2;
65857 position.Y -=
height / 2;
65859 {
65862 dust2.velocity *= 3f;
65863 if (Main.rand.Next(2) == 0)
65864 {
65865 Main.dust[
num911].scale = 0.5f;
65866 Main.dust[
num911].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
65867 }
65868 }
65870 {
65872 Main.dust[
num913].noGravity =
true;
65874 dust2.velocity *= 5f;
65877 dust2.velocity *= 2f;
65878 }
65880 {
65883 {
65885 }
65887 {
65889 }
65892 gore2.velocity *=
num915;
65893 Main.gore[
num916].velocity.X += 1f;
65894 Main.gore[
num916].velocity.Y += 1f;
65897 gore2.velocity *=
num915;
65898 Main.gore[
num916].velocity.X -= 1f;
65899 Main.gore[
num916].velocity.Y += 1f;
65902 gore2.velocity *=
num915;
65903 Main.gore[
num916].velocity.X += 1f;
65904 Main.gore[
num916].velocity.Y -= 1f;
65907 gore2.velocity *=
num915;
65908 Main.gore[
num916].velocity.X -= 1f;
65909 Main.gore[
num916].velocity.Y -= 1f;
65910 }
65911 position.X +=
width / 2;
65912 position.Y +=
height / 2;
65915 position.X -=
width / 2;
65916 position.Y -=
height / 2;
65917 }
65918 else if (
type == 246)
65919 {
65922 {
65925 dust2.velocity *= 0.9f;
65926 }
65928 {
65930 Main.dust[
num920].noGravity =
true;
65932 dust2.velocity *= 3f;
65935 dust2.velocity *= 2f;
65936 }
65939 gore2.velocity *= 0.3f;
65940 Main.gore[
num921].velocity.X += Main.rand.Next(-1, 2);
65941 Main.gore[
num921].velocity.Y += Main.rand.Next(-1, 2);
65942 position.X +=
width / 2;
65943 position.Y +=
height / 2;
65946 position.X -=
width / 2;
65947 position.Y -=
height / 2;
65951 if (
owner == Main.myPlayer)
65952 {
65953 int num922 = Main.rand.Next(2, 6);
65955 {
65956 float num924 = Main.rand.Next(-100, 101);
65958 float num925 = Main.rand.Next(-100, 101);
65965 Main.projectile[
num927].maxPenetrate = 0;
65966 }
65967 }
65968 }
65969 else if (
type == 249)
65970 {
65973 {
65976 dust2.velocity *= 0.8f;
65977 }
65979 {
65981 Main.dust[
num931].noGravity =
true;
65983 dust2.velocity *= 2.5f;
65986 dust2.velocity *= 1.5f;
65987 }
65990 gore2.velocity *= 0.2f;
65991 Main.gore[
num932].velocity.X += Main.rand.Next(-1, 2);
65992 Main.gore[
num932].velocity.Y += Main.rand.Next(-1, 2);
65993 position.X +=
width / 2;
65994 position.Y +=
height / 2;
65997 position.X -=
width / 2;
65998 position.Y -=
height / 2;
66001 }
66002 else if (
type == 588)
66003 {
66009 {
66012 dust2.velocity *= 1.4f;
66013 Main.dust[
num934].fadeIn = 1f;
66014 Main.dust[
num934].noGravity =
true;
66015 }
66017 {
66019 Main.dust[
num936].noGravity =
true;
66021 dust2.velocity *= 5f;
66024 dust2.velocity *= 3f;
66025 }
66026 if (Main.rand.Next(2) == 0)
66027 {
66030 gore2.velocity *= 0.4f;
66031 Main.gore[
num937].velocity.X += 1f;
66032 Main.gore[
num937].velocity.Y += 1f;
66033 }
66034 if (Main.rand.Next(2) == 0)
66035 {
66038 gore2.velocity *= 0.4f;
66039 Main.gore[
num937].velocity.X -= 1f;
66040 Main.gore[
num937].velocity.Y += 1f;
66041 }
66042 if (Main.rand.Next(2) == 0)
66043 {
66046 gore2.velocity *= 0.4f;
66047 Main.gore[
num937].velocity.X += 1f;
66048 Main.gore[
num937].velocity.Y -= 1f;
66049 }
66050 if (Main.rand.Next(2) == 0)
66051 {
66054 gore2.velocity *= 0.4f;
66055 Main.gore[
num937].velocity.X -= 1f;
66056 Main.gore[
num937].velocity.Y -= 1f;
66057 }
66058 }
66059 else if (
type == 773)
66060 {
66068 {
66070 }
66071 else
66072 {
66074 }
66077 {
66079 dust70.velocity.Y -= 0.5f;
66081 dust2.velocity *= 1.2f;
66082 dust70.color = Color.Black * 0.9f;
66083 if (Main.rand.Next(2) == 0)
66084 {
66085 dust70.scale = 0.5f;
66086 dust70.fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
66087 dust70.color = Color.Black * 0.8f;
66088 }
66089 }
66091 {
66093 dust71.noGravity = true;
66095 {
66097 }
66098 dust71.velocity.Y -= 0.5f;
66099 dust71.fadeIn = 1.2f;
66101 dust2.velocity *= 8f;
66105 dust2.velocity *= 2f;
66107 dust71.velocity.Y -= 1.5f;
66109 dust71.noGravity = true;
66110 dust71.velocity.Y -= 1f;
66111 dust71.fadeIn = 2f;
66113 dust2.velocity *= 4f;
66115 }
66118 {
66119 float num942 = (float)
Math.
PI * 2f * Main.rand.NextFloat();
66121 {
66126 dust72.fadeIn = 2f;
66127 dust72.noGravity = true;
66129 dust2.velocity *= (float)
num941 + Main.rand.NextFloat() * 0.6f;
66130 dust72.velocity.Y -= (float)
num941 * 0.8f;
66133 {
66136 }
66137 else
66138 {
66141 }
66142 }
66143 }
66146 {
66148 {
66150 {
66152 gore14.velocity = gore14.velocity * 0.5f +
vector74 * 3f;
66155 }
66156 }
66157 }
66159 if (
owner == Main.myPlayer)
66160 {
66161 Point p =
base.Center.ToTileCoordinates();
66166 {
66168 }
66170 {
66174 {
66176 break;
66177 }
66178 }
66180 {
66184 }
66185 }
66186 }
66188 {
66190 position.X +=
width / 2;
66191 position.Y +=
height / 2;
66194 position.X -=
width / 2;
66195 position.Y -=
height / 2;
66198 {
66200 }
66202 {
66205 dust2.velocity *= 1.4f;
66206 }
66208 {
66210 Main.dust[
num954].noGravity =
true;
66212 dust2.velocity *= 5f;
66215 dust2.velocity *= 3f;
66216 }
66219 gore2.velocity *= 0.4f;
66220 Main.gore[
num955].velocity.X += 1f;
66221 Main.gore[
num955].velocity.Y += 1f;
66224 gore2.velocity *= 0.4f;
66225 Main.gore[
num955].velocity.X -= 1f;
66226 Main.gore[
num955].velocity.Y += 1f;
66229 gore2.velocity *= 0.4f;
66230 Main.gore[
num955].velocity.X += 1f;
66231 Main.gore[
num955].velocity.Y -= 1f;
66234 gore2.velocity *= 0.4f;
66235 Main.gore[
num955].velocity.X -= 1f;
66236 Main.gore[
num955].velocity.Y -= 1f;
66238 {
66240 position.X +=
width / 2;
66241 position.Y +=
height / 2;
66244 position.X -=
width / 2;
66245 position.Y -=
height / 2;
66251 }
66253 {
66259 }
66260 }
66262 {
66265 {
66266 position.X +=
width / 2;
66267 position.Y +=
height / 2;
66270 position.X -=
width / 2;
66271 position.Y -=
height / 2;
66272 }
66274 {
66277 dust2.velocity *= 1.4f;
66278 }
66280 {
66282 Main.dust[
num959].noGravity =
true;
66284 dust2.velocity *= 5f;
66287 dust2.velocity *= 3f;
66288 }
66290 {
66292 Main.gore[
num961].scale = 1.5f;
66293 Main.gore[
num961].velocity.X += 1.5f;
66294 Main.gore[
num961].velocity.Y += 1.5f;
66296 Main.gore[
num961].scale = 1.5f;
66297 Main.gore[
num961].velocity.X -= 1.5f;
66298 Main.gore[
num961].velocity.Y += 1.5f;
66300 Main.gore[
num961].scale = 1.5f;
66301 Main.gore[
num961].velocity.X += 1.5f;
66302 Main.gore[
num961].velocity.Y -= 1.5f;
66304 Main.gore[
num961].scale = 1.5f;
66305 Main.gore[
num961].velocity.X -= 1.5f;
66306 Main.gore[
num961].velocity.Y -= 1.5f;
66307 }
66308 position.X +=
width / 2;
66309 position.Y +=
height / 2;
66312 position.X -=
width / 2;
66313 position.Y -=
height / 2;
66314 }
66315 else if (
type == 69)
66316 {
66319 {
66321 }
66323 {
66325 Main.dust[
num964].alpha = 100;
66326 Main.dust[
num964].velocity.X *= 1.5f;
66328 dust2.velocity *= 3f;
66329 }
66330 }
66331 else if (
type == 70)
66332 {
66335 {
66337 }
66339 {
66341 Main.dust[
num967].alpha = 100;
66342 Main.dust[
num967].velocity.X *= 1.5f;
66344 dust2.velocity *= 3f;
66345 }
66346 }
66347 else if (
type == 621)
66348 {
66351 {
66353 }
66355 {
66357 Main.dust[
num970].alpha = 100;
66358 Main.dust[
num970].velocity.X *= 1.5f;
66360 dust2.velocity *= 3f;
66361 }
66362 }
66363 else if (
type == 114 ||
type == 115)
66364 {
66367 {
66371 Main.dust[
num974].noGravity =
true;
66373 dust2.velocity *= 0.5f;
66376 dust2.velocity *= 0.5f;
66377 }
66378 }
66379 else if (
type == 116)
66380 {
66383 {
66387 Main.dust[
num978].noGravity =
true;
66389 Main.dust[
num978].noGravity =
true;
66390 }
66391 }
66392 else if (
type == 173)
66393 {
66396 {
66399 int num982 = Main.rand.Next(3);
66401 {
66402 0 => 15,
66403 1 => 57,
66404 _ => 58,
66407 dust2.velocity *= 1.5f;
66408 Main.dust[
num983].noGravity =
true;
66409 }
66410 }
66411 else if (
type == 132)
66412 {
66415 {
66419 Main.dust[
num987].noGravity =
true;
66421 dust2.velocity *= 0.5f;
66424 dust2.velocity *= 0.05f;
66425 }
66426 }
66427 else if (
type == 156)
66428 {
66431 {
66435 Main.dust[
num991].noGravity =
true;
66437 dust2.velocity *= 0.5f;
66440 dust2.velocity *= 0.05f;
66441 Main.dust[
num991].noGravity =
true;
66442 }
66443 }
66444 else if (
type == 157)
66445 {
66448 {
66450 Main.dust[
num993].noGravity =
true;
66452 dust2.velocity *= 0.5f;
66453 }
66454 }
66455 else if (
type == 370)
66456 {
66459 {
66461 }
66463 {
66467 Main.gore[
num996].sticky =
false;
66468 }
66469 }
66470 else if (
type == 371)
66471 {
66475 {
66477 }
66479 {
66483 int num999 = Gore.NewGore(
base.Center +
vector78 * 10f,
vector78 * Main.rand.Next(4, 9) * 0.66f +
Vector2.
UnitY * 1.5f, Main.rand.Next(435, 438), (
float)Main.rand.Next(20, 100) * 0.01f);
66484 Main.gore[
num999].sticky =
false;
66485 }
66486 }
66487 else if (
type == 936)
66488 {
66491 {
66492 Color newColor9 = Main.hslToRgb(0.7f + 0.2f * Main.rand.NextFloat(), 1f, 0.7f);
66493 newColor9.A /= 2;
66496 dust2.velocity *= 1.5f;
66497 newColor9 = Main.hslToRgb(0.7f + 0.2f * Main.rand.NextFloat(), 1f, 0.5f);
66498 newColor9.A /= 2;
66501 dust2.velocity *= 3f;
66502 Main.dust[
num1001].noGravity =
true;
66503 }
66504 }
66505 }
66506 }
66508 {
66512 {
66514 }
66516 {
66518 }
66520 {
66523 {
66525 }
66526 }
66528 {
66531 {
66533 }
66534 }
66535 }
66536 if (
owner == Main.myPlayer)
66537 {
66539 {
66547 {
66549 }
66550 if (
num1008 > Main.maxTilesX)
66551 {
66553 }
66555 {
66557 }
66558 if (
num1010 > Main.maxTilesY)
66559 {
66561 }
66563 }
66565 {
66568 {
66570 }
66572 {
66574 }
66576 {
66578 }
66580 {
66582 }
66584 {
66586 }
66588 {
66590 }
66592 {
66594 }
66596 {
66598 }
66601 {
66603 }
66611 {
66613 }
66614 if (
num1015 > Main.maxTilesX)
66615 {
66617 }
66619 {
66621 }
66622 if (
num1017 > Main.maxTilesY)
66623 {
66625 }
66628 }
66629 if (Main.netMode != 0)
66630 {
66632 }
66634 {
66637 {
66640 {
66642 }
66646 {
66648 if (Main.netMode != 0)
66649 {
66651 }
66652 }
66653 }
66655 {
66661 {
66664 }
66666 {
66670 {
66672 }
66673 }
66675 {
66678 }
66680 {
66683 }
66685 {
66688 }
66690 {
66693 }
66695 {
66698 }
66700 {
66703 }
66705 {
66708 }
66710 {
66713 }
66715 {
66718 }
66720 {
66723 }
66725 {
66728 }
66730 {
66733 }
66735 {
66738 }
66740 {
66743 }
66745 {
66748 }
66750 {
66753 }
66755 {
66757 if ((
double)(base.Center - Main.player[
num1026].Center).
Length() > (double)Main.LogicCheckScreenWidth * 0.75)
66758 {
66761 }
66762 }
66764 {
66766 }
66768 {
66769 bool flag5 =
false;
66770 bool flag6 =
false;
66771 if (
num1023 < Main.maxTilesY - 2)
66772 {
66775 {
66776 if (
tile2.active() && tile2.type == 314)
66777 {
66779 }
66781 {
66783 }
66784 }
66785 }
66787 {
66789 }
66791 {
66793 {
66795 if (Main.netMode != 0)
66796 {
66797 NetMessage.SendData(17, -1, -1,
null, 14,
num1022,
num1023 + 1);
66798 }
66799 }
66800 if (Main.netMode != 0)
66801 {
66803 }
66804 }
66806 {
66808 }
66809 }
66811 {
66813 }
66814 }
66816 {
66818 {
66820 Main.item[
num1018].noGrabDelay = 0;
66821 }
66822 else if (
ai[1] < 10f)
66823 {
66825 Main.item[
num1018].noGrabDelay = 0;
66826 }
66827 }
66829 {
66831 {
66833 Main.item[
num1018].noGrabDelay = 0;
66834 }
66835 else if (
ai[1] < 10f)
66836 {
66838 Main.item[
num1018].noGrabDelay = 0;
66839 }
66840 }
66842 {
66844 {
66846 Main.item[
num1018].noGrabDelay = 0;
66847 }
66848 else if (
ai[1] < 10f)
66849 {
66851 Main.item[
num1018].noGrabDelay = 0;
66852 }
66853 }
66855 {
66857 {
66859 Main.item[
num1018].noGrabDelay = 0;
66860 }
66861 else if (
ai[1] < 10f)
66862 {
66864 Main.item[
num1018].noGrabDelay = 0;
66865 }
66866 }
66867 if (
type == 12 &&
damage > 500 && !Main.remixWorld)
66868 {
66870 }
66872 {
66874 }
66876 {
66878 }
66879 if (Main.netMode == 1 &&
num1018 >= 0)
66880 {
66881 NetMessage.SendData(21, -1, -1,
null,
num1018, 1f);
66882 }
66883 }
66885 {
66889 {
66891 }
66893 {
66895 }
66897 {
66899 }
66900 }
66902 {
66903 int num1027 = Main.rand.Next(2, 4);
66904 if (Main.rand.Next(5) == 0)
66905 {
66907 }
66909 {
66912 x2 *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
66913 y8 *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
66915 }
66916 }
66917 }
66919 }
static float Lerp(float value1, float value2, float amount)
static float SmoothStep(float value1, float value2, float amount)
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 SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
static void PlaySound(int type, Vector2 position, int style=1)
static ActiveSound GetActiveSound(SlotId id)
float Distance(Vector2 Other)
Vector2 DirectionTo(Vector2 Destination)
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static Color GetPortalColor(int colorIndex)
static MultiToolMode ToolMode
static ArmorShaderDataSet Armor
static readonly short Count
static bool[] DontCancelChannelOnKill
static readonly short Count
static readonly LegacySoundStyle Item10
static readonly LegacySoundStyle Item50
static readonly LegacySoundStyle Item127
static readonly LegacySoundStyle Item94
static readonly LegacySoundStyle Item45
static readonly LegacySoundStyle Item14
static readonly LegacySoundStyle Item107
static readonly LegacySoundStyle Item16
static readonly LegacySoundStyle Item4
static readonly LegacySoundStyle Item51
static readonly LegacySoundStyle DD2_SkyDragonsFuryCircle
static readonly LegacySoundStyle Item118
static readonly LegacySoundStyle Item27
static readonly LegacySoundStyle Item100
static readonly LegacySoundStyle Item21
static readonly LegacySoundStyle Item62
static readonly LegacySoundStyle DD2_BetsysWrathImpact
static readonly LegacySoundStyle DD2_BetsyFireballImpact
static readonly LegacySoundStyle Item89
static readonly LegacySoundStyle DD2_GoblinBomb
static readonly LegacySoundStyle Item96
static readonly LegacySoundStyle Item54
static readonly LegacySoundStyle Item110
static bool[] CrackedBricks
Color GetFairyQueenWeaponsColor(float alphaChannelMultiplier=1f, float lerpToWhite=0f, float? rawHueOverride=null)
void DoRainbowCrystalStaffExplosion()
Point GetScarabBombDigDirectionSnap8()
IEntitySource GetProjectileSource_FromThis()
IEntitySource GetItemSource_DropAsItem()
void ExplodeCrackedTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
void TryGettingHitByOtherPlayersExplosives()
bool ShouldWallExplode(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
void Kill_DirtAndFluidProjectiles_RunDelegateMethodPushUpForHalfBricks(Point pt, float size, Utils.TileActionAttempt plot)
void ExplodeTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ, bool wallSplode)
bool usesLocalNPCImmunity
IEntitySource GetNPCSource_FromThis()
void Resize(int newWidth, int newHeight)
void AI_061_FishingBobber_GiveItemToPlayer(Player thePlayer, int itemType)
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 Color CornflowerBlue
static Color Lerp(Color value1, Color value2, float amount)
static Vector2 SmoothStep(Vector2 value1, Vector2 value2, float amount)
static float Distance(Vector2 value1, Vector2 value2)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)
static SlotId FromFloat(float value)