From d69d91b33a2e833e8b32baa29af22809ade406ba Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 19:47:10 +0200 Subject: Lua: Move "Far Reaching Attack" ability to C --- lib/core/player.lua | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'lib/core') diff --git a/lib/core/player.lua b/lib/core/player.lua index cb1b5cab..f5c7c13b 100644 --- a/lib/core/player.lua +++ b/lib/core/player.lua @@ -56,32 +56,6 @@ function player.get_wild_coord() end ---- Mkeys - --- Create a new power -__mkey_fct = {} -function add_mkey(p) - local i - - assert(p.mkey, "No mkey mkey!") - assert(p.fct, "No mkeey fct!") - - __mkey_fct[p.mkey] = p.fct -end - -function __mkey_fct_activate(power) - if __mkey_fct[power] then - __mkey_fct[power]() - return TRUE - else - return FALSE - end -end - --- Register in the hook list -add_hook_script(HOOK_MKEY, "__mkey_fct_activate", "__mkey_fct_activate") - - -- Subraces function subrace(racem) return race_mod_info[racem + 1] -- cgit v1.2.3