summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-06-03 10:03:07 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-06-03 10:08:00 -0600
commitd03812fd80e1da99a0dd9005cdacc874c1a47764 (patch)
tree8868ad35e04548c7a4f650dec2f9d53d256c7e6b /crawl-ref/source/religion.cc
parent8bf75c48cdaf25d2baccebdcc992a5bd61795712 (diff)
downloadcrawl-ref-d03812fd80e1da99a0dd9005cdacc874c1a47764.tar.gz
crawl-ref-d03812fd80e1da99a0dd9005cdacc874c1a47764.zip
Annouce Gozag abilities only if/when you can afford them (dpeg).
This includes the ^ screen. Probably some of the messages can be reduced in length; some of them go over 80 characters now.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index fa1c239f2b..09327a108c 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -4114,8 +4114,9 @@ void god_pitch(god_type which_god)
for (int i = 0; i < MAX_GOD_ABILITIES; ++i)
{
- if (_abil_chg_message(god_gain_power_messages[you.religion][i],
- "You can now %s.", i))
+ if (you.gold >= get_gold_cost(abilities[i])
+ && _abil_chg_message(god_gain_power_messages[you.religion][i],
+ "You have enough gold to %s.", i))
{
needs_redraw = true;
}