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

◆ CanPoundTile()

static bool Terraria.WorldGen.CanPoundTile ( int x,
int y )
inlinestatic

Definition at line 70813 of file WorldGen.cs.

70814 {
70815 if (Main.tile[x, y] == null)
70816 {
70817 Main.tile[x, y] = new Tile();
70818 }
70819 if (Main.tile[x, y - 1] == null)
70820 {
70821 Main.tile[x, y - 1] = new Tile();
70822 }
70823 if (Main.tile[x, y + 1] == null)
70824 {
70825 Main.tile[x, y + 1] = new Tile();
70826 }
70827 switch (Main.tile[x, y].type)
70828 {
70829 case 10:
70830 case 48:
70831 case 137:
70832 case 138:
70833 case 232:
70834 case 380:
70835 case 387:
70836 case 388:
70837 case 476:
70838 case 484:
70839 case 664:
70840 case 665:
70841 return false;
70842 default:
70843 if (gen)
70844 {
70845 if (Main.tile[x, y].type == 190)
70846 {
70847 return false;
70848 }
70849 if (Main.tile[x, y].type == 30)
70850 {
70851 return false;
70852 }
70853 }
70854 if (Main.tile[x, y - 1].active())
70855 {
70856 switch (Main.tile[x, y - 1].type)
70857 {
70858 case 21:
70859 case 26:
70860 case 77:
70861 case 88:
70862 case 235:
70863 case 237:
70864 case 441:
70865 case 467:
70866 case 468:
70867 case 470:
70868 case 475:
70869 case 488:
70870 case 597:
70871 return false;
70872 }
70873 }
70874 return CanKillTile(x, y);
70875 }
70876 }
static volatile bool gen
Definition WorldGen.cs:972
static bool CanKillTile(int i, int j, SpecialKillTileContext context)

References Terraria.DataStructures.Tile, and Terraria.Main.tile.

Referenced by Terraria.Tile.SmoothSlope().