-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org

subGenerator{
	x = 0, y = 0, w = 50, h = 50,
	generator = "engine.generator.map.Forest",
	data = {
		edge_entrances = {4,6},
		zoom = 4,
		sqrt_percent = 45,
		noise = "fbm_perlin",
		floor = "BURNT_GROUND",
		wall = {"BURNT_TREE1","BURNT_TREE2","BURNT_TREE3","BURNT_TREE4","BURNT_TREE5","BURNT_TREE6","BURNT_TREE7","BURNT_TREE8","BURNT_TREE9","BURNT_TREE10","BURNT_TREE11","BURNT_TREE12","BURNT_TREE13","BURNT_TREE14","BURNT_TREE15","BURNT_TREE16","BURNT_TREE17","BURNT_TREE18","BURNT_TREE19","BURNT_TREE20",},
		up = "BURNT_UP4",
		down = "BURNT_DOWN6",
	},
	define_up = true,
}

checkConnectivity({55,24}, "entrance", "boss-area", "boss-area")

-- defineTile section
defineTile("#", {"BURNT_TREE1","BURNT_TREE2","BURNT_TREE3","BURNT_TREE4","BURNT_TREE5","BURNT_TREE6","BURNT_TREE7","BURNT_TREE8","BURNT_TREE9","BURNT_TREE10","BURNT_TREE11","BURNT_TREE12","BURNT_TREE13","BURNT_TREE14","BURNT_TREE15","BURNT_TREE16","BURNT_TREE17","BURNT_TREE18","BURNT_TREE19","BURNT_TREE20",})
defineTile("~", "LAVA")
defineTile("+", "ALTAR")
defineTile(".", "BURNT_GROUND")
defineTile("@", "ALTAR", nil, "GRAND_CORRUPTOR")

-- addSpot section

-- addZone section

-- ASCII map section
return [[
                                                  ...............
                                                  ...............
                                                  .#..#....#.....
                                                  ##......##.....
                                                  ..#............
                                                  ....##.........
                                                  ...........##..
                                                  ...............
                                                  .......#.......
                                                  ............#..
                                                  .#.#...........
                                                  ...#...........
                                                  #...#....#.....
                                                  #.....#........
                                                  .....##....#...
                                                  .....#.........
                                                  ...............
                                                  ...............
                                                  .#.............
                                                  .#.......~...#.
                                                  ##.#....~~~.~..
                                                  #..#...~~~~~~~.
                                                  #..#.+.~~~~~~..
                                                  #....@.~~~~~~..
                                                  #....+.~~~~~~..
                                                  ..#..+.~~~~~...
                                                  .#.....~~~~~...
                                                  .#......~~~~~..
                                                  .#......~~....#
                                                  ..............#
                                                  ..#...........#
                                                  .#.............
                                                  .#...#.........
                                                  ...............
                                                  ..........#....
                                                  ...##.....#....
                                                  ..##.....###...
                                                  .......#...#...
                                                  .##............
                                                  ......#...#....
                                                  ..........#....
                                                  ...............
                                                  ....#......#...
                                                  ...............
                                                  ...............
                                                  ...............
                                                  .........##.#..
                                                  ............#..
                                                  .....#.........
                                                  ...............]]
