summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 20:09:44 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 20:19:20 +0200
commit4904124f7669d16c28271c1b94bc78633c699723 (patch)
tree20841768fb9e2ff949faf1734b147e140d987d1e /lib
parent767d7864bbeff83c8ad2f70a86dd5b8445cdccc7 (diff)
Lua: Gods: Move Mandos's HOOK_PROCESS_WORLD to C
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/gods_new.lua33
1 files changed, 0 insertions, 33 deletions
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)