20823 {
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20870 {
20871 return;
20872 }
20875 {
20877 }
20883 {
20886 int type = Main.tile[
num4,
num5].type;
20888 {
20891 {
20894 if (Main.netMode == 1 && !Main.tile[
num4,
num5].active() && Main.netMode == 1)
20895 {
20896 NetMessage.SendData(17, -1, -1,
null, 0,
num4,
num5);
20897 }
20898 }
20899 }
20901 {
20902 return;
20903 }
20905 if (type != 229)
20906 {
20908 }
20910 {
20912 }
20914 {
20916 }
20917 if ((
double)velocity.X > 0.75 || (double)
velocity.X < -0.75)
20918 {
20919 velocity.X *= 0.85f;
20920 }
20921 else
20922 {
20923 velocity.X *= 0.6f;
20924 }
20926 {
20928 {
20930 }
20932 {
20934 }
20936 {
20937 velocity.Y *= 0.96f;
20938 }
20939 else
20940 {
20941 velocity.Y *= 0.3f;
20942 }
20943 }
20944 else
20945 {
20947 {
20949 }
20951 {
20953 }
20955 {
20956 velocity.Y *= 0.96f;
20957 }
20958 else
20959 {
20960 velocity.Y *= 0.3f;
20961 }
20962 }
20963 if (type != 229 || Main.rand.Next(5) != 0 || (!((double)
velocity.Y > 0.15) && !(velocity.Y < 0
f)))
20964 {
20965 return;
20966 }
20968 {
20969 int num6 = Dust.NewDust(
new Vector2(
position.X - 4
f, (
float)(
num5 * 16)), 4, 16, 153, 0
f, 0
f, 50);
20970 Main.dust[
num6].scale += (float)Main.rand.Next(0, 6) * 0.1f;
20972 obj.velocity *= 0.1f;
20973 Main.dust[
num6].noGravity =
true;
20974 }
20975 else
20976 {
20978 Main.dust[
num7].scale += (float)Main.rand.Next(0, 6) * 0.1f;
20980 obj2.velocity *= 0.1f;
20981 Main.dust[
num7].noGravity =
true;
20982 }
20984 {
20986 {
20987 int num8 = Dust.NewDust(
new Vector2(
position.X - 4
f, (
float)(
num5 * 16 + 16)), 4, 16, 153, 0
f, 0
f, 50);
20988 Main.dust[
num8].scale += (float)Main.rand.Next(0, 6) * 0.1f;
20990 obj3.velocity *= 0.1f;
20991 Main.dust[
num8].noGravity =
true;
20992 }
20993 else
20994 {
20995 int num9 = Dust.NewDust(
new Vector2(
position.X + (
float)
width - 2
f, (float)(
num5 * 16 + 16)), 4, 16, 153, 0
f, 0
f, 50);
20996 Main.dust[
num9].scale += (float)Main.rand.Next(0, 6) * 0.1f;
20998 obj4.velocity *= 0.1f;
20999 Main.dust[
num9].noGravity =
true;
21000 }
21001 }
21003 {
21005 {
21006 int num10 = Dust.NewDust(
new Vector2(
position.X - 4
f, (
float)(
num5 * 16 + 32)), 4, 16, 153, 0
f, 0
f, 50);
21007 Main.dust[
num10].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21009 obj5.velocity *= 0.1f;
21010 Main.dust[
num10].noGravity =
true;
21011 }
21012 else
21013 {
21014 int num2 = Dust.NewDust(
new Vector2(
position.X + (
float)
width - 2
f, (float)(
num5 * 16 + 32)), 4, 16, 153, 0
f, 0
f, 50);
21015 Main.dust[
num2].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21017 obj6.velocity *= 0.1f;
21018 Main.dust[
num2].noGravity =
true;
21019 }
21020 }
21021 }
21022 else
21023 {
21025 }
21026 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static bool[] Cart
If true for a given T:Terraria.ID.MountID, then that mount is categorized as a minecart....
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....