diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-06 10:52:15 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:28:26 +0200 |
commit | 05fedc33f23a2459c4149f2a0970f01ae2602a62 (patch) | |
tree | 2b1912084bfbf6dde0a7c929b0aa69c29bbcb333 /lib/mods | |
parent | 0b42d7ebfc1abd8b8620109bb996e2cee18e9f79 (diff) |
Lua: Move uses of HOOK_READ to C
Diffstat (limited to 'lib/mods')
-rw-r--r-- | lib/mods/theme/scpt/corrupt.lua | 11 | ||||
-rw-r--r-- | lib/mods/theme/scpt/misc.lua | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/mods/theme/scpt/corrupt.lua b/lib/mods/theme/scpt/corrupt.lua index 51d7233b..f3ae60eb 100644 --- a/lib/mods/theme/scpt/corrupt.lua +++ b/lib/mods/theme/scpt/corrupt.lua @@ -13,17 +13,6 @@ CORRUPT_BALROG_AURA = add_corruption " Surrounds you with a fiery aura", " But it can burn scrolls when you read them" }, - ["hooks"] = - { - [HOOK_READ] = function(obj) - if magik(5) == TRUE then - msg_print("Your demon aura burns the scroll before you read it!") - return TRUE, TRUE, FALSE - else - return FALSE - end - end, - }, } CORRUPT_BALROG_WINGS = add_corruption diff --git a/lib/mods/theme/scpt/misc.lua b/lib/mods/theme/scpt/misc.lua index acb45f3c..6738b8f3 100644 --- a/lib/mods/theme/scpt/misc.lua +++ b/lib/mods/theme/scpt/misc.lua @@ -1,14 +1,3 @@ --- New scrolls -function sterilize_scroll(tval, sval) - if tval == 70 and sval == 54 then - msg_print("A neutralising wave radiates from you!") - set_no_breeders(randint(100) + 100) - return TRUE - end -end - -add_hook_script(HOOK_READ, "sterilize_scroll", "sterilize_scroll") - -- Neil's automagic statgain script player.last_rewarded_level = 1 |