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/mon-util.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/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index 5b858ac0ab..6ca24ba116 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -818,5 +818,6 @@ bool mons_class_can_pass(int mc, const dungeon_feature_type grid); bool mons_can_pass(const monsters *mon, dungeon_feature_type grid); mon_inv_type equip_slot_to_mslot(equipment_type eq); +mon_inv_type item_to_mslot(const item_def &item); #endif |