export to simple_dialogs: don't export special or generic dialogs

This commit is contained in:
Sokomine 2024-03-22 16:23:50 +01:00
parent 8236c9826e
commit 7343366d2f

View File

@ -185,7 +185,12 @@ yl_speak_up.get_fs_export = function(player, param)
local d_liste = {}
if(dialog.n_dialogs) then
for d_id, v in pairs(dialog.n_dialogs) do
table.insert(d_liste, d_id)
-- only normal dialogs - no d_trade, d_got_item, d_dynamic etc;
if(not(yl_speak_up.is_special_dialog(d_id))
-- also no generic dialogs (they do not come from this NPC)
and not(v.is_generic)) then
table.insert(d_liste, d_id)
end
end
end
table.sort(d_liste)