completed get_fs_edit_option_effect_craft

This commit is contained in:
Sokomine 2021-07-02 17:33:04 +02:00
parent cc1c1854d6
commit bf0138cbc1

View File

@ -1539,7 +1539,10 @@ yl_speak_up.get_fs_edit_option_p_and_e_function = function(
end
yl_speak_up.get_fs_edit_option_effect_craft = function(pname, dialog, formspec, data, id_prefix, save_button, e)
-- "NPC crafts something", -- 4
-- (craft - only for effects - not for preconditions)
yl_speak_up.get_fs_edit_option_effect_craft = function(
pname, dialog, formspec, data, id_prefix, save_button, e)
if(e) then
-- those items can at least be shown as background images
data.craftresult = e[ "r_value" ]
@ -1557,7 +1560,8 @@ yl_speak_up.get_fs_edit_option_effect_craft = function(pname, dialog, formspec,
end
end
end
return "label[8,2.6;Your invnetory:]"..
return formspec..
"label[8,2.6;Your invnetory:]"..
"list[current_player;main;8,3;8,4;]"..
"label[1,3.1;Your craft grid:]"..
"list[current_player;craft;1,3.5;3,3;]"..