27720 {
27723 {
27725 {
27728 {
27731 }
27732 int num = 2;
27734 {
27735 num = 4;
27736 }
27737 for (
int i = 0;
i < num;
i++)
27738 {
27741 {
27744 }
27745 float scale = 1.75f;
27746 int alpha = 100;
27747 float x = position.X + (float)(
width / 2) + 16f;
27749 {
27750 x = position.X + (float)(
width / 2) - 26f;
27751 }
27752 float num2 = position.Y + (float)
height - 18f;
27753 if (i == 1 || i == 3)
27754 {
27755 x = position.X + (float)(
width / 2) + 8f;
27757 {
27758 x = position.X + (float)(
width / 2) - 20f;
27759 }
27761 }
27762 if (i > 1)
27763 {
27765 }
27767 Main.dust[
num3].velocity.X *= 0.1f;
27768 Main.dust[
num3].velocity.Y = Main.dust[
num3].velocity.Y * 1f + 2f *
gravDir - velocity.Y * 0.3f;
27769 Main.dust[
num3].noGravity =
true;
27770 Main.dust[
num3].noLightEmittence = flag;
27772 if (num == 4)
27773 {
27774 Main.dust[
num3].velocity.Y += 6f;
27775 }
27776 }
27779 {
27783 {
27785 }
27786 }
27787 }
27789 {
27791 }
27792 return;
27793 }
27795 {
27797 {
27798 Lighting.AddLight(
base.Bottom, 0.3f, 0.1f, 0.4f);
27799 }
27800 return;
27801 }
27803 {
27805 {
27808 }
27810 {
27812 {
27814 {
27818 {
27820 return;
27821 }
27823 {
27825 return;
27826 }
27828 {
27830 return;
27831 }
27833 {
27835 return;
27836 }
27839 }
27840 else
27841 {
27845 {
27847 return;
27848 }
27850 {
27852 return;
27853 }
27855 {
27857 return;
27858 }
27861 }
27862 }
27863 else
27864 {
27868 {
27870 return;
27871 }
27873 {
27875 return;
27876 }
27878 {
27880 return;
27881 }
27883 {
27885 return;
27886 }
27889 }
27890 }
27891 else
27892 {
27896 {
27898 return;
27899 }
27901 {
27903 return;
27904 }
27906 {
27908 return;
27909 }
27912 }
27913 return;
27914 }
27916 {
27918 {
27922 {
27924 return;
27925 }
27927 {
27929 return;
27930 }
27932 {
27934 return;
27935 }
27937 {
27939 return;
27940 }
27943 }
27945 {
27947 }
27948 else
27949 {
27951 }
27952 return;
27953 }
27955 {
27957 {
27961 {
27963 return;
27964 }
27966 {
27968 return;
27969 }
27971 {
27973 return;
27974 }
27977 {
27979 }
27980 }
27982 {
27984 {
27988 {
27990 return;
27991 }
27993 {
27995 return;
27996 }
27998 {
28000 return;
28001 }
28004 {
28006 }
28007 }
28009 {
28011 }
28012 else
28013 {
28015 }
28016 }
28017 else
28018 {
28020 }
28021 return;
28022 }
28024 {
28025 bool flag2 =
false;
28027 {
28031 {
28033 }
28036 }
28038 {
28040 {
28044 {
28046 }
28049 }
28051 {
28053 }
28054 else
28055 {
28057 }
28058 }
28059 else
28060 {
28062 }
28064 {
28065 return;
28066 }
28067 for (
int j = 0;
j < 4;
j++)
28068 {
28069 if (Main.rand.Next(4) == 0)
28070 {
28072 Dust dust = Main.dust[Dust.NewDust(
base.Center, 0, 0, 229, 0f, 0f, 100,
Color.
White, 0.8f)];
28073 dust.noGravity = true;
28074 dust.noLightEmittence = flag;
28075 dust.position = base.Center +
vector;
28077 if (Main.rand.Next(10) != 0)
28078 {
28079 dust.customData = this;
28080 }
28081 else
28082 {
28083 dust.fadeIn = 0.5f;
28084 }
28086 }
28087 }
28088 for (
int k = 0;
k < 4;
k++)
28089 {
28090 if (Main.rand.Next(8) == 0)
28091 {
28093 Dust
dust2 = Main.dust[Dust.NewDust(
base.Center, 0, 0, 229, 0f, 0f, 100,
Color.
White, 0.5f)];
28094 dust2.noGravity = true;
28095 dust2.noLightEmittence = flag;
28096 dust2.position = base.Center +
vector2;
28098 dust2.position += dust2.velocity * 5f;
28099 if (Main.rand.Next(10) != 0)
28100 {
28101 dust2.customData = this;
28102 }
28103 else
28104 {
28105 dust2.fadeIn = 0.5f;
28106 }
28108 }
28109 }
28110 return;
28111 }
28113 {
28115 {
28119 {
28121 }
28123 }
28125 {
28127 {
28131 {
28133 }
28135 }
28136 else
28137 {
28141 {
28143 }
28145 }
28146 }
28147 else
28148 {
28152 {
28154 }
28156 }
28157 return;
28158 }
28160 {
28162 {
28165 {
28168 }
28169 }
28171 {
28174 }
28175 else
28176 {
28180 {
28182 }
28184 {
28186 }
28188 }
28189 if (Main.netMode != 2 && Main.rand.Next(8) == 0)
28190 {
28191 Rectangle r = Utils.CenteredRectangle(Main.ReverseGravitySupport(
base.Bottom - Main.screenPosition) + Main.screenPosition,
new Vector2(40f, 24f));
28192 Dust
dust3 = Dust.NewDustDirect(
r.TopLeft(),
r.Width,
r.Height, 43, 0f, 0f, 0,
Color.
White * 0.5f, 0.2f);
28193 dust3.fadeIn = 0.4f;
28195 dust3.velocity *= 0.35f;
28197 }
28198 return;
28199 }
28201 {
28204 {
28207 {
28209 }
28211 }
28213 {
28215 {
28217 }
28219 {
28221 }
28222 else
28223 {
28225 }
28226 }
28227 else
28228 {
28231 {
28233 }
28235 }
28236 return;
28237 }
28239 {
28241 {
28245 {
28247 }
28249 }
28251 {
28253 {
28257 {
28259 }
28261 }
28262 else
28263 {
28267 {
28269 }
28271 }
28272 }
28273 else
28274 {
28278 {
28280 }
28282 }
28285 {
28287 }
28289 {
28291 }
28294 {
28296 dust4.scale = 0.7f;
28297 dust4.velocity *= 0.4f;
28298 dust4.velocity.Y +=
gravDir * 0.5f;
28300 }
28301 return;
28302 }
28304 {
28305 bool flag3 =
false;
28307 {
28309 }
28311 {
28313 }
28315 {
28316 return;
28317 }
28321 for (
int m = 0;
m < 2;
m++)
28322 {
28324 dust5.noGravity = true;
28325 dust5.fadeIn = 1f;
28326 dust5.scale = 1f;
28327 dust5.noLight = true;
28328 dust5.noLightEmittence = flag;
28331 {
28332 case 0:
28334 dust5.velocity.X = dust5.velocity.X * 1f - 2f - velocity.X * 0.3f;
28335 dust5.velocity.Y = dust5.velocity.Y * 1f + 2f *
gravDir - velocity.Y * 0.3f;
28336 break;
28337 case 1:
28339 dust5.velocity.X = dust5.velocity.X * 1f + 2f - velocity.X * 0.3f;
28340 dust5.velocity.Y = dust5.velocity.Y * 1f + 2f *
gravDir - velocity.Y * 0.3f;
28341 break;
28342 }
28343 if (
dust5.dustIndex != 6000)
28344 {
28346 dust6.scale *= 0.65f;
28347 dust6.fadeIn *= 0.65f;
28348 dust6.color =
new Color(255, 255, 255, 255);
28349 dust5.noLight = true;
28350 dust5.noLightEmittence = flag;
28352 }
28353 }
28354 return;
28355 }
28357 {
28358 bool flag4 =
false;
28360 {
28363 {
28365 }
28368 {
28370 }
28372 }
28374 {
28376 {
28379 {
28381 }
28384 {
28386 }
28388 }
28389 else
28390 {
28392 }
28393 }
28394 else
28395 {
28397 }
28399 {
28400 return;
28401 }
28406 for (
int n = 0;
n < 3;
n++)
28407 {
28410 {
28411 case 1:
28413 break;
28414 case 2:
28416 break;
28417 }
28420 dust7.noGravity = true;
28421 dust7.noLight = true;
28422 dust7.noLightEmittence = flag;
28423 dust7.scale = 0.47f;
28427 dust8.noGravity = true;
28428 dust8.noLight = true;
28429 dust8.noLightEmittence = flag;
28430 dust8.scale = 0.35f;
28434 dust9.noGravity = true;
28435 dust9.noLight = true;
28436 dust9.noLightEmittence = flag;
28437 dust9.scale = 0.49f;
28439 }
28440 return;
28441 }
28446 {
28450 }
28452 {
28454 }
28456 {
28459 {
28463 {
28465 }
28466 }
28467 }
28469 {
28472 {
28474 }
28476 {
28479 {
28481 }
28482 }
28483 if (
wings == 29 && Main.rand.Next(5) == 0)
28484 {
28487 {
28489 }
28491 Main.dust[
num31].noGravity =
true;
28492 Main.dust[
num31].noLightEmittence = flag;
28493 Main.dust[
num31].velocity *= 0.3f;
28494 if (Main.rand.Next(10) == 0)
28495 {
28496 Main.dust[
num31].fadeIn = 2f;
28497 }
28499 }
28500 }
28501 else
28502 {
28504 }
28505 }
static void PlaySound(int type, Vector2 position, int style=1)
Vector2 DirectionTo(Vector2 Destination)
static ArmorShaderDataSet Armor
static readonly LegacySoundStyle Item24
static readonly LegacySoundStyle Item13
bool ShouldDrawWingsThatAreAlwaysAnimated()