diff options
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index c3b30a0daa..59b7149495 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -2712,6 +2712,15 @@ bool is_evil_item(const item_def& item) return retval; } +bool god_dislikes_item_handling(const item_def &item) +{ + return (item_type_known(item) + && (is_good_god(you.religion) && is_evil_item(item) + || you.religion == GOD_TROG && item.base_type == OBJ_BOOKS + && item.sub_type != BOOK_MANUAL + && item.sub_type != BOOK_DESTRUCTION)); +} + // Is the destroyed weapon valuable enough to gain piety by doing so? // Evil weapons are handled specially. static bool _destroyed_valuable_weapon(int value, int type) |