]> granicus.if.org Git - nethack/commitdiff
growth feedback
authornethack.rankin <nethack.rankin>
Tue, 3 Oct 2006 05:28:54 +0000 (05:28 +0000)
committernethack.rankin <nethack.rankin>
Tue, 3 Oct 2006 05:28:54 +0000 (05:28 +0000)
     Fido grows up into a large dog.
     The soldier becomes a sargeant.

Similar feedback was previously given only when the monster was going to be
killed off due to its new form having been genocided.

doc/fixes34.4
src/makemon.c

index f866d992f8b1c7d5a737cbf7754e0c9f2ceb811f..e2cda30c06d393b10257884d1eca5fba2c92c9b4 100644 (file)
@@ -297,6 +297,7 @@ support ^R (and ^L in numpad mode) to request display repaint during direction
        choosing and location choosing prompting modes
 intelligent pets will use keys to unlock doors
 destroyed drawbridge leaves some iron chains
+give feedback when a nearby monster grows into a stronger form
 
 
 Platform- and/or Interface-Specific New Features
index 0c64c7f0b7323fdd9250362fe99c0c65871dcaa3..3536dce429dfd6bd808cc903f05b3b4ddb115f32 100644 (file)
@@ -1507,6 +1507,10 @@ struct monst *mtmp, *victim;
                set_mon_data(mtmp, ptr, -1);    /* keep mvitals[] accurate */
                mondied(mtmp);
                return (struct permonst *)0;
+           } else if (canspotmon(mtmp)) {
+               pline("%s %s %s.", Monnam(mtmp),
+                     humanoid(ptr) ? "becomes" : "grows up into",
+                     an(ptr->mname));
            }
            set_mon_data(mtmp, ptr, 1);         /* preserve intrinsics */
            newsym(mtmp->mx, mtmp->my);         /* color may change */