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

◆ ExplodeMine()

static void Terraria.WorldGen.ExplodeMine ( int i,
int j,
bool fromWiring )
inlinestatic

Definition at line 23276 of file WorldGen.cs.

23277 {
23278 _ = Main.tile[i, j].type;
23280 NetMessage.SendTileSquare(-1, i, j);
23281 Projectile.NewProjectile(GetProjectileSource_PlayerOrWires(i, j, fromWiring, Main.LocalPlayer), i * 16 + 8, j * 16 + 8, 0f, 0f, 164, 250, 10f, Main.myPlayer);
23282 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static IEntitySource GetProjectileSource_PlayerOrWires(int x, int y, bool fromWiring, Player player)
Definition WorldGen.cs:1333

References Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), Terraria.NetMessage.SendTileSquare(), and Terraria.Main.tile.

Referenced by Terraria.Wiring.HitWireSingle(), and Terraria.Collision.SwitchTiles().