diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-02 19:04:00 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-02 19:04:00 +0000 |
commit | 77799c38dcd4bb865be01a93a76344162c043245 (patch) | |
tree | 594888cc101c2ef47f5bf1bcb411643d3ed7a671 /crawl-ref/source/invent.cc | |
parent | 1b49ddb74f8d39dd07b712602333fc28810a4f40 (diff) | |
download | crawl-ref-77799c38dcd4bb865be01a93a76344162c043245.tar.gz crawl-ref-77799c38dcd4bb865be01a93a76344162c043245.zip |
Fix 2784872: Take off not working for wearing (with the option).
Also, add another item selector for worn armour for the takeoff prompt
(and equip_unequip is false). I figured in the 'W'ear menu armour
already worn takes up less space, and you're rather likely to directly
switch to another piece of clothing.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9719 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 21c1390090..bb9ef1f4c8 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -983,6 +983,9 @@ static bool _item_class_selected(const item_def &i, int selector) case OBJ_ARMOUR: return (itype == OBJ_ARMOUR && you_tran_can_wear(i)); + case OSEL_WORN_ARMOUR: + return (itype == OBJ_ARMOUR && item_is_equipped(i)); + case OSEL_UNIDENT: return !fully_identified(i); |