Commit 62d23b7835fa1e8ed44a30401650dfee6e75943b

Authored by dg
1 parent 912ac342

rhaloren camp last level has a fixed spot for the boss


git-svn-id: http://svn.net-core.org/repos/t-engine4@2643 51575b47-30f0-44d4-a5cc-537603b46e54
  1 +-- ToME - Tales of Maj'Eyal
  2 +-- Copyright (C) 2009, 2010 Nicolas Casalini
  3 +--
  4 +-- This program is free software: you can redistribute it and/or modify
  5 +-- it under the terms of the GNU General Public License as published by
  6 +-- the Free Software Foundation, either version 3 of the License, or
  7 +-- (at your option) any later version.
  8 +--
  9 +-- This program is distributed in the hope that it will be useful,
  10 +-- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 +-- GNU General Public License for more details.
  13 +--
  14 +-- You should have received a copy of the GNU General Public License
  15 +-- along with this program. If not, see <http://www.gnu.org/licenses/>.
  16 +--
  17 +-- Nicolas Casalini "DarkGod"
  18 +-- darkgod@te4.org
  19 +
  20 +defineTile('.', "FLOOR")
  21 +defineTile('#', "WALL")
  22 +defineTile('+', "DOOR")
  23 +defineTile('P', "FLOOR", nil, "INQUISITOR")
  24 +defineTile('p', "FLOOR", nil, {random_filter={special=function(e) return e.faction == "rhalore" end}})
  25 +
  26 +subGenerator{
  27 + x = 0, y = 0, w = 50, h = 43,
  28 + generator = "engine.generator.map.Roomer",
  29 + data = {
  30 + nb_rooms = 10,
  31 + rooms = {"random_room"},
  32 + ['.'] = "FLOOR",
  33 + ['#'] = "WALL",
  34 + up = "UP",
  35 + door = "DOOR",
  36 + force_tunnels = {
  37 + {"random", {26, 43}, id=-500},
  38 + },
  39 + },
  40 + define_up = true,
  41 +}
  42 +
  43 +checkConnectivity({26,44}, "entrance", "boss-area", "boss-area")
  44 +
  45 +return {
  46 +[[ ]],
  47 +[[ ]],
  48 +[[ ]],
  49 +[[ ]],
  50 +[[ ]],
  51 +[[ ]],
  52 +[[ ]],
  53 +[[ ]],
  54 +[[ ]],
  55 +[[ ]],
  56 +[[ ]],
  57 +[[ ]],
  58 +[[ ]],
  59 +[[ ]],
  60 +[[ ]],
  61 +[[ ]],
  62 +[[ ]],
  63 +[[ ]],
  64 +[[ ]],
  65 +[[ ]],
  66 +[[ ]],
  67 +[[ ]],
  68 +[[ ]],
  69 +[[ ]],
  70 +[[ ]],
  71 +[[ ]],
  72 +[[ ]],
  73 +[[ ]],
  74 +[[ ]],
  75 +[[ ]],
  76 +[[ ]],
  77 +[[ ]],
  78 +[[ ]],
  79 +[[ ]],
  80 +[[ ]],
  81 +[[ ]],
  82 +[[ ]],
  83 +[[ ]],
  84 +[[ ]],
  85 +[[ ]],
  86 +[[ ]],
  87 +[[ ]],
  88 +[[ ]],
  89 +[[#########################+########################]],
  90 +[[##....................+.....+.......p...........##]],
  91 +[[#.............p.......#p...p#....................#]],
  92 +[[###########+###########################+##########]],
  93 +[[#......p..............#.....#....p...............#]],
  94 +[[##.............p......+..P..+..........p........##]],
  95 +[[##################################################]]
  96 +}
... ...
... ... @@ -46,7 +46,6 @@ return {
46 46 class = "engine.generator.actor.Random",
47 47 nb_npc = {20, 30},
48 48 filters = { {max_ood=2}, },
49   - guardian = "INQUISITOR",
50 49 },
51 50 object = {
52 51 class = "engine.generator.object.Random",
... ... @@ -64,5 +63,16 @@ return {
64 63 up = "UP_WILDERNESS",
65 64 }, },
66 65 },
  66 + [5] = {
  67 + generator = {
  68 + map = {
  69 + class = "engine.generator.map.Static",
  70 + map = "zones/rhaloren-camp-last",
  71 + },
  72 + actor = {
  73 + area = {x1=0, x2=49, y1=0, y2=40},
  74 + },
  75 + },
  76 + },
67 77 },
68 78 }
... ...