diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-31 20:38:29 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:19 -0600 |
commit | 3ef11c3138aa1a63f592fa61dfc72a86bf76e61b (patch) | |
tree | 35e8086169e95be36147449680bfa397453fefda /crawl-ref/source/status.cc | |
parent | 9351631d8478c6c4630496da9f381199f4ba8089 (diff) | |
download | crawl-ref-3ef11c3138aa1a63f592fa61dfc72a86bf76e61b.tar.gz crawl-ref-3ef11c3138aa1a63f592fa61dfc72a86bf76e61b.zip |
Gozag: gold lust.
Fighting near the gold piles of recently-defeated enemies boosts your
skills.
Diffstat (limited to 'crawl-ref/source/status.cc')
-rw-r--r-- | crawl-ref/source/status.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crawl-ref/source/status.cc b/crawl-ref/source/status.cc index 93f1becfb7..982a3e5266 100644 --- a/crawl-ref/source/status.cc +++ b/crawl-ref/source/status.cc @@ -6,6 +6,7 @@ #include "env.h" #include "evoke.h" #include "godabil.h" +#include "godpassive.h" #include "libutil.h" #include "misc.h" #include "mutation.h" @@ -686,6 +687,26 @@ bool fill_status_info(int status, status_info* inf) } break; + case STATUS_GOLDEN: + { + const int gold_bonus = gozag_gold_bonus(); + + if (gold_bonus == 0) + break; + + inf->light_colour = (gold_bonus >= 5) ? WHITE : + (gold_bonus >= 3) ? LIGHTBLUE + : BLUE; + + inf->light_text = "Gold"; + inf->short_text = "gold lust"; + inf->long_text = + make_stringf("Your skills are %senhanced by your lust for gold.", + gold_bonus >= 5 ? "greatly" : + gold_bonus < 3 ? "slightly" : ""); + break; + } + default: if (!found) { |