diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-10 21:07:52 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-10 21:30:10 +0200 |
commit | 226d3565889f551c00d4fccf184c98edb12c07c7 (patch) | |
tree | a8c76716fb1f2ca9a4b5aa8c6a210013050e5461 /lib/mods/theme | |
parent | 9c849217091714882ab73d03c6f11efb7f610924 (diff) |
Lua: Move "Tulkas" spell functions to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r-- | lib/mods/theme/scpt/s_tulkas.lua | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/lib/mods/theme/scpt/s_tulkas.lua b/lib/mods/theme/scpt/s_tulkas.lua index 4afa8082..6659aee9 100644 --- a/lib/mods/theme/scpt/s_tulkas.lua +++ b/lib/mods/theme/scpt/s_tulkas.lua @@ -12,19 +12,8 @@ TULKAS_AIM = add_spell ["piety"] = TRUE, ["stat"] = A_WIS, ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() - local dur = get_level(TULKAS_AIM, 50) + randint(10) - local obvious - - obvious = set_strike(dur) - if get_level(TULKAS_AIM) >= 20 then - obvious = is_obvious(set_tim_deadly(dur), obvious) - end - return obvious - end, - ["info"] = function() - return "dur "..(get_level(TULKAS_AIM, 50)).."+d10" - end, + ["spell"] = function() return tulkas_divine_aim() end, + ["info"] = function() return tulkas_divine_aim_info() end, ["desc"] = { "It makes you more accurate in combat", "At level 20 all your blows are critical hits", @@ -43,15 +32,8 @@ TULKAS_WAVE = add_spell ["piety"] = TRUE, ["stat"] = A_WIS, ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() - local ret, dir = get_aim_dir() - if ret == FALSE then return end - - return fire_bolt(GF_ATTACK, dir, get_level(TULKAS_WAVE, player.num_blow)) - end, - ["info"] = function() - return "blows "..(get_level(TULKAS_WAVE, player.num_blow)) - end, + ["spell"] = function() return tulkas_wave_of_power() end, + ["info"] = function() return tulkas_wave_of_power_info() end, ["desc"] = { "It allows you to project a number of melee blows across a distance", } @@ -69,12 +51,8 @@ TULKAS_SPIN = add_spell ["piety"] = TRUE, ["stat"] = A_WIS, ["random"] = SKILL_SPIRITUALITY, - ["spell"] = function() - return fire_ball(GF_ATTACK, 0, 1, 1) - end, - ["info"] = function() - return "" - end, + ["spell"] = function() return tulkas_whirlwind() end, + ["info"] = function() return tulkas_whirlwind_info() end, ["desc"] = { "It allows you to spin around and hit all monsters nearby", } |