summaryrefslogtreecommitdiff
path: root/src/lua_bind.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
commit0b74fd491aeda33e25a20986f40f6c461fb20f06 (patch)
tree6f1329635676b6bf995a71ba3c15a4d9f4aa42d3 /src/lua_bind.hpp
parent528a95aaef400b264203d3e8621887ea0307e9ea (diff)
Split spell_chance into device and book variants
The code calling spell_chance() always actually knows which kind of spell its looking at, so we might as well exploit that.
Diffstat (limited to 'src/lua_bind.hpp')
-rw-r--r--src/lua_bind.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lua_bind.hpp b/src/lua_bind.hpp
new file mode 100644
index 00000000..3ac8e2bc
--- /dev/null
+++ b/src/lua_bind.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "h-basic.h"
+
+/** Calculate spell failure rate for a device, i.e. a wand or staff. */
+extern s32b spell_chance_device(s32b s);
+
+/** Calculate spell failure rate for a spell book. */
+extern s32b spell_chance_book(s32b s);