summaryrefslogtreecommitdiff
path: root/src/spells.pkg
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-02 22:10:00 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commit2d8ba33e34c0cbab8b7db8bbd972f1b18b28b199 (patch)
tree3eaf296530d4776da4fd21e86ff85b6aab7d4432 /src/spells.pkg
parent6b85af588b8ef4d219bc011b7c31df07a314ba0c (diff)
Lua: Move spell_chance() to C
Diffstat (limited to 'src/spells.pkg')
-rw-r--r--src/spells.pkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spells.pkg b/src/spells.pkg
index 9f8ddaaa..2705737b 100644
--- a/src/spells.pkg
+++ b/src/spells.pkg
@@ -2355,6 +2355,10 @@ extern s32b lua_get_level(s32b s, s32b lvl, s32b max, s32b min, s32b bonus);
/** Get level of device */
extern s32b get_level_device(s32b s, s32b max, s32b min);
+/** Get change of failure for spell. */
+extern s32b spell_chance(s32b s);
+
+
/** @fn lua_spell_chance(s32b chance, int level, int skill_level, int mana, int cur_mana, int stat)
* @dgonly
* @brief Get the chance a spell will fail.\n