diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-27 16:16:46 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-27 19:09:49 +0100 |
commit | 5ff307770ff507b695d965b93314f859c7767946 (patch) | |
tree | 56df1170760ce10a2877cf0e36084e652d3d4118 /crawl-ref/source/tilereg-inv.cc | |
parent | 5b20f5883ebf3ae4e14224d9418c00432af05fc2 (diff) | |
download | crawl-ref-5ff307770ff507b695d965b93314f859c7767946.tar.gz crawl-ref-5ff307770ff507b695d965b93314f859c7767946.zip |
Discard empty boxes of beasts after use.
Diffstat (limited to 'crawl-ref/source/tilereg-inv.cc')
-rw-r--r-- | crawl-ref/source/tilereg-inv.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-inv.cc b/crawl-ref/source/tilereg-inv.cc index 65bdee6fc8..b5ce736b64 100644 --- a/crawl-ref/source/tilereg-inv.cc +++ b/crawl-ref/source/tilereg-inv.cc @@ -231,9 +231,11 @@ static bool _is_true_equipped_item(const item_def &item) // apart from dropping it. static bool _can_use_item(const item_def &item, bool equipped) { +#if TAG_MAJOR_VERSION == 34 // There's nothing you can do with an empty box if you can't unwield it. if (!equipped && item.sub_type == MISC_EMPTY_EBONY_CASKET) return false; +#endif // Vampires can drain corpses. if (item.base_type == OBJ_CORPSES) |