diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-11 18:10:49 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-11 18:10:49 +0200 |
commit | c4db19005072f39faf67235d180d00eab6a4666f (patch) | |
tree | 90039d3890d58967996a132be68d8c914dc10b4f /lib/scpt/gods.lua | |
parent | 8c31b55cffc3d1d85b90126a9dd2ba6526723fcd (diff) |
Lua: Gods: Refactor HOOK_FOLLOW_GOD code to C
Diffstat (limited to 'lib/scpt/gods.lua')
-rw-r--r-- | lib/scpt/gods.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/scpt/gods.lua b/lib/scpt/gods.lua index 014a4423..f76a3d6a 100644 --- a/lib/scpt/gods.lua +++ b/lib/scpt/gods.lua @@ -1,21 +1,5 @@ add_hooks { - [HOOK_FOLLOW_GOD] = function(god, action) - if action == "ask" then - if not (god == GOD_MELKOR) then - local i = INVEN_WIELD - while i < INVEN_TOTAL do - -- 13 is ART_POWER - if player.inventory(i).name1 == 13 then - msg_print("The One Ring has corrupted you, and you are rejected.") - return TRUE - end - i = i + 1 - end - end - end - return FALSE - end, [HOOK_RECALC_SKILLS] = function() if not (player.pgod == GOD_NONE) and (get_skill(SKILL_ANTIMAGIC) > 0) then msg_print("You no longer believe.") |