From 3f78069df10241f1111e171ab9d1db40b33b5774 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 31 May 2012 20:23:37 +0200 Subject: Lua: Move Theme winged race armor restriction to C. --- lib/mods/theme/scpt/misc.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib') diff --git a/lib/mods/theme/scpt/misc.lua b/lib/mods/theme/scpt/misc.lua index 17eba40f..a41f9288 100644 --- a/lib/mods/theme/scpt/misc.lua +++ b/lib/mods/theme/scpt/misc.lua @@ -54,17 +54,6 @@ end add_hook_script(HOOK_GIVE, "drunk_takes_wine", "drunk_takes_wine") --- winged races are allowed soft armor only, no cloaks (from T-Plus) -function __hook_wings_wear(obj) - local str = get_race_name() - local type = obj.tval - if (str == "Dragon" or str == "Eagle") and (type == 35 or type == 37 or type == 38) then - return TRUE, -1 - end -end - -add_hook_script(HOOK_WIELD_SLOT, "__hook_wings_wear", "__hook_wings_wear") - -- A not-too-scummy way of generating junk for ammo function food_vessel(object) if ((object.tval == 80) and (object.sval == 43)) or -- cgit v1.2.3