From: nethack.rankin Date: Tue, 8 Oct 2002 07:19:45 +0000 (+0000) Subject: fix B13008 - Mjollnir messages X-Git-Tag: MOVE2GIT~2388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d10d1045bcb3c157cf7c60a0c00fc47c7720c453;p=nethack fix B13008 - Mjollnir messages Condense the two artifact hit messages a bit so that fighting with Mjollnir isn't quite so verbose. And make the same change for the non-existant magic missile launching artifact(s). --- diff --git a/src/artifact.c b/src/artifact.c index 43b008c72..5d69656e7 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)artifact.c 3.4 2002/08/01 */ +/* SCCS Id: @(#)artifact.c 3.4 2002/10/07 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -753,23 +753,20 @@ int dieroll; /* needed for Magicbane and vorpal blades */ return realizes_damage; } if (attacks(AD_ELEC, otmp)) { - if (realizes_damage) { - pline_The("massive hammer hits %s%c", + if (realizes_damage) + pline_The("massive hammer hits%s %s%c", + !spec_dbon_applies ? "" : "! Lightning strikes", hittee, !spec_dbon_applies ? '.' : '!'); - if (spec_dbon_applies) - pline("Lightning strikes %s!", hittee); - } if (!rn2(5)) (void) destroy_mitem(mdef, RING_CLASS, AD_ELEC); if (!rn2(5)) (void) destroy_mitem(mdef, WAND_CLASS, AD_ELEC); return realizes_damage; } if (attacks(AD_MAGM, otmp)) { - if (realizes_damage) { - pline_The("imaginary widget hits %s%c", + if (realizes_damage) + pline_The("imaginary widget hits%s %s%c", + !spec_dbon_applies ? "" : + "! A hail of magic missiles strikes", hittee, !spec_dbon_applies ? '.' : '!'); - if (spec_dbon_applies) - pline("A hail of magic missiles strikes %s!", hittee); - } return realizes_damage; }