]> granicus.if.org Git - nethack/commit
fix #H4475 - shop message about disenchanted item
authorPatR <rankin@nethack.org>
Wed, 10 Aug 2016 09:04:09 +0000 (02:04 -0700)
committerPatR <rankin@nethack.org>
Wed, 10 Aug 2016 09:04:09 +0000 (02:04 -0700)
commita72d19b9056bfbe3bff7f13c426606381f765a69
tree32131b9b703de6fb5d8e5f3c71a1c42afb2f4829
parent62fd7962713f629543be062aa9d95379d32a7796
fix #H4475 - shop message about disenchanted item

drain_item() always assumed player was responsible, so called
costly_alteration() to adjust shop price of disenchanted item.
If it was unpaid and the effect was caused by a disenchanter
attack rather than by the hero, the feedback was nonsensical.

This also lets a disenchanter hit worn rings, amulet, or blindfold
if no armor gets targetted.  Amulets, blindfolds, and most rings
have no charge to be drained, but several types of rings do.
doc/fixes36.1
include/extern.h
src/mhitm.c
src/mhitu.c
src/uhitm.c
src/zap.c