From: cohrs Date: Mon, 11 Feb 2002 03:29:11 +0000 (+0000) Subject: glyphs for breaking wands X-Git-Tag: MOVE2GIT~3202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b3362b236240065a2b89a54ceb48a0277f88f9f;p=nethack glyphs for breaking wands use fire an cold glyphs when breaking the corresponding wands. Other wands all get EXPL_MAGICAL since there's nothing more specific for them. --- diff --git a/src/apply.c b/src/apply.c index 15afdb659..123c1e703 100644 --- a/src/apply.c +++ b/src/apply.c @@ -2420,6 +2420,7 @@ do_break_wand(obj) register struct monst *mon; int dmg, damage; boolean affects_objects; + int expltype = EXPL_MAGICAL; char confirm[QBUFSZ], the_wand[BUFSZ], buf[BUFSZ]; Strcpy(the_wand, yname(obj)); @@ -2469,12 +2470,17 @@ do_break_wand(obj) goto discard_broken_wand; case WAN_DEATH: case WAN_LIGHTNING: - dmg *= 2; + dmg *= 4; + goto wanexpl; case WAN_FIRE: + expltype = EXPL_FIERY; case WAN_COLD: + if (expltype == EXPL_MAGICAL) expltype = EXPL_FROSTY; dmg *= 2; case WAN_MAGIC_MISSILE: - explode(u.ux, u.uy, (obj->otyp - WAN_MAGIC_MISSILE), dmg, WAND_CLASS, EXPL_MAGICAL); + wanexpl: + explode(u.ux, u.uy, + (obj->otyp - WAN_MAGIC_MISSILE), dmg, WAND_CLASS, expltype); makeknown(obj->otyp); /* explode described the effect */ goto discard_broken_wand; case WAN_STRIKING: