diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-22 03:48:27 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-22 03:48:27 +0000 |
commit | f119c29736878ef93deed692013d3c974831b038 (patch) | |
tree | a977f1bbd15465bbfeeed866dfc3b83078a0792a /crawl-ref/source/items.h | |
parent | 21243c536b155025edacec7fb43b563c724cbd0a (diff) | |
download | crawl-ref-f119c29736878ef93deed692013d3c974831b038.tar.gz crawl-ref-f119c29736878ef93deed692013d3c974831b038.zip |
Fix bug 2298697: for dealing with weapons of returning which fail to return,
mons_throw() should have been using the mslot of the weapon, not weapon's
mitm index.
Introduces the new functions get_mon_equip_slot() and item_to_mslot().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7530 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r-- | crawl-ref/source/items.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h index 79ec57bf00..fa892313c4 100644 --- a/crawl-ref/source/items.h +++ b/crawl-ref/source/items.h @@ -122,7 +122,8 @@ bool pickup_single_item(int link, int qty); bool drop_item( int item_dropped, int quant_drop, bool try_offer = false ); -int get_equip_slot(const item_def *item); +int get_equip_slot(const item_def *item); +mon_inv_type get_mon_equip_slot(const monsters* mon, const item_def &item); void origin_set(const coord_def& where); void origin_set_monster(item_def &item, const monsters *monster); |