From 6f98f68a44ce9a24efe3ff2722d63ad327772f1b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 10 Jun 2012 06:19:16 +0200 Subject: Lua: Move Theme's non-scummy junk creation to C --- lib/mods/theme/scpt/misc.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/mods') 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 -- cgit v1.2.3