summaryrefslogtreecommitdiff
path: root/lib/mods/theme/scpt/misc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mods/theme/scpt/misc.lua')
-rw-r--r--lib/mods/theme/scpt/misc.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/mods/theme/scpt/misc.lua b/lib/mods/theme/scpt/misc.lua
index 3658b528..9a3c37bb 100644
--- a/lib/mods/theme/scpt/misc.lua
+++ b/lib/mods/theme/scpt/misc.lua
@@ -22,27 +22,6 @@ function longbottom_leaf(object)
end
add_hook_script(HOOK_EAT, "longbottom_leaf", "longbottom_leaf")
--- Smeagol likes rings
-function smeagol_ring(m_idx, item)
-
- m_ptr = monster(m_idx)
- o_ptr = get_object(item)
-
- if (m_ptr.r_idx == test_monster_name("Smeagol"))
- and (o_ptr.tval == TV_RING) then
-
- cmsg_print(TERM_YELLOW, "'MY... PRECIOUSSSSS!!!'")
-
- inven_item_increase(item, -1)
- inven_item_optimize(item)
- return TRUE
- else
- return FALSE
- end
-end
-
-add_hook_script(HOOK_GIVE, "smeagol_ring", "smeagol_ring")
-
-- functions to check for Map and Key of Thror before proceeding in Erebor
-- Thank you, Massimiliano Marangio :-)
add_hooks