]> granicus.if.org Git - nethack/commitdiff
Move stashed gold in #attributes to its own line
authorMichael Meyer <me@entrez.cc>
Thu, 6 Oct 2022 03:01:07 +0000 (23:01 -0400)
committerPatR <rankin@nethack.org>
Wed, 12 Oct 2022 23:21:44 +0000 (16:21 -0700)
The line got a lot longer than most other #attributes lines when the
hero had gold both in open inventory and in stashed containers, so break
it up into two lines (using the same approach as the pantheon info in
the first section).  Maybe this isn't necessary but it does make it
stand out less.

src/insight.c

index 52ce6269befd8d029231974e0d9bd22bfe9e046c..9ed83db57394da7457ce7a185b4e6770d6c8ee80 100644 (file)
@@ -729,14 +729,15 @@ basics_enlightenment(int mode UNUSED, int final)
             Sprintf(buf, " Your wallet contain%s %ld %s", !final ? "s" : "ed",
                     umoney, currency(umoney));
         }
+        Strcat(buf, hmoney ? "," : ".");
+        enlght_out(buf);
+
         if (hmoney) {
-            Sprintf(eos(buf),
-                    ", %s you %s %ld %s stashed away in your pack",
-                    umoney ? "and" : "but", !final ? "have" : "had",
+            Sprintf(buf, "%ld %s stashed away in your pack",
                     hmoney, umoney ? "more" : currency(hmoney));
+            enl_msg(umoney ? "and you " : "but you ", "have ", "had ", buf,
+                    "");
         }
-        Strcat(buf, ".");
-        enlght_out(buf);
     }
 
     if (flags.pickup) {