]> granicus.if.org Git - nethack/commit
fix #H2680 - IDing unpaid gem should adjust price
authorPatR <rankin@nethack.org>
Fri, 21 Dec 2018 09:14:45 +0000 (01:14 -0800)
committerPatR <rankin@nethack.org>
Fri, 21 Dec 2018 09:14:45 +0000 (01:14 -0800)
commit0e583161094b417eb64e5c3b02fb91f854fe7ebb
tree3a7d6764ebfcf36c9a0f7c3675545bf27f85b2b6
parent4e1eecc7fa20472fbecaced78a8e4687d1d432c0
fix #H2680 - IDing unpaid gem should adjust price

Another one from 6.5 years ago, identifying a type of gem should give
a new price for any unpaid gems of that type and adjust shopping bill
accordingly.  Report was for rubbing with touchstone and learning
worthless glass with price not changing until the learned 'gem' was
dropped.  Fix works for that and also other forms of identification
(and for amnesia, raising prices of forgotten gems); no dropping is
required for the price to change.

Theoretically could apply to any type of item, but prices of gems are
by far the most sensitive to whether or not they're identified.
doc/fixes36.2
include/extern.h
src/o_init.c
src/shk.c