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

◆ CanKillTile() [3/3]

static bool Terraria.WorldGen.CanKillTile ( int i,
int j,
SpecialKillTileContext context )
inlinestatic

Definition at line 52892 of file WorldGen.cs.

52893 {
52894 if (context == SpecialKillTileContext.MowingTheGrass)
52895 {
52896 Tile tile = Main.tile[i, j];
52897 if (tile == null)
52898 {
52899 return false;
52900 }
52901 if (tile.type == 2 || tile.type == 109)
52902 {
52903 return true;
52904 }
52905 }
52906 return CanKillTile(i, j);
52907 }
static bool CanKillTile(int i, int j, SpecialKillTileContext context)

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

Referenced by Terraria.GameContent.MinecartDiggerHelper.CanGetPastTile(), Terraria.Wiring.DeActive(), Terraria.Mount.DrillSmartCursor_Blocks(), Terraria.Player.ItemCheck_UseMiningTools_ActuallyUseMiningTool(), Terraria.Player.MowGrassTile(), Terraria.Player.PickTile(), Terraria.GameContent.SmartCursorHelper.Step_ForceCursorToAnyMinableThing(), and Terraria.GameContent.SmartCursorHelper.Step_Pickaxe_MineSolids().