diff --git a/api/fs_edit_general.lua b/api/fs_edit_general.lua index 932916f..4092e12 100644 --- a/api/fs_edit_general.lua +++ b/api/fs_edit_general.lua @@ -2309,7 +2309,7 @@ yl_speak_up.get_sub_fs_edit_option_action_npc_wants_or_accepts = function( end amount = tostring(parts[2]) end - local size_list = {"any amount", "exactly "..amount, + local size_list = {"any amount", "exactly "..amount, "at_least "..amount, "less than "..amount, "more than "..amount, "another amount than "..amount} local match_size = 1 for i, list_text in ipairs(size_list) do diff --git a/fs/fs_edit_preconditions.lua b/fs/fs_edit_preconditions.lua index 63c4758..1cc87d2 100644 --- a/fs/fs_edit_preconditions.lua +++ b/fs/fs_edit_preconditions.lua @@ -299,6 +299,8 @@ yl_speak_up.show_precondition = function(p, pname) local match = "any amount" if(p.p_match_stack_size == "any") then match = "any amount" + elseif(p.p_match_stack_size == "at_least") then + match = "at least "..tostring(amount) elseif(p.p_match_stack_size == "exactly") then match = "exactly "..tostring(amount) elseif(p.p_match_stack_size == "less" @@ -308,7 +310,7 @@ yl_speak_up.show_precondition = function(p, pname) match = "another amount than " ..tostring(amount) end if(p.p_item_group and p.p_item_group ~= "") then - return "The player offered "..tostring(match).." item(s) of the group \"".. + return "The player offered "..tostring(match).." of item(s) of the group \"".. tostring(item).."\"." elseif((p.p_item_quest_id and p.p_item_quest_id ~= "") or (p.p_item_desc and p.p_item_desc ~= "")) then