summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.h
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2012-10-19 21:41:52 +0100
committerChris Campbell <chriscampbell89@gmail.com>2012-10-19 21:41:52 +0100
commit8ed4c5d963673a0a703014346db4b630d3ab3a74 (patch)
treed304612f7b359a6b1fc89762eafa4693dc9fe4ef /crawl-ref/source/spl-cast.h
parent474b3c1da66577cef74ca071184693077eb147a6 (diff)
downloadcrawl-ref-8ed4c5d963673a0a703014346db4b630d3ab3a74.tar.gz
crawl-ref-8ed4c5d963673a0a703014346db4b630d3ab3a74.zip
Remove spell memorisation failure (elliott)
So long as the spell can be cast, memorisation will now always succeed, with a warning prompt for spells with high miscast rates. Patch by elliott.
Diffstat (limited to 'crawl-ref/source/spl-cast.h')
-rw-r--r--crawl-ref/source/spl-cast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.h b/crawl-ref/source/spl-cast.h
index 6b0e7c18ef..77d3bf5372 100644
--- a/crawl-ref/source/spl-cast.h
+++ b/crawl-ref/source/spl-cast.h
@@ -71,6 +71,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);
+double get_miscast_chance(spell_type spell, int severity = 2);
int failure_rate_colour(spell_type spell);
int failure_rate_to_int(int fail);
char* failure_rate_to_string(int fail);