summaryrefslogtreecommitdiff
path: root/lib/core
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-05 20:55:25 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commitc92f7bf932d6e36c1aecd704a2a69d742ef7748d (patch)
treefbcc218187413a4e734d54de12194e53a9f00224 /lib/core
parentbfa8fa32382c89259dbf4f9301b316b7e0239344 (diff)
Lua: Remove HOOK_GF_EXEC and HOOK_GF_COLOR
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/s_aux.lua29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/core/s_aux.lua b/lib/core/s_aux.lua
index 29b22fd7..97643626 100644
--- a/lib/core/s_aux.lua
+++ b/lib/core/s_aux.lua
@@ -621,32 +621,3 @@ end
function activate_activation(spl, item)
__spell_spell[spl](item)
end
-
-
-------- Add new GF type ----------
-max_gf = MAX_GF
-function add_spell_type(t)
- t.index = max_gf
- max_gf = max_gf + 1
- assert(t.color, "No GF color")
- if not t.monster then t.monster = function() end end
- if not t.angry then t.angry = function() end end
- if not t.object then t.object = function() end end
- if not t.player then t.player = function() end end
- if not t.grid then t.grid = function() end end
-
- add_hooks
- {
- [HOOK_GF_COLOR] = function (gf, new_gfx)
- local t = %t
- if gf == t.index then return TRUE, t.color[new_gfx + 1] end
- end,
- [HOOK_GF_EXEC] = function (action, who, gf, dam, rad, y, x, extra)
- local t = %t
- if t.index == gf then
- return t[action](who, dam, rad, y, x, extra)
- end
- end,
- }
- return t.index
-end