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.
This commit is contained in:
cohrs
2002-02-11 03:29:11 +00:00
parent 996d46ba10
commit 3b3362b236

View File

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