]> granicus.if.org Git - nethack/commit
prices of items on shop floor
authorPatR <rankin@nethack.org>
Tue, 25 Dec 2018 21:48:51 +0000 (13:48 -0800)
committerPatR <rankin@nethack.org>
Tue, 25 Dec 2018 21:48:51 +0000 (13:48 -0800)
commit3aca92215c66e8fa6b1034e01830d19bf491f5ff
tree3151e75207836cb2c6a08f38a22f07ab07e40069
parent99cd9ea26442f3787a80dc1546994224feda1357
prices of items on shop floor

get_cost_of_item() was giving different information from shop #chat
when dealing with containers owned by hero containing objects owned
by the shop.  And when it was legitimately reporting a price of 0,
doname_with_price() wasn't reporting 'no charge' for items inside a
shop that were owned by hero or that shopkeeper didn't care about.

Extend the shop price reveal to far-look, but only when hero and item
being examined are inside the same shop.
doc/fixes36.2
src/objnam.c
src/pager.c
src/shk.c