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

@@ -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;