From: nethack.rankin Date: Sun, 27 Apr 2003 11:05:22 +0000 (+0000) Subject: magic bag explosion X-Git-Tag: MOVE2GIT~2019 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a16ba92a01ef2bf811328a057675c04a4ce8271f;p=nethack magic bag explosion Make exploding bags of holding be less mysterious, and perhaps cut done on the number of claims that they've vanished for no reason. There wasn't any feedback other than the explosion message itself; in particular, the message about putting something into the bag didn't occur since that's handled by the didn't-explode case. --- diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 5bd3f0764..ee63c51b6 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -46,6 +46,7 @@ fix an uninitialized memory access in non-quick dolookup fix were changing message that wasn't being displayed immediate encumbrance feedback when removing gauntlets of power make deliberately flying down the Castle's trap doors consistent with falling +give more explicit feedback for exploding bag of holding Platform- and/or Interface-Specific Fixes diff --git a/src/pickup.c b/src/pickup.c index 43ed52e32..90262c3f5 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)pickup.c 3.4 2003/04/02 */ +/* SCCS Id: @(#)pickup.c 3.4 2003/04/26 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1789,7 +1789,10 @@ register struct obj *obj; if (rot_alarm) obj->norevive = 1; } } else if (Is_mbag(current_container) && mbag_explodes(obj, 0)) { - You("are blasted by a magical explosion!"); + /* explicitly mention what item is triggering the explosion */ + pline( + "As you put %s inside, you are blasted by a magical explosion!", + doname(obj)); /* did not actually insert obj yet */ if (was_unpaid) addtobill(obj, FALSE, FALSE, TRUE); obfree(obj, (struct obj *)0);