348 Frame.CurrentRow = (byte)
Main.
rand.Next(3);
350 bool flag =
type >= 1024 &&
type <= 1026;
359 if ((
double)velocity.Y > 0.1)
374 if ((
double)
scale <= 0.01)
388 else if ((
double)position.Y < Main.worldSurface * 16.0 + 8.0)
476 num2 = (int)((
double)num2 * 1.5);
477 velocity.Y += 0.175f;
479 else if (
type == 717)
484 else if (
type == 943)
486 num2 = (int)((
double)num2 * 1.5);
493 if ((
double)velocity.Y < 0.5)
517 else if (
type == 717)
539 if ((
double)
scale < 0.1)
550 if ((
double)
scale < 0.1)
556 else if (
type == 1201)
561 Frame.CurrentRow = (byte)
Main.
rand.Next(4);
564 if ((
double)
scale < 0.1)
582 velocity.Y += 0.005f;
588 else if (num8 > 0.1f)
594 else if (
type == 1208)
599 Frame.CurrentRow = (byte)
Main.
rand.Next(4);
602 int num9 = (int)vector.
X / 16;
603 int num10 = (int)vector.
Y / 16;
604 bool flag2 =
Main.
tile[num9, num10] !=
null &&
Main.
tile[num9, num10].liquid > 0;
606 if ((
double)
scale < 0.1)
615 int num11 = (int)vector.
X / 16;
616 int num12 = (int)(vector.
Y / 16f);
617 _ = position.Y / 16f;
619 if (
Main.
tile[num11, num12] ==
null)
623 if (
Main.
tile[num11, num13] ==
null)
631 num11 = (int)(vector.
X / 16f);
632 num12 = (int)(vector.
Y / 16f);
634 if (vector.
Y > num14)
643 velocity.Y = num14 - vector.
Y;
648 velocity.Y = num14 - vector.
Y;
651 int maxValue = (flag2 ? 270 : 15);
652 if (
Main.
rand.Next(maxValue) == 0 && !flag3)
657 gore.velocity = Vector2.UnitX *
Main.
rand.NextFloatDirection() * 0.5f + Vector2.UnitY *
Main.
rand.NextFloat();
679 else if (
type == 331)
691 int num15 = Frame.CurrentRow / 4;
694 Frame.CurrentRow = (byte)(num15 * 4);
706 velocity.Y = -0.5f +
Main.
rand.NextFloat() * -3f;
725 else if (
type == 1218)
759 else if (type < 411 || type > 430)
780 else if (
alpha > 100)
792 velocity.X = (velocity.X * 50f + Main.WindForVisuals * 2f + (float)
Main.
rand.Next(-10, 11) * 0.1f) / 51f;
796 num18 = velocity.X * 0.2f;
798 velocity.Y = (velocity.Y * 50f + -0.35f + num18 + (float)
Main.
rand.Next(-10, 11) * 0.2f) / 51f;
804 for (
int i = 0; i < 255; i++)
844 for (
int j = 0; (float)j < num20; j++)
847 Main.
dust[num24].velocity *= (1f + num19) / 3f;
858 velocity.X = (velocity.X * 50f + Main.WindForVisuals * 2f + (float)
Main.
rand.Next(-10, 11) * 0.1f) / 51f;
859 velocity.Y = (velocity.Y * 50f + -0.25f + (float)
Main.
rand.Next(-10, 11) * 0.2f) / 51f;
864 for (
int k = 0; k < 255; k++)
918 for (
int l = 0; (float)l < num25; l++)
938 num33 = ((
frame == 0) ? (num33 * 0.1f) : ((
frame == 1) ? (num33 * 0.2f) : ((
frame == 2) ? (num33 * 0.3f) : ((
frame == 3) ? (num33 * 0.4f) : ((
frame == 4) ? (num33 * 0.5f) : ((
frame == 5) ? (num33 * 0.4f) : ((
frame == 6) ? (num33 * 0.2f) : ((
frame <= 9) ? (num33 * 0.5f) : ((
frame == 10) ? (num33 * 0.5f) : ((
frame == 11) ? (num33 * 0.4f) : ((
frame == 12) ? (num33 * 0.3f) : ((
frame == 13) ? (num33 * 0.2f) : ((
frame != 14) ? 0f : (num33 * 0.1f))))))))))))));
940 num31 = 0.5f * num33;
941 num32 = 0.1f * num33;
952 if (
type != 716 &&
type != 717 &&
type != 943 && (type < 1160 || type > 1162))
964 if (
type != 716 &&
type != 717 &&
type != 943 && (type < 1160 || type > 1162))
971 int num35 = (int)(
position.
Y + 14f) / 16;
975 position.Y = num35 * 16 -
Main.
tile[num34, num35].liquid / 16;
994 num36 = (int)((
float)num36 * 0.9f);
1001 velocity.X *= 0.94f;
1005 velocity.X *= 0.97f;
1007 if ((
double)velocity.X > -0.01 && (double)
velocity.
X < 0.01)
1037 num37 = (int)((
float)num37 * 0.9f);
1039 position.X = vector3.
X;
1040 position.Y = vector3.
Y;
1041 velocity.X = vector3.
Z;
1042 velocity.Y = vector3.
W;
1070 else if (
type == 17)
1095 num = (int)((
float)num * 0.9f);
1096 Point point = (
new Vector2(num, num) / 2f + vector).ToTileCoordinates();
1111 bool flag = tile !=
null && tile.liquid > 0 && rectangle.
Intersects(
value);
1118 else if (tile.
lava())
1121 for (
int i = 0; i < 5; i++)
1147 if (!flag || ((
double)vector3.
X > -0.01 && (
double)vector3.
X < 0.01))
1159 velocity.X = vector3.
X;
1163 velocity.Y += (float)
Math.
PI / 180f;
1168 vector4.X += Main.WindForVisuals * 4f;
1173 position.X = vector6.
X;
1174 position.Y = vector6.
Y;
1175 vector4.X = vector6.
Z;
1176 vector4.Y = vector6.
W;
1178 if (vector4 != vector5)
1311 for (
int i = 0; i < 600; i++)
1325 Main.
gore[num].behindTiles =
false;
1328 Main.
gore[num].velocity = Velocity;
1346 else if (
Type >= 375 &&
Type <= 377)
1370 Main.
gore[num].velocity = Velocity;
1399 CurrentRow = (byte)
Main.
rand.Next(8)
1401 obj.Frame = spriteFrame;
1437 Main.
gore[num].velocity = Velocity;
1458 if (
Main.
gore[num].DeactivateIfOutsideOfWorld())