From: cohrs Date: Sat, 9 Feb 2002 17:38:43 +0000 (+0000) Subject: cursed genocide of "none" X-Git-Tag: MOVE2GIT~3219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=750a200e609f11f317a69104f2b0afc16e1a8b27;p=nethack cursed genocide of "none" treat this as a creation of a random monster, which still meets the goal of not violating genocide conduct --- diff --git a/src/read.c b/src/read.c index 1abf5a236..b0f9bb637 100644 --- a/src/read.c +++ b/src/read.c @@ -1575,7 +1575,15 @@ int how; buf); (void)mungspaces(buf); /* choosing "none" preserves genocideless conduct */ - if (!strcmpi(buf, "none")) return; + if (!strcmpi(buf, "none")) { + /* ... but no free pass if cursed */ + if (!(how & REALLY)) { + ptr = rndmonst(); + if (!ptr) return; /* no message, like normal case */ + mndx = monsndx(ptr); + break; /* remaining checks don't apply */ + } else return; + } mndx = name_to_mon(buf); if (mndx == NON_PM || (mvitals[mndx].mvflags & G_GENOD)) {