diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-14 19:03:54 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-14 19:31:11 +1000 |
commit | 550af32eec0e42c1c8e3228221914934d20c3244 (patch) | |
tree | 92172d50f6bdf24a772d5d0374a5f0a257671309 /crawl-ref/source/mapdef.cc | |
parent | a988600392e3046073b4dd8093f7772c19c128d1 (diff) | |
download | crawl-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.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 0ff5a83843..1482387fed 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -413,13 +413,13 @@ void map_lines::init_from(const map_lines &map) // Markers have to be regenerated, they will not be copied. clear_markers(); overlay.reset(NULL); - lines = map.lines; - map_width = map.map_width; - solid_north = map.solid_north; - solid_east = map.solid_east; - solid_south = map.solid_south; - solid_west = map.solid_west; - solid_checked = map.solid_checked; + lines = map.lines; + map_width = map.map_width; + solid_north = map.solid_north; + solid_east = map.solid_east; + solid_south = map.solid_south; + solid_west = map.solid_west; + solid_checked = map.solid_checked; } template <typename V> @@ -1480,7 +1480,7 @@ map_def::map_def() mapchunk("dlmapchunk"), main("dlmain"), validate("dlvalidate"), veto("dlveto"), rock_colour(BLACK), floor_colour(BLACK), rock_tile(0), floor_tile(0), - index_only(false), cache_offset(0L) + border_fill_type(DNGN_ROCK_WALL), index_only(false), cache_offset(0L) { init(); } @@ -1513,6 +1513,7 @@ void map_def::reinit() rock_colour = floor_colour = BLACK; rock_tile = floor_tile = 0; + border_fill_type = DNGN_ROCK_WALL; // Chance of using this level. Nonzero chance should be used // sparingly. When selecting vaults for a place, first those |