Definition at line 39196 of file WorldGen.cs.
39197 {
39199 {
39200 return;
39201 }
39202 if (Main.tile[i,
j].frameY >= 36 || Main.tile[i,
j].type == 236 || Main.tile[i,
j].type == 238)
39203 {
39204 bool flag = false;
39205 int num = Main.tile[
i,
j].frameX / 18;
39207 while (num > 1)
39208 {
39209 num -= 2;
39211 }
39215 {
39217 }
39219 for (
num4 = Main.tile[i,
j].frameY / 18;
num4 > 1;
num4 -= 2)
39220 {
39221 }
39224 for (
int k = num;
k < num + 2;
k++)
39225 {
39227 {
39228 if (Main.tile[
k,
l] ==
null)
39229 {
39230 Main.tile[
k,
l] =
new Tile();
39231 }
39232 if (!Main.tile[
k,
l].active() || Main.tile[
k,
l].type !=
type || Main.tile[
k,
l].frameX != (
k - num) * 18 +
num5 || Main.tile[
k,
l].frameY != (
l -
num4) * 18 +
num3)
39233 {
39234 flag = true;
39235 }
39236 }
39237 if (Main.tile[
k,
num4 + 2] ==
null)
39238 {
39240 }
39242 {
39243 flag = true;
39244 }
39245 }
39246 if (!flag)
39247 {
39248 return;
39249 }
39251 {
39252 float num6 =
i * 16;
39253 float num7 =
j * 16;
39256 for (
int m = 0;
m < 255;
m++)
39257 {
39260 {
39263 }
39264 }
39265 if (
num8 / 16f < 50f)
39266 {
39267 NPC.SpawnOnPlayer(
plr, 262);
39268 }
39269 }
39271 {
39273 }
39274 _ = Main.tile[
i,
j].frameX;
39276 for (
int n = num;
n < num + 2;
n++)
39277 {
39279 {
39280 if (Main.tile[
n,
num10] ==
null)
39281 {
39283 }
39285 {
39287 }
39288 }
39289 }
39291 return;
39292 }
39293 bool flag2 =
false;
39295 num11 += Main.tile[
i,
j].frameY / 18 * -1;
39296 int num12 = Main.tile[
i,
j].frameX / 18;
39299 {
39302 }
39306 {
39308 {
39310 {
39312 }
39314 {
39316 }
39317 }
39319 {
39321 }
39323 {
39325 }
39326 }
39328 {
39329 return;
39330 }
39331 _ = Main.tile[
i,
j].frameX;
39334 {
39336 {
39338 {
39340 }
39342 {
39344 }
39345 }
39346 }
39348 }
static double Abs(double value)
static bool destroyObject
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)
References System.Math.Abs(), Terraria.Item.NewItem(), Terraria.Main.player, Terraria.Enums.SolidTile, Terraria.NPC.SpawnOnPlayer(), Terraria.DataStructures.Tile, Terraria.Main.tile, and System.type.