]> granicus.if.org Git - nethack/commitdiff
Use verbalize for player monster speech
authorMichael Meyer <me@entrez.cc>
Wed, 2 Feb 2022 18:56:49 +0000 (13:56 -0500)
committerPatR <rankin@nethack.org>
Wed, 2 Feb 2022 19:55:38 +0000 (11:55 -0800)
Attempting to chat with a player monster would inspire a witty retort,
but it was presented without quotation marks and so differed from other
types of monster speech.

src/mplayer.c

index dee1d773d6eff033b276616b55a8ea7111c6e681..a088219bc3b65a93b0c167d9d7de21fcbe80270b 100644 (file)
@@ -366,9 +366,9 @@ mplayer_talk(register struct monst* mtmp)
     if (mtmp->mpeaceful)
         return; /* will drop to humanoid talk */
 
-    pline("Talk? -- %s", mtmp->data == &mons[g.urole.mnum]
-                             ? same_class_msg[rn2(3)]
-                             : other_class_msg[rn2(3)]);
+    verbalize("Talk? -- %s", mtmp->data == &mons[g.urole.mnum]
+                                ? same_class_msg[rn2(3)]
+                                : other_class_msg[rn2(3)]);
 }
 
 /*mplayer.c*/