summaryrefslogtreecommitdiff
path: root/lib/mods/theme/core
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-06 18:31:10 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:27 +0200
commit818696e7d00a0f504f9e147ee691164ae391e0bb (patch)
tree7d7dc8c7c08f95c8eceb62e57a20a160eaa7667c /lib/mods/theme/core
parent893ab1125bb3d25c184750aa146d3d6f5d82aa10 (diff)
Lua: Remove dead Lua code dealing with corruption hooks
Diffstat (limited to 'lib/mods/theme/core')
-rw-r--r--lib/mods/theme/core/crpt_aux.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/mods/theme/core/crpt_aux.lua b/lib/mods/theme/core/crpt_aux.lua
index 85cddbf3..7703a815 100644
--- a/lib/mods/theme/core/crpt_aux.lua
+++ b/lib/mods/theme/core/crpt_aux.lua
@@ -149,23 +149,9 @@ function add_corruption(c)
__corruptions[o].oppose[__corruptions_max] = TRUE
end
- local index, h
- if type(c.hooks) == "table" then
- for index, h in c.hooks do
- add_hook_script(index, "__lua__corrupt_callback"..__corruptions_callbacks_max, "__lua__corrupt_callback"..__corruptions_callbacks_max)
- setglobal("__lua__corrupt_callback"..__corruptions_callbacks_max,
- function (...)
- if test_depend_corrupt(%__corruptions_max) == TRUE then
- return call(%h, arg)
- end
- end
- )
- __corruptions_callbacks_max = __corruptions_callbacks_max + 1
- end
- end
-
if type(c.desc) == "table" then
local new_desc = ""
+ local index, h
for index, h in c.desc do
new_desc = new_desc..h.."\n"
end