From 4904124f7669d16c28271c1b94bc78633c699723 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 10 Apr 2012 20:09:44 +0200 Subject: Lua: Gods: Move Mandos's HOOK_PROCESS_WORLD to C --- lib/mods/theme/scpt/gods_new.lua | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'lib/mods') diff --git a/lib/mods/theme/scpt/gods_new.lua b/lib/mods/theme/scpt/gods_new.lua index 8a5eecfa..8ad9f1a0 100644 --- a/lib/mods/theme/scpt/gods_new.lua +++ b/lib/mods/theme/scpt/gods_new.lua @@ -158,39 +158,6 @@ GOD_MANDOS = add_god }, ["hooks"] = { - [HOOK_PROCESS_WORLD] = function() - if (player.pgod == GOD_MANDOS) then - GRACE_DELAY = GRACE_DELAY + 1 - if GRACE_DELAY >= 15 then - -- He loves astral beings - if (get_subrace_name() == "LostSoul") then - set_grace(player.grace + 1) - end - - -- He likes High Elves only, though, as races - if (get_race_name() ~= "High-Elf") then - set_grace(player.grace - 1) - end - end - -- piety increase if (condition) - if (GRACE_DELAY >= 15) then - if ( - (get_subrace_name() == "Vampire") or - (get_race_name() == "Demon")) then - -- hated races - set_grace(player.grace - 10) - else - set_grace(player.grace + 2) - end - -- he really doesn't like to be disturbed - if (player.praying == TRUE) then - set_grace(player.grace - 5) - end - GRACE_DELAY = 0 - end - - end - end, [HOOK_MONSTER_DEATH] = function(m_idx) if (player.pgod == GOD_MANDOS) then m_ptr = monster(m_idx) -- cgit v1.2.3