Fix dango_skills error message

This commit is contained in:
GreenComfyTea
2023-09-15 12:54:59 +03:00
parent 8887f3c235
commit bd02dab872

View File

@@ -208,24 +208,24 @@ end
function this.update_dango_insurance() function this.update_dango_insurance()
if singletons.player_manager == nil then if singletons.player_manager == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: player_manager"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_manager");
return; return;
end end
if singletons.quest_manager == nil then if singletons.quest_manager == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: quest_manager"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: quest_manager");
return; return;
end end
local player_skill_list_array = get_player_skill_method:call(singletons.player_manager); local player_skill_list_array = get_player_skill_method:call(singletons.player_manager);
if player_skill_list_array == nil then if player_skill_list_array == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: player_skill_list_array"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_skill_list_array");
return; return;
end end
local player_skill_list_array_length = get_length_method:call(player_skill_list_array); local player_skill_list_array_length = get_length_method:call(player_skill_list_array);
if player_skill_list_array_length == nil then if player_skill_list_array_length == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: player_skill_array_list_length"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_skill_array_list_length");
return; return;
end end
@@ -240,13 +240,13 @@ function this.update_dango_insurance()
local player_skill_list = get_value_method:call(player_skill_list_array, player_id); local player_skill_list = get_value_method:call(player_skill_list_array, player_id);
if player_skill_list_array_length == nil then if player_skill_list_array_length == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: player_skill_list No. " .. tostring(player_id)); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_skill_list No. " .. tostring(player_id));
goto continue; goto continue;
end end
local kitchen_skill = has_kitchen_skill_method:call(player_skill_list, dango_ids.dango_insurance); local kitchen_skill = has_kitchen_skill_method:call(player_skill_list, dango_ids.dango_insurance);
if kitchen_skill == nil then if kitchen_skill == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: kitchen_skill No. " .. tostring(player_id)); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: kitchen_skill No. " .. tostring(player_id));
goto continue; goto continue;
end end
@@ -260,13 +260,13 @@ function this.update_dango_insurance()
local flag_cat_skill_insurance = flag_cat_skill_insurance_field:get_data(singletons.quest_manager); local flag_cat_skill_insurance = flag_cat_skill_insurance_field:get_data(singletons.quest_manager);
if flag_cat_skill_insurance == nil then if flag_cat_skill_insurance == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: flag_cat_skill_insurance"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: flag_cat_skill_insurance");
return; return;
end end
local is_cat_skill_insurance = is_cat_skill_insurance_method:call(singletons.quest_manager, flag_cat_skill_insurance); local is_cat_skill_insurance = is_cat_skill_insurance_method:call(singletons.quest_manager, flag_cat_skill_insurance);
if is_cat_skill_insurance == nil then if is_cat_skill_insurance == nil then
error_handler.report("consumables.update_dango_insurance", "Failed to access Data: is_cat_skill_insurance"); error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: is_cat_skill_insurance");
return; return;
end end