diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 21:34:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 22:02:48 +0200 |
commit | abd9ab4c46bab7ccd3475a31b542873130682b81 (patch) | |
tree | 50f8644cd46f8e009cedd9275fa80a15f0476221 /src/cmd2.c | |
parent | a0107d942872735f1faa0e857174a6c467180d75 (diff) |
Lua: Move "Drunk takes wine" code to C
Diffstat (limited to 'src/cmd2.c')
-rw-r--r-- | src/cmd2.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ |