]> granicus.if.org Git - nethack/commitdiff
stoning message
authornethack.allison <nethack.allison>
Mon, 16 Apr 2012 00:37:49 +0000 (00:37 +0000)
committernethack.allison <nethack.allison>
Mon, 16 Apr 2012 00:37:49 +0000 (00:37 +0000)
From a bug report, 2012:
> This one's easy: the "Your limbs {are stiffening|have turned to stone}" still
> appears as such even when you're polymorphed into a form that has no limbs
> (worms, etc.).
>
> Perhaps it should be "Your extremities[...]" or similar?

src/timeout.c

index 5f0e3b0477b9092e35b60e1f52b3c7e280ebeb2b..fed93066fe791ee77e6bfef8702b47a2630a4bab 100644 (file)
@@ -26,10 +26,14 @@ static NEARDATA const char * const stoned_texts[] = {
 STATIC_OVL void
 stoned_dialogue()
 {
+       char buf[BUFSZ];
        register long i = (Stoned & TIMEOUT);
 
-       if (i > 0L && i <= SIZE(stoned_texts))
-               pline1(stoned_texts[SIZE(stoned_texts) - i]);
+       if (i > 0L && i <= SIZE(stoned_texts)) {
+               Strcpy(buf,stoned_texts[SIZE(stoned_texts) - i]);
+               pline1(nolimbs(youmonst.data) ?
+                       strsubst(buf, "limbs", "extremities") : buf);
+       }
        switch ((int) i) {
        case 5:         /* slowing down */
                HFast = 0L;