From 2290f9d4633dd19589d461d0acbb34ca4c33f277 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 16 Jun 2021 03:08:55 +0200 Subject: [PATCH] removed obsolete code --- fs_edit_options_dialog.lua | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/fs_edit_options_dialog.lua b/fs_edit_options_dialog.lua index dc87eec..15b7334 100644 --- a/fs_edit_options_dialog.lua +++ b/fs_edit_options_dialog.lua @@ -42,27 +42,7 @@ yl_speak_up.input_edit_option_dialog = function(player, formname, fields) yl_speak_up.show_fs(player, "talk", {n_id = n_id, d_id = d_id}) return end ---[[ -- TODO - -- for now, there's only trade as action - if(fields.table_of_actions) then - local trade_id = tostring(d_id).." "..tostring(o_id) - if(dialog.trades and dialog.trades[ trade_id ]) then - fields.effect_show_trade = true - else - fields.effect_add_trade = true - end - end - -- add or edit the trade associated with this dialog and option - if(fields.effect_add_trade) then - -- remember which option was selected - yl_speak_up.speak_to[pname].o_id = o_id - -- do not switch target dialog (we are in edit mode) - yl_speak_up.speak_to[pname].target_d_id = nil - -- create a new trade for this dialog and option - with ID " " - yl_speak_up.show_fs(player, "add_trade_simple", tostring(d_id).." "..tostring(o_id)) - return ---]] -- the player wants to see the previous option/answer if(fields.edit_option_prev) then -- sort all options by o_sort