summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-14 19:03:54 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-14 19:31:11 +1000
commit550af32eec0e42c1c8e3228221914934d20c3244 (patch)
tree92172d50f6bdf24a772d5d0374a5f0a257671309 /crawl-ref/source/mapdef.h
parenta988600392e3046073b4dd8093f7772c19c128d1 (diff)
downloadcrawl-ref-550af32eec0e42c1c8e3228221914934d20c3244.tar.gz
crawl-ref-550af32eec0e42c1c8e3228221914934d20c3244.zip
Allow portal vaults to specify fill and border glyph.
Also move dungeon_feature_by_name into terrain.cc, as it does not make sense it being in l_dgngrd.cc. The Lua function "set_border_fill_type(feature)" will replace the default DNGN_ROCK_WALL fill of a portal vault with the specified feature. This could be abused, and should probably only be limited to floor, water and sea, different types of walls, trees and lava; there are no sanity checks for endless traps, statues, stairs, etc. Finally, apply this to the island Trove, giving endless water effect.
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 791a929b10..e8ceafabda 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -368,6 +368,7 @@ private:
private:
std::vector<map_marker *> markers;
std::vector<std::string> lines;
+
struct overlay_def
{
overlay_def() : colour(0), rocktile(0), floortile(0), property(0) {}
@@ -722,6 +723,7 @@ public:
unsigned char rock_colour, floor_colour;
int rock_tile, floor_tile;
+ dungeon_feature_type border_fill_type;
private:
// This map has been loaded from an index, and not fully realised.
bool index_only;