diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-28 09:17:21 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:25 -0600 |
commit | 29e1f3179c50ea8e4cf13051523700896de0cd48 (patch) | |
tree | f2378eb150d571c93f93ad6614927988f0b7f8ca /crawl-ref/source/ability.cc | |
parent | 4ef5e6108ee87680daa42254938caf96cf8ae2cd (diff) | |
download | crawl-ref-29e1f3179c50ea8e4cf13051523700896de0cd48.tar.gz crawl-ref-29e1f3179c50ea8e4cf13051523700896de0cd48.zip |
Indicate gold-costing abilities properly on ability ! screen.
Relevant for Gozag.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 584faef7b1..77eeed1b91 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -801,6 +801,14 @@ static const string _detailed_cost_description(ability_type ability) } } + if (abil.flags & ABFLAG_GOLD) + { + // TODO: make this more of a field so we can display "variable" or + // "3000" or similar? + have_cost = true; + ret << "\nGold"; + } + if (!have_cost) ret << "nothing."; |