summaryrefslogtreecommitdiff
path: root/lib/mods/theme
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-09 21:55:59 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-09 22:04:00 +0200
commit83d2d89462f4b03419019e23d73665f0472b687b (patch)
tree6baa45bcde273c3c93f3f68587c25c39ba94e2ff /lib/mods/theme
parentf586b932a44f06bc17336cd8332bec43f17d3d88 (diff)
Lua: Move "Smeagol takes RoI" code to C
Diffstat (limited to 'lib/mods/theme')
-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