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/effects.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/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index fb29d0b06a..0238df1b7a 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3053,6 +3053,15 @@ static void _update_corpses(int elapsedTime) { item_def &it = mitm[c]; + if (you_worship(GOD_GOZAG) && it.base_type == OBJ_GOLD) + { + bool old_aura = it.special > 0; + it.special = max(0, it.special - rot_time); + if (old_aura && !it.special) + invalidate_agrid(true); + continue; + } + if (!_food_item_needs_time_check(it)) continue; |