throwing and breaking glass wand in shop (trunk only)

<email deleted> wrote:
> - when in a hardware store, I put a glass wand out of a sack (the glass wand
> will cost you 266 zorkmids) and threw it in the shop => shattered into a
> thousand pieces BUT if I try to pay, I do not owe the shopkeeper anything !!!
> If I break a potion with a /oS, I have to pay !
This commit is contained in:
nethack.allison
2006-06-14 23:44:16 +00:00
parent 8fc541006b
commit d8528f7e2f
2 changed files with 5 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ limit recursive calls to spoteffects (poly'd hero fell into water, reverted
to human because of it, fell into same water, then crawled out twice)
ensure that the punishment ball and chain make it into the save file after being
temporarily orphaned from the normal chains in the swallowing code
charge for thrown wand that shatters into a thousand pieces in a shop
Platform- and/or Interface-Specific Fixes

View File

@@ -703,6 +703,10 @@ register boolean broken;
if (obj->unpaid) {
(void)stolen_value(obj, u.ux, u.uy,
(boolean)shkp->mpeaceful, FALSE);
costly_alteration(obj, COST_DSTROY);
/* costly_alteration() probably already called
subfrombill() for the object, but just in case it
didn't, call it again. If it did, this is a NOOP. */
subfrombill(obj, shkp);
}
obj->no_charge = 1;