26151 {
26153 if (
proj.type == 734)
26154 {
26159 {
26161 {
26163 }
26164 return;
26165 }
26166 }
26171 if (
Main.player[
proj.owner].mount.Active &&
Main.player[
proj.owner].mount.Type == 52)
26172 {
26174 }
26175 if (
proj.aiStyle == 99)
26176 {
26178 vector.Y +=
Main.player[
proj.owner].gfxOffY;
26179 float num = proj.Center.X -
vector.X;
26183 if (!
proj.counterweight)
26184 {
26186 if (
proj.position.X + (
float)(proj.width / 2) <
Main.player[
proj.owner].position.X + (
float)(
Main.player[
proj.owner].width / 2))
26187 {
26189 }
26192 }
26193 bool flag = true;
26195 if (num == 0f &&
num2 == 0f)
26196 {
26197 flag = false;
26198 }
26199 else
26200 {
26205 vector.X -= num * 0.1f;
26206 vector.Y -=
num2 * 0.1f;
26207 num = proj.position.X + (float)
proj.width * 0.5f -
vector.X;
26209 }
26210 while (flag)
26211 {
26215 if (
float.IsNaN(
num7) ||
float.IsNaN(
num8))
26216 {
26217 flag = false;
26218 continue;
26219 }
26221 {
26223 flag = false;
26224 }
26229 {
26231 }
26232 else
26233 {
26234 vector.X += num;
26236 }
26237 num = proj.position.X + (float)
proj.width * 0.5f -
vector.X;
26240 {
26244 {
26246 }
26251 {
26253 }
26256 {
26258 }
26262 {
26265 }
26266 else
26267 {
26270 {
26272 }
26276 {
26278 }
26281 }
26282 }
26285 white.A = (byte)((
float)(int)
white.A * 0.4f);
26287 float num11 = 0.5f;
26289 EntitySpriteDraw(color:
new Microsoft.Xna.Framework.
Color((byte)((float)(int)
white.
R *
num11), (byte)((float)(int)
white.
G *
num11), (byte)((float)(int)
white.
B *
num11), (byte)((float)(int)
white.
A *
num11)), texture:
TextureAssets.FishingLine.
Value, position:
new Vector2(
vector.
X -
screenPosition.
X + (float)
TextureAssets.FishingLine.Width() * 0.5f,
vector.
Y -
screenPosition.
Y + (float)
TextureAssets.FishingLine.Height() * 0.5f) -
new Vector2(6f, 0f),
sourceRectangle:
new Microsoft.Xna.Framework.
Rectangle(0, 0,
TextureAssets.FishingLine.Width(), (int)
num6), rotation:
num3, origin:
new Vector2((float)
TextureAssets.FishingLine.Width() * 0.5f, 0f), scale: 1f, effects:
SpriteEffects.
None);
26290 }
26291 }
26292 else
26293 {
26294 if (
proj.aiStyle == 160)
26295 {
26297 return;
26298 }
26299 if (
proj.aiStyle == 165)
26300 {
26302 return;
26303 }
26304 }
26305 if (
proj.type == 879 ||
proj.type == 877 ||
proj.type == 878)
26306 {
26307 proj.position.Y -=
Main.player[
proj.owner].gfxOffY;
26308 }
26309 if (
proj.aiStyle == 174)
26310 {
26312 return;
26313 }
26314 if (
proj.type == 1020)
26315 {
26317 }
26320 {
26321 default:
26323 break;
26324 case 932:
26326 break;
26327 case 919:
26329 break;
26330 case 974:
26332 break;
26333 case 972:
26335 break;
26336 case 973:
26338 break;
26339 case 982:
26341 break;
26342 case 997:
26344 break;
26345 case 984:
26347 break;
26348 case 985:
26350 break;
26351 case 983:
26353 break;
26354 case 995:
26357 break;
26358 }
26360 {
26361 return;
26362 }
26363 if (
proj.type == 34)
26364 {
26366 }
26367 if (
proj.type == 16)
26368 {
26370 }
26371 if (
proj.type == 106)
26372 {
26374 }
26375 if (
proj.type == 933)
26376 {
26378 }
26379 if (
proj.type == 79)
26380 {
26382 }
26383 if (
proj.type == 946)
26384 {
26396 return;
26397 }
26398 if (
proj.type == 927)
26399 {
26401 return;
26402 }
26403 if (
proj.type == 917)
26404 {
26406 return;
26407 }
26408 if (
proj.type == 923)
26409 {
26415 float num15 = 180f;
26422 if (
NPC.ShouldEmpressBeEnraged())
26423 {
26425 }
26427 value3.A /= 2;
26430 if (
NPC.ShouldEmpressBeEnraged())
26431 {
26433 }
26435 value4.A /= 2;
26439 return;
26440 }
26441 if (
proj.type == 950)
26442 {
26448 float hue = ((
proj.ai[2] == 1f) ? 0.96f : 0.92f);
26449 if (
proj.ai[2] == 1f)
26450 {
26452 }
26454 color4.A = 0;
26457 float scale =
proj.scale;
26463 return;
26464 }
26465 if (
proj.type == 888)
26466 {
26468 return;
26469 }
26470 if (
proj.type == 874)
26471 {
26473 return;
26474 }
26475 if (
proj.type == 871)
26476 {
26482 color5.A /= 2;
26484 color6.A /= 2;
26485 float num19 = proj.scale * 1.3f;
26487 int num21 =
proj.AI_172_GetPelletStormsCount();
26488 bool flag4 =
false;
26489 float num22 =
float.PositiveInfinity;
26491 {
26494 {
26497 {
26499 }
26501 {
26503 {
26505 }
26511 }
26512 }
26513 }
26515 {
26518 }
26519 return;
26520 }
26521 if (
proj.bobber &&
Main.player[
proj.owner].inventory[
Main.player[
proj.owner].selectedItem].holdStyle != 0)
26522 {
26524 }
26525 else if (
proj.type == 32)
26526 {
26533 {
26535 }
26536 else
26537 {
26542 vector3.X -=
num24;
26543 vector3.Y -=
num25;
26546 }
26548 {
26551 {
26553 continue;
26554 }
26555 if (
float.IsNaN(
num27))
26556 {
26558 continue;
26559 }
26563 vector3.X +=
num24;
26564 vector3.Y +=
num25;
26568 EntitySpriteDraw(
TextureAssets.
Chain5.Value,
new Vector2(
vector3.X -
screenPosition.X,
vector3.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain5.Width(),
TextureAssets.
Chain5.Height()),
color7, rotation,
new Vector2((
float)
TextureAssets.
Chain5.Width() * 0.5f, (
float)
TextureAssets.
Chain5.Height() * 0.5f), 1f,
SpriteEffects.None);
26569 }
26570 }
26571 else if (
proj.type == 73)
26572 {
26579 {
26582 {
26584 continue;
26585 }
26586 if (
float.IsNaN(
num30))
26587 {
26589 continue;
26590 }
26594 vector4.X +=
num28;
26595 vector4.Y +=
num29;
26599 EntitySpriteDraw(
TextureAssets.
Chain8.Value,
new Vector2(
vector4.X -
screenPosition.X,
vector4.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain8.Width(),
TextureAssets.
Chain8.Height()),
color8,
rotation2,
new Vector2((
float)
TextureAssets.
Chain8.Width() * 0.5f, (
float)
TextureAssets.
Chain8.Height() * 0.5f), 1f,
SpriteEffects.None);
26600 }
26601 }
26602 else if (
proj.type == 186)
26603 {
26608 {
26610 EntitySpriteDraw(
TextureAssets.
Chain17.Value,
vector5 -
screenPosition,
new Microsoft.
Xna.
Framework.
Rectangle(0, (
int)
num32,
TextureAssets.
Chain17.Width(), (
int)
num31),
color9,
proj.rotation,
new Vector2(
TextureAssets.
Chain17.Width() / 2, 0f), 1f,
SpriteEffects.None);
26611 }
26612 }
26613 else if (
proj.type == 74)
26614 {
26621 {
26624 {
26626 continue;
26627 }
26628 if (
float.IsNaN(
num35))
26629 {
26631 continue;
26632 }
26636 vector6.X +=
num33;
26637 vector6.Y +=
num34;
26641 EntitySpriteDraw(
TextureAssets.
Chain9.Value,
new Vector2(
vector6.X -
screenPosition.X,
vector6.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain8.Width(),
TextureAssets.
Chain8.Height()),
color10,
rotation3,
new Vector2((
float)
TextureAssets.
Chain8.Width() * 0.5f, (
float)
TextureAssets.
Chain8.Height() * 0.5f), 1f,
SpriteEffects.None);
26642 }
26643 }
26644 else if (
proj.type == 171)
26645 {
26650 if (
proj.ai[0] <= 17f)
26651 {
26653 }
26656 if (
proj.ai[0] <= 30f)
26657 {
26659 }
26666 {
26668 float num44 = 5.6f;
26670 {
26672 }
26680 vector7.X +=
num36;
26681 vector7.Y +=
num37;
26686 }
26688 {
26693 EntitySpriteDraw(
TextureAssets.
Chain16.Value,
new Vector2(
vector7.X -
screenPosition.X,
vector7.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain16.Width(),
TextureAssets.
Chain16.Height()),
color11,
rotation4,
new Vector2((
float)
TextureAssets.
Chain16.Width() * 0.5f, (
float)
TextureAssets.
Chain16.Height() * 0.5f), 0.8f,
SpriteEffects.None);
26694 }
26695 }
26696 else if (
proj.type == 475)
26697 {
26702 if (
proj.ai[0] <= 17f)
26703 {
26705 }
26708 if (
proj.ai[0] <= 30f)
26709 {
26711 }
26718 {
26720 float num55 = 5.6f;
26722 {
26724 }
26732 vector8.X +=
num47;
26733 vector8.Y +=
num48;
26738 }
26741 {
26746 if (
num57 % 2 == 0)
26747 {
26748 EntitySpriteDraw(
TextureAssets.
Chain38.Value,
new Vector2(
vector8.X -
screenPosition.X,
vector8.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain38.Width(),
TextureAssets.
Chain38.Height()),
color12,
rotation5,
new Vector2((
float)
TextureAssets.
Chain38.Width() * 0.5f, (
float)
TextureAssets.
Chain38.Height() * 0.5f), 0.8f,
SpriteEffects.None);
26749 }
26750 else
26751 {
26752 EntitySpriteDraw(
TextureAssets.
Chain39.Value,
new Vector2(
vector8.X -
screenPosition.X,
vector8.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain39.Width(),
TextureAssets.
Chain39.Height()),
color12,
rotation5,
new Vector2((
float)
TextureAssets.
Chain39.Width() * 0.5f, (
float)
TextureAssets.
Chain39.Height() * 0.5f), 0.8f,
SpriteEffects.None);
26753 }
26755 }
26756 }
26757 else if (
proj.type == 505 ||
proj.type == 506)
26758 {
26763 if (
proj.ai[0] <= 17f)
26764 {
26766 }
26769 if (
proj.ai[0] <= 30f)
26770 {
26772 }
26779 {
26781 float num67 = 5.6f;
26783 {
26785 }
26793 vector9.X +=
num59;
26794 vector9.Y +=
num60;
26799 }
26802 {
26808 if (
proj.type == 506)
26809 {
26811 }
26813 EntitySpriteDraw(
TextureAssets.
Chains[
num71].Value,
new Vector2(
vector9.X -
screenPosition.X,
vector9.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chains[
num71].Width(),
TextureAssets.
Chains[
num71].Height()),
color13,
rotation6,
new Vector2((
float)
TextureAssets.
Chains[
num71].Width() * 0.5f, (
float)
TextureAssets.
Chains[
num71].Height() * 0.5f), 0.8f,
SpriteEffects.None);
26815 }
26816 }
26817 else if (
proj.type == 165)
26818 {
26825 {
26828 {
26830 continue;
26831 }
26832 if (
float.IsNaN(
num74))
26833 {
26835 continue;
26836 }
26840 vector10.X +=
num72;
26841 vector10.Y +=
num73;
26845 EntitySpriteDraw(
TextureAssets.
Chain15.Value,
new Vector2(
vector10.X -
screenPosition.X,
vector10.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain15.Width(),
TextureAssets.
Chain15.Height()),
color14,
rotation7,
new Vector2((
float)
TextureAssets.
Chain15.Width() * 0.5f, (
float)
TextureAssets.
Chain15.Height() * 0.5f), 1f,
SpriteEffects.None);
26846 }
26847 }
26848 else if (
proj.type >= 230 &&
proj.type <= 235)
26849 {
26850 int num75 = proj.type - 229;
26857 {
26860 {
26862 continue;
26863 }
26864 if (
float.IsNaN(
num78))
26865 {
26867 continue;
26868 }
26872 vector11.X +=
num76;
26873 vector11.Y +=
num77;
26877 EntitySpriteDraw(
TextureAssets.
GemChain[
num75].Value,
new Vector2(
vector11.X -
screenPosition.X,
vector11.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
GemChain[
num75].Width(),
TextureAssets.
GemChain[
num75].Height()),
color15,
rotation8,
new Vector2((
float)
TextureAssets.
GemChain[
num75].Width() * 0.5f, (
float)
TextureAssets.
GemChain[
num75].Height() * 0.5f), 1f,
SpriteEffects.None);
26878 }
26879 }
26880 else if (
proj.type == 753)
26881 {
26889 {
26892 {
26894 continue;
26895 }
26896 if (
float.IsNaN(
num81))
26897 {
26899 continue;
26900 }
26904 vector12.X +=
num79;
26905 vector12.Y +=
num80;
26910 }
26911 }
26912 else if (
proj.type == 865)
26913 {
26922 {
26925 {
26927 continue;
26928 }
26929 if (
float.IsNaN(
num84))
26930 {
26932 continue;
26933 }
26937 vector13.X +=
num82;
26938 vector13.Y +=
num83;
26942 {
26945 }
26947 }
26948 }
26949 else if (
proj.type == 935)
26950 {
26959 {
26962 {
26964 continue;
26965 }
26966 if (
float.IsNaN(
num87))
26967 {
26969 continue;
26970 }
26974 vector14.X +=
num85;
26975 vector14.Y +=
num86;
26979 {
26982 }
26984 }
26985 }
26986 else if (
proj.type == 256)
26987 {
26994 {
26997 {
26999 continue;
27000 }
27001 if (
float.IsNaN(
num91))
27002 {
27004 continue;
27005 }
27009 vector15.X +=
num88;
27010 vector15.Y +=
num89;
27014 EntitySpriteDraw(
TextureAssets.
Chain20.Value,
new Vector2(
vector15.X -
screenPosition.X,
vector15.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain20.Width(),
TextureAssets.
Chain20.Height()),
color19,
num90 - 0.785f,
new Vector2((
float)
TextureAssets.
Chain20.Width() * 0.5f, (
float)
TextureAssets.
Chain20.Height() * 0.5f), 1f,
SpriteEffects.None);
27015 }
27016 }
27017 else if (
proj.type == 322)
27018 {
27025 {
27028 {
27030 continue;
27031 }
27032 if (
float.IsNaN(
num94))
27033 {
27035 continue;
27036 }
27040 vector16.X +=
num92;
27041 vector16.Y +=
num93;
27045 EntitySpriteDraw(
TextureAssets.
Chain29.Value,
new Vector2(
vector16.X -
screenPosition.X,
vector16.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain29.Width(),
TextureAssets.
Chain29.Height()),
color20,
rotation12,
new Vector2((
float)
TextureAssets.
Chain29.Width() * 0.5f, (
float)
TextureAssets.
Chain29.Height() * 0.5f), 1f,
SpriteEffects.None);
27046 }
27047 }
27048 else if (
proj.type == 315)
27049 {
27056 {
27059 {
27061 continue;
27062 }
27063 if (
float.IsNaN(
num97))
27064 {
27066 continue;
27067 }
27071 vector17.X +=
num95;
27072 vector17.Y +=
num96;
27076 EntitySpriteDraw(
TextureAssets.
Chain28.Value,
new Vector2(
vector17.X -
screenPosition.X,
vector17.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain28.Width(),
TextureAssets.
Chain28.Height()),
color21,
rotation13,
new Vector2((
float)
TextureAssets.
Chain28.Width() * 0.5f, (
float)
TextureAssets.
Chain28.Height() * 0.5f), 1f,
SpriteEffects.None);
27077 }
27078 }
27079 else if (
proj.type == 331)
27080 {
27087 {
27090 {
27092 continue;
27093 }
27094 if (
float.IsNaN(
num100))
27095 {
27097 continue;
27098 }
27102 vector18.X +=
num98;
27103 vector18.Y +=
num99;
27107 EntitySpriteDraw(
TextureAssets.
Chain30.Value,
new Vector2(
vector18.X -
screenPosition.X,
vector18.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain30.Width(),
TextureAssets.
Chain30.Height()),
color22,
rotation14,
new Vector2((
float)
TextureAssets.
Chain30.Width() * 0.5f, (
float)
TextureAssets.
Chain30.Height() * 0.5f), 1f,
SpriteEffects.None);
27108 }
27109 }
27110 else if (
proj.type == 332)
27111 {
27119 {
27122 {
27124 continue;
27125 }
27126 if (
float.IsNaN(
num104))
27127 {
27129 continue;
27130 }
27134 {
27135 Lighting.AddLight(
i2,
j2, 0f, 0.2f, 0.2f);
27136 }
27138 {
27139 Lighting.AddLight(
i2,
j2, 0.1f, 0.2f, 0f);
27140 }
27142 {
27143 Lighting.AddLight(
i2,
j2, 0.2f, 0.1f, 0f);
27144 }
27146 {
27147 Lighting.AddLight(
i2,
j2, 0.2f, 0f, 0.2f);
27148 }
27157 EntitySpriteDraw(
TextureAssets.
Chain31.Value,
new Vector2(
vector19.X -
screenPosition.X,
vector19.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0,
TextureAssets.
Chain31.Height() / 4 *
num101,
TextureAssets.
Chain31.Width(),
TextureAssets.
Chain31.Height() / 4),
color23,
rotation15,
new Vector2((
float)
TextureAssets.
Chain30.Width() * 0.5f,
TextureAssets.
Chain30.Height() / 8), 1f,
SpriteEffects.None);
27158 EntitySpriteDraw(
TextureAssets.
Chain32.Value,
new Vector2(
vector19.X -
screenPosition.X,
vector19.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0,
TextureAssets.
Chain31.Height() / 4 *
num101,
TextureAssets.
Chain31.Width(),
TextureAssets.
Chain31.Height() / 4),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 0),
rotation15,
new Vector2((
float)
TextureAssets.
Chain30.Width() * 0.5f,
TextureAssets.
Chain30.Height() / 8), 1f,
SpriteEffects.None);
27161 {
27163 }
27164 }
27165 }
27166 else if (
proj.type == 372 ||
proj.type == 383 ||
proj.type == 396 ||
proj.type == 403 ||
proj.type == 404 ||
proj.type == 446 || (
proj.type >= 486 &&
proj.type <= 489) || (
proj.type >= 646 &&
proj.type <= 649) ||
proj.type == 652)
27167 {
27171 if (
proj.type == 383)
27172 {
27174 }
27175 if (
proj.type == 396)
27176 {
27178 }
27179 if (
proj.type == 403)
27180 {
27182 }
27183 if (
proj.type == 404)
27184 {
27186 }
27187 if (
proj.type == 446)
27188 {
27190 }
27191 if (
proj.type >= 486 &&
proj.type <= 489)
27192 {
27194 }
27195 if (
proj.type >= 646 &&
proj.type <= 649)
27196 {
27200 }
27201 if (
proj.type == 652)
27202 {
27204 }
27210 if (
proj.type == 446)
27211 {
27215 origin4.Y /= 4f;
27217 }
27219 {
27220 case 383:
27222 break;
27223 case 446:
27225 break;
27226 case 489:
27228 break;
27229 case 487:
27231 break;
27232 }
27234 {
27241 }
27246 {
27248 }
27250 {
27252 }
27254 {
27256 {
27258 continue;
27259 }
27265 if (
proj.type == 396)
27266 {
27268 }
27269 if (
proj.type == 446)
27270 {
27272 }
27273 if (
proj.type == 488)
27274 {
27275 Lighting.AddLight(
center, 0.2f, 0f, 0.175f);
27277 }
27278 if (
proj.type >= 646 &&
proj.type <= 649)
27279 {
27281 }
27284 {
27286 }
27287 }
27288 }
27289 else if (
proj.aiStyle == 7)
27290 {
27297 {
27300 {
27302 continue;
27303 }
27304 if (
float.IsNaN(
num112))
27305 {
27307 continue;
27308 }
27317 EntitySpriteDraw(
TextureAssets.
Chain.Value,
new Vector2(
vector23.X -
screenPosition.X,
vector23.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain.Width(),
TextureAssets.
Chain.Height()),
color26,
rotation17,
new Vector2((
float)
TextureAssets.
Chain.Width() * 0.5f, (
float)
TextureAssets.
Chain.Height() * 0.5f), 1f,
SpriteEffects.None);
27318 }
27319 }
27320 else if (
proj.type == 262)
27321 {
27322 float x =
proj.Center.X;
27323 float y =
proj.Center.Y;
27324 float x2 =
proj.velocity.X;
27325 float y2 =
proj.velocity.Y;
27328 if (
proj.ai[0] == 0f)
27329 {
27330 x -= proj.velocity.X *
num113;
27331 y -= proj.velocity.Y *
num113;
27332 }
27333 else
27334 {
27335 x += proj.velocity.X *
num113;
27336 y += proj.velocity.Y *
num113;
27337 }
27342 if (
proj.alpha == 0)
27343 {
27346 {
27348 }
27349 if (
Main.player[
proj.owner].direction == 1)
27350 {
27352 }
27353 else
27354 {
27356 }
27357 }
27360 {
27363 {
27365 continue;
27366 }
27367 if (
float.IsNaN(
num115))
27368 {
27370 continue;
27371 }
27380 EntitySpriteDraw(
TextureAssets.
Chain22.Value,
new Vector2(
vector24.X -
screenPosition.X,
vector24.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain22.Width(),
TextureAssets.
Chain22.Height()),
color27,
rotation18,
new Vector2((
float)
TextureAssets.
Chain22.Width() * 0.5f, (
float)
TextureAssets.
Chain22.Height() * 0.5f), 1f,
SpriteEffects.None);
27381 }
27382 }
27383 else if (
proj.type == 273)
27384 {
27385 float x3 =
proj.Center.X;
27386 float y3 =
proj.Center.Y;
27387 float x4 =
proj.velocity.X;
27388 float y4 =
proj.velocity.Y;
27391 if (
proj.ai[0] == 0f)
27392 {
27395 }
27396 else
27397 {
27400 }
27405 if (
proj.alpha == 0)
27406 {
27409 {
27411 }
27412 if (
Main.player[
proj.owner].direction == 1)
27413 {
27415 }
27416 else
27417 {
27419 }
27420 }
27423 {
27426 {
27428 continue;
27429 }
27430 if (
float.IsNaN(
num118))
27431 {
27433 continue;
27434 }
27443 EntitySpriteDraw(
TextureAssets.
Chain23.Value,
new Vector2(
vector25.X -
screenPosition.X,
vector25.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain23.Width(),
TextureAssets.
Chain23.Height()),
color28,
rotation19,
new Vector2((
float)
TextureAssets.
Chain23.Width() * 0.5f, (
float)
TextureAssets.
Chain23.Height() * 0.5f), 1f,
SpriteEffects.None);
27444 }
27445 }
27446 else if (
proj.type == 481)
27447 {
27448 float x5 =
proj.Center.X;
27449 float y5 =
proj.Center.Y;
27450 float x6 =
proj.velocity.X;
27451 float y6 =
proj.velocity.Y;
27454 if (
proj.ai[0] == 0f)
27455 {
27458 }
27459 else
27460 {
27463 }
27468 if (
proj.alpha == 0)
27469 {
27472 {
27474 }
27475 if (
Main.player[
proj.owner].direction == 1)
27476 {
27478 }
27479 else
27480 {
27482 }
27483 }
27486 {
27491 {
27493 continue;
27494 }
27495 if (
float.IsNaN(
num122))
27496 {
27498 continue;
27499 }
27508 {
27509 for (
int n = 0;
n < 2;
n++)
27510 {
27515 {
27517 }
27522 {
27524 }
27527 {
27529 }
27530 if (
float.IsNaN(
num124))
27531 {
27532 continue;
27533 }
27535 {
27537 {
27539 }
27541 {
27543 }
27544 }
27545 else
27546 {
27548 {
27550 }
27552 {
27554 }
27555 }
27556 }
27557 }
27559 EntitySpriteDraw(
TextureAssets.
Chain40.Value,
new Vector2(
origin5.X -
screenPosition.X,
origin5.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain40.Width(),
TextureAssets.
Chain40.Height()),
color29,
rotation20,
new Vector2((
float)
TextureAssets.
Chain40.Width() * 0.5f, (
float)
TextureAssets.
Chain40.Height() * 0.5f),
num121,
SpriteEffects.None);
27560 }
27561 }
27562 else if (
proj.type == 271)
27563 {
27564 float x7 =
proj.Center.X;
27565 float y7 =
proj.Center.Y;
27566 float x8 =
proj.velocity.X;
27567 float y8 =
proj.velocity.Y;
27570 if (
proj.ai[0] == 0f)
27571 {
27574 }
27575 else
27576 {
27579 }
27584 if (
proj.alpha == 0)
27585 {
27588 {
27590 }
27591 if (
Main.player[
proj.owner].direction == 1)
27592 {
27594 }
27595 else
27596 {
27598 }
27599 }
27602 {
27605 {
27607 continue;
27608 }
27609 if (
float.IsNaN(
num128))
27610 {
27612 continue;
27613 }
27622 EntitySpriteDraw(
TextureAssets.
Chain18.Value,
new Vector2(
vector26.X -
screenPosition.X,
vector26.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain18.Width(),
TextureAssets.
Chain18.Height()),
color30,
rotation21,
new Vector2((
float)
TextureAssets.
Chain18.Width() * 0.5f, (
float)
TextureAssets.
Chain18.Height() * 0.5f), 1f,
SpriteEffects.None);
27623 }
27624 }
27625 else if (
proj.aiStyle == 13)
27626 {
27627 float num129 = proj.position.X + 8f;
27628 float num130 = proj.position.Y + 2f;
27629 float x9 =
proj.velocity.X;
27632 {
27635 }
27638 if (
proj.ai[0] == 0f)
27639 {
27642 }
27643 else
27644 {
27647 }
27652 if (
proj.alpha == 0)
27653 {
27656 {
27658 }
27659 if (
Main.player[
proj.owner].direction == 1)
27660 {
27662 }
27663 else
27664 {
27666 }
27667 }
27670 {
27673 {
27675 continue;
27676 }
27677 if (
float.IsNaN(
num134))
27678 {
27680 continue;
27681 }
27690 EntitySpriteDraw(
TextureAssets.
Chain.Value,
new Vector2(
vector27.X -
screenPosition.X,
vector27.Y -
screenPosition.Y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Chain.Width(),
TextureAssets.
Chain.Height()),
color31,
rotation22,
new Vector2((
float)
TextureAssets.
Chain.Width() * 0.5f, (
float)
TextureAssets.
Chain.Height() * 0.5f), 1f,
SpriteEffects.None);
27691 }
27692 }
27693 else if (
proj.type == 190)
27694 {
27695 float x10 = proj.position.X + (float)(
proj.width / 2);
27696 float y9 = proj.position.Y + (float)(
proj.height / 2);
27704 if (
proj.alpha == 0)
27705 {
27708 {
27710 }
27711 if (
Main.player[
proj.owner].direction == 1)
27712 {
27714 }
27715 else
27716 {
27718 }
27719 }
27720 }
27721 else if (
proj.aiStyle == 15)
27722 {
27724 }
27727 {
27729 }
27730 if (
proj.type == 14)
27731 {
27733 }
27736 if (
proj.type == 175)
27737 {
27739 }
27740 if (
proj.type == 392)
27741 {
27743 }
27744 if (
proj.type == 499)
27745 {
27747 }
27748 if (
proj.type == 765)
27749 {
27752 }
27753 if (
proj.type == 966)
27754 {
27757 }
27759 {
27761 }
27762 if (
proj.type == 519)
27763 {
27766 }
27767 if (
proj.type == 520)
27768 {
27770 }
27771 if (
proj.type == 492)
27772 {
27775 }
27776 if (
proj.type == 498)
27777 {
27779 }
27780 if (
proj.type == 489)
27781 {
27783 }
27784 if (
proj.type == 486)
27785 {
27787 }
27788 if (
proj.type == 525)
27789 {
27791 }
27792 if (
proj.type == 488)
27793 {
27795 }
27796 if (
proj.type == 373)
27797 {
27800 }
27801 if (
proj.type == 375)
27802 {
27805 }
27806 if (
proj.type == 423)
27807 {
27809 }
27810 if (
proj.type == 346)
27811 {
27813 }
27814 if (
proj.type == 331)
27815 {
27817 }
27818 if (
proj.type == 254)
27819 {
27821 }
27822 if (
proj.type == 273)
27823 {
27825 }
27826 if (
proj.type == 335)
27827 {
27829 }
27830 if (
proj.type == 162)
27831 {
27834 }
27835 if (
proj.type == 377)
27836 {
27838 }
27839 if (
proj.type == 353)
27840 {
27843 }
27844 if (
proj.type == 324)
27845 {
27848 }
27849 if (
proj.type == 266)
27850 {
27853 }
27854 if (
proj.type == 319)
27855 {
27858 }
27859 if (
proj.type == 315)
27860 {
27863 }
27864 if (
proj.type == 313 &&
proj.height != 54)
27865 {
27868 }
27869 if (
proj.type == 314)
27870 {
27873 }
27874 if (
proj.type == 269)
27875 {
27878 }
27879 if (
proj.type == 268)
27880 {
27883 }
27884 if (
proj.type == 18)
27885 {
27888 }
27889 if (
proj.type == 16)
27890 {
27892 }
27893 if (
proj.type == 17 ||
proj.type == 31)
27894 {
27896 }
27897 if (
proj.type == 25 ||
proj.type == 26 ||
proj.type == 35 ||
proj.type == 63 ||
proj.type == 154)
27898 {
27901 }
27902 if (
proj.type == 947 ||
proj.type == 948)
27903 {
27906 }
27907 if (
proj.type == 28 ||
proj.type == 37 ||
proj.type == 75)
27908 {
27910 }
27911 if (
proj.type == 29 ||
proj.type == 470 ||
proj.type == 637)
27912 {
27914 }
27915 if (
proj.type == 43)
27916 {
27918 }
27919 if (
proj.type == 208)
27920 {
27923 }
27924 if (
proj.type == 209)
27925 {
27928 }
27929 if (
proj.type == 210)
27930 {
27933 }
27934 if (
proj.type == 251)
27935 {
27938 }
27939 if (
proj.type == 163 ||
proj.type == 310 ||
proj.type == 1009 ||
proj.type == 1010 ||
proj.type == 1011 ||
proj.type == 1008)
27940 {
27942 }
27943 if (
proj.type == 69 ||
proj.type == 70)
27944 {
27947 }
27949 if (
proj.type == 50 ||
proj.type == 53 ||
proj.type == 515 ||
proj.type == 870)
27950 {
27952 }
27953 if (
proj.type == 473)
27954 {
27957 }
27958 if (
proj.type == 72 ||
proj.type == 86 ||
proj.type == 87)
27959 {
27962 }
27963 if (
proj.type == 74)
27964 {
27966 }
27967 if (
proj.type == 99 ||
proj.type == 727 ||
proj.type == 1013 ||
proj.type == 1014)
27968 {
27970 }
27971 if (
proj.type == 655)
27972 {
27974 }
27975 if (
proj.type == 111)
27976 {
27979 }
27980 if (
proj.type == 875)
27981 {
27984 }
27985 if (
proj.type == 881)
27986 {
27989 }
27990 if (
proj.type == 934)
27991 {
27994 }
27995 if (
proj.type == 934)
27996 {
27999 }
28000 if (
proj.type == 884)
28001 {
28004 }
28005 if (
proj.type == 890)
28006 {
28009 }
28010 if (
proj.type == 891)
28011 {
28014 }
28015 if (
proj.type == 897)
28016 {
28019 }
28020 if (
proj.type == 899)
28021 {
28024 }
28025 if (
proj.type == 900)
28026 {
28029 }
28030 if (
proj.type == 334)
28031 {
28034 }
28035 if (
proj.type == 816)
28036 {
28039 }
28040 if (
proj.type == 821)
28041 {
28044 }
28045 if (
proj.type == 825)
28046 {
28049 }
28050 if (
proj.type == 854)
28051 {
28054 }
28055 if (
proj.type == 858)
28056 {
28059 }
28060 if (
proj.type == 859)
28061 {
28064 }
28065 if (
proj.type == 860)
28066 {
28069 }
28070 if (
proj.type == 958)
28071 {
28074 }
28075 if (
proj.type == 960)
28076 {
28079 }
28080 if (
proj.type == 956)
28081 {
28084 }
28085 if (
proj.type == 959)
28086 {
28087 num137 = -14 + ((proj.spriteDirection == -1) ? (-8) : 0);
28089 }
28090 if (
proj.type == 994)
28091 {
28094 }
28095 if (
proj.type == 998)
28096 {
28099 }
28100 if (
proj.type == 1003)
28101 {
28102 num137 = -18 + ((proj.spriteDirection == 1) ? 8 : 0);
28104 }
28105 if (
proj.type == 1004)
28106 {
28107 num137 = -18 + ((proj.spriteDirection == 1) ? 6 : 0);
28109 }
28110 if (
proj.type == 200)
28111 {
28114 }
28115 if (
proj.type == 211)
28116 {
28119 }
28120 if (
proj.type == 236)
28121 {
28124 }
28125 if (
proj.type >= 191 &&
proj.type <= 194)
28126 {
28128 num137 = ((proj.direction != 1) ? (-22) : (-10));
28129 }
28130 if (
proj.type >= 390 &&
proj.type <= 392)
28131 {
28133 }
28134 if (
proj.type == 112)
28135 {
28138 }
28141 if (
proj.type == 517 ||
proj.type == 681)
28142 {
28144 }
28145 if (
proj.type == 516)
28146 {
28148 }
28149 if (
proj.type == 127)
28150 {
28152 }
28153 if (
proj.type == 155)
28154 {
28157 }
28158 if (
proj.type == 397)
28159 {
28163 }
28164 if (
proj.type == 398)
28165 {
28167 }
28169 if (
proj.spriteDirection == -1)
28170 {
28172 }
28173 if (
proj.type == 681 &&
proj.velocity.X > 0f)
28174 {
28176 }
28177 if (
proj.type == 221)
28178 {
28180 {
28181 float num140 = proj.velocity.X * (float)
num139 * 0.5f;
28182 float num141 = proj.velocity.Y * (float)
num139 * 0.5f;
28186 {
28188 }
28190 {
28192 }
28194 {
28196 }
28198 {
28200 }
28202 {
28204 }
28206 {
28208 }
28210 {
28212 }
28214 {
28216 }
28218 {
28220 }
28221 alpha.R = (byte)((
float)(int)alpha.R *
num142);
28222 alpha.G = (byte)((
float)(int)alpha.G *
num142);
28223 alpha.B = (byte)((
float)(int)alpha.B *
num142);
28224 alpha.A = (byte)((
float)(int)alpha.A *
num142);
28227 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num140,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num141),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y11,
TextureAssets.
Projectile[
proj.type].Width(),
num143), alpha,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
28228 }
28229 }
28231 {
28239 if (
proj.type == 503)
28240 {
28241 origin6.Y = 70f;
28242 }
28243 if (
proj.type == 686 ||
proj.type == 711)
28244 {
28245 origin6.Y = rectangle4.Height - 70;
28246 }
28247 if (
proj.type == 438)
28248 {
28249 rectangle4.Y = 0;
28250 }
28251 if (
proj.type == 452)
28252 {
28253 rectangle4.Y = 0;
28254 }
28255 if (
proj.type == 408)
28256 {
28258 }
28259 if (
proj.type == 636)
28260 {
28261 origin6.Y = 10f;
28262 }
28263 if (
proj.type == 638)
28264 {
28265 origin6.Y = 2f;
28266 }
28267 if (
proj.type == 640 ||
proj.type == 639 ||
proj.type == 710)
28268 {
28269 origin6.Y = 5f;
28270 }
28271 if (
proj.type == 700)
28272 {
28273 origin6.X = ((proj.spriteDirection == 1) ? (
rectangle4.Width - 20) : 20);
28274 }
28275 if (
proj.type == 965 ||
proj.type == 964)
28276 {
28277 origin6.X = ((proj.spriteDirection == 1) ? (
rectangle4.Width - 20) : 20);
28278 }
28279 if (
proj.type == 872)
28280 {
28281 rectangle4.Width /= 2;
28282 origin6.X /= 2f;
28283 }
28284 if (
proj.type == 933)
28285 {
28288 {
28294 }
28295 }
28296 if (
proj.type == 833 &&
proj.frame != 8)
28297 {
28298 zero.Y += proj.height / 2;
28300 origin6.Y -= 4f;
28301 origin6.X -= 7 *
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt();
28302 }
28303 if ((
proj.type == 834 ||
proj.type == 835) &&
proj.frame != 10)
28304 {
28305 zero.Y += proj.height / 2;
28307 origin6.Y -= 4f;
28308 origin6.X -= 2 *
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt();
28309 }
28318 if (
proj.type == 909)
28319 {
28323 }
28324 else if (
proj.type == 503)
28325 {
28329 }
28330 else if (
proj.type == 261)
28331 {
28336 }
28337 else if (
proj.type == 833 ||
proj.type == 834 ||
proj.type == 835)
28338 {
28343 }
28344 else if (
proj.type == 818)
28345 {
28350 }
28351 else if (
proj.type == 729)
28352 {
28357 }
28358 else if (
proj.type == 977)
28359 {
28364 }
28365 else if (
proj.type == 1001)
28366 {
28372 }
28373 else if (
proj.type == 976)
28374 {
28382 }
28383 else if (
proj.type == 686 ||
proj.type == 711)
28384 {
28389 }
28391 {
28396 }
28397 else if (
proj.type == 671)
28398 {
28403 }
28404 else if (
proj.type == 811)
28405 {
28411 }
28412 else if (
proj.type == 814)
28413 {
28419 }
28420 else if (
proj.type == 755)
28421 {
28426 }
28427 else if (
proj.type == 700)
28428 {
28432 }
28433 else if (
proj.type == 965 ||
proj.type == 964)
28434 {
28438 }
28439 else if (
proj.type == 731)
28440 {
28445 }
28446 else if (
proj.type == 864)
28447 {
28453 }
28454 else if (
proj.type == 916)
28455 {
28463 }
28464 else if (
proj.type == 873)
28465 {
28471 }
28472 else if (
proj.type == 931)
28473 {
28479 }
28480 else if (
proj.type == 933)
28481 {
28487 }
28488 else if (
proj.type == 872)
28489 {
28496 }
28497 else if (
proj.type == 664 ||
proj.type == 666 ||
proj.type == 668)
28498 {
28502 }
28503 else if (
proj.type == 582 ||
proj.type == 902)
28504 {
28505 if (
proj.ai[2] == 1f)
28506 {
28508 }
28513 }
28514 else if (
proj.type == 675)
28515 {
28519 }
28520 else if (
proj.type == 638)
28521 {
28525 }
28526 else if (
proj.type == 660)
28527 {
28534 }
28535 else if (
proj.type == 684)
28536 {
28540 }
28541 else if (
proj.type == 639)
28542 {
28546 }
28547 else if (
proj.type == 710)
28548 {
28553 }
28554 else if (
proj.type == 640)
28555 {
28559 }
28560 else if (
proj.type == 436)
28561 {
28564 }
28565 else if (
proj.type == 424 ||
proj.type == 425 ||
proj.type == 426)
28566 {
28570 }
28571 else if (
proj.type == 438)
28572 {
28576 }
28577 else if (
proj.type == 452)
28578 {
28582 }
28583 else if (
proj.type == 454)
28584 {
28588 }
28589 else if (
proj.type == 462)
28590 {
28594 }
28595 else if (
proj.type == 661)
28596 {
28600 }
28601 else if (
proj.type == 706)
28602 {
28607 }
28608 else if (
proj.type == 585)
28609 {
28613 }
28614 else if (
proj.type == 459)
28615 {
28619 {
28621 }
28623 }
28624 else if (
proj.type == 709)
28625 {
28629 {
28631 }
28633 }
28634 else if (
proj.type == 532)
28635 {
28640 }
28641 else if (
proj.type == 592)
28642 {
28646 }
28647 else if (
proj.type == 601)
28648 {
28652 }
28653 else if (
proj.type == 636)
28654 {
28658 }
28659 else if (
proj.type == 680)
28660 {
28664 }
28665 else if (
proj.type == 533)
28666 {
28667 if (
proj.ai[0] >= 6f &&
proj.ai[0] <= 8f)
28668 {
28671 if (
proj.ai[0] != 7f)
28672 {
28674 }
28675 }
28676 else
28677 {
28679 }
28680 }
28682 {
28684 {
28685 continue;
28686 }
28688 if (
proj.type == 408 ||
proj.type == 435 ||
proj.type == 682 ||
proj.type == 732 ||
proj.type == 731)
28689 {
28691 }
28692 else if (
proj.type == 436)
28693 {
28695 }
28696 else if (
proj.type >= 424 &&
proj.type <= 426)
28697 {
28699 }
28700 else if (
proj.type == 640 ||
proj.type == 639)
28701 {
28702 color32.A = 127;
28703 }
28704 else if (
proj.type == 671)
28705 {
28707 }
28708 else if (
proj.type == 811)
28709 {
28711 }
28712 else if (
proj.type == 814)
28713 {
28715 }
28716 else if (
proj.type == 261)
28717 {
28719 }
28721 {
28723 }
28725 if (
proj.type == 438)
28726 {
28727 color32.G /= (byte)
num152;
28728 color32.B /= (byte)
num152;
28729 }
28730 else if (
proj.type == 755)
28731 {
28733 }
28734 else if (
proj.type == 873)
28735 {
28737 color32.A /= 2;
28739 }
28740 else if (
proj.type == 931)
28741 {
28744 }
28745 else if (
proj.type == 872)
28746 {
28749 color32.A = (byte)((
float)(int)
color32.A * 0.6f);
28751 {
28753 }
28754 }
28755 else if (
proj.type == 864)
28756 {
28757 color32 =
proj.GetFloatingDaggerMinionGlowColor();
28758 color32.A /= 4;
28759 }
28760 else if (
proj.type == 682)
28761 {
28762 color32.G /= (byte)
num152;
28763 }
28764 else if (
proj.type == 686)
28765 {
28767 {
28768 continue;
28769 }
28772 }
28773 else if (
proj.type == 711)
28774 {
28776 {
28777 continue;
28778 }
28780 color32 = ((!(
num154 < 0.5f)) ?
Microsoft.
Xna.
Framework.
Color.
Lerp(
new Microsoft.
Xna.
Framework.
Color(128, 0, 255, 180),
Microsoft.
Xna.
Framework.
Color.
Black, Utils.GetLerpValue(0.5f, 1f,
num154)) :
Microsoft.Xna.Framework.
Color.Lerp(
color32,
new Microsoft.Xna.Framework.
Color(128, 0, 255, 180), Utils.GetLerpValue(0f, 0.5f,
num154)));
28781 }
28782 else if (
proj.type == 684)
28783 {
28785 {
28786 color32.B /= 2;
28787 color32.G /= 2;
28788 color32.A /= 2;
28789 }
28790 color32.B /= (byte)
num152;
28791 color32.G /= (byte)
num152;
28792 color32.A /= (byte)
num152;
28793 }
28794 else if (
proj.type == 706 ||
proj.type == 710)
28795 {
28796 color32.B /= (byte)
num152;
28797 color32.G /= (byte)
num152;
28798 color32.A /= (byte)
num152;
28799 }
28800 else if (
proj.type == 818)
28801 {
28808 ourFavoriteColor.A = 0;
28811 }
28812 else if (
proj.type == 833 ||
proj.type == 834 ||
proj.type == 835)
28813 {
28816 color32.A = 0;
28818 }
28819 else if (
proj.type == 592)
28820 {
28821 color32.R /= (byte)
num152;
28822 color32.G /= (byte)
num152;
28823 }
28824 else if (
proj.type == 640)
28825 {
28826 color32.R /= (byte)
num152;
28827 color32.A /= (byte)
num152;
28828 }
28829 else if (
proj.type >= 424 &&
proj.type <= 426)
28830 {
28831 color32.B /= (byte)
num152;
28832 color32.G /= (byte)
num152;
28833 color32.A /= (byte)
num152;
28834 }
28835 else if (
proj.type == 964 ||
proj.type == 965)
28836 {
28837 color32 = Microsoft.Xna.Framework.Color.Black *
proj.Opacity;
28838 }
28841 {
28843 }
28849 {
28852 }
28854 {
28855 continue;
28856 }
28857 if (
proj.type == 916)
28858 {
28865 {
28867 }
28873 }
28874 if (
proj.type == 976)
28875 {
28876 int num161 = value13.Height + 2;
28878 value13.Y %=
num161 * 7;
28879 color32 *= Lighting.GetColor((
vector29 +
zero +
proj.Size / 2f).ToTileCoordinates()).ToVector3().Length() / 1.74f;
28880 }
28881 if (
proj.type == 933)
28882 {
28887 }
28890 }
28891 if (
proj.type == 661)
28892 {
28895 {
28897 }
28898 }
28899 if (
proj.type == 864)
28900 {
28902 floatingDaggerMinionGlowColor.A /= 4;
28906 {
28908 }
28909 }
28910 if (
proj.type == 873 ||
proj.type == 931)
28911 {
28913 color35.A = 0;
28914 if (
proj.type == 931)
28915 {
28917 }
28931 if (
proj.type == 931)
28932 {
28935 }
28940 }
28941 if (
proj.type == 755)
28942 {
28944 color38.A = 120;
28946 {
28948 }
28949 }
28950 else if (
proj.type == 684)
28951 {
28952 float x12 = (
proj.localAI[0] * ((float)
Math.
PI * 2f) / 30f).ToRotationVector2().X;
28956 {
28958 }
28959 }
28961 {
28966 {
28967 flag28 |=
player2.ownedProjectileCounts[722] > 0 && player2.itemAnimation >=
player2.itemAnimationMax;
28968 flag28 |= player2.itemAnimation == 0;
28969 flag28 &= player2.velocity.Y == 0f;
28970 }
28973 {
28977 {
28980 {
28982 break;
28983 }
28984 }
28986 {
28990 {
28992 }
28993 }
28994 }
28996 {
28998 float num170 =
proj.velocity.Length() / 16f;
29000 {
29002 }
29005 {
29008 {
29009 EntitySpriteDraw(
value11,
Vector2.
Lerp(
proj.oldPos[4],
proj.position,
num171) +
proj.Size / 2f -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
rectangle4,
golfTrailColor *
num171,
proj.rotation,
origin6,
proj.scale *
MathHelper.
Lerp(0.7f, 1.5f,
num171),
dir);
29010 }
29011 }
29013 }
29014 }
29015 if (
proj.type == 964 ||
proj.type == 965)
29016 {
29018 if (
proj.type == 965)
29019 {
29021 }
29023 float num172 = ((proj.type == 964) ? 60 : 30);
29025 {
29027 }
29028 }
29032 if (
proj.type == 640)
29033 {
29035 }
29036 if (
proj.type == 684)
29037 {
29038 color42.A = 127;
29039 }
29040 if (
proj.type == 873)
29041 {
29042 color42.A /= 2;
29043 }
29044 if (
proj.type == 931)
29045 {
29046 color42.A /= 2;
29047 }
29048 if (
proj.type == 872)
29049 {
29052 }
29053 if (
proj.type == 818)
29054 {
29056 }
29057 if (
proj.type == 916)
29058 {
29060 }
29061 if (
proj.type == 964 ||
proj.type == 965)
29062 {
29063 color42 = Microsoft.Xna.Framework.Color.Black *
proj.Opacity;
29064 }
29065 if (
proj.type == 933)
29066 {
29067 float t2 =
proj.localAI[0];
29070 }
29072 if (
proj.type == 894)
29073 {
29075 EntitySpriteDraw(color:
new Microsoft.Xna.Framework.
Color(
num176,
num176,
num176, 150f), texture:
TextureAssets.GlowMask[282].
Value, position:
proj.Center +
zero -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
sourceRectangle:
rectangle4, rotation:
proj.rotation, origin:
origin6, scale:
proj.scale, effects:
dir);
29076 }
29077 if (
proj.type == 503)
29078 {
29080 }
29081 else if (
proj.type == 533)
29082 {
29084 }
29085 else if (
proj.type == 261)
29086 {
29090 {
29092 }
29094 }
29095 else if (
proj.type == 601)
29096 {
29098 white2.A = 0;
29100 }
29102 {
29104 }
29105 if (
proj.type == 933)
29106 {
29107 float t3 =
proj.localAI[0];
29109 EntitySpriteDraw(
value11,
proj.Center +
zero -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
rectangle4,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127) *
proj.Opacity *
num179,
rotation23,
origin6,
num174 * 1.25f,
dir);
29112 trailColor.A /= 2;
29113 DrawPrettyStarSparkle(
proj.Opacity,
dir,
proj.Center +
zero -
screenPosition +
new Vector2(0f,
proj.gfxOffY) + (
proj.rotation - (
float)
Math.
PI / 2f).ToRotationVector2() *
finalFractalProfile.trailWidth,
Microsoft.
Xna.
Framework.
Color.
White *
num179, trailColor *
num179,
proj.localAI[0], 15f, 30f, 30f, 45f, 0f,
new Vector2(5f, 2f),
Vector2.
One);
29114 }
29115 }
29116 else if (
proj.type == 672)
29117 {
29119 if (
proj.localAI[1] == 0f)
29120 {
29121 position5.Y += 60f;
29124 {
29128 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
position5,
null,
new Microsoft.
Xna.
Framework.
Color(0.4f, 0.17f, 0.4f, 0f) * (
value17 *
num182) * 1.3f, 0f,
new Vector2((
float)
TextureAssets.
MagicPixel.Width() / 2f,
TextureAssets.
MagicPixel.Height()),
new Vector2((
float)
Math.
Sqrt(
value17) * 100f,
value17 * 2f),
SpriteEffects.None);
29129 }
29130 }
29131 else if (
proj.localAI[1] == 1f)
29132 {
29133 _ =
proj.localAI[0] / 300f;
29138 }
29139 else if (
proj.localAI[1] == 2f)
29140 {
29144 }
29145 }
29146 else
29147 {
29148 if (
proj.type == 713)
29149 {
29150 return;
29151 }
29152 if (
proj.type == 754)
29153 {
29156 rectangle5.Width -= 2;
29157 rectangle5.Height -= 2;
29163 if (
proj.ai[1] == 2f)
29164 {
29166 rectangle5.Width -= 2;
29167 rectangle5.Height -= 2;
29171 return;
29172 }
29174 {
29180 {
29181 value19.Height = (int)
num188;
29182 }
29183 alpha2 =
proj.GetAlpha(Lighting.GetColor((
int)(vector33.X + (float)(
value19.Width / 2)) / 16, (
int)((vector33.Y + (float)(
value19.Height / 2)) / 16f)));
29186 {
29187 rectangle5.Y += rectangle5.Height + 2;
29188 }
29189 }
29191 rectangle5.Width -= 2;
29192 rectangle5.Height -= 2;
29196 return;
29197 }
29198 if (
proj.type == 12 ||
proj.type == 728 ||
proj.type == 955)
29199 {
29213 color45.A = 0;
29216 {
29217 color44 = Microsoft.Xna.Framework.Color.HotPink * 0.3f;
29218 color45 = Microsoft.Xna.Framework.Color.White * 0.75f;
29219 color45.A = 0;
29221 }
29222 if (
proj.type == 728)
29223 {
29224 color44 = Microsoft.Xna.Framework.Color.Orange * 0.2f;
29225 color45 = Microsoft.Xna.Framework.Color.Gold * 0.5f;
29226 color45.A = 50;
29228 }
29230 color46.A = 0;
29232 color47.A = 0;
29234 color48.A = 0;
29240 {
29245 {
29247 }
29249 }
29251 return;
29252 }
29253 if (
proj.type == 756)
29254 {
29265 EntitySpriteDraw(
TextureAssets.
Extra[98].Value,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY) -
proj.velocity *
proj.scale * 0.5f,
null,
proj.GetAlpha(
new Microsoft.
Xna.
Framework.
Color(
vector38.X,
vector38.Y,
vector38.Z,
vector38.W)) * 1f,
proj.rotation + (
float)
Math.
PI / 2f,
TextureAssets.
Extra[98].Value.Size() / 2f,
proj.scale * 0.9f,
dir);
29267 return;
29268 }
29269 if (
proj.type == 961)
29270 {
29281 EntitySpriteDraw(
TextureAssets.
Extra[98].Value,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY) -
proj.velocity *
proj.scale * 0.5f,
null,
proj.GetAlpha(
new Microsoft.
Xna.
Framework.
Color(
vector41.X,
vector41.Y,
vector41.Z,
vector41.W)) * 1f,
proj.rotation + (
float)
Math.
PI / 2f,
TextureAssets.
Extra[98].Value.Size() / 2f,
proj.scale * 0.9f,
dir);
29283 color49.A = 0;
29285 {
29287 }
29289 return;
29290 }
29291 if (
proj.type == 723 ||
proj.type == 726 ||
proj.type == 725 ||
proj.type == 724 ||
proj.type == 9)
29292 {
29300 _ = Microsoft.Xna.Framework.Color.White * 0.2f;
29310 color52.A = 0;
29314 float num200 = proj.scale + 0.1f;
29315 if (
proj.type == 726)
29316 {
29325 }
29326 if (
proj.type == 725)
29327 {
29337 }
29338 if (
proj.type == 724)
29339 {
29343 color54 = Microsoft.Xna.Framework.Color.Yellow * 0.5f;
29351 }
29352 if (
proj.type == 9)
29353 {
29364 value33.A /= 2;
29366 value34.A /= 4;
29370 gold.A = 180;
29377 {
29379 }
29381 float num206 = Utils.Remap(
num205, 0.15f, 0.5f, 0f, 1f) * Utils.Remap(
num205, 0.5f, 0.85f, 1f, 0f);
29387 }
29392 {
29396 }
29402 {
29407 {
29409 }
29411 }
29413 return;
29414 }
29415 if (
proj.type == 674)
29416 {
29425 if (
proj.ai[0] < 30f)
29426 {
29428 }
29429 else if (
proj.ai[0] < 40f)
29430 {
29432 }
29436 {
29438 }
29441 {
29444 }
29446 {
29450 }
29457 return;
29458 }
29459 if (
proj.type == 440 ||
proj.type == 449 ||
proj.type == 606)
29460 {
29463 {
29467 if (
proj.type == 606)
29468 {
29471 }
29472 if (
proj.ai[1] == 1f)
29473 {
29475 }
29477 {
29481 alpha6.A = 0;
29483 }
29484 }
29485 return;
29486 }
29487 if (
proj.type == 85)
29488 {
29490 return;
29491 }
29492 if (
proj.type == 687)
29493 {
29506 {
29507 float num219 = Utils.RandomFloat(
ref seed) * 0.25f - 0.125f;
29514 {
29515 transparent = ((
num220 < 0.1f) ?
Microsoft.
Xna.
Framework.
Color.
Lerp(
Microsoft.
Xna.
Framework.
Color.
Transparent,
color60, Utils.GetLerpValue(0f, 0.1f,
num220,
clamped:
true)) : ((
num220 < 0.35f) ?
color60 : ((
num220 < 0.7f) ?
Microsoft.Xna.Framework.
Color.Lerp(
color60,
color61, Utils.GetLerpValue(0.35f, 0.7f,
num220,
clamped:
true)) : ((
num220 < 0.9f) ?
Microsoft.Xna.Framework.
Color.Lerp(
color61,
color62, Utils.GetLerpValue(0.7f, 0.9f,
num220,
clamped:
true)) : ((!(
num220 < 1f)) ?
Microsoft.Xna.Framework.
Color.
Transparent :
Microsoft.Xna.Framework.
Color.Lerp(
color62,
Microsoft.Xna.Framework.
Color.
Transparent, Utils.GetLerpValue(0.9f, 1f,
num220,
clamped:
true)))))));
29522 }
29523 }
29524 return;
29525 }
29526 if (
proj.type == 651)
29527 {
29529 {
29530 return;
29531 }
29542 {
29545 }
29547 {
29550 }
29552 {
29555 }
29557 {
29560 }
29562 {
29564 }
29565 color64.A = 0;
29567 {
29571 {
29573 }
29575 value42.Y = 18;
29577 return;
29578 }
29580 {
29581 int num225 = point2.Y - point.
Y;
29586 {
29588 }
29590 value43.Y = 18;
29593 {
29595 value43.Y = 0;
29596 value43.X = 90;
29598 {
29600 }
29602 value43.Y = 18;
29604 }
29608 {
29610 }
29612 value43.Y = 18;
29614 return;
29615 }
29617 {
29618 int num228 = point2.X - point.
X;
29623 {
29625 }
29627 value44.Y = 18;
29630 {
29632 value44.Y = 0;
29633 value44.X = 180;
29635 {
29637 }
29639 value44.Y = 18;
29641 }
29645 {
29647 }
29649 value44.Y = 18;
29651 return;
29652 }
29659 bool flag32 = player3.direction == 1;
29664 {
29669 }
29670 else
29671 {
29676 }
29680 {
29681 value45.X = ((
num235 > 0) ? 36 : 144);
29682 }
29683 else
29684 {
29685 value45.X = ((
num235 > 0) ? 72 : 18);
29686 }
29688 {
29690 }
29692 value45.Y = 18;
29695 {
29697 {
29698 break;
29699 }
29701 {
29703 }
29704 else
29705 {
29707 }
29709 {
29711 value45.Y = 0;
29713 {
29714 value45.X = 180;
29715 }
29716 else
29717 {
29718 value45.X = 90;
29719 }
29721 {
29723 }
29725 value45.Y = 18;
29727 }
29728 }
29730 {
29735 }
29736 else
29737 {
29742 }
29746 {
29747 value45.X += ((
num231 > 0) ? 144 : 36);
29749 }
29750 else
29751 {
29752 value45.X += ((
num231 > 0) ? 36 : 144);
29754 }
29756 {
29758 }
29760 value45.Y = 18;
29763 {
29765 {
29766 break;
29767 }
29769 {
29771 }
29772 else
29773 {
29775 }
29777 {
29779 value45.Y = 0;
29781 {
29782 value45.X = 90;
29783 }
29784 else
29785 {
29786 value45.X = 180;
29787 }
29789 {
29791 }
29793 value45.Y = 18;
29795 }
29796 }
29800 {
29802 }
29803 else
29804 {
29805 value45.X += ((
num231 > 0) ? 144 : 36);
29806 }
29808 {
29810 }
29812 value45.Y = 18;
29814 return;
29815 }
29816 if (
proj.type == 586)
29817 {
29819 if (
proj.ai[0] >= 100f)
29820 {
29822 }
29824 {
29826 }
29827 if (
proj.ai[0] >= 500f)
29828 {
29830 }
29836 {
29841 alpha7.A /= 2;
29843 }
29845 {
29851 alpha7.A /= 2;
29853 }
29854 return;
29855 }
29856 if (
proj.type == 536 ||
proj.type == 607)
29857 {
29861 return;
29862 }
29863 if (
proj.type == 591)
29864 {
29870 bool num244 = proj.velocity.X >= 0f;
29883 return;
29884 }
29885 if (
proj.type == 688 ||
proj.type == 689 ||
proj.type == 690)
29886 {
29893 color68.A = 127;
29897 {
29898 case 688:
29901 break;
29902 case 689:
29905 break;
29906 case 690:
29909 break;
29910 }
29913 {
29915 }
29917 {
29921 origin17.Y -= 2f;
29923 }
29924 return;
29925 }
29926 if (
proj.type == 694 ||
proj.type == 695 ||
proj.type == 696)
29927 {
29932 origin18.Y -= 8f;
29934 if ((uint)(
type - 694) <= 1
u)
29935 {
29936 origin18.X += 3f;
29937 }
29941 return;
29942 }
29943 if (
proj.type == 409)
29944 {
29952 {
29958 EntitySpriteDraw(
value52,
proj.oldPos[
num249] +
new Vector2(
proj.width,
proj.height) / 2f -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y14,
value52.Width,
num246),
newColor,
proj.rotation,
new Vector2((
float)
value52.Width / 2f, (
float)
num246 / 2f),
MathHelper.
Lerp(
proj.scale,
value53, (
float)
num249 / 15f),
dir);
29959 }
29960 EntitySpriteDraw(
value52,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y14,
value52.Width,
num246),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value52.Width / 2f, (
float)
num246 / 2f),
proj.scale,
dir);
29961 return;
29962 }
29963 if (
proj.type == 437)
29964 {
29972 {
29978 EntitySpriteDraw(
value54,
proj.oldPos[
num253] +
new Vector2(
proj.width,
proj.height) / 2f -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y15,
value54.Width,
num250),
newColor2,
proj.rotation,
new Vector2((
float)
value54.Width / 2f, (
float)
num250 / 2f),
MathHelper.
Lerp(
proj.scale,
value55, (
float)
num253 / 15f),
dir);
29979 }
29980 EntitySpriteDraw(
value54,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y15,
value54.Width,
num250),
Microsoft.
Xna.
Framework.
Color.
White,
proj.rotation,
new Vector2((
float)
value54.Width / 2f, (
float)
num250 / 2f),
proj.scale + 0.2f,
dir);
29981 EntitySpriteDraw(
value54,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y15,
value54.Width,
num250),
proj.GetAlpha(
Microsoft.
Xna.
Framework.
Color.
White),
proj.rotation,
new Vector2((
float)
value54.Width / 2f, (
float)
num250 / 2f),
proj.scale + 0.2f,
dir);
29982 return;
29983 }
29984 if (
proj.type == 384 ||
proj.type == 386)
29985 {
29989 EntitySpriteDraw(
value56,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y16,
value56.Width,
num254),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value56.Width / 2f, (
float)
num254 / 2f),
proj.scale,
dir);
29990 return;
29991 }
29992 if (
proj.type == 439 ||
proj.type == 460 ||
proj.type == 600 ||
proj.type == 615 ||
proj.type == 630 ||
proj.type == 633 ||
proj.type == 705 ||
proj.type == 714)
29993 {
29995 if (
Main.player[
proj.owner].gravDir == -1f)
29996 {
29997 if (
proj.type == 705)
29998 {
30000 }
30001 if (
proj.type == 615 ||
proj.type == 714)
30002 {
30003 if (
Main.player[
proj.owner].direction == 1)
30004 {
30006 }
30007 else if (
Main.player[
proj.owner].direction == -1)
30008 {
30010 }
30011 }
30012 else if (
proj.type == 600 ||
proj.type == 439)
30013 {
30014 if (
Main.player[
proj.owner].direction == 1)
30015 {
30017 }
30018 else if (
Main.player[
proj.owner].direction == -1)
30019 {
30021 }
30022 }
30023 }
30028 if (
Main.player[
proj.owner].shroomiteStealth &&
Main.player[
proj.owner].inventory[
Main.player[
proj.owner].selectedItem].ranged)
30029 {
30031 if ((
double)
num257 < 0.03)
30032 {
30034 }
30035 _ = (1f +
num257 * 10f) / 11f;
30038 }
30039 if (
Main.player[
proj.owner].setVortex &&
Main.player[
proj.owner].inventory[
Main.player[
proj.owner].selectedItem].ranged)
30040 {
30042 if ((
double)
num258 < 0.03)
30043 {
30045 }
30046 _ = (1f +
num258 * 10f) / 11f;
30049 }
30050 if (
proj.type == 714)
30051 {
30055 }
30056 EntitySpriteDraw(
value57,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30057 if (
proj.type == 439)
30058 {
30059 EntitySpriteDraw(
TextureAssets.
GlowMask[35].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0) *
num256,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30060 }
30061 else if (
proj.type == 714)
30062 {
30065 color70.A = 120;
30066 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
color70 *
num256,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30067 }
30068 else if (
proj.type == 615)
30069 {
30070 EntitySpriteDraw(
TextureAssets.
GlowMask[192].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127) *
num256,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30071 }
30072 else if (
proj.type == 630)
30073 {
30074 EntitySpriteDraw(
TextureAssets.
GlowMask[200].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127) *
num256,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30075 if (
proj.localAI[0] > 0f)
30076 {
30077 int frameY = 6 - (int)(
proj.localAI[0] / 1f);
30079 EntitySpriteDraw(
value57,
vector52 +
Vector2.
Normalize(
proj.velocity) * 2f,
value57.Frame(1, 6, 0, frameY),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127) *
num256,
proj.rotation,
new Vector2(
dir.HasFlag(
SpriteEffects.FlipHorizontally) ?
value57.Width : 0, (float)
num255 / 2f - 2f),
proj.scale,
dir);
30080 }
30081 }
30082 else if (
proj.type == 600)
30083 {
30085 portalColor.A = 70;
30086 EntitySpriteDraw(
TextureAssets.
GlowMask[173].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
portalColor,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30087 }
30088 else if (
proj.type == 460)
30089 {
30091 {
30093 }
30094 EntitySpriteDraw(
TextureAssets.
GlowMask[102].Value,
vector52,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0),
proj.rotation - (
float)
Math.
PI / 2f,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30095 if (
proj.ai[0] > 180f &&
Main.projectile[(
int)
proj.ai[1]].type == 461)
30096 {
30098 }
30099 }
30100 else if (
proj.type == 633)
30101 {
30102 float num259 = (float)
Math.
Cos((
float)Math.PI * 2f * (
proj.ai[0] / 30f)) * 2f + 2f;
30103 if (
proj.ai[0] > 120f)
30104 {
30106 }
30108 {
30109 EntitySpriteDraw(
value57,
vector52 +
Vector2.
UnitY.RotatedBy(
num260 * ((
float)
Math.
PI * 2f) / 4f) *
num259,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y17,
value57.Width,
num255),
proj.GetAlpha(
projectileColor).MultiplyRGBA(
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0)) * 0.03f,
proj.rotation,
new Vector2((
float)
value57.Width / 2f, (
float)
num255 / 2f),
proj.scale,
dir);
30110 }
30111 }
30112 return;
30113 }
30114 if (
proj.type == 442)
30115 {
30120 EntitySpriteDraw(
value58,
position17,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y18,
value58.Width,
num261),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value58.Width / 2f, (
float)
num261 / 2f),
proj.scale,
dir);
30121 EntitySpriteDraw(
TextureAssets.
GlowMask[37].Value,
position17,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y18,
value58.Width,
num261),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0) * (1f - (
float)
proj.alpha / 255f),
proj.rotation,
new Vector2((
float)
value58.Width / 2f, (
float)
num261 / 2f),
proj.scale,
dir);
30122 return;
30123 }
30124 if (
proj.type == 447)
30125 {
30137 {
30139 }
30141 {
30143 {
30145 }
30146 EntitySpriteDraw(
TextureAssets.
Extra[4].Value,
vector53 +
Vector2.
UnitY * (
num263 - 1),
new Microsoft.
Xna.
Framework.
Rectangle(0,
num264 +
num263 - 1,
value60.Width, 1),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
value60.Width / 2, 0f),
new Vector2(1f,
num265),
dir);
30147 }
30148 value61.Width =
value59.Width;
30151 return;
30152 }
30153 if (
proj.type == 455)
30154 {
30156 {
30157 return;
30158 }
30167 center3 += proj.velocity * proj.scale * value62.Height / 2f;
30169 {
30173 {
30175 {
30177 }
30180 center3 += proj.velocity * value65.Height *
proj.scale;
30181 value65.Y += 16;
30183 {
30184 value65.Y = 0;
30185 }
30186 }
30187 }
30189 return;
30190 }
30191 if (
proj.type == 461)
30192 {
30194 {
30195 return;
30196 }
30205 vector55 += proj.velocity * proj.scale * 10.5f;
30208 {
30211 {
30213 {
30215 }
30218 vector55 += proj.velocity * rectangle14.Height *
proj.scale;
30219 }
30220 }
30221 EntitySpriteDraw(
sourceRectangle:
new Microsoft.Xna.Framework.
Rectangle(0, 56,
value66.Width, 22), texture:
value66, position:
vector55 -
screenPosition +
vector54, color:
color72, rotation:
proj.rotation, origin:
value66.Frame().
Top(), scale:
proj.scale, effects:
SpriteEffects.
None);
30222 return;
30223 }
30224 if (
proj.type == 632)
30225 {
30227 {
30235 vector56 += proj.velocity * proj.scale * 10.5f;
30238 DelegateMethods.f_1 = 1f;
30239 DelegateMethods.c_1 =
color73 * 0.75f *
proj.Opacity;
30244 }
30245 return;
30246 }
30247 if (
proj.type == 642)
30248 {
30250 {
30255 num271 -= proj.scale * 10.5f;
30257 DelegateMethods.f_1 = 1f;
30258 DelegateMethods.c_1 =
c_;
30259 DelegateMethods.i_1 = 54000 - (int)
time / 2;
30264 }
30265 return;
30266 }
30267 if (
proj.type == 611)
30268 {
30273 {
30274 return;
30275 }
30276 float num272 =
proj.velocity.Length() + 16f;
30288 {
30291 {
30293 {
30295 }
30299 }
30300 }
30307 {
30309 }
30312 {
30318 {
30321 {
30323 }
30327 }
30328 }
30329 EntitySpriteDraw(
sourceRectangle:
new Microsoft.Xna.Framework.
Rectangle(0, 90,
value69.Width, 48), texture:
value69, position:
vector63 -
screenPosition +
vector61, color:
alpha8, rotation:
rotation26, origin:
value69.Frame().
Top(), scale:
proj.scale, effects:
SpriteEffects.
None);
30330 return;
30331 }
30332 if (
proj.type == 537)
30333 {
30335 {
30336 return;
30337 }
30340 float fromValue2 = Utils.Remap(
proj.localAI[0], 20f, 30f, 0f, 1f) * Utils.Remap(
proj.localAI[0], 60f, 90f, 1f, 0f);
30341 float toMax = 1.5f;
30352 {
30355 {
30357 {
30359 }
30363 }
30364 }
30365 EntitySpriteDraw(
sourceRectangle:
new Microsoft.Xna.Framework.
Rectangle(0, 56,
value70.Width, 22), texture:
value70, position:
vector65 -
screenPosition +
vector64, color:
color74, rotation:
proj.rotation, origin:
value70.Frame().
Top(), scale:
num281, effects:
SpriteEffects.
None);
30366 return;
30367 }
30368 if (
proj.type == 456)
30369 {
30378 rectangle17.Height /= 4;
30379 rectangle17.Y += proj.frame *
rectangle17.Height;
30385 {
30389 {
30391 {
30393 }
30400 }
30401 }
30407 {
30408 value75.Height += (int)
num283;
30409 }
30411 return;
30412 }
30413 if (
proj.type == 443)
30414 {
30421 float scale5 = 0.75f + vector68.Y * 0.25f;
30422 float scale6 = 0.8f - vector68.Y * 0.2f;
30426 EntitySpriteDraw(
value76,
position18,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y20,
value76.Width,
num289),
proj.GetAlpha(
projectileColor),
proj.rotation +
num288,
new Vector2((
float)
value76.Width / 2f, (
float)
num289 / 2f),
scale5,
dir);
30427 EntitySpriteDraw(
value76,
position18,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y20,
value76.Width,
num289),
proj.GetAlpha(
projectileColor),
proj.rotation + ((
float)
Math.
PI * 2f -
num288),
new Vector2((
float)
value76.Width / 2f, (
float)
num289 / 2f),
scale6,
dir);
30428 return;
30429 }
30430 if (
proj.type == 656 ||
proj.type == 657)
30431 {
30433 if (
proj.type == 657)
30434 {
30436 }
30442 {
30444 }
30454 vector69.X = vector69.Y *
num295;
30465 {
30472 vector70.X = vector70.Y *
num295;
30475 {
30477 }
30478 color77.A = (byte)((
float)(int)
color77.A * 0.5f);
30481 position19.Y = 0f;
30482 position19.X = 0f;
30485 }
30486 return;
30487 }
30488 if (
proj.type == 704)
30489 {
30494 {
30496 }
30502 vector71.X = vector71.Y *
num306;
30507 float num307 = -(float)
Math.
PI / 20f *
num304 * (
float)((!(proj.velocity.X > 0f)) ? 1 : (-1));
30509 bool flag34 = proj.velocity.X > 0f;
30514 {
30516 }
30521 {
30523 }
30524 else
30525 {
30527 }
30530 {
30535 {
30537 }
30541 vector72.X = vector72.Y *
num306;
30544 {
30546 }
30547 color79.A = (byte)((
float)(int)
color79.A * 0.5f);
30550 position20.Y = 0f;
30551 position20.X = 0f;
30554 {
30557 {
30559 }
30560 color80.A = (byte)((
float)(int)
color80.A * 0.5f);
30563 }
30565 }
30566 return;
30567 }
30568 if (
proj.type == 444 ||
proj.type == 446 ||
proj.type == 490 ||
proj.type == 464 ||
proj.type == 502 ||
proj.type == 538 ||
proj.type == 540 ||
proj.type == 579 ||
proj.type == 578 ||
proj.type == 813 ||
proj.type == 583 ||
proj.type == 584 ||
proj.type == 616 ||
proj.type == 617 ||
proj.type == 618 ||
proj.type == 641 || (
proj.type >= 646 &&
proj.type <= 649) ||
proj.type == 653 ||
proj.type == 186 ||
proj.type == 662 ||
proj.type == 685 ||
proj.type == 673 ||
proj.type == 676 ||
proj.type == 697 ||
proj.type == 699 ||
proj.type == 707 ||
proj.type == 708 ||
proj.type == 719 ||
proj.type == 761 ||
proj.type == 762 ||
proj.type == 763 ||
proj.type == 772 ||
proj.type == 802 ||
proj.type == 842 ||
proj.type == 865 ||
proj.type == 921 ||
proj.type == 926 ||
proj.type == 757 ||
proj.type == 25 ||
proj.type == 35 ||
proj.type == 63 ||
proj.type == 154 ||
proj.type == 247 ||
proj.type == 26 ||
proj.type == 928 ||
proj.type == 16 ||
proj.type == 34 ||
proj.type == 79 ||
proj.type == 936 ||
proj.type == 937 ||
proj.type == 938 ||
proj.type == 939 ||
proj.type == 940 ||
proj.type == 941 ||
proj.type == 942 ||
proj.type == 943 ||
proj.type == 944 ||
proj.type == 945 ||
proj.type == 971 ||
proj.type == 975 ||
proj.type == 1000 ||
proj.type == 1012 ||
proj.type == 1018 ||
proj.type == 1020 || (((
proj.type >= 776 &&
proj.type <= 801) || (
proj.type >= 803 &&
proj.type <= 810)) &&
proj.type != 779 &&
proj.type != 783 &&
proj.type != 862 &&
proj.type != 863))
30569 {
30577 if (
proj.type == 446)
30578 {
30579 origin21.Y = 4f;
30580 }
30581 if (
proj.type == 1020)
30582 {
30583 origin21.Y = 14f;
30584 }
30585 if (
proj.type == 865)
30586 {
30589 }
30590 if (
proj.type == 16)
30591 {
30597 }
30598 if (
proj.type == 34)
30599 {
30608 }
30609 if (
proj.type == 79)
30610 {
30614 }
30615 if (
proj.type == 761 ||
proj.type == 762)
30616 {
30618 }
30619 if (
proj.type == 662 ||
proj.type == 685)
30620 {
30622 }
30623 if (
proj.type == 699 ||
proj.type == 708)
30624 {
30628 {
30631 }
30632 }
30633 if (
proj.type == 938 ||
proj.type == 939 ||
proj.type == 940 ||
proj.type == 941 ||
proj.type == 942 ||
proj.type == 943 ||
proj.type == 944 ||
proj.type == 945)
30634 {
30636 }
30637 if (
proj.type == 502)
30638 {
30644 white3.A = 127;
30646 {
30649 {
30655 }
30656 }
30657 }
30659 {
30661 if (
proj.ai[0] >= 10f)
30662 {
30664 }
30665 if (
proj.ai[0] >= 20f)
30666 {
30668 }
30670 {
30672 }
30674 {
30676 }
30678 {
30689 }
30690 }
30691 if (
proj.type == 578 ||
proj.type == 579 ||
proj.type == 641 ||
proj.type == 813)
30692 {
30694 color84.A /= 2;
30697 float num318 = 0.95f + (proj.rotation * 0.75f).ToRotationVector2().Y * 0.1f;
30702 if (
proj.type == 813)
30703 {
30706 }
30711 {
30713 }
30715 color81.A = 0;
30716 if (
proj.type == 813)
30717 {
30719 }
30720 }
30721 if (
proj.type == 617)
30722 {
30724 color86.A /= 2;
30727 float num319 = 0.95f + (proj.rotation * 0.75f).ToRotationVector2().Y * 0.1f;
30734 color81.A = 0;
30735 }
30736 if (
proj.type == 757 ||
proj.type == 25 ||
proj.type == 35 ||
proj.type == 63 ||
proj.type == 154 ||
proj.type == 247 ||
proj.type == 26)
30737 {
30738 if (
proj.ai[0] == 1f)
30739 {
30741 color88.A = 127;
30745 {
30747 }
30749 {
30753 }
30754 }
30755 }
30756 else if (
proj.type == 79)
30757 {
30761 {
30763 color89.A = 0;
30765 }
30767 }
30768 if ((0
u | ((
proj.type == 464 &&
proj.ai[1] != 1f) ? 1
u : 0
u)) == 0)
30769 {
30771 }
30772 if (
proj.type == 464 &&
proj.ai[1] != 1f)
30773 {
30781 {
30782 float num326 = (float)
num325 * ((
float)Math.PI * 2f) / 6f;
30787 {
30788 rectangle21.Y = 0;
30789 }
30790 }
30791 }
30792 else if (
proj.type == 490)
30793 {
30797 }
30798 else if (
proj.type == 616)
30799 {
30801 EntitySpriteDraw(
value83,
vector73,
null,
new Microsoft.
Xna.
Framework.
Color(127, 127, 127, 0),
proj.rotation,
origin21,
proj.scale,
dir);
30802 }
30803 else if (
proj.type >= 646 &&
proj.type <= 649)
30804 {
30806 EntitySpriteDraw(
value83,
vector73,
null,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127),
proj.rotation,
origin21,
proj.scale,
dir);
30807 }
30808 else if (
proj.type == 699)
30809 {
30811 EntitySpriteDraw(
value83,
vector73,
null,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127),
num315,
origin21,
proj.scale,
dir);
30812 }
30813 else if (
proj.type == 707 ||
proj.type == 708)
30814 {
30818 if (
proj.type == 708)
30819 {
30822 }
30826 {
30828 }
30830 }
30831 else if (
proj.type == 719)
30832 {
30835 float num330 = proj.scale * 1.5f;
30838 {
30840 }
30842 {
30844 }
30846 }
30847 else if (
proj.type == 16)
30848 {
30853 {
30855 }
30857 }
30858 else if (
proj.type == 34)
30859 {
30865 {
30867 }
30868 }
30869 return;
30870 }
30871 if (
proj.type == 465 ||
proj.type == 467 ||
proj.type == 468 ||
proj.type == 500 ||
proj.type == 518 ||
proj.type == 535 ||
proj.type == 539 ||
proj.type == 575 ||
proj.type == 574 ||
proj.type == 589 ||
proj.type == 590 ||
proj.type == 593 ||
proj.type == 602 ||
proj.type == 596 ||
proj.type == 612 ||
proj.type == 953 ||
proj.type == 613 ||
proj.type == 614 ||
proj.type == 623 ||
proj.type == 625 ||
proj.type == 626 ||
proj.type == 627 ||
proj.type == 628 ||
proj.type == 634 ||
proj.type == 635 ||
proj.type == 643 ||
proj.type == 644 ||
proj.type == 645 ||
proj.type == 650 ||
proj.type == 652 ||
proj.type == 658 ||
proj.type == 659 ||
proj.type == 663 ||
proj.type == 665 ||
proj.type == 667 ||
proj.type == 677 ||
proj.type == 678 ||
proj.type == 679 ||
proj.type == 691 ||
proj.type == 692 ||
proj.type == 693 ||
proj.type == 702 ||
proj.type == 703 ||
proj.type == 701 ||
proj.type == 712 ||
proj.type == 715 ||
proj.type == 716 ||
proj.type == 717 ||
proj.type == 718 ||
proj.type == 758 ||
proj.type == 759 ||
proj.type == 764 ||
proj.type == 779 ||
proj.type == 783 ||
proj.type == 773 ||
proj.type == 820 ||
proj.type == 831 ||
proj.type == 970 ||
proj.type == 836 ||
proj.type == 851 ||
proj.type == 855 ||
proj.type == 856 ||
proj.type == 857 ||
proj.type == 861 ||
proj.type == 862 ||
proj.type == 863 ||
proj.type == 866 ||
proj.type == 870 ||
proj.type == 882 ||
proj.type == 885 ||
proj.type == 889 ||
proj.type == 895 ||
proj.type == 896 ||
proj.type == 898 ||
proj.type == 903 ||
proj.type == 904 ||
proj.type == 905 ||
proj.type == 906 ||
proj.type == 908 ||
proj.type == 910 ||
proj.type == 911 ||
proj.type == 951 ||
proj.type == 957 ||
proj.type == 962 ||
proj.type == 963 ||
proj.type == 967 ||
proj.type == 968 ||
proj.type == 978 ||
proj.type == 995 ||
proj.type == 886 ||
proj.type == 892)
30872 {
30876 if (
proj.type == 963)
30877 {
30879 }
30880 if (
proj.type == 957)
30881 {
30886 }
30887 if (
proj.type == 962)
30888 {
30893 }
30896 {
30897 color94.A = 127;
30898 }
30899 if (
proj.type == 995)
30900 {
30902 vector82.Y -= 4f;
30903 vector82.Y +=
fall;
30906 }
30908 if (
proj.type == 703)
30909 {
30910 rectangle22.Height -= 2;
30911 }
30912 if (
proj.type == 957)
30913 {
30918 {
30920 {
30921 case 5:
30922 case 11:
30924 break;
30925 case 6:
30926 case 10:
30928 break;
30929 case 7:
30931 break;
30932 case 8:
30933 case 9:
30935 break;
30936 }
30937 }
30939 }
30940 if (
proj.type == 895 ||
proj.type == 896 ||
proj.type == 898 ||
proj.type == 963)
30941 {
30943 if (
proj.isAPreviewDummy)
30944 {
30946 }
30948 }
30949 if (
proj.type == 963 &&
proj.localAI[1] >= 0f)
30950 {
30954 color95.A = 0;
30961 if (
proj.velocity.Length() < 0.1f)
30962 {
30963 num342 = ((proj.direction == 1) ? 0f : ((float)
Math.
PI));
30964 }
30967 {
30973 }
30974 }
30975 if (
proj.type == 962)
30976 {
30977 float num348 = Utils.Remap(
proj.ai[0], 0f, 30f, 1f, 0f);
30979 color96.A = 0;
30981 {
30983 }
30984 }
30985 if (
proj.type == 855)
30986 {
30991 {
30995 {
30996 case 0:
30998 break;
30999 case 1:
31001 break;
31002 case 2:
31004 break;
31005 case 3:
31007 break;
31008 }
31011 }
31012 }
31013 else if (
proj.type == 908)
31014 {
31019 {
31021 }
31024 }
31025 else if (
proj.type == 764)
31026 {
31028 }
31029 else if (
proj.type == 856)
31030 {
31032 }
31033 else if (
proj.type == 857)
31034 {
31036 color94 = Microsoft.Xna.Framework.Color.White * proj.Opacity * 0.9f;
31037 color94.A /= 2;
31040 DrawPrettyStarSparkle(
proj.Opacity,
dir,
vector82,
color94,
proj.GetFirstFractalColor(),
proj.localAI[0], 15f, 30f, 30f, 45f, 0f,
new Vector2(5f, 2f),
Vector2.
One);
31041 }
31042 else if (
proj.type == 539)
31043 {
31044 if (
proj.ai[0] >= 210f)
31045 {
31049 {
31051 }
31052 EntitySpriteDraw(
TextureAssets.
Extra[46].Value,
vector82,
null,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 128) *
num352,
proj.rotation,
new Vector2(17f, 22f),
proj.scale,
dir);
31053 }
31054 }
31055 else if (
proj.type == 773)
31056 {
31057 origin25.Y = rectangle22.Height - 12;
31058 }
31059 else if (
proj.type == 866)
31060 {
31061 origin25.X += 14f;
31062 }
31063 else if (
proj.type == 759)
31064 {
31065 origin25.Y = rectangle22.Height - 2;
31067 }
31068 else if (
proj.type == 758)
31069 {
31070 vector82.Y += proj.height / 2;
31072 origin25.Y -= 4f;
31073 }
31074 else if (
proj.type == 951)
31075 {
31076 vector82.Y += proj.height / 2;
31078 vector82.Y += 4f;
31080 }
31081 else if (
proj.type == 833)
31082 {
31083 if (
proj.frame != 8)
31084 {
31085 vector82.Y += proj.height / 2;
31087 origin25.Y -= 4f;
31088 origin25.X -= 7 *
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt();
31089 }
31090 }
31091 else if (
proj.type == 834 ||
proj.type == 835)
31092 {
31093 if (
proj.frame != 10)
31094 {
31095 vector82.Y += proj.height / 2;
31097 origin25.Y -= 4f;
31098 origin25.X -= 2 *
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt();
31099 }
31100 }
31101 else if (
proj.type == 715 ||
proj.type == 716 ||
proj.type == 717 ||
proj.type == 718)
31102 {
31109 celeb2Color.A = 127;
31112 value90.X += value90.Width * 2;
31114 {
31117 {
31123 {
31124 case 2:
31125 {
31129 {
31131 }
31136 {
31137 case 1:
31139 break;
31140 case 2:
31142 break;
31143 case 3:
31145 break;
31146 case 4:
31148 break;
31149 case 5:
31151 break;
31152 case 7:
31154 break;
31155 case 8:
31157 break;
31158 case 9:
31160 break;
31161 case 10:
31163 break;
31164 case 11:
31166 break;
31167 }
31169 break;
31170 }
31171 case 5:
31173 break;
31174 }
31176 }
31177 }
31178 }
31179 else if (
proj.type == 663 ||
proj.type == 665 ||
proj.type == 667)
31180 {
31183 origin25.Y -= 2f;
31184 origin25.Y -= 2f;
31185 }
31186 else if (
proj.type == 691 ||
proj.type == 692 ||
proj.type == 693)
31187 {
31190 origin25.Y -= 2f;
31191 origin25.Y -= 2f;
31192 }
31193 else if (
proj.type == 677 ||
proj.type == 678 ||
proj.type == 679)
31194 {
31195 if (
proj.spriteDirection == -1)
31196 {
31198 }
31200 if (
proj.type == 678)
31201 {
31203 }
31204 if (
proj.type == 679)
31205 {
31207 }
31210 origin28.Y -= 2f;
31212 origin25.X +=
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt();
31213 vector82.Y += 1f;
31214 vector82.Y += 2f;
31215 if (
proj.type == 678)
31216 {
31217 vector82.Y += -4f;
31218 }
31219 if (
proj.type == 679)
31220 {
31221 vector82.Y -= 2f;
31223 {
31224 origin25.Y += 4f;
31225 }
31226 else
31227 {
31228 origin25.Y -= 4f;
31229 }
31230 origin25.X +=
dir.HasFlag(
SpriteEffects.FlipHorizontally).ToDirectionInt() * 4;
31231 }
31232 }
31233 else if (
proj.type == 602)
31234 {
31235 origin25.X = rectangle22.Width - 6;
31236 origin25.Y -= 1f;
31237 rectangle22.Height -= 2;
31238 }
31239 else if (
proj.type == 589)
31240 {
31243 }
31244 else if (
proj.type == 590)
31245 {
31246 if (
proj.ai[2] == 1f &&
proj.frame < 3)
31247 {
31248 proj.frame = 3;
31249 }
31252 }
31253 else if (
proj.type == 836)
31254 {
31257 }
31258 else if (
proj.type == 650 ||
proj.type == 882 ||
proj.type == 888 ||
proj.type == 894 ||
proj.type == 895 ||
proj.type == 896 ||
proj.type == 898 ||
proj.type == 901 ||
proj.type == 957)
31259 {
31260 origin25.Y -= 4f;
31261 }
31262 else if (
proj.type == 623)
31263 {
31265 {
31267 }
31269 {
31270 color94.A /= 2;
31271 }
31272 }
31273 else if (
proj.type >= 625 &&
proj.type <= 628)
31274 {
31275 color94.A /= 2;
31276 }
31277 else if (
proj.type == 644)
31278 {
31282 if (
proj.ai[1] != -1f &&
proj.Opacity > 0.3f)
31283 {
31290 {
31293 }
31294 }
31295 }
31296 else if (
proj.type == 658)
31297 {
31300 }
31302 if (
proj.type == 896)
31303 {
31307 {
31310 }
31312 }
31313 if (
proj.type == 889)
31314 {
31318 if (!
proj.isAPreviewDummy)
31319 {
31321 {
31333 {
31334 case 1:
31336 break;
31337 case 2:
31339 break;
31340 case 3:
31342 break;
31343 }
31348 {
31351 {
31353 }
31354 continue;
31355 }
31360 {
31361 case 1:
31362 vector90.X *= -1f;
31366 break;
31367 case 2:
31368 vector90.Y = 16f;
31371 break;
31372 case 3:
31373 vector90.X *= -1f;
31374 vector90.Y = 16f;
31378 break;
31379 }
31387 {
31389 }
31390 }
31391 }
31392 }
31393 if (
proj.type == 885 && !
proj.isAPreviewDummy)
31394 {
31396 {
31400 {
31403 }
31405 if (
proj.frame == 6)
31406 {
31408 }
31410 {
31412 }
31417 vector91 += proj.velocity * -1.5f;
31420 {
31422 }
31423 else
31424 {
31426 }
31428 }
31429 }
31430 if (
proj.type == 535)
31431 {
31433 {
31435 {
31437 }
31438 }
31439 }
31440 else if (
proj.type == 715 ||
proj.type == 716 ||
proj.type == 717 ||
proj.type == 718)
31441 {
31444 celeb2Color2.A = 80;
31446 }
31447 else if (
proj.type == 702)
31448 {
31452 ulong
seed2 = (ulong)(
proj.localAI[0] / 4f);
31454 {
31456 float x14 = (float)Utils.RandomInt(
ref seed2, -10, 11) * 0.15f;
31457 float y23 = (float)Utils.RandomInt(
ref seed2, -10, 1) * 0.35f;
31459 }
31460 }
31461 else if (
proj.type == 663 ||
proj.type == 665 ||
proj.type == 667)
31462 {
31465 {
31466 case 665:
31468 break;
31469 case 667:
31471 break;
31472 }
31473 float num373 = (
proj.localAI[0] / 100f * ((float)
Math.
PI * 2f)).ToRotationVector2().X * 1f + 1f;
31476 {
31478 }
31479 }
31480 else if (
proj.type == 644)
31481 {
31483 }
31484 else if (
proj.type == 963)
31485 {
31486 int num375 =
Main.player[
proj.owner].ownedProjectileCounts[970] - 1;
31492 {
31494 vector94.Z += 0.1f;
31495 vector94.X -= 0.05f;
31496 }
31497 vector94.X = (vector94.X - (float)
num377 * 0.13f + 1f) % 1f;
31500 rectangle22.X += rectangle22.Width * (1 +
num376);
31502 }
31503 else if (
proj.type == 773 &&
proj.velocity.Length() == 0f)
31504 {
31506 }
31507 else if (
proj.type == 658)
31508 {
31510 }
31511 else if (
proj.type == 602)
31512 {
31515 color107.A = 0;
31521 color107.A = 0;
31525 }
31526 else if (
proj.type == 539)
31527 {
31528 EntitySpriteDraw(
TextureAssets.
GlowMask[140].Value,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0),
proj.rotation,
origin25,
proj.scale,
dir);
31529 }
31530 else if (
proj.type == 613)
31531 {
31532 EntitySpriteDraw(
TextureAssets.
GlowMask[189].Value,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(128 -
proj.alpha / 2, 128 -
proj.alpha / 2, 128 -
proj.alpha / 2, 0),
proj.rotation,
origin25,
proj.scale,
dir);
31533 }
31534 else if (
proj.type == 614)
31535 {
31536 EntitySpriteDraw(
TextureAssets.
GlowMask[190].Value,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(128 -
proj.alpha / 2, 128 -
proj.alpha / 2, 128 -
proj.alpha / 2, 0),
proj.rotation,
origin25,
proj.scale,
dir);
31537 }
31538 else if (
proj.type == 574)
31539 {
31540 EntitySpriteDraw(
TextureAssets.
GlowMask[148].Value,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0),
proj.rotation,
origin25,
proj.scale,
dir);
31541 }
31542 else if (
proj.type == 691 ||
proj.type == 692 ||
proj.type == 693)
31543 {
31546 {
31547 case 692:
31549 break;
31550 case 693:
31552 break;
31553 }
31554 EntitySpriteDraw(
value102,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 127),
proj.rotation,
origin25,
proj.scale,
dir);
31555 }
31556 else if (
proj.type == 590)
31557 {
31558 EntitySpriteDraw(
TextureAssets.
GlowMask[168].Value,
vector82,
rectangle22,
new Microsoft.
Xna.
Framework.
Color(127 -
proj.alpha / 2, 127 -
proj.alpha / 2, 127 -
proj.alpha / 2, 0),
proj.rotation,
origin25,
proj.scale,
dir);
31559 }
31560 else if (
proj.type == 623 || (
proj.type >= 625 &&
proj.type <= 628))
31561 {
31562 if (
Main.player[
proj.owner].ghostFade != 0f)
31563 {
31566 {
31568 }
31569 }
31570 if (
proj.type == 623 &&
proj.ai[0] == 2f &&
proj.frame >= 14)
31571 {
31573 }
31574 }
31575 else if (
proj.type == 643)
31576 {
31577 float num380 = (float)
Math.
Cos((
float)Math.PI * 2f * (
proj.localAI[0] / 60f)) + 3f + 3f;
31579 {
31581 }
31582 }
31583 else if (
proj.type == 650)
31584 {
31589 {
31591 }
31596 if ((
float)
num382 == 1f)
31597 {
31599 }
31603 }
31604 return;
31605 }
31606 if (
proj.type == 466)
31607 {
31613 {
31615 {
31616 case 0:
31619 break;
31620 case 1:
31623 break;
31624 default:
31627 break;
31628 }
31629 DelegateMethods.f_1 = 1f;
31631 {
31633 {
31637 }
31638 }
31640 {
31641 DelegateMethods.f_1 = 1f;
31644 }
31645 }
31646 return;
31647 }
31648 if (
proj.type == 580)
31649 {
31655 {
31656 float num390 = ((
proj.localAI[1] == -1f ||
proj.localAI[1] == 1f) ? (-0.2f) : 0f);
31658 {
31661 }
31662 else
31663 {
31666 }
31667 DelegateMethods.f_1 = 1f;
31669 {
31671 {
31675 }
31676 }
31678 {
31679 DelegateMethods.f_1 = 1f;
31682 }
31683 }
31684 return;
31685 }
31686 if (
proj.type == 445)
31687 {
31688 if (
Main.player[
proj.owner].gravDir == -1f)
31689 {
31691 }
31706 {
31708 vector103.RotatedBy(1.5707963705062866),
31709 vector103.RotatedBy(3.1415927410125732),
31711 };
31713 {
31715 {
31718 {
31720 white4.A = 128;
31722 }
31723 else
31724 {
31726 white4.A = 128;
31728 }
31730 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
vector102 -
screenPosition +
vector104,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0, 1, 1),
white4,
num393,
Vector2.
One / 2f,
new Vector2(2f,
num392 -
num395),
dir);
31731 }
31732 }
31738 EntitySpriteDraw(
TextureAssets.
GlowMask[39].Value,
vector99 -
screenPosition +
vector101 *
num394,
null,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0),
proj.rotation + (
float)
Math.
PI / 2f + ((
dir ==
SpriteEffects.None ||
dir ==
SpriteEffects.FlipVertically) ? ((
float)
Math.
PI) : 0f),
new Vector2((
dir != 0 &&
dir !=
SpriteEffects.
FlipVertically) ?
value106.Width : 0, (float)
value106.Height / 2f) +
Vector2.UnitY * 1f,
Main.
player[
proj.owner].inventory[
Main.
player[
proj.owner].selectedItem].scale,
dir);
31740 {
31742 {
31745 {
31747 white5.A = 128;
31749 }
31750 else
31751 {
31753 white5.A = 128;
31755 }
31757 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
vector102 -
screenPosition +
vector105,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0, 1, 1),
white5,
num393,
Vector2.
One / 2f,
new Vector2(2f,
num392 -
num395),
dir);
31758 }
31759 }
31762 {
31764 }
31767 return;
31768 }
31769 if ((
proj.type >= 393 &&
proj.type <= 395) ||
proj.type == 398 ||
proj.type == 423 ||
proj.type == 450)
31770 {
31774 EntitySpriteDraw(
value107,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY - 2f),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y24,
value107.Width,
num399),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value107.Width / 2f, (
float)
num399 / 2f),
proj.scale,
dir);
31775 if (
proj.type == 398)
31776 {
31778 EntitySpriteDraw(
value107,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY - 2f),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y24,
value107.Width,
num399),
new Microsoft.
Xna.
Framework.
Color(250, 250, 250,
proj.alpha),
proj.rotation,
new Vector2((
float)
value107.Width / 2f, (
float)
num399 / 2f),
proj.scale,
dir);
31779 }
31780 if (
proj.type == 423)
31781 {
31783 EntitySpriteDraw(
value107,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY - 2f),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y24,
value107.Width,
num399),
new Microsoft.
Xna.
Framework.
Color(250, 250, 250,
proj.alpha),
proj.rotation,
new Vector2((
float)
value107.Width / 2f, (
float)
num399 / 2f),
proj.scale,
dir);
31784 }
31785 return;
31786 }
31787 if (
proj.type == 385)
31788 {
31796 {
31803 EntitySpriteDraw(
value108,
proj.oldPos[
num403] +
new Vector2(
proj.width,
proj.height) / 2f -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y25,
value108.Width,
num400),
Microsoft.
Xna.
Framework.
Color.
Lerp(
alpha11,
newColor3, 0.3f),
proj.rotation,
new Vector2((
float)
value108.Width / 2f, (
float)
num400 / 2f),
MathHelper.
Lerp(
proj.scale,
value109, (
float)
num403 / 15f),
dir);
31804 }
31805 EntitySpriteDraw(
value108,
proj.Center -
screenPosition +
new Vector2(0f,
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y25,
value108.Width,
num400),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2((
float)
value108.Width / 2f, (
float)
num400 / 2f),
proj.scale,
dir);
31806 return;
31807 }
31808 if (
proj.type == 388)
31809 {
31815 if (
proj.ai[0] == 2f)
31816 {
31819 }
31820 else
31821 {
31824 }
31826 {
31832 EntitySpriteDraw(
value110,
position25,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y26,
value110.Width,
num404),
newColor4,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31833 }
31834 EntitySpriteDraw(
value110,
proj.position -
screenPosition +
new Vector2(
num138 + (
float)
num137, (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y26,
value110.Width,
num404),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31835 return;
31836 }
31838 {
31841 if (
proj.type == 111)
31842 {
31843 int r =
Main.player[
proj.owner].shirtColor.R;
31844 int g =
Main.player[
proj.owner].shirtColor.G;
31845 int b =
Main.player[
proj.owner].shirtColor.B;
31847 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31848 return;
31849 }
31852 {
31853 alpha12.A = 127;
31854 }
31855 if (
proj.type == 344)
31856 {
31859 {
31861 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY) -
vector106,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
alpha12 * (1f -
num410) * 0.75f,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale * (0.4f + (1f -
num410) * 0.6f),
dir);
31862 }
31863 }
31864 if (
proj.type == 920 ||
proj.type == 921)
31865 {
31867 {
31869 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY) -
vector107,
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
alpha12 * (1f -
num411) * 0.75f,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31870 }
31871 }
31872 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
alpha12,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31873 if (
proj.type == 966)
31874 {
31883 {
31885 {
31887 }
31888 else
31889 {
31891 }
31892 }
31894 {
31897 }
31899 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY) +
vector108,
new Microsoft.
Xna.
Framework.
Rectangle(0,
num408,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
alpha12,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31900 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY) +
vector108 +
vector109,
new Microsoft.
Xna.
Framework.
Rectangle(0,
num408 * 2,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
alpha12,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31901 }
31902 if (
proj.type == 335)
31903 {
31904 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
new Microsoft.
Xna.
Framework.
Color(100, 100, 100, 0),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31905 }
31906 if (
proj.type == 897 ||
proj.type == 899)
31907 {
31909 if (
proj.type == 899)
31910 {
31912 }
31913 EntitySpriteDraw(
TextureAssets.
GlowMask[
num414].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1),
Microsoft.
Xna.
Framework.
Color.
White,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31914 }
31915 if (
proj.type == 891)
31916 {
31918 EntitySpriteDraw(color:
new Microsoft.Xna.Framework.
Color(
num415,
num415,
num415, 150f), texture:
TextureAssets.GlowMask[277].
Value, position:
new Vector2(
proj.position.
X -
screenPosition.
X +
num138 + (float)
num137,
proj.position.
Y -
screenPosition.
Y + (float)(
proj.height / 2) +
proj.gfxOffY),
sourceRectangle:
new Microsoft.Xna.Framework.
Rectangle(0,
y27,
TextureAssets.Projectile[
proj.
type].Width(),
num408 - 1), rotation:
proj.rotation, origin:
new Vector2(
num138,
proj.height / 2 +
num136), scale:
proj.scale, effects:
dir);
31919 }
31920 if (
proj.type == 595)
31921 {
31924 {
31926 {
31928 underShirtColor.A = (byte)(120f * (1f -
num416 * 0.5f));
31929 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1), underShirtColor,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale *
MathHelper.
Lerp(0.8f, 1.3f,
num416),
dir);
31930 }
31931 }
31932 }
31933 if (
proj.type == 387)
31934 {
31935 EntitySpriteDraw(
TextureAssets.
EyeLaserSmall.Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
31936 }
31937 if (
proj.type != 525 &&
proj.type != 960)
31938 {
31939 return;
31940 }
31943 {
31944 return;
31945 }
31948 {
31950 if (
proj.type == 960)
31951 {
31953 }
31955 EntitySpriteDraw(
TextureAssets.
Extra[
num419].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0,
y27,
TextureAssets.
Projectile[
proj.type].Width(),
num408 - 1), selectionGlowColor,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136), 1f,
dir);
31956 }
31957 return;
31958 }
31959 if (
proj.type == 383 ||
proj.type == 399)
31960 {
31963 return;
31964 }
31965 if (
proj.type == 157 ||
proj.type == 378)
31966 {
31967 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X + (
float)(
proj.width / 2),
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2)),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
TextureAssets.
Projectile[
proj.type].Width() / 2,
TextureAssets.
Projectile[
proj.type].Height() / 2),
proj.scale,
dir);
31968 return;
31969 }
31970 if (
proj.type == 306)
31971 {
31972 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X + (
float)(
proj.width / 2),
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2)),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
TextureAssets.
Projectile[
proj.type].Width() / 2,
TextureAssets.
Projectile[
proj.type].Height() / 2),
proj.scale,
dir);
31973 return;
31974 }
31975 if (
proj.type == 256)
31976 {
31977 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X + (
float)(
proj.width / 2),
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2)),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
TextureAssets.
Projectile[
proj.type].Width() / 2,
TextureAssets.
Projectile[
proj.type].Height() / 2),
proj.scale,
dir);
31978 return;
31979 }
31980 if (
proj.aiStyle == 27)
31981 {
31982 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X + (
float)(
proj.width / 2),
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2)),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
TextureAssets.
Projectile[
proj.type].Width(), 0f),
proj.scale,
dir);
31983 return;
31984 }
31985 if (
proj.aiStyle == 19)
31986 {
31988 return;
31989 }
31990 if (
proj.type == 451)
31991 {
31993 return;
31994 }
31995 if (
proj.type == 434)
31996 {
32004 red.A = 0;
32009 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
vector113 -
screenPosition,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0, 1, 1),
red,
rotation30,
Vector2.
One / 2f,
new Vector2(2f *
num421,
num420 + 8f),
dir);
32010 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
vector113 -
screenPosition,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0, 1, 1),
red,
rotation30,
Vector2.
One / 2f,
new Vector2(4f *
num421,
num420),
dir);
32011 EntitySpriteDraw(
TextureAssets.
MagicPixel.Value,
vector113 -
screenPosition,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0, 1, 1),
white6,
rotation30,
Vector2.
One / 2f,
new Vector2(2f *
num421,
num420),
dir);
32012 return;
32013 }
32014 if (
proj.type == 94 &&
proj.ai[1] > 6f)
32015 {
32017 {
32025 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.oldPos[
num422].X -
screenPosition.X +
num138 + (
float)
num137,
proj.oldPos[
num422].Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha13,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
num424 *
proj.scale,
dir);
32026 }
32027 }
32028 if (
proj.type == 301)
32029 {
32031 {
32039 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.oldPos[
num425].X -
screenPosition.X +
num138 + (
float)
num137,
proj.oldPos[
num425].Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha14,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
num427 *
proj.scale,
dir);
32040 }
32041 }
32042 if (
proj.type == 323 &&
proj.alpha == 0)
32043 {
32045 {
32051 {
32053 }
32055 {
32057 }
32059 {
32061 }
32063 {
32065 }
32067 {
32069 }
32071 {
32073 }
32075 {
32077 }
32082 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num429,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num430),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha15,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
num431 + 0.2f,
dir);
32083 }
32084 }
32085 if (
proj.type == 117 &&
proj.ai[0] > 3f)
32086 {
32088 {
32094 {
32096 }
32098 {
32100 }
32102 {
32104 }
32106 {
32108 }
32113 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num433,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num434),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha16,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32114 }
32115 }
32117 {
32119 {
32127 if (
proj.velocity.X > 0f)
32128 {
32132 if (
proj.ai[1] == 2342f)
32133 {
32135 }
32136 }
32137 else
32138 {
32142 if (
proj.ai[1] == 2342f)
32143 {
32145 }
32146 }
32151 {
32153 }
32155 }
32156 else if (
proj.ai[0] <= 1f)
32157 {
32158 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32159 if (
proj.glowMask != -1)
32160 {
32163 if (
proj.type == 993)
32164 {
32166 }
32167 EntitySpriteDraw(
value114,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
value114.Width,
value114.Height),
proj.GetAlpha(
newColor5),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32168 }
32169 }
32170 }
32171 else
32172 {
32173 if (
proj.ownerHitCheck &&
Main.player[
proj.owner].gravDir == -1f)
32174 {
32175 if (
Main.player[
proj.owner].direction == 1)
32176 {
32178 }
32179 else if (
Main.player[
proj.owner].direction == -1)
32180 {
32182 }
32183 }
32184 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32185 if (
proj.glowMask != -1)
32186 {
32187 EntitySpriteDraw(
TextureAssets.
GlowMask[
proj.glowMask].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
new Microsoft.
Xna.
Framework.
Color(250, 250, 250,
proj.alpha),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32188 }
32189 if (
proj.type == 473)
32190 {
32191 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
new Microsoft.
Xna.
Framework.
Color(255, 255, 0, 0),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32192 }
32193 if (
proj.type >= 511 &&
proj.type <= 513)
32194 {
32195 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
proj.GetAlpha(
projectileColor) * 0.25f,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale * (1f +
proj.Opacity * 1.75f),
dir);
32196 }
32197 if (
proj.type == 312)
32198 {
32201 {
32203 EntitySpriteDraw(
TextureAssets.
GlowMask[
proj.glowMask].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY) +
vector115,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 255) * 0.2f,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32204 }
32205 }
32206 }
32207 if (
proj.type == 106)
32208 {
32212 EntitySpriteDraw(
value115,
position26,
value116,
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 0),
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32213 }
32214 if (
proj.type >= 326 &&
proj.type <= 328)
32215 {
32218 {
32220 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2)) +
vector116 -
proj.velocity * 0.25f *
num440,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
new Microsoft.
Xna.
Framework.
Color(120, 120, 120, 60) * 1f,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale - (
float)
num440 * 0.2f,
dir);
32221 }
32222 }
32223 if (
proj.type == 554 ||
proj.type == 603)
32224 {
32226 {
32227 float num442 = proj.velocity.X * (float)
num441 * 0.5f;
32228 float num443 = proj.velocity.Y * (float)
num441 * 0.5f;
32232 {
32234 }
32236 {
32238 }
32240 {
32242 }
32244 {
32246 }
32251 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num442,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num443),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha17,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32252 }
32253 }
32254 else if (
proj.type == 604)
32255 {
32258 {
32260 }
32262 {
32263 float num447 = proj.velocity.X * (float)
num446 * 1.5f;
32264 float num448 = proj.velocity.Y * (float)
num446 * 1.5f;
32268 {
32270 }
32272 {
32274 }
32276 {
32278 }
32280 {
32282 }
32291 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num447,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num448),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha18,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
scale15,
dir);
32292 }
32293 }
32294 else
32295 {
32296 if (
proj.type != 553)
32297 {
32298 return;
32299 }
32301 {
32302 float num451 = proj.velocity.X * (float)
num450 * 0.4f;
32303 float num452 = proj.velocity.Y * (float)
num450 * 0.4f;
32307 {
32309 }
32311 {
32313 }
32315 {
32317 }
32319 {
32321 }
32326 EntitySpriteDraw(
TextureAssets.
Projectile[
proj.type].Value,
new Vector2(
proj.position.X -
screenPosition.X +
num138 + (
float)
num137 -
num451,
proj.position.Y -
screenPosition.Y + (
float)(
proj.height / 2) +
proj.gfxOffY -
num452),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Projectile[
proj.type].Width(),
TextureAssets.
Projectile[
proj.type].Height()),
alpha19,
proj.rotation,
new Vector2(
num138,
proj.height / 2 +
num136),
proj.scale,
dir);
32327 }
32328 }
32329 }
32330 }
static float Lerp(float value1, float value2, float amount)
static float Distance(float value1, float value2)
static float Max(float value1, float value2)
static float Clamp(float value, float min, float max)
static float Min(float value1, float value2)
static double Cos(double d)
static byte Min(byte val1, byte val2)
static double Atan2(double y, double x)
static double Sqrt(double d)
static double IEEERemainder(double x, double y)
static double Abs(double value)
static double Sin(double a)
static double Floor(double d)
static int Sign(decimal value)
static byte Max(byte val1, byte val2)
static bool ValidateShot(Entity golfBall, Player player, ref Vector2 shotVector)
static ShotStrength CalculateShotStrength(Vector2 shotVector, ClubProperties clubProperties)
static void DrawPredictionLine(Entity golfBall, Vector2 impactVelocity, float chargeProgress, float roughLandResistance)
static bool IsGolfBallResting(Projectile golfBall)
static bool IsGolfShotValid(Entity golfBall, Player player)
static bool IsPlayerHoldingClub(Player player)
static Color GetPortalColor(int colorIndex)
static PlayerTitaniumStormBuffTextureContent PlayerTitaniumStormBuff
static Asset< Texture2D > Chain9
static Asset< Texture2D > Chain28
static Asset< Texture2D > Chain29
static Asset< Texture2D > Chain5
static Asset< Texture2D > Chain35
static Asset< Texture2D >[] Npc
static Asset< Texture2D > Chain40
static Asset< Texture2D > Chain15
static Asset< Texture2D >[] Projectile
static Asset< Texture2D > MiniMinotaur
static Asset< Texture2D >[] GlowMask
static Asset< Texture2D > Chain31
static Asset< Texture2D > Chain30
static Asset< Texture2D > Chain17
static Asset< Texture2D > EyeLaserSmall
static Asset< Texture2D >[] Item
static Asset< Texture2D > Chain16
static Asset< Texture2D > Chain20
static Asset< Texture2D >[] Extra
static Asset< Texture2D > LightDisc
static Asset< Texture2D >[] Flames
static Asset< Texture2D >[] Chains
static Asset< Texture2D > GolfBallOutline
static Asset< Texture2D > Chain38
static Asset< Texture2D > Chain39
static Asset< Texture2D > Chain23
static Asset< Texture2D > Chain33
static Asset< Texture2D > Chain8
static Asset< Texture2D > Chain
static Asset< Texture2D >[] WireUi
static Asset< Texture2D >[] GemChain
static Asset< Texture2D > Chain36
static Asset< Texture2D > Chain22
static Asset< Texture2D > MagicPixel
static Asset< Texture2D > Chain32
static Asset< Texture2D > Chain37
static Asset< Texture2D > Chain18
static Asset< Texture2D > Chain34
static MultiToolMode ToolMode
static Color GetSelectionGlowColor(bool isTileSelected, int averageTileLighting)
static readonly short Count
static int[] TrailingMode
static int[] TrailCacheLength
static bool[] DontAttachHideToAlpha
static bool[] IsAGolfBall
void DrawProj_StardustGuardianPunching(Projectile proj)
static int TryInteractingWithVoidLens(Projectile proj)
void DrawProj_FairyQueenLance(Projectile proj)
void LoadProjectile(int i)
void DrawProj_TrueNightsEdge(Projectile proj)
static void DrawPrettyStarSparkle(float opacity, SpriteEffects dir, Vector2 drawpos, Microsoft.Xna.Framework.Color drawColor, Microsoft.Xna.Framework.Color shineColor, float flareCounter, float fadeInStart, float fadeInEnd, float fadeOutStart, float fadeOutEnd, float rotation, Vector2 scale, Vector2 fatness)
static SpriteBatch spriteBatch
void DrawProjWithStarryTrail(Projectile proj, Microsoft.Xna.Framework.Color projectileColor, SpriteEffects dir)
static void DrawProj_Flamethrower(Projectile proj)
List< DrawData > _voidLensData
static DrawAnimation[] itemAnimations
static int TryInteractingWithMoneyTrough(Projectile proj)
void DrawProj_TerraBlade2Shot(Projectile proj)
static StardewValleyAnimation _stardewAnimation
void DrawProj_Excalibur(Projectile proj)
static double timeForVisualEffects
static Vector2 MouseWorld
static Microsoft.Xna.Framework.Color TryApplyingPlayerStringColor(int playerStringColor, Microsoft.Xna.Framework.Color stringColor)
static Vector2 screenPosition
static int CurrentDrawnEntityShader
void DrawProj_EmpressBlade(Projectile proj, float hueOverride)
void DrawKite(Projectile proj)
static byte mouseTextColor
void DrawProj_PiercingStarlight(Projectile proj)
void DrawProj_LightsBane(Projectile proj)
static Microsoft.Xna.Framework.Color OurFavoriteColor
void DrawProj_TrueExcalibur(Projectile proj)
static ulong TileFrameSeed
void DrawProj_TerraBlade2(Projectile proj)
void DrawElderEye(SpriteBatch spriteBatch, Vector2 worldPosition, float opacity, float scale, int frameNumber, Microsoft.Xna.Framework.Color passedColor)
void DrawProj_NightsEdge(Projectile proj)
void DrawWhip(Projectile proj)
static Projectile[] projectile
static void DrawProj_FlailChains(Projectile proj, Vector2 mountedCenter)
void DrawProj_CoolWhipMinion(Projectile proj)
static UnifiedRandom rand
void DrawContinuousTrail(Projectile proj)
static UnifiedRandom _tempSeededRandom
static Vector3 rgbToHsl(Microsoft.Xna.Framework.Color newColor)
void DrawProj_TheHorsemansBlade(Projectile proj)
void DrawMultisegmentPet(Projectile proj)
void DrawMurderAurora(Projectile proj)
void PrepareDrawnProjectileDrawing(Projectile proj)
static bool tenthAnniversaryWorld
static void DrawProj_FishingLine(Projectile proj, ref float polePosX, ref float polePosY, Vector2 mountedCenter)
static void DrawProj_Spear(Projectile proj, ref Microsoft.Xna.Framework.Color projectileColor, ref SpriteEffects dir)
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
void DrawTwinsPet(Projectile proj)
void DrawProj_FairyQueenRangedItemShot(Projectile proj)
static Player LocalPlayer
static float GlobalTimeWrappedHourly
static void EntitySpriteDraw(Texture2D texture, Vector2 position, Microsoft.Xna.Framework.Rectangle? sourceRectangle, Microsoft.Xna.Framework.Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float worthless=0f)
static Color CornflowerBlue
static Color Lerp(Color value1, Color value2, float amount)
static float Dot(Vector2 value1, Vector2 value2)
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 Vector4 Lerp(Vector4 value1, Vector4 value2, float amount)
static FinalFractalProfile GetFinalFractalProfile(int usedSwordId)