summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 19:25:00 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 20:19:16 +0200
commit462adc54506f1555582a60eb35ca077317185f05 (patch)
tree9a589398ef6d85de7d34c58a98c303c33bc5bf24 /lib
parent5180b7b60f69b9a4a7642328df3a292cadb9fd49 (diff)
Lua: Gods: Move Varda's HOOK_PROCESS_WORLD to C
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/gods_new.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/mods/theme/scpt/gods_new.lua b/lib/mods/theme/scpt/gods_new.lua
index 0a3b7283..2c227a3f 100644
--- a/lib/mods/theme/scpt/gods_new.lua
+++ b/lib/mods/theme/scpt/gods_new.lua
@@ -141,33 +141,6 @@ GOD_VARDA = add_god
},
["hooks"] =
{
- [HOOK_PROCESS_WORLD] = function()
- if (player.pgod == GOD_VARDA) then
- GRACE_DELAY = GRACE_DELAY + 1
-
- -- piety increase if in light
- if (GRACE_DELAY >= 15) then
- if band(cave(player.py, player.px).info, CAVE_GLOW) ~= 0 then
- set_grace(player.grace + 2)
- end
- if (
- (get_race_name() == "Orc") or
- (get_race_name() == "Troll") or
- (get_race_name() == "Dragon") or
- (get_race_name() == "Demon")) then
- -- Varda hates evils
- set_grace(player.grace - 2)
- else
- set_grace(player.grace - 1)
- end
-
- if (player.praying == TRUE) then
- set_grace(player.grace - 1)
- end
- GRACE_DELAY = 0
- end
- end
- end,
[HOOK_CALC_LITE] = function()
if (player.pgod == GOD_VARDA) then
-- increase lite radius