33823 {
33825 if (Main.tile[i,
j - 1] ==
null)
33826 {
33827 Main.tile[i,
j - 1] =
default(
Tile);
33828 }
33829 if (Main.tile[i,
j - 2] ==
null)
33830 {
33831 Main.tile[i,
j - 2] =
default(
Tile);
33832 }
33833 if (Main.tile[i,
j + 1] ==
null)
33834 {
33835 Main.tile[i,
j + 1] =
default(
Tile);
33836 }
33837 if (Main.tile[i,
j] ==
null)
33838 {
33839 Main.tile[i,
j] =
default(
Tile);
33840 }
33841 Tile tile = Main.tile[i,
j];
33843 {
33844 return false;
33845 }
33847 {
33848 return false;
33849 }
33851 int num3 = tile.frameY;
33854 {
33857 }
33858 if (tile.frameX >= 54)
33859 {
33860 int num5 = tile.frameX / 54;
33863 }
33866 TileColorCache
cache = Main.tile[
num6,
num].BlockColorAndCoating();
33867 if (Main.tile[
num6,
num + 1] ==
null)
33868 {
33870 }
33871 TileColorCache
cache2 = Main.tile[
num6,
num + 1].BlockColorAndCoating();
33872 if (Main.tile[
num6,
num + 2] ==
null)
33873 {
33875 }
33876 TileColorCache
cache3 = Main.tile[
num6,
num + 2].BlockColorAndCoating();
33878 if (direction == -1)
33879 {
33883 }
33884 else
33885 {
33888 }
33890 {
33891 if (Main.tile[
num7,
k] ==
null)
33892 {
33894 }
33895 if (Main.tile[
num7,
k].active())
33896 {
33897 if (!Main.tileCut[Main.tile[
num7,
k].type] && Main.tile[
num7,
k].type != 3 && Main.tile[
num7,
k].type != 24 && Main.tile[
num7,
k].type != 52 && Main.tile[
num7,
k].type != 61 && Main.tile[
num7,
k].type != 62 && Main.tile[
num7,
k].type != 69 && Main.tile[
num7,
k].type != 655 && Main.tile[
num7,
k].type != 71 && Main.tile[
num7,
k].type != 73 && Main.tile[
num7,
k].type != 74 && Main.tile[
num7,
k].type != 110 && Main.tile[
num7,
k].type != 113 && Main.tile[
num7,
k].type != 115 && Main.tile[
num7,
k].type != 165)
33898 {
33899 return false;
33900 }
33902 }
33903 }
33904 if (Main.netMode != 1 &&
Wiring.running)
33905 {
33912 }
33921 if (Main.tile[
num6 + 1,
num] ==
null)
33922 {
33924 }
33928 Main.tile[
num6 + 1,
num].frameX = (short)(
num2 + 18);
33930 if (Main.tile[
num6,
num + 1] ==
null)
33931 {
33933 }
33936 Main.tile[
num6,
num + 1].frameY = (short)(
num8 + 18);
33939 if (Main.tile[
num6 + 1,
num + 1] ==
null)
33940 {
33942 }
33943 Main.tile[
num6 + 1,
num + 1].active(active:
true);
33945 Main.tile[
num6 + 1,
num + 1].frameY = (short)(
num8 + 18);
33946 Main.tile[
num6 + 1,
num + 1].frameX = (short)(
num2 + 18);
33948 if (Main.tile[
num6,
num + 2] ==
null)
33949 {
33951 }
33954 Main.tile[
num6,
num + 2].frameY = (short)(
num8 + 36);
33957 if (Main.tile[
num6 + 1,
num + 2] ==
null)
33958 {
33960 }
33961 Main.tile[
num6 + 1,
num + 2].active(active:
true);
33963 Main.tile[
num6 + 1,
num + 2].frameY = (short)(
num8 + 36);
33964 Main.tile[
num6 + 1,
num + 2].frameX = (short)(
num2 + 18);
33967 {
33968 for (
int m =
num - 1;
m <=
num + 2;
m++)
33969 {
33971 }
33972 }
33973 return true;
33974 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static int OpenDoorID(Tile tile)
This serves as the central class from which tile-related functions are supported and carried out.
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool IsLockedDoor(int x, int y)
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)