summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-06 11:09:30 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:26 +0200
commit92e717a03262c95983d7a6bcaaa7da4923ce850f (patch)
tree8f01ea14d80d72759d1f8545f3ad3f58d0362605 /lib
parent5a91c8e154a9b55fa6ccba342f26d8bd03af140d (diff)
Lua: Remove Lua use of HOOK_QUAFF.
Diffstat (limited to 'lib')
-rw-r--r--lib/mods/theme/scpt/corrupt.lua8
-rw-r--r--lib/mods/theme/scpt/misc.lua12
-rw-r--r--lib/scpt/corrupt.lua8
3 files changed, 0 insertions, 28 deletions
diff --git a/lib/mods/theme/scpt/corrupt.lua b/lib/mods/theme/scpt/corrupt.lua
index f3ae60eb..5cacd2b7 100644
--- a/lib/mods/theme/scpt/corrupt.lua
+++ b/lib/mods/theme/scpt/corrupt.lua
@@ -129,14 +129,6 @@ CORRUPT_DEMON_BREATH = add_corruption
[HOOK_CALC_POWERS] = function()
player.add_power(PWR_BR_FIRE)
end,
- [HOOK_QUAFF] = function(obj)
- if magik(9) == TRUE then
- msg_print("Your demon breath spoils the potion!")
- return TRUE, FALSE
- else
- return FALSE
- end
- end,
},
}
diff --git a/lib/mods/theme/scpt/misc.lua b/lib/mods/theme/scpt/misc.lua
index 6738b8f3..17eba40f 100644
--- a/lib/mods/theme/scpt/misc.lua
+++ b/lib/mods/theme/scpt/misc.lua
@@ -164,18 +164,6 @@ add_building_action
end
}
--- function to make Melkor like it if a player quaffs potions of corruption
-function melkor_potion_corruption(object)
- if (player.pgod == GOD_MELKOR) then
- if (object.tval == TV_POTION) and (object.sval == SV_POTION_MUTATION) then
- msg_print("Your quaffing of this potion pleases Melkor!")
- set_grace(player.grace + 2)
- return FALSE
- end
- end
-end
-add_hook_script(HOOK_QUAFF, "melkor_potion_corruption", "melkor_potion_corruption")
-
-- function to check for Key of Orthanc before proceeding to the final level in Isengard
add_hooks
{
diff --git a/lib/scpt/corrupt.lua b/lib/scpt/corrupt.lua
index ff2b6541..ae9eff8c 100644
--- a/lib/scpt/corrupt.lua
+++ b/lib/scpt/corrupt.lua
@@ -110,14 +110,6 @@ CORRUPT_DEMON_BREATH = add_corruption
[HOOK_CALC_POWERS] = function()
player.add_power(PWR_BR_FIRE)
end,
- [HOOK_QUAFF] = function(obj)
- if magik(9) == TRUE then
- msg_print("Your demon breath spoils the potion!")
- return TRUE, FALSE
- else
- return FALSE
- end
- end,
},
}