diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 09:29:06 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 09:29:06 +0200 |
commit | 6987232c337535eb3b7f7de14ae0637d6f4b3d1d (patch) | |
tree | 2aca2263098956a5828e53eb87460532147e362e /lib | |
parent | 6763d205ca391d8a4c1544afbcfceddf5ec54c77 (diff) |
Lua: Move "identify object with spell slot" help to C
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mods/theme/scpt/help.lua | 19 | ||||
-rw-r--r-- | lib/scpt/help.lua | 19 |
2 files changed, 0 insertions, 38 deletions
diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index d827e5dc..d9f637bd 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -221,25 +221,6 @@ ingame_help ingame_help { - ["hook"] = HOOK_IDENTIFY, - ["event"] = function(i, mode) - if mode == "full" then - local obj = get_object(i) - local f1, f2, f3, f4, f5, esp = object_flags(obj) - if band(f5, TR5_SPELL_CONTAIN) ~= 0 then return TRUE end - end - end, - ["desc"] = - { - "Ah, an item that can contain a spell. To use it you must have some levels of", - "Magic skill and then you get the option to copy a spell when pressing m.", - "Then just select which spell to copy and to which object. Note that doing so", - "is permanent; the spell cannot be removed or changed later.", - } -} - -ingame_help -{ ["hook"] = HOOK_RECALC_SKILLS, ["event"] = function() if game.started and (get_melee_skills() > 1) then return TRUE end end, ["desc"] = diff --git a/lib/scpt/help.lua b/lib/scpt/help.lua index bbda148d..0ee307cb 100644 --- a/lib/scpt/help.lua +++ b/lib/scpt/help.lua @@ -187,25 +187,6 @@ ingame_help ingame_help { - ["hook"] = HOOK_IDENTIFY, - ["event"] = function(i, mode) - if mode == "full" then - local obj = get_object(i) - local f1, f2, f3, f4, f5, esp = object_flags(obj) - if band(f5, TR5_SPELL_CONTAIN) ~= 0 then return TRUE end - end - end, - ["desc"] = - { - "Ah, an item that can contain a spell. To use it you must have some levels of", - "Magic skill and then you get the option to copy a spell when pressing m.", - "Then just select which spell to copy and to which object. Note that doing so", - "is permanent; the spell cannot be removed or changed later.", - } -} - -ingame_help -{ ["hook"] = HOOK_RECALC_SKILLS, ["event"] = function() if game.started and (get_melee_skills() > 1) then return TRUE end end, ["desc"] = |