summaryrefslogtreecommitdiff
path: root/lib/mods/theme
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-19 12:03:08 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-24 16:46:35 +0200
commit524c0714a8d8f48ec3f693f39fac1bc1b5b316ad (patch)
tree8c9837a5e2e34dae7022a9a171cbaacae6a90a6f /lib/mods/theme
parentc6962a534553324d1fd6d548f5a648827f762b5d (diff)
Lua: Move Geomancy spell dependency functions to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r--lib/mods/theme/scpt/s_geom.lua16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/mods/theme/scpt/s_geom.lua b/lib/mods/theme/scpt/s_geom.lua
index d4ce4437..d250f38d 100644
--- a/lib/mods/theme/scpt/s_geom.lua
+++ b/lib/mods/theme/scpt/s_geom.lua
@@ -83,9 +83,7 @@ VAPORIZE = add_spell
["blind"] = FALSE,
-- Must have at least 4 Air
["random"] = 0,
- ["depend"] = function()
- if get_skill(SKILL_AIR) >= 4 then return TRUE end
- end,
+ ["depend"] = function() return geomancy_vaporize_depends() end,
["spell"] = function() return geomancy_vaporize() end,
["info"] = function() return geomancy_vaporize_info() end,
["desc"] = {
@@ -105,9 +103,7 @@ GEOLYSIS = add_spell
["blind"] = FALSE,
["random"] = 0,
-- Must have at least 7 Earth
- ["depend"] = function()
- if get_skill(SKILL_EARTH) >= 7 then return TRUE end
- end,
+ ["depend"] = function() return geomancy_geolysis_depends() end,
["spell"] = function() return geomancy_geolysis() end,
["info"] = function() return geomancy_geolysis_info() end,
["desc"] = {
@@ -128,9 +124,7 @@ DRIPPING_TREAD = add_spell
["blind"] = FALSE,
["random"] = 0,
-- Must have at least 10 Water
- ["depend"] = function()
- if get_skill(SKILL_WATER) >= 10 then return TRUE end
- end,
+ ["depend"] = function() return geomancy_dripping_tread_depends() end,
["spell"] = function() return geomancy_dripping_tread() end,
["info"] = function() return geomancy_dripping_tread_info() end,
["desc"] = {
@@ -150,9 +144,7 @@ GROW_BARRIER = add_spell
["blind"] = FALSE,
["random"] = 0,
-- Must have at least 12 Earth
- ["depend"] = function()
- if get_skill(SKILL_EARTH) >= 12 then return TRUE end
- end,
+ ["depend"] = function() return geomancy_grow_barrier_depends() end,
["spell"] = function() return geomancy_grow_barrier() end,
["info"] = function() return geomancy_grow_barrier_info() end,
["desc"] = {