From df0b2a5165b84d52d9c43d76d14adea095b671c8 Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Sun, 18 Oct 2009 16:32:37 -0400 Subject: Lua map improvements. The previous dungeon layout.des functions all apply directly to the grid and so are unsuitable for use in vaults. This aims to correct that by providing lua functions that can manipulate maps (of glyphs). grd[x][y] in a .des file can now be used to get and set glyphs in the current map. This should allow for less cumbersome map variations than what you can do with just SUBST and SHUFFLE. To support that, map_def no longer batches up transforms--it applies them all immediately. This resulted in a good bit of refactoring. FTILE/RTILE map commands now support setting the tile for multiple features at once. There are also a small number of new lua functions that apply to maps (map_octa_room, map_smear, and map_extend). Ideally, these will eventually replace the existing builder funcs that work on grd. --- crawl-ref/source/util/levcomp.ypp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/util') diff --git a/crawl-ref/source/util/levcomp.ypp b/crawl-ref/source/util/levcomp.ypp index 3567083a4a..1aa82e25b1 100644 --- a/crawl-ref/source/util/levcomp.ypp +++ b/crawl-ref/source/util/levcomp.ypp @@ -589,7 +589,7 @@ map_lines : map_lines map_line map_line : MAP_LINE { - lc_map.main.add( + lc_map.mapchunk.add( yylineno, make_stringf("map(\"%s\")", quote_lua_string($1).c_str())); -- cgit v1.2.3-54-g00ecf