From 159e8b3ec190d6a99c3d42e78dc2c55bdd0f6f41 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 17 May 2012 08:40:49 +0200 Subject: Lua: Separate get_spell_info() function --- src/lua_bind.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lua_bind.c') diff --git a/src/lua_bind.c b/src/lua_bind.c index a019004b..11f47bca 100644 --- a/src/lua_bind.c +++ b/src/lua_bind.c @@ -577,4 +577,7 @@ void timer_aggravate_evil_callback() dispel_evil(0); } - +cptr get_spell_info(s32b s) +{ + return string_exec_lua(format("return __spell_info[" FMTs32b "]()", s)); +} -- cgit v1.2.3