]> granicus.if.org Git - nethack/commitdiff
upper case correction
authornethack.allison <nethack.allison>
Thu, 9 Dec 2004 15:47:45 +0000 (15:47 +0000)
committernethack.allison <nethack.allison>
Thu, 9 Dec 2004 15:47:45 +0000 (15:47 +0000)
Fix for first issue reported in this bug report:

<email deleted>
Sent: Thursday, December 09, 2004 7:13 AM
Subject: Two wrong messages

I would like to report two cosmetic issues:

1. "its gaze is reflected by the invisible [pet]'s shield."
Wrong capitalization.

2. The message given when decapicating an ettin {,zombie} with the Vorpal
Blade fails to mention the second head.  This could be pretty tricky to
fix, but, per <Someone>'s suggestion, the easiest explanation would be
to say that the blade's wielder cuts off both heads at once.
The patch would look similar to:
                         *dmgptr = 2 * mdef->mhp + FATAL_DAMAGE_MODIFIER;
>                        if(mdef->data==&mons[PM_ETTIN]
>                          ||mdef->data==&mons[PM_ETTIN_ZOMBIE)
>                                pline("%s goes through both necks of %s at once like butter!",
>                                      wepdesc, mon_nam(mdef));
>                        else
                         pline(behead_msg[rn2(SIZE(behead_msg))],
                               wepdesc, mon_nam(mdef));
                         otmp->dknown = TRUE;
(and the same for youdefend)

doc/fixes34.4
src/mhitm.c

index 0301c7808f4351f0eeeb882b79bda7f652fdaaba..77a9627114910da51d7d100b67383ef507cb9f68 100644 (file)
@@ -71,6 +71,7 @@ avoid "your steed is still eating" message when going through a magic portal
 cannot drink from fountain, sink or surrounding water while swallowed
 don't hallucinate anything for an exploding black light as it dies
 give blindness feedback when moving into/through stinking cloud
+fix case on monster name when monster reflects floating eye's gaze
 
 
 Platform- and/or Interface-Specific Fixes
index f085ef00efdb4b1c4ac0e7da344b481e069f41e7..04f33cd450a9c440a50c4c82f0c6491dc120348e 100644 (file)
@@ -1411,7 +1411,7 @@ int mdead;
                    if (magr->mcansee && haseyes(madat) && mdef->mcansee &&
                        (perceives(madat) || !mdef->minvis)) {
                        Sprintf(buf, "%s gaze is reflected by %%s %%s.",
-                               s_suffix(mon_nam(mdef)));
+                               s_suffix(Monnam(mdef)));
                        if (mon_reflects(magr,
                                         canseemon(magr) ? buf : (char *)0))
                                return(mdead|mhit);