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

◆ ExplodeCrackedTiles()

void Terraria.Projectile.ExplodeCrackedTiles ( Vector2 compareSpot,
int radius,
int minI,
int maxI,
int minJ,
int maxJ )
inline

Definition at line 91831 of file Projectile.cs.

91832 {
91833 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
91834 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
91835 AchievementsHelper.CurrentlyMining = true;
91836 for (int i = minI; i <= maxI; i++)
91837 {
91838 for (int j = minJ; j <= maxJ; j++)
91839 {
91840 float num3 = Math.Abs((float)i - compareSpot.X / 16f);
91841 float num2 = Math.Abs((float)j - compareSpot.Y / 16f);
91842 if (Math.Sqrt(num3 * num3 + num2 * num2) < (double)radius && Main.tile[i, j] != null && Main.tile[i, j].active() && TileID.Sets.CrackedBricks[Main.tile[i, j].type])
91843 {
91844 WorldGen.KillTile(i, j);
91845 if (!Main.tile[i, j].active() && Main.netMode != 0)
91846 {
91847 NetMessage.SendData(17, -1, -1, null, 20, i, j);
91848 }
91849 }
91850 }
91851 }
91852 AchievementsHelper.CurrentlyMining = false;
91853 }
static bool[] CrackedBricks
Definition TileID.cs:161

References Terraria.ID.TileID.Sets.CrackedBricks, Terraria.WorldGen.KillTile(), Terraria.Main.netMode, Terraria.NetMessage.SendData(), and Terraria.Main.tile.

+ Here is the call graph for this function: