]> granicus.if.org Git - nethack/commit
'R' behavior for rings (trunk only)
authornethack.rankin <nethack.rankin>
Fri, 25 Jan 2008 02:54:51 +0000 (02:54 +0000)
committernethack.rankin <nethack.rankin>
Fri, 25 Jan 2008 02:54:51 +0000 (02:54 +0000)
commitc0b85902a89f8892ceedee1663ac241a847b626c
tree3c69a8b14954b9c24e69258e67075694f6b3ec14
parent5ac69ac845263d746411d5f6144457e05ecd649a
'R' behavior for rings (trunk only)

     A bug in some post-3.4.3 code made attempting to remove a worn ring
when wearing two skip inventory the selection and give "you don't have
anything else to remove" if you were wearing gloves and weren't wearing
an amulet or blindfold.  The intent was that rings wouldn't be included
as likely candidates in the list of inventory letters to choose from if
you were wearing cursed gloves, but had a copy+paste mistake in the
argument controlling whether to consider the gloves curse state and was
in the wrong section of getobj()'s "ugly hacks".  Also, it makes more
sense to require that the player know that those gloves are cursed, so
inaccessibe_equipment() got changed too.  [Not knowing that the gloves
are cursed leaves rings listed as candidates; picking a ring will get
removal failure feedback later and mark the gloves as known cursed then.]
src/do_wear.c
src/invent.c