]> granicus.if.org Git - nethack/commit
dipping and greasing (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 30 Nov 2006 05:54:47 +0000 (05:54 +0000)
committernethack.rankin <nethack.rankin>
Thu, 30 Nov 2006 05:54:47 +0000 (05:54 +0000)
commit17f8482e734513b4dc10657a1bc586854cccd20f
treee974c6a70caba74137838037cf97e56cbed58afa
parente80970dccfcba7a956e57b2e75aa8dd8df6d7c36
dipping and greasing (trunk only)

     From a bug report:  you
can dip a worn item such as shirt or suit into a potion of polymorph and
it will become unworn--but as of a couple of days ago, unworn only if the
transformed object's new form can't be worn in the same slot--even if it
is covered by a cursed worn item (suit or cloak).  It didn't seem like
trying to fix that special case would be very worthwhile; this fixes the
more general situation of "you could dip worn items even though they were
covered up by other worn items".

     In the same report:  you could apply grease to rings while wearing
cursed gloves.  The code already prevented greasing a suit when it was
covered by a cloak (regardless of whether that cloak was cursed), and a
shirt when it was covered by a suit or cloak or both.  This moves that
code into a separate routine which is used for dipping as well as for
applying grease, and now handles rings vs gloves.

     Since covered rings, shirt, or suit are no longer eligible to be
dipped or greased, this also makes "?" for the pick-an-item prompt leave
such things out of the list of likely candidates.
doc/fixes35.0
include/extern.h
src/apply.c
src/do_wear.c
src/invent.c
src/potion.c