]> granicus.if.org Git - nethack/commit
fix #H4205 - take-off of covered items
authorPatR <rankin@nethack.org>
Sun, 24 Jan 2016 03:38:28 +0000 (19:38 -0800)
committerPatR <rankin@nethack.org>
Sun, 24 Jan 2016 03:38:28 +0000 (19:38 -0800)
commit853efee6614ba66fd7017cf7ece369074bb9b828
tree664f8bee53afb0db6bbd71dcd6c62eaf142922aa
parent45ba0addf25a6a0f29b6de793524e5250a6c039a
fix #H4205 - take-off of covered items

Bug report subject was "menu interface things" but this isn't related
to menus, just getobj().  Make the requested change to not list worn
suit as a likely candidate for T (and R) if a worn cloak is going to
prevent it from being removed.  (Suit can still be picked, but the
take-off operation for it will be refused, same as when it was being
listed as a candidate.)

In discussion about the request, there was a separate suggestion that
cloaks shouldn't interfere with removing things underneath since
they're generally sleeveless.  I haven't done that; I think it is
better to keep the layering as it is.

The bug report also asked for the likely candidates when writing with
a magic marker to exclude non-blank scrolls and books.  That has been
implemented already (post-3.6.0).
src/invent.c