diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-31 22:46:42 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:18 -0600 |
commit | 8269b048b6452ef1f92050feb1d5a6bed1a0a0d7 (patch) | |
tree | 17788b15268bb596fec2a5c3a08fc8c0d667e597 /crawl-ref/source/dgn-overview.cc | |
parent | ffe63d874a0e8ecfab8e25ddce347c9d42ef8c2f (diff) | |
download | crawl-ref-8269b048b6452ef1f92050feb1d5a6bed1a0a0d7.tar.gz crawl-ref-8269b048b6452ef1f92050feb1d5a6bed1a0a0d7.zip |
Gozag: indicate the service fee on join attempts and on ^O.
The ^O columns should be recalibrated at some point, but this doesn't do
that.
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r-- | crawl-ref/source/dgn-overview.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc index c376b21d3a..3e89ce9e19 100644 --- a/crawl-ref/source/dgn-overview.cc +++ b/crawl-ref/source/dgn-overview.cc @@ -476,8 +476,12 @@ static string _print_altars_for_gods(const vector<god_type>& gods, if (is_unavailable_god(god)) colour = "darkgrey"; + string disp_name = uppercase_first(god_name(god, false)); + if (god == GOD_GOZAG && !you_worship(GOD_GOZAG)) + disp_name += make_stringf(" ($%d)", gozag_service_fee()); + snprintf(buffer, sizeof buffer, "<%s>%s</%s>", - colour, uppercase_first(god_name(god, false)).c_str(), colour); + colour, disp_name.c_str(), colour); disp += buffer; num_printed++; @@ -487,11 +491,11 @@ static string _print_altars_for_gods(const vector<god_type>& gods, // manually aligning the god columns: ten spaces between columns switch (num_printed % columns) { - case 1: disp += string(19 - strwidth(god_name(god, false)), ' '); + case 1: disp += string(19 - strwidth(disp_name), ' '); break; - case 2: disp += string(23 - strwidth(god_name(god, false)), ' '); + case 2: disp += string(23 - strwidth(disp_name), ' '); break; - case 3: disp += string(20 - strwidth(god_name(god, false)), ' '); + case 3: disp += string(20 - strwidth(disp_name), ' '); break; } } |