diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-09 21:52:44 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-09 21:52:44 +1000 |
commit | b03ae0bd75db95fd72cf484da6caec7eb47ad21c (patch) | |
tree | 7ef2787815630f4b273524ced5424be070e96236 /crawl-ref/source/l_dgntil.cc | |
parent | b186dbd518d138ee1d9c228d801ad0f3607ea76d (diff) | |
download | crawl-ref-b03ae0bd75db95fd72cf484da6caec7eb47ad21c.tar.gz crawl-ref-b03ae0bd75db95fd72cf484da6caec7eb47ad21c.zip |
Massively expand tile functionality in vault definitions.
This commit creates a new specifier for vaults: "TILE". Used much in the
same way as COLOUR, it can apply any specific tile to a feature. Example
syntax is specified in the syntax file, but copied here for clarity:
TILE: x = wall_flesh
Identical to FTILE and RTILE in syntax, but closer to COLOUR in
functionality. Instead of replacing the floor or relevant rock
tiles, this can be used to replace the tile used for any specific
feature.
This can be used in combination with FTILE and RTILE to change
the appearance of features. It can only be used with previously
specified tiles, however.
Like COLOUR and FTILE, this should be used sparingly and to good
effect.
Please, feel free to update vaults to use this! We want to ensure that
tiles players get the same experience as ASCII players do. This is only
the first stage in a push for greater flexibiltiy through tiles, but
hopefully it'll have a good impact.
Diffstat (limited to 'crawl-ref/source/l_dgntil.cc')
-rw-r--r-- | crawl-ref/source/l_dgntil.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/l_dgntil.cc b/crawl-ref/source/l_dgntil.cc index 25995f683a..6939b98aea 100644 --- a/crawl-ref/source/l_dgntil.cc +++ b/crawl-ref/source/l_dgntil.cc @@ -147,12 +147,22 @@ LUAFN(dgn_rtile) #endif } +LUAFN(dgn_tile) +{ +#ifdef USE_TILE + return dgn_map_add_transform(ls, &map_lines::add_spec_tile); +#else + return 0; +#endif +} + const struct luaL_reg dgn_tile_dlib[] = { { "lrocktile", dgn_lrocktile }, { "lfloortile", dgn_lfloortile }, { "rtile", dgn_rtile }, { "ftile", dgn_ftile }, +{ "tile", dgn_tile }, { "change_rock_tile", dgn_change_rock_tile }, { "change_floor_tile", dgn_change_floor_tile }, { "lev_floortile", dgn_lev_floortile }, |