summaryrefslogtreecommitdiff
path: root/lib/mods/theme/core
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-09 19:47:10 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-09 19:47:44 +0200
commitd69d91b33a2e833e8b32baa29af22809ade406ba (patch)
treef7c2cbedb10da018471c230d483414f83cdfb8d7 /lib/mods/theme/core
parentca63c6bf6fa6d72b93b53cc48d06cc69b3bebe9e (diff)
Lua: Move "Far Reaching Attack" ability to C
Diffstat (limited to 'lib/mods/theme/core')
-rw-r--r--lib/mods/theme/core/player.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/mods/theme/core/player.lua b/lib/mods/theme/core/player.lua
index cb1b5cab..f5c7c13b 100644
--- a/lib/mods/theme/core/player.lua
+++ b/lib/mods/theme/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]