container_contents() vs show goods
Fix another inconsistency with containers in shops: prices shown when looking inside. Apply had them (because shop goods in containers are flagged as 'unpaid' when hero carries the container), and loot did not (because they aren't flagged that way).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 end.c $NHDT-Date: 1545771927 2018/12/25 21:05:27 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.161 $ */
|
||||
/* NetHack 3.6 end.c $NHDT-Date: 1545786454 2018/12/26 01:07:34 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.162 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1599,7 +1599,7 @@ boolean identified, all_containers, reportempty;
|
||||
if (Is_container(obj) || obj->otyp == STATUE)
|
||||
obj->cknown = obj->lknown = 1;
|
||||
}
|
||||
Strcpy(&buf[2], doname(obj));
|
||||
Strcpy(&buf[2], doname_with_price(obj));
|
||||
putstr(tmpwin, 0, buf);
|
||||
}
|
||||
unsortloot(&sortedcobj);
|
||||
|
||||
Reference in New Issue
Block a user