327 this.rotationOrigin = player.Size / 2f;
363 if (body == 460 || body == 535 || body == 600)
385 int num = (color.R + color.G + color.
B) / 3;
396 Mount.currentShader = (drawPlayer.mount.Cart ? drawPlayer.cMinecart :
drawPlayer.
cMount);
400 Mount.currentShader = 0;
483 ArkhalisColor.A = 180;
487 byte b = (byte)(62.5f * (
float)(1 +
num2));
520 float num6 = (float)(
int)Main.mouseTextColor / 255f;
542 byte b4 = (byte)(62.5f * (
float)(1 +
num3));
548 byte b5 = (byte)(62.5f * (
float)(1 +
num5));
554 byte b6 = (byte)(62.5f * (
float)(1 +
num4));
587 byte b7 = (byte)(62.5f * (
float)(1 +
num2));
611 float num7 = (float)(
int)Main.mouseTextColor / 255f;
636 byte b8 = (byte)(62.5f * (
float)(1 +
num5));
652 byte b9 = (byte)(62.5f * (
float)(1 +
num3));
665 byte b10 = (byte)(62.5f * (
float)(1 +
num4));
685 byte b11 = (byte)(62.5f * (
float)(1 +
num3));
706 float num8 = (float)(
int)Main.mouseTextColor / 255f;
723 byte b12 = (byte)(62.5f * (
float)(1 +
num2));
728 byte b13 = (byte)(62.5f * (
float)(1 +
num4));
738 byte b14 = (byte)(127 * (1 +
num5));
866 float num10 = (float)(
int)Main.mouseTextColor / 200f - 0.3f;
883 float num11 = 0.6f - drawPlayer.ghostFade * 0.3f;
915 dust2.velocity.Y = 0.3f;
916 dust2.velocity.X *= 0.1f;
917 dust2.scale += (float)
Main.
rand.Next(3, 4) * 0.1f;
919 dust2.noGravity =
true;
920 dust2.velocity += drawPlayer.velocity * 0.1f;
926 dust3.noGravity =
true;
927 dust3.noLight =
true;
928 dust3.velocity *= 0f;
936 dust4.noGravity =
true;
948 dust5.noGravity =
true;
960 dust6.noGravity =
true;
961 dust6.velocity *= 1.8f;
962 dust6.velocity.Y -= 0.5f;
973 dust7.noGravity =
true;
974 dust7.velocity *= 1.8f;
975 dust7.velocity.Y -= 0.5f;
997 dust8.noLight =
true;
998 dust8.velocity *= 0.2f;
999 dust8.velocity.Y += 0.2f;
1014 dust9.noLight =
true;
1015 dust9.noGravity =
true;
1016 dust9.velocity *= 0.2f;
1017 dust9.velocity.Y += 1f;
1042 dust10.noLight =
true;
1043 dust10.velocity *= 0.2f;
1044 dust10.velocity.Y += 0.2f;
1073 dust11.noLight =
true;
1074 dust11.velocity *= 0.2f;
1075 dust11.velocity += drawPlayer.velocity * 0.7f;
1076 dust11.fadeIn = 0.8f;
1083 Dust dust12 =
Dust.
NewDustDirect(
position3,
drawPlayer.
width + 4,
drawPlayer.
height + 2, 43, 0f, 0f, 254,
new Color(127, 127, 127, 0), 0.45f);
1084 dust12.noLight =
true;
1085 dust12.velocity.X *= 0f;
1086 dust12.velocity *= 0.03f;
1087 dust12.fadeIn = 0.6f;
1101 dust13.velocity *= 1.6f;
1102 dust13.velocity.Y -= 1f;
1111 dust14.noGravity =
true;
1112 dust14.velocity *= 1.8f;
1113 dust14.velocity.Y -= 0.75f;
1125 dust15.noGravity =
true;
1126 dust15.velocity *= 1.8f;
1127 dust15.velocity.Y -= 0.5f;
1138 dust16.noGravity =
true;
1139 dust16.velocity *= 1.8f;
1140 dust16.velocity.Y -= 0.5f;
1151 dust17.noGravity =
true;
1152 dust17.velocity *= 1.8f;
1153 dust17.velocity.Y -= 0.5f;
1176 dust18.velocity.Y += 0.5f;
1177 dust18.velocity *= 0.25f;
1188 position4.X -=
Main.
rand.Next(-10, 11);
1189 position4.Y -=
Main.
rand.Next(-20, 21);
1229 dust19.scale = 0.8f +
Main.
rand.NextFloat() * 0.6f;
1230 dust19.fadeIn = 0.5f;
1231 dust19.velocity *= 0.05f;
1232 dust19.noLight =
true;
1235 dust19.color =
new Color(80, 170, 40, 120);
1253 for (
int i = 0; i < 3; i++)
1291 dust20.noGravity =
true;
1293 dust20.position = drawPlayer.Center + Vector2.UnitY * drawPlayer.gfxOffY + (
num19 * ((float)
Math.
PI * 2f) +
num20 * (float)
j).ToRotationVector2() *
num21;
1307 dust21.velocity *= 1.6f;
1308 dust21.velocity.Y -= 1f;
1410 opacityForAnimation *= opacityForAnimation;
1412 colorEyes = drawPlayer.eyeColor * opacityForAnimation;
1414 colorHead = drawPlayer.skinColor * opacityForAnimation;
1416 colorShirt = drawPlayer.shirtColor * opacityForAnimation;
1418 colorPants = drawPlayer.pantsColor * opacityForAnimation;
1419 colorShoes = drawPlayer.shoeColor * opacityForAnimation;
1420 colorLegs = drawPlayer.skinColor * opacityForAnimation;
1433 if ((
double)
num24 < 0.03)
1474 if ((
double)
num26 < 0.03)
1515 if ((
double)
num28 < 0.03)
1572 drawPlayer.legPosition.Y = 0f;
1573 drawPlayer.headPosition.Y = 0f;
1574 drawPlayer.bodyPosition.Y = 0f;
1591 drawPlayer.legPosition.Y = 6f;
1592 drawPlayer.headPosition.Y = 6f;
1593 drawPlayer.bodyPosition.Y = 6f;
1619 drawPlayer.headRotation = -0.3f;
1623 drawPlayer.headRotation = 0.3f;
1628 drawPlayer.headRotation = 0f;
1633 if (bodyFrame.
Y < 0)
1641 hairFrontFrame.Height = 0;
1642 hairBackFrame.Height = 0;
1647 hairFrontFrame.Height = height;
1649 hidesTopSkin = drawPlayer.body == 82 || drawPlayer.body == 83 || drawPlayer.body == 93 || drawPlayer.body == 21 || drawPlayer.body == 22;
1650 hidesBottomSkin = drawPlayer.body == 93 || drawPlayer.legs == 20 || drawPlayer.legs == 21;
1888 frontShoulderOffset.X = -2f;
1894 frontShoulderOffset.X = -4f;
1900 frontShoulderOffset.X = -2f;
1904 frontShoulderOffset.X = -2f;
1916 frontShoulderOffset.X = -2f;
1922 frontShoulderOffset.X = -4f;
1928 frontShoulderOffset.X = -2f;
1932 frontShoulderOffset.X = -2f;
1946 frontShoulderOffset.X = -2f;
1951 frontShoulderOffset.X = 2f;
1959 frontShoulderOffset.X = -2f;
1965 frontShoulderOffset.X = -4f;
1970 frontShoulderOffset.X = -2f;
1974 frontShoulderOffset.X = 2f;
1978 frontShoulderOffset.X = -2f;
1992 frontShoulderOffset.X = -2f;
1996 frontShoulderOffset.X = 2f;
2007 frontShoulderOffset.X = -2f;
2013 frontShoulderOffset.X = 2f;
2025 frontShoulderOffset.X = -2f;
2031 frontShoulderOffset.X = -2f;
2035 frontShoulderOffset.X = -2f;