summaryrefslogtreecommitdiff
path: root/lib/mods
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-13 10:15:07 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-13 10:15:07 +0200
commit2d57accf3a3c68e7eb41571eadf54ca2c7c4607f (patch)
treeeb7177f4f367cad454921aff4442f7d6dc8908b2 /lib/mods
parent6d8f14307f6e9ad22c7b34ad7a7058537cb6b738 (diff)
Lua: Move Demonology wield slot implementation to C
Diffstat (limited to 'lib/mods')
-rw-r--r--lib/mods/theme/scpt/s_demon.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/mods/theme/scpt/s_demon.lua b/lib/mods/theme/scpt/s_demon.lua
index d8f29a60..8bf14c21 100644
--- a/lib/mods/theme/scpt/s_demon.lua
+++ b/lib/mods/theme/scpt/s_demon.lua
@@ -164,33 +164,3 @@ CONTROL_DEMON = add_spell
"Attempts to control a demon",
}
}
-
--- ok we need to have different wield slots
-add_hooks
-{
- [HOOK_WIELD_SLOT] = function (obj, ideal)
- if (obj.tval == TV_DAEMON_BOOK) then
- local slot
- if (obj.sval == SV_DEMONBLADE) then
- if(ideal == TRUE) then
- slot = INVEN_WIELD
- else
- slot = get_slot(INVEN_WIELD)
- end
- elseif (obj.sval == SV_DEMONSHIELD) then
- if(ideal == TRUE) then
- slot = INVEN_ARM
- else
- slot = get_slot(INVEN_ARM)
- end
- elseif (obj.sval == SV_DEMONHORN) then
- if(ideal == TRUE) then
- slot = INVEN_HEAD
- else
- slot = get_slot(INVEN_HEAD)
- end
- end
- return TRUE, slot
- end
- end,
-}