Example #1
0
        ////////////////

        public static HouseViabilityState IsValidHouse(int tileX, int tileY)
        {
            ISet <(ushort TileX, ushort TileY)> innerHouseSpace;
            ISet <(ushort TileX, ushort TileY)> fullHouseSpace;
            int floorX, floorY;

            return(HouseFurnishingKitItem.IsValidHouse(
                       tileX,
                       tileY,
                       out innerHouseSpace,
                       out fullHouseSpace,
                       out floorX,
                       out floorY
                       ));
        }
Example #2
0
            bool isStairOrNotSolid(int x, int y)
            {
                Tile tile = Main.tile[x, y];

                if (TileWallAttributeLibraries.UnsafeDungeonWallTypes.Contains(tile.wall))
                {
                    return(false);
                }
                if (tile.wall == WallID.LihzahrdBrickUnsafe)
                {
                    return(false);
                }
                if (!tile.active())
                {
                    return(true);
                }
                if (tile.type == TileID.OpenDoor || tile.type == TileID.TallGateOpen || tile.type == TileID.TrapdoorOpen)
                {
                    return(false);
                }
                return(!Main.tileSolid[tile.type] ||
                       (Main.tileSolidTop[tile.type] && tile.slope() != 0) ||                   //stair
                       HouseFurnishingKitItem.IsCleanableTile(tile));
            }