TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ MoveReplaceTileAnchor()

static void Terraria.WorldGen.MoveReplaceTileAnchor ( ref int x,
ref int y,
ushort targetType,
Tile t )
inlinestaticprivate

Definition at line 56916 of file WorldGen.cs.

56917 {
56918 if (TileID.Sets.BasicChest[t.type])
56919 {
56920 x -= t.frameX % 36 / 18;
56921 y -= t.frameY % 36 / 18;
56922 }
56923 if (TileID.Sets.BasicDresser[t.type])
56924 {
56925 x -= t.frameX % 54 / 18;
56926 y -= t.frameY % 36 / 18;
56927 }
56928 if (TileID.Sets.Campfire[t.type])
56929 {
56930 x -= t.frameX % 54 / 18;
56931 y -= t.frameY % 36 / 18;
56932 }
56933 }
static bool[] Campfire
Whether or not this tile behaves like a campfire. Campfires must be 3x2 and need to follow the vanill...
Definition TileID.cs:432
static bool[] BasicDresser
Definition TileID.cs:294
static bool[] BasicChest
Definition TileID.cs:290

References Terraria.ID.TileID.Sets.BasicChest, Terraria.ID.TileID.Sets.BasicDresser, Terraria.ID.TileID.Sets.Campfire, and Terraria.Tile.type.