summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 19:40:52 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 20:19:20 +0200
commit2586acc8701593574b52922af7540d3efa83b5b9 (patch)
tree4d6278fcb241ac03d40c9221f970ab423b1fa382 /lib
parent462adc54506f1555582a60eb35ca077317185f05 (diff)
Lua: Gods: Move Ulmo's HOOK_PROCESS_WORLD to C
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/gods_new.lua39
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/mods/theme/scpt/gods_new.lua b/lib/mods/theme/scpt/gods_new.lua
index 2c227a3f..8f97441a 100644
--- a/lib/mods/theme/scpt/gods_new.lua
+++ b/lib/mods/theme/scpt/gods_new.lua
@@ -204,45 +204,6 @@ GOD_ULMO = add_god
end
end
end,
- [HOOK_PROCESS_WORLD] = function()
- if (player.pgod == GOD_ULMO) then
- GRACE_DELAY = GRACE_DELAY + 1
- if GRACE_DELAY >= 15 then
- -- Ulmo likes the Edain (except Easterlings)
- if
- (get_race_name() == "Human") or
- (get_race_name() == "Dunadan") or
- (get_race_name() == "Druadan") or
- (get_race_name() == "RohanKnight") then
- set_grace(player.grace + 1)
-
- elseif (
- (get_race_name() == "Easterling") or
- (get_race_name() == "Demon") or
- (get_race_name() == "Orc")) then
- -- hated races
- set_grace(player.grace - 2)
- else
- set_grace(player.grace + 1)
- end
-
- if (player.praying == TRUE) then
- set_grace(player.grace - 1)
- end
- -- Search inventory for axe or hammer - Gain 1 point of grace for each hammer or axe
- for i = 0, INVEN_TOTAL - 1 do
- if ((player.inventory(i).tval) == TV_POLEARM) then
- if ((player.inventory(i).sval) == SV_TRIDENT) then
- set_grace(player.grace + 1)
- end
- end
- end
-
- GRACE_DELAY = 0
- end
-
- end
- end,
},
}