diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-09-14 16:47:36 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-09-15 18:49:06 +0200 |
commit | 1688b385e8cbe28239501625e4292a3e795d1fb4 (patch) | |
tree | e4959e1b9ab7bc7fe75c1d4a0453948b42c65f03 /crawl-ref/source/tilepick.h | |
parent | d306dd81f3a23c4cdf107151d67c458948a810cc (diff) | |
download | crawl-ref-1688b385e8cbe28239501625e4292a3e795d1fb4.tar.gz crawl-ref-1688b385e8cbe28239501625e4292a3e795d1fb4.zip |
Allow redefining an item's tile in vaults.
tile: handles the inventory/ground one, wtile: handles the player/monster doll.
It'd be nice to unify them into one setting one day, and have all equipment
tiles have a pair of files by the same name.
Diffstat (limited to 'crawl-ref/source/tilepick.h')
-rw-r--r-- | crawl-ref/source/tilepick.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/tilepick.h b/crawl-ref/source/tilepick.h index 1751e757f4..445525fe95 100644 --- a/crawl-ref/source/tilepick.h +++ b/crawl-ref/source/tilepick.h @@ -54,6 +54,12 @@ int enchant_to_int(const item_def &item); tileidx_t tileidx_enchant_equ(const item_def &item, tileidx_t tile, bool player = false); +#ifdef USE_TILE +void bind_item_tile(item_def &item); +#else +static inline void bind_item_tile(item_def &item) {} +#endif + // For a given fg/bg set of tile indices and a 1 character prefix, // return index, flag, and tile name as a printable string. string tile_debug_string(tileidx_t fg, tileidx_t bg, char prefix); |