From: vultur-cadens Date: Sat, 21 May 2022 04:32:08 +0000 (-0700) Subject: Livelog declined wishes and (non-cursed) genocides X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53f782dcd6aed62eb32fb7adfa333c107409d28b;p=nethack Livelog declined wishes and (non-cursed) genocides --- diff --git a/src/read.c b/src/read.c index 897785068..602098886 100644 --- a/src/read.c +++ b/src/read.c @@ -2473,8 +2473,11 @@ do_class_genocide(void) } while (!*buf); /* choosing "none" preserves genocideless conduct */ if (*buf == '\033' || !strcmpi(buf, "none") - || !strcmpi(buf, "nothing")) + || !strcmpi(buf, "nothing")) { + livelog_printf(LL_GENOCIDE, + "declined to perform class genocide"); return; + } class = name_to_monclass(buf, (int *) 0); if (class == 0 && (i = name_to_mon(buf, (int *) 0)) != NON_PM) @@ -2655,6 +2658,8 @@ do_genocide(int how) if (!(how & REALLY) && (ptr = rndmonst()) != 0) break; /* remaining checks don't apply */ + livelog_printf(LL_GENOCIDE, + "declined to perform genocide"); return; } diff --git a/src/zap.c b/src/zap.c index 7a6b3a9fe..d3f157ce1 100644 --- a/src/zap.c +++ b/src/zap.c @@ -5673,6 +5673,7 @@ makewish(void) } else if (otmp == ¬hing) { /* explicitly wished for "nothing", presumably attempting to retain wishless conduct */ + livelog_printf(LL_WISH, "declined to make a wish"); return; }