]> granicus.if.org Git - nethack/commitdiff
Livelog declined wishes and (non-cursed) genocides
authorvultur-cadens <cathartes@posteo.net>
Sat, 21 May 2022 04:32:08 +0000 (21:32 -0700)
committerPatR <rankin@nethack.org>
Thu, 2 Jun 2022 13:57:53 +0000 (06:57 -0700)
src/read.c
src/zap.c

index 897785068dc171c3efa4d3a087708ff275cb77de..602098886176b20dac127aef2ae1a89deeb31500 100644 (file)
@@ -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;
             }
 
index 7a6b3a9feeef7f865c71c5f919cc65932b10d5bf..d3f157ce10570aa0be4357ea9481c83870fe6d8a 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -5673,6 +5673,7 @@ makewish(void)
     } else if (otmp == &nothing) {
         /* explicitly wished for "nothing", presumably attempting
            to retain wishless conduct */
+        livelog_printf(LL_WISH, "declined to make a wish");
         return;
     }