summaryrefslogtreecommitdiff
path: root/lib/mods/theme/scpt/s_mandos.lua
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-05 20:12:21 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commit2bd0f18da7dbccd650d8a83aa457d5190f4ce1bc (patch)
treecb248715a89b2af50a5ee27cfb9a862322df331a /lib/mods/theme/scpt/s_mandos.lua
parent6548c6fb76232f4502d0856e04f169394deb6093 (diff)
Lua: Move HOOK_CALC_BONUS code for gods to C
Diffstat (limited to 'lib/mods/theme/scpt/s_mandos.lua')
-rw-r--r--lib/mods/theme/scpt/s_mandos.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/mods/theme/scpt/s_mandos.lua b/lib/mods/theme/scpt/s_mandos.lua
index cc7e346a..90876930 100644
--- a/lib/mods/theme/scpt/s_mandos.lua
+++ b/lib/mods/theme/scpt/s_mandos.lua
@@ -4,8 +4,6 @@ BOOK_MANDOS = 66
-- precognition timer for high-level spell [from T-Plus by Ingeborg S. Norden]
-add_loadsave("tim_precognition",0)
-
function set_precognition(v)
local notice = FALSE
if (v < 0) then v = 0 end
@@ -33,13 +31,6 @@ end
-- related hooks
add_hooks{
- [HOOK_CALC_BONUS] = function()
- if (tim_precognition > 0) then
- --player.precognition = TRUE
- apply_flags(0, 0, 0, TR4_PRECOGNITION, 0, 0, 0, 0, 0, 0, 0)
- end
- end,
-
[HOOK_PROCESS_WORLD] = function()
if (tim_precognition > 0) then
set_precognition(tim_precognition - 1)