allow d_trade as dialog target

This commit is contained in:
Sokomine 2024-02-13 04:01:28 +01:00
parent d52aa2e5cb
commit 55b180544f
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ yl_speak_up.execute_next_action = function(player, a_id, result_of_a_id, formnam
or not(dialog.n_dialogs[target_dialog])) then
target_dialog = d_id
end
if(target_dialog and target_dialog == "d_trade") then
yl_speak_up.show_fs(player, "trade_list")
return
end
-- the function above returns a target dialog; show that to the player
yl_speak_up.show_fs(player, "talk", {n_id = n_id, d_id = target_dialog,
alternate_text = res.alternate_text})