5528 {
5534 if (Main.tile[x, y].active() || Main.tile[x, y].liquid < byte.MaxValue || !Main.tile[x, y].lava())
5535 {
5536 return false;
5537 }
5539 for (
int i = x -
num; i <= x +
num; i++)
5540 {
5541 for (
int j = y -
num;
j <= y +
num;
j++)
5542 {
5543 if (Main.tile[i,
j].lava() && !Main.tile[i,
j].active() && Main.tile[i,
j].liquid ==
byte.MaxValue)
5544 {
5546 }
5547 }
5548 }
5550 {
5551 return false;
5552 }
5554 while (!Main.tile[x,
num8].active())
5555 {
5557 if (
num8 > Main.maxTilesY - 200)
5558 {
5559 return false;
5560 }
5561 }
5562 if (!Main.tileSolid[Main.tile[x,
num8].type] || Main.tileSolidTop[Main.tile[x,
num8].type])
5563 {
5564 return false;
5565 }
5568 {
5570 {
5571 if (Main.tile[
k,
l].wire())
5572 {
5573 return false;
5574 }
5575 }
5576 }
5577 while (Main.tile[x,
num8].active() && Main.tileSolid[Main.tile[x,
num8].type] && !Main.tileSolidTop[Main.tile[x,
num8].type])
5578 {
5580 if (
num8 > Main.maxTilesY - 200)
5581 {
5582 return false;
5583 }
5584 }
5585 Tile tile = Main.tile[x,
num8 - 1];
5586 if (Main.tileDungeon[tile.type] || tile.type == 225 || tile.type == 226)
5587 {
5588 return false;
5589 }
5591 while (!Main.tile[x,
num8].active())
5592 {
5594 if (
num8 > Main.maxTilesY - 200 || Main.tile[x,
num8].liquid > 0)
5595 {
5596 return false;
5597 }
5598 }
5599 if (!Main.tileSolid[Main.tile[x,
num8].type] || Main.tileSolidTop[Main.tile[x,
num8].type] || Main.tile[x,
num8].type == 162)
5600 {
5601 return false;
5602 }
5605 {
5606 return false;
5607 }
5609 {
5610 return false;
5611 }
5612 Main.tile[x,
num8].slope(0);
5613 Main.tile[x,
num8].halfBrick(halfBrick:
false);
5616 {
5617 Main.tile[x,
m].wire(wire:
true);
5619 {
5620 Main.tile[x,
m].slope(0);
5621 Main.tile[x,
m].halfBrick(halfBrick:
false);
5622 Main.tile[x,
m].actuator(actuator:
true);
5623 }
5624 }
5625 return true;
5626 }
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)