diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-01 02:22:31 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-01 02:22:31 +0000 |
commit | 2e4aeb705dc8383ddc846ea17613251df8601847 (patch) | |
tree | dca212cd8072eccc0fc259a3a677bafc739ecee8 /crawl-ref/source/mapdef.cc | |
parent | a2bd3ea6e687bee89ff41074c713af99e8bd9886 (diff) | |
download | crawl-ref-2e4aeb705dc8383ddc846ea17613251df8601847.tar.gz crawl-ref-2e4aeb705dc8383ddc846ea17613251df8601847.zip |
[2054793] Partial implementation of the request to have COLOUR tags affect tile choice. Vaults can now override the default tileset (walls and floors) for an entire level. This has been pushed to vaults where it makes sense (sewers, ice caves, ziggurats, bazaars, Shoals:5, Zot).
ROCKTILE and FLOORTILE can be used when authoring vaults to set these values, both of which take a single tile name as a string. These values are ignored in console builds.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7700 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index c73fe63413..da1afa86b9 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -1198,7 +1198,8 @@ map_def::map_def() weight_depth_mult(), weight_depth_div(), welcome_messages(), map(), mons(), items(), keyspecs(), prelude("dlprelude"), main("dlmain"), validate("dlvalidate"), veto("dlveto"), rock_colour(BLACK), - floor_colour(BLACK), index_only(false), cache_offset(0L) + floor_colour(BLACK), rock_tile(0), floor_tile(0), + index_only(false), cache_offset(0L) { init(); } @@ -1228,6 +1229,7 @@ void map_def::reinit() welcome_messages.clear(); rock_colour = floor_colour = BLACK; + rock_tile = floor_tile = 0; // Chance of using this level. Nonzero chance should be used // sparingly. When selecting vaults for a place, first those |