From 750a200e609f11f317a69104f2b0afc16e1a8b27 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 9 Feb 2002 17:38:43 +0000 Subject: [PATCH] cursed genocide of "none" treat this as a creation of a random monster, which still meets the goal of not violating genocide conduct --- src/read.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)) {