diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-04 05:05:42 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-04 05:05:42 +0000 |
commit | 13f47218bbda7251a2521eda0c4a858ea333bbee (patch) | |
tree | fef4d2076355461b7c64dedd1676a90351cbc23d /crawl-ref/source/dat/zot.des | |
parent | 92c238f2c7ed33f3ebffc22fe08b1c51f98814b1 (diff) | |
download | crawl-ref-13f47218bbda7251a2521eda0c4a858ea333bbee.tar.gz crawl-ref-13f47218bbda7251a2521eda0c4a858ea333bbee.zip |
Moved all of the bazaar specific logic/code to dat/bazaar (or turned the
code into Lua utility functions which can be reused by things other than
bazaars). Related changes:
* Portal vault entrances now work if they have destinations ("dst" property)
besides "bazaar" (though it still causes an assert if no matchng
maps for the destination can be found).
* The floor and rock colour for a level are generated once and then stored
in the save file, rather than being constantly regenerated (which means
that bazaar floor colours are now truly random, rather than being tied
to the depth of the bazaar entrance).
* The floor and rock colour for a portal vault (or for any level containing
any vault) can be set with ROCKCOL and FLOORCOL (which currently only
accepts a single colour, unlike COLOUR); there are also Lua functions for
querying and setting the colours.
* Each portal vault level_type_name can have an associated Lua callback
which is called when level generation is complete; it can be used for
things like stair fixup.
I also moved the Halls of Zot rock/floor colour special casing to the
dat/zot.des file, since it was easy once ROCKCOL and FLOORCOL had been
implemented.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2314 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/zot.des')
-rw-r--r-- | crawl-ref/source/dat/zot.des | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/zot.des b/crawl-ref/source/dat/zot.des index 9edba91f88..0f060a726a 100644 --- a/crawl-ref/source/dat/zot.des +++ b/crawl-ref/source/dat/zot.des @@ -6,11 +6,14 @@ ############################################################################## # hall_of_Zot -NAME: hall_of_Zot +NAME: hall_of_Zot_5 PLACE: Zot:5 ORIENT: north LFLAGS: no_tele_control +FLOORCOL: magenta +ROCKCOL: lightmagenta + #traps SUBST: C = c:1000 = KFEAT: 1 = any trap / w:20 floor @@ -79,6 +82,60 @@ xxxxxxxxxxxcc..............ccxxxc...............cxxxcc..............ccxxxxxxxxxx xxxxxxxxxxxxccccccccccccccccxxxxcccccccc@ccccccccxxxxccccccccccccccccxxxxxxxxxxx ENDMAP +################################################################ + +# For colouring the walls and floors of the first four levels + +NAME: hall_of_Zot_1 +PLACE: Zot:1 +TAGS: transparent +ORIENT: float + +FLOORCOL: lightgrey +ROCKCOL: lightgrey + +MAP +. +ENDMAP + +### + +NAME: hall_of_Zot_2 +PLACE: Zot:2 +TAGS: transparent +ORIENT: float + +FLOORCOL: lightgrey +ROCKCOL: blue + +MAP +. +ENDMAP + +### +NAME: hall_of_Zot_3 +PLACE: Zot:3 +TAGS: transparent +ORIENT: float +FLOORCOL: blue +ROCKCOL: lightblue + +MAP +. +ENDMAP +### + +NAME: hall_of_Zot_4 +PLACE: Zot:4 +TAGS: transparent +ORIENT: float + +FLOORCOL: lightblue +ROCKCOL: magenta + +MAP +. +ENDMAP |