summaryrefslogtreecommitdiffstats
path: root/crawl-ref/docs/level_design.txt
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-26 07:45:18 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-26 07:45:18 +0000
commitf910f85b74d9dae832f8d3422f51d87565ea3a08 (patch)
tree5b10f62736e875a57e0380e4dc477af5774cc661 /crawl-ref/docs/level_design.txt
parentf7f652ac0f4c5a193ee4ad5471a85cf723466e24 (diff)
downloadcrawl-ref-f910f85b74d9dae832f8d3422f51d87565ea3a08.tar.gz
crawl-ref-f910f85b74d9dae832f8d3422f51d87565ea3a08.zip
FR 1822931: Vaults can now include tags of the form "layout_foo" to
indicate which level layout types it's compatible with, where "foo" can be: rooms, caves, open, city, or cross (plus swamp, shoals and labyrinth, even though random vaults aren't used in those places). Having no "layout_foo" tag means that the vault is compatible with all layout types, which is the current behavior. Also, fixed bug where layouts plan_1 (donut levels), plan_2 (cross levels) and plan_6 (octagon with circle of pillars) were choosing randomly from the three Lua defined layouts in dat/layout.des, rather than choosing exactly the chosen layout. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5251 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/docs/level_design.txt')
-rw-r--r--crawl-ref/docs/level_design.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/docs/level_design.txt b/crawl-ref/docs/level_design.txt
index 6cce7c471e..8c062df940 100644
--- a/crawl-ref/docs/level_design.txt
+++ b/crawl-ref/docs/level_design.txt
@@ -32,6 +32,8 @@ are in use:
lab.des - labyrinths exits and flavour vaults
lair.des - lair entrances, Shoals:5, Swamp:5, Snake:5, Slime:6
large.des - all regular vaults which have ORIENT:encompass/northwest etc.
+ layout.des - Level layout code that has been moved from dungeon.cc and
+ rewritten in Lua.
mini.des - minivaults (no ORIENT line at all)
orc.des - orcish mine entrances, orc only vaults
pan.des - vaults of the Pan demon lords, Pan minivaults
@@ -386,6 +388,16 @@ TAGS: Tags go an a TAGS: line and are space-separated. Valid tags are:
vault!"
* "no_hmirror": Like no_rotate, but for horizontal mirroring.
* "no_vmirror": Like no_rotate, but for vertical mirroring.
+ * "layout": Lua code that dungeon.cc uses for generating level
+ layouts. Do *NOT* use or mess with unlss you know what
+ you're doing.
+ * "layout_foo": Indicates what sort of level layouts this vault is
+ compatible with, for vaults that don't fit in with all layouts;
+ the absence of this type of tags means it can go with any layout.
+ Multiple layout_foo tags can be used if it can be used with
+ multiple layouts. Current values for "foo" are: rooms, city,
+ open, caves, cross, shoals, swamp, labyrithn (though currently
+ random vaults aren't palced in the last three).
Pre-0.3 Crawl distinguished between TAGS and FLAGS. 0.3 and
newer Crawls treat TAGS and FLAGS as synonyms.