From 555196d334034d91c66150b1c98fe942fe400bb2 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Wed, 5 Oct 2022 23:01:07 -0400 Subject: [PATCH] Move stashed gold in #attributes to its own line 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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/insight.c b/src/insight.c index 52ce6269b..9ed83db57 100644 --- a/src/insight.c +++ b/src/insight.c @@ -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)); } - if (hmoney) { - Sprintf(eos(buf), - ", %s you %s %ld %s stashed away in your pack", - umoney ? "and" : "but", !final ? "have" : "had", - hmoney, umoney ? "more" : currency(hmoney)); - } - Strcat(buf, "."); + Strcat(buf, hmoney ? "," : "."); enlght_out(buf); + + if (hmoney) { + Sprintf(buf, "%ld %s stashed away in your pack", + hmoney, umoney ? "more" : currency(hmoney)); + enl_msg(umoney ? "and you " : "but you ", "have ", "had ", buf, + ""); + } } if (flags.pickup) {