From 045f9b51f07144bfad80419cdff5b87d77a25267 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 1 Oct 2022 21:04:43 +0200 Subject: [PATCH] npc_gives no longer requires an explicit click on 'Done' --- exec_actions.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exec_actions.lua b/exec_actions.lua index a6cedfe..ac4f9fb 100644 --- a/exec_actions.lua +++ b/exec_actions.lua @@ -11,6 +11,10 @@ yl_speak_up.action_inv_changed = function(inv, listname, index, stack, player, h -- if not in edit mode: the player may just be normally interacting with the NPC; -- nothing to do for us here (wait for the player to click on "save") if(not(n_id) or yl_speak_up.edit_mode[pname] ~= n_id) then + if(listname and listname == "npc_gives") then + yl_speak_up.input_fs_action_npc_gives(player, "action_npc_gives", {}) + return + end return end -- is the player in the process of editing an action of the npc_gives/npc_wants type?