]> granicus.if.org Git - nethack/commitdiff
you summoned it!
authornethack.rankin <nethack.rankin>
Tue, 27 Dec 2005 03:45:27 +0000 (03:45 +0000)
committernethack.rankin <nethack.rankin>
Tue, 27 Dec 2005 03:45:27 +0000 (03:45 +0000)
     From a bug report, "You have summoned it!" (when human
sacrifice brings a demon which you can't see) is poorly worded, to put it
mildly.  I'm sure there are plenty of other places where "it" seems odd,
but this one is now fixed....

doc/fixes34.4
src/pray.c

index 533169d52e31e5a6622059482d58698d132fa07e..ceccd9be41205cbf4e2c0b5a2dad3df574f7424b 100644 (file)
@@ -173,6 +173,7 @@ stop multi-turn running, searching, or resting early if levitation ends
 Call command could be used to remotely identify which high priest is which
 large amorphous, whirly, noncorporeal, or slithy creatures can fit through
        tight diagonal gaps despite their size
+avoid "You summoned it!" for unseen monster produced by same-race offering
 
 
 Platform- and/or Interface-Specific Fixes
index 05d544d79bc6b0116b43d70ceeaa6b987ec9e2d0..48d5bff92ba1d5ce249645211d2cf65de31abbf1 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)pray.c     3.5     2005/08/31      */
+/*     SCCS Id: @(#)pray.c     3.5     2005/12/26      */
 /* Copyright (c) Benson I. Margulies, Mike Stephenson, Steve Linhart, 1989. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1242,8 +1242,13 @@ dosacrifice()
                    demonless_msg = "blood coagulates";
                }
                if ((pm = dlord(altaralign)) != NON_PM &&
-                   (dmon = makemon(&mons[pm], u.ux, u.uy, NO_MM_FLAGS))) {
-                   You("have summoned %s!", a_monnam(dmon));
+                 (dmon = makemon(&mons[pm], u.ux, u.uy, NO_MM_FLAGS)) != 0) {
+                   char dbuf[BUFSZ];
+
+                   Strcpy(dbuf, a_monnam(dmon));
+                   if (!strcmpi(dbuf, "it"))
+                       Strcpy(dbuf, "something dreadful");
+                   You("have summoned %s!", dbuf);
                    if (sgn(u.ualign.type) == sgn(dmon->data->maligntyp))
                        dmon->mpeaceful = TRUE;
                    You("are terrified, and unable to move.");