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

◆ PoundPlatform()

static void Terraria.WorldGen.PoundPlatform ( int x,
int y )
inlinestatic

Definition at line 74580 of file WorldGen.cs.

74581 {
74582 if (Main.tile[x, y].halfBrick())
74583 {
74584 PoundTile(x, y);
74585 if (Main.netMode == 1)
74586 {
74587 NetMessage.SendData(17, -1, -1, null, 7, x, y, 1f);
74588 }
74589 return;
74590 }
74591 int num = 1;
74592 int slope = 2;
74593 if (TileID.Sets.Platforms[Main.tile[x + 1, y - 1].type] || TileID.Sets.Platforms[Main.tile[x - 1, y + 1].type] || (SolidTile(x + 1, y) && !SolidTile(x - 1, y)))
74594 {
74595 num = 2;
74596 slope = 1;
74597 }
74598 if (Main.tile[x, y].slope() == 0)
74599 {
74600 SlopeTile(x, y, num);
74601 int num2 = Main.tile[x, y].slope();
74602 if (Main.netMode == 1)
74603 {
74604 NetMessage.SendData(17, -1, -1, null, 14, x, y, num2);
74605 }
74606 return;
74607 }
74608 if (Main.tile[x, y].slope() == num)
74609 {
74610 SlopeTile(x, y, slope);
74611 int num3 = Main.tile[x, y].slope();
74612 if (Main.netMode == 1)
74613 {
74614 NetMessage.SendData(17, -1, -1, null, 14, x, y, num3);
74615 }
74616 return;
74617 }
74618 SlopeTile(x, y);
74619 int num4 = Main.tile[x, y].slope();
74620 if (Main.netMode == 1)
74621 {
74622 NetMessage.SendData(17, -1, -1, null, 14, x, y, num4);
74623 }
74624 PoundTile(x, y);
74625 if (Main.netMode == 1)
74626 {
74627 NetMessage.SendData(17, -1, -1, null, 7, x, y, 1f);
74628 }
74629 }
static bool[] Platforms
Definition TileID.cs:219
static bool PoundTile(int i, int j)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)

References Terraria.Main.netMode, Terraria.ID.TileID.Sets.Platforms, Terraria.NetMessage.SendData(), Terraria.Enums.SolidTile, and Terraria.Main.tile.

+ Here is the call graph for this function: