diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-19 12:03:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-24 16:46:35 +0200 |
commit | 524c0714a8d8f48ec3f693f39fac1bc1b5b316ad (patch) | |
tree | 8c9837a5e2e34dae7022a9a171cbaacae6a90a6f /src/spells3.c | |
parent | c6962a534553324d1fd6d548f5a648827f762b5d (diff) |
Lua: Move Geomancy spell dependency functions to C
Diffstat (limited to 'src/spells3.c')
-rw-r--r-- | src/spells3.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/spells3.c b/src/spells3.c index cf839b79..e7dabb83 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -1594,6 +1594,11 @@ char *geomancy_vaporize_info() return buf; } +bool_ geomancy_vaporize_depends() +{ + return get_skill(SKILL_AIR) >= 4; +} + bool_ *geomancy_geolysis() { int dir = 0; @@ -1618,6 +1623,11 @@ char *geomancy_geolysis_info() return buf; } +bool_ geomancy_geolysis_depends() +{ + return get_skill(SKILL_EARTH) >= 7; +} + bool_ *geomancy_dripping_tread() { if (p_ptr->dripping_tread == 0) @@ -1643,6 +1653,11 @@ char *geomancy_dripping_tread_info() return buf; } +bool_ geomancy_dripping_tread_depends() +{ + return get_skill(SKILL_WATER) >= 10; +} + bool_ *geomancy_grow_barrier() { int dir = 0; @@ -1664,6 +1679,11 @@ char *geomancy_grow_barrier_info() return ""; } +bool_ geomancy_grow_barrier_depends() +{ + return get_skill(SKILL_EARTH) >= 12; +} + typedef struct geo_summon geo_summon; struct geo_summon { s16b feat; |