summaryrefslogtreecommitdiff
path: root/lib/mods/theme/core
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 /lib/mods/theme/core
parent6b85af588b8ef4d219bc011b7c31df07a314ba0c (diff)
Lua: Move spell_chance() to C
Diffstat (limited to 'lib/mods/theme/core')
-rw-r--r--lib/mods/theme/core/s_aux.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/mods/theme/core/s_aux.lua b/lib/mods/theme/core/s_aux.lua
index 5e514081..8ae69749 100644
--- a/lib/mods/theme/core/s_aux.lua
+++ b/lib/mods/theme/core/s_aux.lua
@@ -401,23 +401,6 @@ function spell_in_book(book, spell)
return FALSE
end
--- Returns spell chance of failure for spell
-function spell_chance(s)
- local chance, s_ptr
-
- s_ptr = spell(s)
-
- -- Extract the base spell failure rate
- if get_level_use_stick > -1 then
- chance = lua_spell_device_chance(s_ptr.fail, get_level(s, 50), s_ptr.skill_level)
- else
- chance = lua_spell_chance(s_ptr.fail, get_level(s, 50), s_ptr.skill_level, get_mana(s), get_power(s), get_spell_stat(s))
- end
-
- -- Return the chance
- return chance
-end
-
function check_affect(s, name, default)
local s_ptr = __tmp_spells[s]
local a