summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.h
diff options
context:
space:
mode:
authorMichael Gagno <evilmike@gmail.com>2012-01-12 12:02:24 -0800
committerMichael Gagno <evilmike@gmail.com>2012-01-12 13:35:08 -0800
commit8caa010adc6c684ba827a465653602ef7185e3ee (patch)
treefeff3ea8738bb1812f91c256e4ff17540b7dbce4 /crawl-ref/source/spl-cast.h
parent126d714ca34eb8afe950a8ca147d9ee23190b8c3 (diff)
downloadcrawl-ref-8caa010adc6c684ba827a465653602ef7185e3ee.tar.gz
crawl-ref-8caa010adc6c684ba827a465653602ef7185e3ee.zip
Replace success adjectives with failure rate percentages. (dtsund)
This is slightly modified from the patch submitted here: https://crawl.develz.org/mantis/view.php?id=5179 The original patch uses fractions instead of percentages, but I found this to be quite visually cluttered and unhelpful. After much fretting about the best way to implement this, I settled on rounding up to 1% if your failure rate is below 1% but above 0. I tried some alternatives, but I find this way to be the easiest for me to visually parse at a quick glance at my spell list. If this is unideal, it's very easy to change.
Diffstat (limited to 'crawl-ref/source/spl-cast.h')
-rw-r--r--crawl-ref/source/spl-cast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.h b/crawl-ref/source/spl-cast.h
index ea0663bbde..2ef1471d7c 100644
--- a/crawl-ref/source/spl-cast.h
+++ b/crawl-ref/source/spl-cast.h
@@ -73,7 +73,7 @@ void do_cast_spell_cmd(bool force);
spret_type your_spells(spell_type spell, int powc = 0, bool allow_fail = true,
bool check_range = true);
-const char* failure_rate_to_string(int fail);
+char* failure_rate_to_string(int fail);
std::string spell_power_string(spell_type spell, bool rod = false);
std::string spell_range_string(spell_type spell, bool rod = false);