summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-12 14:44:16 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-12 14:44:16 +0000
commit7fd519911a9007b617b873d4690159d65ca2dd96 (patch)
treed52fe255b14d5388e7bae7f8761e898fedb8efd8 /crawl-ref/source/clua.cc
parent7c230030738f1d67c341aa2c24afcb231f14c3be (diff)
downloadcrawl-ref-7fd519911a9007b617b873d4690159d65ca2dd96.tar.gz
crawl-ref-7fd519911a9007b617b873d4690159d65ca2dd96.zip
Another change to how bazaars look.
All floor squares around shops (in bazaars) get coloured yellow. (David likened this to light flooding the street.) Lava on red floor get converted to water, and deep water on blue floor is substituted by lava or shallow water. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2074 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index c1a43d91ef..94856ee021 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -12,6 +12,7 @@
#include "cio.h"
#include "delay.h"
#include "dgnevent.h"
+#include "dungeon.h"
#include "files.h"
#include "food.h"
#include "invent.h"
@@ -737,6 +738,9 @@ LUAWRAP(you_stop_activity, interrupt_activity(AI_FORCE_INTERRUPT))
LUARET1(you_turns, number, you.num_turns)
LUARET1(you_see_grid, boolean,
see_grid(luaL_checkint(ls, 1), luaL_checkint(ls, 2)))
+// increase by 1 because check happens on old level
+LUARET1(bzr_floor_colour, string,
+ colour_to_str(bazaar_floor_colour(you.your_level + 2)))
void lua_push_floor_items(lua_State *ls);
static int you_floor_items(lua_State *ls)
@@ -816,6 +820,7 @@ static const struct luaL_reg you_lib[] =
{ "absdepth", you_absdepth },
{ "see_grid", you_see_grid },
+ { "bazaar_floor", bzr_floor_colour },
{ NULL, NULL },
};