From c967266d6ff755f0590d9ea422688d3ebeea00e3 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Tue, 14 Jun 2005 04:42:16 +0000 Subject: [PATCH] growing into genocided form recently reported that after lieutenants had been genocided, he saw a sergeant drink a potion of gain level and then vanish, leaving behind its gear but no corpse. The message about growing into a lieutenant and subsequently dropping dead would only be given if the monster could be sensed via telepathy, not when it occurred in plain sight. I'm not absolutely sure that this was unintentional, since sensing the dying monster's mind might be giving additional information about what was happening. But there was no comment stating that and I think such behavior violates the principal of least surprise, so seeing it happen will now give the message too. --- doc/fixes34.4 | 2 ++ src/makemon.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index a72ea7e07..00a14057f 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -124,6 +124,8 @@ clear prompt from screen after ESC is used to abort "In what direction?" minor interface changes for interactively manipulating autopickup exceptions chatting with quest leader who was brought back from the dead gave warnings becoming green slime or mimicking gold violates "never changed form" conduct +when a monster grew into a higher form which had previously been genocided, + the message explaining its fate was only given if it was sensed via ESP Platform- and/or Interface-Specific Fixes diff --git a/src/makemon.c b/src/makemon.c index fc23c9ca3..01471a241 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)makemon.c 3.5 2004/06/12 */ +/* SCCS Id: @(#)makemon.c 3.5 2005/06/13 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1453,7 +1453,7 @@ struct monst *mtmp, *victim; if ((int)++mtmp->m_lev >= mons[newtype].mlevel && newtype != oldtype) { ptr = &mons[newtype]; if (mvitals[newtype].mvflags & G_GENOD) { /* allow G_EXTINCT */ - if (sensemon(mtmp)) + if (canspotmon(mtmp)) pline("As %s grows up into %s, %s %s!", mon_nam(mtmp), an(ptr->mname), mhe(mtmp), nonliving(ptr) ? "expires" : "dies");