summaryrefslogtreecommitdiff
path: root/src/cmd2.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-09 21:34:30 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-09 22:02:48 +0200
commitabd9ab4c46bab7ccd3475a31b542873130682b81 (patch)
tree50f8644cd46f8e009cedd9275fa80a15f0476221 /src/cmd2.c
parenta0107d942872735f1faa0e857174a6c467180d75 (diff)
Lua: Move "Drunk takes wine" code to C
Diffstat (limited to 'src/cmd2.c')
-rw-r--r--src/cmd2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd2.c b/src/cmd2.c
index a2dcfa0a..7689f46a 100644
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -5103,7 +5103,11 @@ void do_cmd_give()
/* Process hooks if there are any */
if (!process_hooks(HOOK_GIVE, "(d,d)", c_ptr->m_idx, item))
{
- msg_print("The monster does not want your item.");
+ hook_give_in in = { c_ptr->m_idx, item };
+ if (!process_hooks_new(HOOK_GIVE, &in, NULL))
+ {
+ msg_print("The monster does not want your item.");
+ }
}
/* Take a turn, even if the offer is declined */