From aa1ef7b743654c99bca7b4dfc6f7d7bfd50307a0 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 22 Oct 2007 16:13:40 +0000 Subject: Fixed monsters wearing shields and other inappropriate armour as body armour. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2516 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index c42e4cd503..2765c45562 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -386,6 +386,8 @@ public: // Returns index in mitm array. Results are undefined if this item is // not in the array! int index() const; + + int armour_rating() const; bool launched_by(const item_def &launcher) const; @@ -1053,6 +1055,7 @@ public: bool pickup_melee_weapon(item_def &item, int near); bool pickup_throwable_weapon(item_def &item, int near); bool pickup_weapon(item_def &item, int near, bool force); + bool pickup_armour(item_def &item, int near, bool force); bool pickup_misc(item_def &item, int near); bool pickup_missile(item_def &item, int near, bool force); bool eat_corpse(item_def &carrion, int near); @@ -1155,6 +1158,7 @@ private: bool drop_item(int eslot, int near); bool wants_weapon(const item_def &item) const; + bool wants_armour(const item_def &item) const; bool can_throw_rocks() const; void lose_pickup_energy(); bool check_set_valid_home(const coord_def &place, -- cgit v1.2.3-54-g00ecf