]> granicus.if.org Git - nethack/commit
fix #H7865 - shop prices for container contents
authorPatR <rankin@nethack.org>
Sat, 5 Jan 2019 11:21:39 +0000 (03:21 -0800)
committerPatR <rankin@nethack.org>
Sat, 5 Jan 2019 11:21:39 +0000 (03:21 -0800)
commitab1bee17788877afd86066f668478f1449e5e773
treebcd2f3a4b86786a86b9ade05333f1104dc01c295
parentab5b400aeca97040ce1861803ac9e4c0027b9b3f
fix #H7865 - shop prices for container contents

The recent attempt to have looking inside a container show shop
prices had multiple problems.  Worst one was showing shop prices as
if the hero would be buying for items already owned by the hero.
Item handling inside containers on shop floor was inconsistent:  if
shop was selling those items, they would include a price, but if not
selling--either already owned by hero or shopkeeper didn't care about
them--they were only marked "no charge" if hero owned the container.

This is definitely better but I won't be surprised if other obscure
issues crop up.  Gold inside containers on shop floor is always owned
by the shop (credit is issued if it was owned by the hero) but is not
described as such.
doc/fixes36.2
include/extern.h
src/objnam.c
src/shk.c