]> granicus.if.org Git - nethack/commitdiff
fixes entry for unpaid_cost regression fix
authorPatR <rankin@nethack.org>
Fri, 14 Jan 2022 21:33:17 +0000 (13:33 -0800)
committerPatR <rankin@nethack.org>
Fri, 14 Jan 2022 21:33:17 +0000 (13:33 -0800)
Pull request #654 from entrez:  the change to avoid impossible
"unpaid_cost: object wasn't on any bill" when examining inventory
while in a wall shared by multiple shops didn't work correctly for
shop-owned objects inside hero-owned containers (which worked prior
to that change).

Not fixed, and possibly not going to be:  if a hero-owned container
holds items from more than one shop, the cost appended to those items'
inventory entries might show the wrong amount if the relevant code
picks the wrong shk.  Presumably the wrong amount can also happen if
player puts items from one shop into a container owned by another
shop.

Closes #654

doc/fixes37.0

index 14ce13a8052e9e91a3d7d120ef47405cb89dc16b..1200bc39e1b1c5793d67d2cafb4b2fcb5b9e85e3 100644 (file)
@@ -745,6 +745,7 @@ when two or more shops share a wall and hero uses Passes_walls to carry an
 when two or more shops share a wall and hero uses Passes_walls to carry an
        unpaid item through the shared wall into another shop, theft of that
        unpaid item from the first shop wasn't noticed
+redo the unpaid_cost fix to handle shop items inside hero-owned container
 flyers shouldn't fall on arrival when going down holes or trap doors