summaryrefslogtreecommitdiff
path: root/lib/mods/theme
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-10 06:19:16 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-10 06:19:40 +0200
commit6f98f68a44ce9a24efe3ff2722d63ad327772f1b (patch)
tree06f26e22777ebc43f1294dc8f75ca64f1cd7b3c4 /lib/mods/theme
parent9d06a4324a7f5daac169c0b2b1640696578aee08 (diff)
Lua: Move Theme's non-scummy junk creation to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r--lib/mods/theme/scpt/misc.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/mods/theme/scpt/misc.lua b/lib/mods/theme/scpt/misc.lua
index 6205678a..15f9e4eb 100644
--- a/lib/mods/theme/scpt/misc.lua
+++ b/lib/mods/theme/scpt/misc.lua
@@ -1,17 +1,3 @@
--- A not-too-scummy way of generating junk for ammo
-function food_vessel(object)
- if ((object.tval == 80) and (object.sval == 43)) or
- ((object.tval == 80) and (object.sval == 44)) then
- local obj = create_object(TV_JUNK, 3)
- obj.ident = bor(obj.ident, IDENT_MENTAL, IDENT_KNOWN)
- inven_carry(obj, FALSE)
- end_object(obj)
- return FALSE
- end
-end
-
-add_hook_script(HOOK_EAT, "food_vessel", "food_vessel")
-
-- functions to check for Map and Key of Thror before proceeding in Erebor
-- Thank you, Massimiliano Marangio :-)
add_hooks