summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-09 19:26:34 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-09 19:47:35 +0200
commitca63c6bf6fa6d72b93b53cc48d06cc69b3bebe9e (patch)
tree6df959264f31196bfb9a74cad3f5f8ddcd511a82 /lib
parent24778733a4fd919a7646750ebb0211dca689b245 (diff)
Lua: Move "Geomancy" ability to C
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/mkeys.lua28
-rw-r--r--lib/scpt/mkeys.lua28
2 files changed, 0 insertions, 56 deletions
diff --git a/lib/mods/theme/scpt/mkeys.lua b/lib/mods/theme/scpt/mkeys.lua
index 8bdc83bc..82fe4ede 100644
--- a/lib/mods/theme/scpt/mkeys.lua
+++ b/lib/mods/theme/scpt/mkeys.lua
@@ -1,33 +1,5 @@
-- Mkeys for skills & abilities
--- Geomancy skill
-add_mkey
-{
- ["mkey"] = 101,
- ["fct"] = function()
- local s
-
- -- No magic
- if (player.antimagic > 0) then
- msg_print("Your anti-magic field disrupts any magic attempts.")
- return
- end
-
- local obj = get_object(INVEN_WIELD)
- if (obj.k_idx <= 0) or (obj.tval ~= TV_MSTAFF) then
- msg_print('You must wield a magestaff to use Geomancy.')
- return
- end
-
- s = get_school_spell("cast", 62);
-
- -- Actualy cast the choice
- if (s ~= -1) then
- cast_school_spell(s)
- end
- end,
-}
-
-- Far reaching attack of polearms
add_mkey
{
diff --git a/lib/scpt/mkeys.lua b/lib/scpt/mkeys.lua
index 8bdc83bc..82fe4ede 100644
--- a/lib/scpt/mkeys.lua
+++ b/lib/scpt/mkeys.lua
@@ -1,33 +1,5 @@
-- Mkeys for skills & abilities
--- Geomancy skill
-add_mkey
-{
- ["mkey"] = 101,
- ["fct"] = function()
- local s
-
- -- No magic
- if (player.antimagic > 0) then
- msg_print("Your anti-magic field disrupts any magic attempts.")
- return
- end
-
- local obj = get_object(INVEN_WIELD)
- if (obj.k_idx <= 0) or (obj.tval ~= TV_MSTAFF) then
- msg_print('You must wield a magestaff to use Geomancy.')
- return
- end
-
- s = get_school_spell("cast", 62);
-
- -- Actualy cast the choice
- if (s ~= -1) then
- cast_school_spell(s)
- end
- end,
-}
-
-- Far reaching attack of polearms
add_mkey
{