From 5ed1b1e2dc2f43baa17e27293c8fb5c403ccbaa2 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 1 May 2021 14:02:14 +0200 Subject: [PATCH] removed most debug chats for singleplayer --- functions.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/functions.lua b/functions.lua index 2072b1d..874f423 100644 --- a/functions.lua +++ b/functions.lua @@ -1722,7 +1722,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) -- detect changes to d_text: text of the dialog (what the npc is saying) if(fields.d_text and dialog.n_dialogs[ d_id ].d_text ~= fields.d_text) then - --minetest.chat_send_player("singleplayer","CHANGED: d_text (what the NPC says) was changed\n from: "..tostring( dialog.n_dialogs[ d_id ].d_text).."\n to: "..tostring(fields.d_text)) -- store that there have been changes to this npc table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], "Dialog "..d_id..": d_text (what the NPC says) was changed from \""..tostring( dialog.n_dialogs[ d_id ].d_text).."\" to \""..tostring(fields.d_text).."\".") @@ -1761,7 +1760,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) if( fields[ "text_option_"..k ] and fields[ "text_option_"..k ] ~= v.o_text_when_prerequisites_met ) then -- TODO: delete option if text is empty - --minetest.chat_send_player("singleplayer", "CHANGED: Text for option "..tostring(k).." was changed\n from: "..tostring(v.o_text_when_prerequisites_met).."\n to: "..tostring(fields[ "text_option_"..k])) -- store that there have been changes to this npc table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], "Dialog "..d_id..": The text for option "..tostring(k).." was changed from \""..tostring(v.o_text_when_prerequisites_met).."\" to \""..tostring(fields[ "text_option_"..k]).."\".") @@ -1776,7 +1774,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) if( fields[ "d_id_"..k ] and v.o_results) then for kr, vr in pairs(v.o_results) do if( vr.r_type == "dialog" and vr.r_value and vr.r_value ~= fields[ "d_id_"..k ]) then - --minetest.chat_send_player("singleplayer", "CHANGED: Target dialog for option "..tostring(k).." was changed\n from: "..tostring(vr.r_value).."\n to: "..tostring(fields[ "d_id_"..k])) -- store that there have been changes to this npc table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], "Dialog "..d_id..": The target dialog for option "..tostring(k).." was changed from "..tostring(vr.r_value).." to "..tostring(fields[ "d_id_"..k])..".") @@ -1786,7 +1783,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) end -- this might be the first option elseif( fields["d_id_"..k ]) then - --minetest.chat_send_player("singleplayer", "CHANGED: Target dialog for option "..tostring(k).." was added\n as: "..tostring(fields[ "d_id_"..k])) -- store that a new option has been added to this dialog table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], "Dialog "..d_id..": The target dialog for option "..tostring(k).." was changed from -default- to "..tostring(fields[ "d_id_"..k])..".")