the dialog is randomly selected; not the option (typo)

This commit is contained in:
Sokomine 2025-01-04 18:26:23 +01:00
parent 51ab9e1ecb
commit d2fdb6da61

View File

@ -566,10 +566,10 @@ yl_speak_up.update_dialog_option = function(log, dialog, dialog_name, option_nam
-- is this option selected randomly?
if( mode == 2 and not(d_data.o_random)) then
d_data.o_random = 1
table.insert(log, log_str.."Changed DIALOG \""..tostring(o_id).."\" to RANDOMLY SELECTED.")
table.insert(log, log_str.."Changed DIALOG \""..tostring(d_id).."\" to RANDOMLY SELECTED.")
elseif(mode ~= 2 and d_data.o_random) then
d_data.o_random = nil
table.insert(log, log_str.."Changed DIALOG \""..tostring(o_id).."\" to RANDOMLY SELECTED.")
table.insert(log, log_str.."Changed DIALOG \""..tostring(d_id).."\" to RANDOMLY SELECTED.")
end
-- is this option selected automaticly if all preconditions are met?