diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-06-03 10:03:07 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-06-03 10:08:00 -0600 |
commit | d03812fd80e1da99a0dd9005cdacc874c1a47764 (patch) | |
tree | 8868ad35e04548c7a4f650dec2f9d53d256c7e6b /crawl-ref/source/ability.cc | |
parent | 8bf75c48cdaf25d2baccebdcc992a5bd61795712 (diff) | |
download | crawl-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/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 143fd4eae5..a358715598 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -666,7 +666,7 @@ static int _zp_cost(const ability_def& abil) return c; } -static int _get_gold_cost(ability_type ability) +int get_gold_cost(ability_type ability) { switch (ability) { @@ -741,7 +741,7 @@ const string make_cost_description(ability_type ability) if (abil.flags & ABFLAG_GOLD) { - const int amount = _get_gold_cost(ability); + const int amount = get_gold_cost(ability); if (amount) ret += make_stringf(", %d Gold", amount); else @@ -824,7 +824,7 @@ static const string _detailed_cost_description(ability_type ability) { have_cost = true; ret << "\nGold : "; - int gold_amount = _get_gold_cost(ability); + int gold_amount = get_gold_cost(ability); if (gold_amount) ret << gold_amount; else |