summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-overview.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2011-08-02 20:08:43 +0100
committerChris Campbell <chriscampbell89@gmail.com>2011-08-02 20:32:09 +0100
commit5c0df765b8e06634c52139904c3d8c634cdbc6e8 (patch)
tree369c02f53c7ba0aef49eac08ac3a566966588dbf /crawl-ref/source/dgn-overview.cc
parentb7675004078ccb1748ea539a00cc82cec9bc12da (diff)
downloadcrawl-ref-5c0df765b8e06634c52139904c3d8c634cdbc6e8.tar.gz
crawl-ref-5c0df765b8e06634c52139904c3d8c634cdbc6e8.zip
Attempt to improve colouring for good gods you've abandoned on ^O screen
Good gods that you've abandoned but not for evil/chaos will display in magenta instead of red, to indicate that they're not actively punishing you at the moment.
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r--crawl-ref/source/dgn-overview.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc
index db89f81b53..169e986be2 100644
--- a/crawl-ref/source/dgn-overview.cc
+++ b/crawl-ref/source/dgn-overview.cc
@@ -549,8 +549,13 @@ static std::string _print_altars_for_gods(const std::vector<god_type>& gods,
colour = "darkgrey";
if (has_altar_been_seen)
colour = "white";
- if (you.penance[god])
+ // Good gods don't inflict penance unless they hate your god.
+ if (you.penance[god]
+ && (!is_good_god(god) || god_hates_your_god(god)))
colour = (you.penance[god] > 10) ? "red" : "lightred";
+ // Indicate good gods that you've abandoned, though.
+ else if (you.penance[god])
+ colour = "magenta";
else if (you.religion == god)
colour = "yellow";
else if (god_likes_your_god(god))
@@ -560,7 +565,7 @@ static std::string _print_altars_for_gods(const std::vector<god_type>& gods,
continue;
if (is_unavailable_god(god))
- colour = you.worshipped[god] ? "magenta" : "darkgrey";
+ colour = "darkgrey";
snprintf(buffer, sizeof buffer, "<%s>%s</%s>",
colour, god_name(god, false).c_str(), colour);