summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-22 16:13:40 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-22 16:13:40 +0000
commitaa1ef7b743654c99bca7b4dfc6f7d7bfd50307a0 (patch)
treef85f286f22c0b92a9843ddfc6ff1237229ed6ae5 /crawl-ref/source/externs.h
parentff6bdc3daff822e5b59b9fbb48b2f74a2d1d9c30 (diff)
downloadcrawl-ref-aa1ef7b743654c99bca7b4dfc6f7d7bfd50307a0.tar.gz
crawl-ref-aa1ef7b743654c99bca7b4dfc6f7d7bfd50307a0.zip
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
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h4
1 files changed, 4 insertions, 0 deletions
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,