Explodes tiles within a radius of the given position and within the bounds passed in. The wallSplode parameter should be the result of M:Terraria.Projectile.ShouldWallExplode(Microsoft.Xna.Framework.Vector2,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32) and dictates if walls will also be destroyed. This method honors the tile and wall explosion conditions.
Definition at line 91780 of file Projectile.cs.
91781 {
91782
91783
91784 AchievementsHelper.CurrentlyMining = true;
91785 for (
int i =
minI; i <=
maxI; i++)
91786 {
91788 {
91792 {
91793 continue;
91794 }
91796 if (Main.tile[i,
j] !=
null && Main.tile[i,
j].active())
91797 {
91800 {
91802 if (!Main.tile[i,
j].active() && Main.netMode != 0)
91803 {
91804 NetMessage.SendData(17, -1, -1,
null, 0, i,
j);
91805 }
91806 }
91807 }
91809 {
91810 continue;
91811 }
91812 for (
int k = i - 1;
k <= i + 1;
k++)
91813 {
91814 for (
int l =
j - 1;
l <=
j + 1;
l++)
91815 {
91817 {
91819 if (Main.tile[
k,
l].wall == 0 && Main.netMode != 0)
91820 {
91821 NetMessage.SendData(17, -1, -1,
null, 2,
k,
l);
91822 }
91823 }
91824 }
91825 }
91826 }
91827 }
91828 AchievementsHelper.CurrentlyMining = false;
91829 }
static bool CanExplode(int i, int j, int type)
This serves as the central class from which wall-related functions are supported and carried out.
bool CanExplodeTile(int x, int y)
References Terraria.ModLoader.WallLoader.CanExplode(), Terraria.WorldGen.KillTile(), Terraria.WorldGen.KillWall(), Terraria.Main.netMode, Terraria.NetMessage.SendData(), and Terraria.Main.tile.