diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-20 12:58:20 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-20 12:58:20 +0000 |
commit | 73cc0b892413b1d8df2178ce3116266a9066384f (patch) | |
tree | 234bdb1b7c6ecced775cd8a62f1da7c897353e1d /crawl-ref/source/output.cc | |
parent | 160877d2419830c4989516e9a09fa6260a052d42 (diff) | |
download | crawl-ref-73cc0b892413b1d8df2178ce3116266a9066384f.tar.gz crawl-ref-73cc0b892413b1d8df2178ce3116266a9066384f.zip |
Properly display all enhanced stats on the "%" screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9795 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 60 |
1 files changed, 51 insertions, 9 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 89842d0fb9..6080480ec3 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1934,29 +1934,71 @@ static std::vector<formatted_string> _get_overview_stats() cols1.add_formatted(1, buf, false); if (you.strength == you.max_strength) - snprintf(buf, sizeof buf, "Str %2d", you.strength); + { + if (you.duration[DUR_DIVINE_STAMINA] || you.duration[DUR_MIGHT]) + { + snprintf(buf, sizeof buf, "Str <lightblue>%2d</lightblue>", + you.strength); + } + else + snprintf(buf, sizeof buf, "Str %2d", you.strength); + } else { - snprintf(buf, sizeof buf, "Str <yellow>%2d</yellow> (%d)", - you.strength, you.max_strength); + if (you.duration[DUR_DIVINE_STAMINA] || you.duration[DUR_MIGHT]) + { + snprintf(buf, sizeof buf, "Str <lightblue>%2d (%d)</lightblue>", + you.strength, you.max_strength); + } + else + snprintf(buf, sizeof buf, "Str <yellow>%2d</yellow> (%d)", + you.strength, you.max_strength); } cols1.add_formatted(2, buf, false); if (you.intel == you.max_intel) - snprintf(buf, sizeof buf, "Int %2d", you.intel); + { + if (you.duration[DUR_DIVINE_STAMINA]) + { + snprintf(buf, sizeof buf, "Int <lightblue>%2d</lightblue>", + you.intel); + } + else + snprintf(buf, sizeof buf, "Int %2d", you.intel); + } else { - snprintf(buf, sizeof buf, "Int <yellow>%2d</yellow> (%d)", - you.intel, you.max_intel); + if (you.duration[DUR_DIVINE_STAMINA]) + { + snprintf(buf, sizeof buf, "Int <lightblue>%2d (%d)</lightblue>", + you.intel, you.max_intel); + } + else + snprintf(buf, sizeof buf, "Int <yellow>%2d</yellow> (%d)", + you.intel, you.max_intel); } cols1.add_formatted(2, buf, false); if (you.dex == you.max_dex) - snprintf(buf, sizeof buf, "Dex %2d", you.dex); + { + if (you.duration[DUR_DIVINE_STAMINA]) + { + snprintf(buf, sizeof buf, "Dex <lightblue>%2d</lightblue>", + you.dex); + } + else + snprintf(buf, sizeof buf, "Dex %2d", you.dex); + } else { - snprintf(buf, sizeof buf, "Dex <yellow>%2d</yellow> (%d)", - you.dex, you.max_dex); + if (you.duration[DUR_DIVINE_STAMINA]) + { + snprintf(buf, sizeof buf, "Dex <lightblue>%2d (%d)</lightblue>", + you.dex, you.max_dex); + } + else + snprintf(buf, sizeof buf, "Dex <yellow>%2d</yellow> (%d)", + you.dex, you.max_dex); } cols1.add_formatted(2, buf, false); |