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

◆ PoundPlatform()

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

Definition at line 70945 of file WorldGen.cs.

70946 {
70947 if (Main.tile[x, y].halfBrick())
70948 {
70949 PoundTile(x, y);
70950 if (Main.netMode == 1)
70951 {
70952 NetMessage.SendData(17, -1, -1, null, 7, x, y, 1f);
70953 }
70954 return;
70955 }
70956 int num = 1;
70957 int slope = 2;
70958 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)))
70959 {
70960 num = 2;
70961 slope = 1;
70962 }
70963 if (Main.tile[x, y].slope() == 0)
70964 {
70965 SlopeTile(x, y, num);
70966 int num2 = Main.tile[x, y].slope();
70967 if (Main.netMode == 1)
70968 {
70969 NetMessage.SendData(17, -1, -1, null, 14, x, y, num2);
70970 }
70971 return;
70972 }
70973 if (Main.tile[x, y].slope() == num)
70974 {
70975 SlopeTile(x, y, slope);
70976 int num3 = Main.tile[x, y].slope();
70977 if (Main.netMode == 1)
70978 {
70979 NetMessage.SendData(17, -1, -1, null, 14, x, y, num3);
70980 }
70981 return;
70982 }
70983 SlopeTile(x, y);
70984 int num4 = Main.tile[x, y].slope();
70985 if (Main.netMode == 1)
70986 {
70987 NetMessage.SendData(17, -1, -1, null, 14, x, y, num4);
70988 }
70989 PoundTile(x, y);
70990 if (Main.netMode == 1)
70991 {
70992 NetMessage.SendData(17, -1, -1, null, 7, x, y, 1f);
70993 }
70994 }
static bool[] Platforms
Definition TileID.cs:163
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.