diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-17 08:40:49 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-18 11:47:20 +0200 |
commit | 159e8b3ec190d6a99c3d42e78dc2c55bdd0f6f41 (patch) | |
tree | d62350d07472fe091aa3c7d39fbbca3649636623 /src/lua_bind.c | |
parent | ccb4ffd3033ac953c064b590709e0a88ff659003 (diff) |
Lua: Separate get_spell_info() function
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r-- | src/lua_bind.c | 5 |
1 files changed, 4 insertions, 1 deletions
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)); +} |