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/dat/bazaar.des | |
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/dat/bazaar.des')
-rw-r--r-- | crawl-ref/source/dat/bazaar.des | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/bazaar.des b/crawl-ref/source/dat/bazaar.des index f81df67cce..b63caea014 100644 --- a/crawl-ref/source/dat/bazaar.des +++ b/crawl-ref/source/dat/bazaar.des @@ -41,7 +41,6 @@ end function fixup_bazaar() dgn.fixup_stairs("stone_arch", "exit_portal_vault") - dgn.floor_halo("enter_shop", "yellow") if (dgn.get_floor_colour() == "black") then dgn.change_floor_colour(random_bazaar_colour()) @@ -50,6 +49,25 @@ function fixup_bazaar() if (dgn.get_rock_colour() == "black") then dgn.change_rock_colour("yellow") end + + local default = {rock="wall_vault", floor="floor_vault", halo="halo_vault"} + local tileset = { + blue = {rock="wall_brick_gray", floor="floor_grass", halo="halo_grass"}, + red = {rock="wall_pebble_red", floor="floor_vault", halo="halo_vault"}, + lightblue = {rock="wall_hive", floor="floor_grass", halo="halo_grass2"}, + magenta = {rock="wall_stone_gray", floor="floor_dirt", halo="halo_dirt"}, + green = {rock="wall_stone_gray", floor="floor_grass", halo="halo_grass"}, + } + + local tile = tileset[dgn.get_floor_colour()] + if (tile == nil) then + tile = default + end + + dgn.change_floor_tile(tile.floor) + dgn.change_rock_tile(tile.rock) + + dgn.floor_halo("enter_shop", "yellow", tile.halo) end dgn.set_lt_callback("bazaar", "fixup_bazaar") |