made action trade work again

This commit is contained in:
Sokomine 2025-06-01 05:22:17 +02:00
parent 208cafc725
commit 2b7db390c5
2 changed files with 6 additions and 1 deletions

View File

@ -265,7 +265,8 @@ yl_speak_up.get_fs_do_trade_simple = function(player, trade_id)
"button[0.2,1.0;2.0,0.9;show_trade_list_dialog_options;Back to list]"..
"tooltip[show_trade_list_dialog_options;"..
"Click here to get back to the list of all trades\n"..
"associated with dialog options (like this one).]"
"associated with dialog options (like this one).\n"..
"This button is only shown if you can edit this NPC.]"
local dialog = yl_speak_up.speak_to[pname].dialog
local tr = dialog.trades[ trade_id ]
if( tr and tr.d_id and tr.o_id) then

View File

@ -74,6 +74,10 @@ yl_speak_up.show_fs = function(player, fs_name, param)
return
end
-- this formspec was renamed; make it usable again
if(fs_name == "trade_simple") then
fs_name = "do_trade_simple"
end
local fun = yl_speak_up.registered_forms_get_fs[fs_name]
if(fun) then
yl_speak_up.show_fs_ver(pname, "yl_speak_up:"..fs_name,