]> granicus.if.org Git - nethack/commitdiff
hostile prisoner chat
authornethack.allison <nethack.allison>
Fri, 14 Apr 2006 15:26:45 +0000 (15:26 +0000)
committernethack.allison <nethack.allison>
Fri, 14 Apr 2006 15:26:45 +0000 (15:26 +0000)
<email deleted> wrote:
> * #chatting to hostile prisoners gives "This will teach you not to disturb me!"
> This only makes sense for djinn and water demons.

I don't have a clue what they should say, this only deals with
what they shouldn't say.

src/sounds.c

index ba78d2ec2be41fe345bbe00c10b8d70976b7f0ee..ddc202d4e99eb1a6d16e11b4872e64e6a9887e38 100644 (file)
@@ -643,7 +643,14 @@ register struct monst *mtmp;
                    pline_msg = "gurgles.";
                else
                    verbl_msg = "I'm free!";
-           } else verbl_msg = "This will teach you not to disturb me!";
+           } else {
+               if (ptr != &mons[PM_PRISONER])
+                   verbl_msg = "This will teach you not to disturb me!";
+#if 0
+               else
+                   verbl_msg = "??????????";
+#endif
+           }
            break;
        case MS_BOAST:  /* giants */
            if (!mtmp->mpeaceful) {