mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Grammar
This commit is contained in:
@@ -253,7 +253,7 @@ function this.update_poison(player)
|
|||||||
|
|
||||||
local poison_level = poison_level_field:get_data(player);
|
local poison_level = poison_level_field:get_data(player);
|
||||||
if poison_level == nil then
|
if poison_level == nil then
|
||||||
error_handler.report("abnormal_statuses.update_poison", "Failed to access Data: poison_level");
|
error_handler.report("abnormal_statuses.update_poison", "Failed to Access Data: poison_level");
|
||||||
this.list.poison = nil;
|
this.list.poison = nil;
|
||||||
this.list.deadly_poison = nil;
|
this.list.deadly_poison = nil;
|
||||||
return;
|
return;
|
||||||
@@ -290,7 +290,7 @@ function this.update_bubbleblight(player)
|
|||||||
|
|
||||||
local bubble_type = bubble_type_field:get_data(player);
|
local bubble_type = bubble_type_field:get_data(player);
|
||||||
if bubble_type == nil then
|
if bubble_type == nil then
|
||||||
error_handler.report("abnormal_statuses.update_bubbleblight", "Failed to access Data: bubble_Type");
|
error_handler.report("abnormal_statuses.update_bubbleblight", "Failed to Access Data: bubble_Type");
|
||||||
this.list.minor_bubbleblight = nil;
|
this.list.minor_bubbleblight = nil;
|
||||||
this.list.major_bubbleblight = nil;
|
this.list.major_bubbleblight = nil;
|
||||||
return;
|
return;
|
||||||
@@ -318,14 +318,14 @@ function this.update_muck(player)
|
|||||||
|
|
||||||
local is_mud_damage = get_is_mud_damage_method:call(player);
|
local is_mud_damage = get_is_mud_damage_method:call(player);
|
||||||
if is_mud_damage == nil then
|
if is_mud_damage == nil then
|
||||||
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to access Data: is_mud_damage");
|
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to Access Data: is_mud_damage");
|
||||||
this.list.muck = nil;
|
this.list.muck = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_gold_mud_damage = get_is_gold_mud_damage_method:call(player);
|
local is_gold_mud_damage = get_is_gold_mud_damage_method:call(player);
|
||||||
if is_gold_mud_damage == nil then
|
if is_gold_mud_damage == nil then
|
||||||
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to access Data: is_gold_mud_damage");
|
error_handler.report("abnormal_statuses.update_generic_boolean_value_method", "Failed to Access Data: is_gold_mud_damage");
|
||||||
this.list.muck = nil;
|
this.list.muck = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -345,14 +345,14 @@ function this.update_frenzy_infection(player)
|
|||||||
|
|
||||||
local virus_accumulator_value = virus_accumulator_field:get_data(player);
|
local virus_accumulator_value = virus_accumulator_field:get_data(player);
|
||||||
if virus_accumulator_value == nil then
|
if virus_accumulator_value == nil then
|
||||||
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to access Data: virus_accumulator_value");
|
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to Access Data: virus_accumulator_value");
|
||||||
this.list.frenzy_infection = nil;
|
this.list.frenzy_infection = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local virus_timer = virus_timer_field:get_data(player);
|
local virus_timer = virus_timer_field:get_data(player);
|
||||||
if virus_timer == nil then
|
if virus_timer == nil then
|
||||||
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to access Data: virus_timer");
|
error_handler.report("abnormal_statuses.update_frenzy_infection", "Failed to Access Data: virus_timer");
|
||||||
this.list.frenzy_infection = nil;
|
this.list.frenzy_infection = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -142,13 +142,17 @@ function this.init_names()
|
|||||||
misc_buffs.init_names();
|
misc_buffs.init_names();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local tere = {};
|
||||||
|
local tere2 = {};
|
||||||
|
local tere3 = {};
|
||||||
|
|
||||||
function this.update()
|
function this.update()
|
||||||
if not config.current_config.buff_UI.enabled then
|
if not config.current_config.buff_UI.enabled then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: player_manager");
|
error_handler.report("buffs.update", "Failed to Access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -160,7 +164,7 @@ function this.update()
|
|||||||
|
|
||||||
local master_player = find_master_player_method:call(singletons.player_manager);
|
local master_player = find_master_player_method:call(singletons.player_manager);
|
||||||
if master_player == nil then
|
if master_player == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: master_player");
|
error_handler.report("buffs.update", "Failed to Access Data: master_player");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -168,24 +172,24 @@ function this.update()
|
|||||||
|
|
||||||
local master_player_data = get_player_data_method:call(master_player);
|
local master_player_data = get_player_data_method:call(master_player);
|
||||||
if master_player_data == nil then
|
if master_player_data == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: master_player_data");
|
error_handler.report("buffs.update", "Failed to Access Data: master_player_data");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local weapon_type = player_weapon_type_field:get_data(master_player);
|
local weapon_type = player_weapon_type_field:get_data(master_player);
|
||||||
if weapon_type == nil then
|
if weapon_type == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: weapon_type");
|
error_handler.report("buffs.update", "Failed to Access Data: weapon_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: player_manager");
|
error_handler.report("buffs.update", "Failed to Access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager);
|
||||||
if item_parameter == nil then
|
if item_parameter == nil then
|
||||||
error_handler.report("buffs.update", "Failed to access Data: item_parameter");
|
error_handler.report("buffs.update", "Failed to Access Data: item_parameter");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -255,7 +259,7 @@ function this.update_generic_buff(buff_list, filter_list, get_name_function,
|
|||||||
end
|
end
|
||||||
|
|
||||||
if value == nil then
|
if value == nil then
|
||||||
error_handler.report("buffs.update_generic_number", string.format("Failed to access Data: %s_value", buff_key));
|
error_handler.report("buffs.update_generic_number", string.format("Failed to Access Data: %s_value", buff_key));
|
||||||
buff_list[buff_key] = nil;
|
buff_list[buff_key] = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -292,7 +296,7 @@ function this.update_generic_buff(buff_list, filter_list, get_name_function,
|
|||||||
end
|
end
|
||||||
|
|
||||||
if timer == nil then
|
if timer == nil then
|
||||||
error_handler.report("buffs.update_generic_number", string.format("Failed to access Data: %s_timer", buff_key));
|
error_handler.report("buffs.update_generic_number", string.format("Failed to Access Data: %s_timer", buff_key));
|
||||||
buff_list[buff_key] = nil;
|
buff_list[buff_key] = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -220,13 +220,13 @@ function this.update_dango_insurance()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_manager");
|
error_handler.report("dango_skills.update_dango_insurance", "Failed to Access Data: player_manager");
|
||||||
this.list.dango_insurance = nil;
|
this.list.dango_insurance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: quest_manager");
|
error_handler.report("dango_skills.update_dango_insurance", "Failed to Access Data: quest_manager");
|
||||||
this.list.dango_insurance = nil;
|
this.list.dango_insurance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -235,14 +235,14 @@ 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("dango_skills.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");
|
||||||
this.list.dango_insurance = nil;
|
this.list.dango_insurance = nil;
|
||||||
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("dango_skills.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");
|
||||||
this.list.dango_insurance = nil;
|
this.list.dango_insurance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -264,7 +264,7 @@ function this.update_dango_insurance_defense_up(player_data)
|
|||||||
|
|
||||||
local insurance_def_up_lv3 = kitchen_skill_insurance_def_up_lv3_field:get_data(player_data);
|
local insurance_def_up_lv3 = kitchen_skill_insurance_def_up_lv3_field:get_data(player_data);
|
||||||
if insurance_def_up_lv3 == nil then
|
if insurance_def_up_lv3 == nil then
|
||||||
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to access Data: insurance_def_up_lv3");
|
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to Access Data: insurance_def_up_lv3");
|
||||||
this.list.dango_insurance_defense_up = nil;
|
this.list.dango_insurance_defense_up = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -273,7 +273,7 @@ function this.update_dango_insurance_defense_up(player_data)
|
|||||||
local insurance_def_up_lv4 = kitchen_skill_insurance_def_up_lv4_field:get_data(player_data);
|
local insurance_def_up_lv4 = kitchen_skill_insurance_def_up_lv4_field:get_data(player_data);
|
||||||
|
|
||||||
if insurance_def_up_lv4 == nil then
|
if insurance_def_up_lv4 == nil then
|
||||||
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to access Data: insurance_def_up_lv4");
|
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to Access Data: insurance_def_up_lv4");
|
||||||
this.list.dango_insurance_defense_up = nil;
|
this.list.dango_insurance_defense_up = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -298,7 +298,7 @@ function this.update_dango_flyer(player)
|
|||||||
|
|
||||||
local is_kitchen_skill_wire_stop_regene = get_is_kitchen_skill_wire_stop_regene_method:call(player);
|
local is_kitchen_skill_wire_stop_regene = get_is_kitchen_skill_wire_stop_regene_method:call(player);
|
||||||
if is_kitchen_skill_wire_stop_regene == nil then
|
if is_kitchen_skill_wire_stop_regene == nil then
|
||||||
error_handler.report("dango_skills.update_dango_flyer", "Failed to access Data: is_kitchen_skill_wire_stop_regene");
|
error_handler.report("dango_skills.update_dango_flyer", "Failed to Access Data: is_kitchen_skill_wire_stop_regene");
|
||||||
this.list.dango_flyer = nil;
|
this.list.dango_flyer = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -307,7 +307,7 @@ function this.update_dango_flyer(player)
|
|||||||
|
|
||||||
local is_kitchen_skill_wire_stop_heal_spd = get_is_kitchen_skill_wire_stop_heal_spd_method:call(player);
|
local is_kitchen_skill_wire_stop_heal_spd = get_is_kitchen_skill_wire_stop_heal_spd_method:call(player);
|
||||||
if is_kitchen_skill_wire_stop_heal_spd == nil then
|
if is_kitchen_skill_wire_stop_heal_spd == nil then
|
||||||
error_handler.report("dango_skills.update_dango_flyer", "Failed to access Data: is_kitchen_skill_wire_stop_heal_spd");
|
error_handler.report("dango_skills.update_dango_flyer", "Failed to Access Data: is_kitchen_skill_wire_stop_heal_spd");
|
||||||
this.list.dango_flyer = nil;
|
this.list.dango_flyer = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -338,7 +338,7 @@ function this.update_super_recovery_dango(player)
|
|||||||
|
|
||||||
local kitchen_skill_surume_regene_timer = get_kitchen_skill_surume_regene_timer_method:call(player);
|
local kitchen_skill_surume_regene_timer = get_kitchen_skill_surume_regene_timer_method:call(player);
|
||||||
if kitchen_skill_surume_regene_timer == nil then
|
if kitchen_skill_surume_regene_timer == nil then
|
||||||
error_handler.report("dango_skills.update_super_recovery_dango", "Failed to access Data: kitchen_skill_surume_regene_timer");
|
error_handler.report("dango_skills.update_super_recovery_dango", "Failed to Access Data: kitchen_skill_surume_regene_timer");
|
||||||
this.list.super_recovery_dango = nil;
|
this.list.super_recovery_dango = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -379,7 +379,7 @@ function this.get_dango_skill_name(key)
|
|||||||
|
|
||||||
local dango_skill_name = get_name_method:call(nil, dango_skill_id);
|
local dango_skill_name = get_name_method:call(nil, dango_skill_id);
|
||||||
if dango_skill_name == nil then
|
if dango_skill_name == nil then
|
||||||
error_handler.report("dango_skills.get_dango_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("dango_skills.get_dango_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ function this.update_ruby_and_gold_wirebugs(player, player_data)
|
|||||||
|
|
||||||
local marionette_mode_type = get_marionette_mode_type_method:call(player);
|
local marionette_mode_type = get_marionette_mode_type_method:call(player);
|
||||||
if marionette_mode_type == nil then
|
if marionette_mode_type == nil then
|
||||||
error_handler.report("endemic_life_buffs.update_ruby_and_gold_wirebugs", "Failed to access Data: marionette_mode_type");
|
error_handler.report("endemic_life_buffs.update_ruby_and_gold_wirebugs", "Failed to Access Data: marionette_mode_type");
|
||||||
this.list.ruby_wirebug = nil;
|
this.list.ruby_wirebug = nil;
|
||||||
this.list.gold_wirebug = nil;
|
this.list.gold_wirebug = nil;
|
||||||
end
|
end
|
||||||
@@ -169,7 +169,7 @@ function this.update_butterflame(player_data)
|
|||||||
|
|
||||||
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
||||||
if atk_up_buff_second == nil then
|
if atk_up_buff_second == nil then
|
||||||
error_handler.report("item_buffs.update_butterflame", "Failed to access Data: atk_up_buff_second");
|
error_handler.report("item_buffs.update_butterflame", "Failed to Access Data: atk_up_buff_second");
|
||||||
this.list.butterflame = nil;
|
this.list.butterflame = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -196,13 +196,13 @@ end
|
|||||||
|
|
||||||
function this.get_endemic_life_name(key)
|
function this.get_endemic_life_name(key)
|
||||||
if singletons.message_manager == nil then
|
if singletons.message_manager == nil then
|
||||||
error_handler.report("endemic_life_buffs.get_endemic_life_name", "Failed to access Data: message_manager");
|
error_handler.report("endemic_life_buffs.get_endemic_life_name", "Failed to Access Data: message_manager");
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
local endemic_life_name = get_env_creature_name_message_method:call(singletons.message_manager, env_creature.creature_ids[key]);
|
local endemic_life_name = get_env_creature_name_message_method:call(singletons.message_manager, env_creature.creature_ids[key]);
|
||||||
if endemic_life_name == nil then
|
if endemic_life_name == nil then
|
||||||
error_handler.report("endemic_life_buffs.get_endemic_life_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("endemic_life_buffs.get_endemic_life_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ function this.update_demondrug(player_data, item_parameter)
|
|||||||
|
|
||||||
local demondrug_value = atk_up_alive_field:get_data(player_data);
|
local demondrug_value = atk_up_alive_field:get_data(player_data);
|
||||||
if demondrug_value == nil then
|
if demondrug_value == nil then
|
||||||
error_handler.report("item_buffs.update_demondrug", "Failed to access Data: demondrug_value");
|
error_handler.report("item_buffs.update_demondrug", "Failed to Access Data: demondrug_value");
|
||||||
this.list.demondrug = nil;
|
this.list.demondrug = nil;
|
||||||
this.list.mega_demondrug = nil;
|
this.list.mega_demondrug = nil;
|
||||||
return;
|
return;
|
||||||
@@ -184,7 +184,7 @@ function this.update_demondrug(player_data, item_parameter)
|
|||||||
|
|
||||||
local demondrug_const_value = demondrug_atk_up_field:get_data(item_parameter);
|
local demondrug_const_value = demondrug_atk_up_field:get_data(item_parameter);
|
||||||
if demondrug_const_value == nil then
|
if demondrug_const_value == nil then
|
||||||
error_handler.report("item_buffs.update_demondrug", "Failed to access Data: demondrug_const_value");
|
error_handler.report("item_buffs.update_demondrug", "Failed to Access Data: demondrug_const_value");
|
||||||
this.list.demondrug = nil;
|
this.list.demondrug = nil;
|
||||||
this.list.mega_demondrug = nil;
|
this.list.mega_demondrug = nil;
|
||||||
return;
|
return;
|
||||||
@@ -192,7 +192,7 @@ function this.update_demondrug(player_data, item_parameter)
|
|||||||
|
|
||||||
local mega_demondrug_const_value = great_demondrug_atk_up_field:get_data(item_parameter);
|
local mega_demondrug_const_value = great_demondrug_atk_up_field:get_data(item_parameter);
|
||||||
if mega_demondrug_const_value == nil then
|
if mega_demondrug_const_value == nil then
|
||||||
error_handler.report("item_buffs.update_demondrug", "Failed to access Data: mega_demondrug_const_value");
|
error_handler.report("item_buffs.update_demondrug", "Failed to Access Data: mega_demondrug_const_value");
|
||||||
this.list.demondrug = nil;
|
this.list.demondrug = nil;
|
||||||
this.list.mega_demondrug = nil;
|
this.list.mega_demondrug = nil;
|
||||||
return;
|
return;
|
||||||
@@ -227,7 +227,7 @@ function this.update_armorskin(player_data, item_parameter)
|
|||||||
|
|
||||||
local armorskin_value = def_up_alive_field:get_data(player_data);
|
local armorskin_value = def_up_alive_field:get_data(player_data);
|
||||||
if armorskin_value == nil then
|
if armorskin_value == nil then
|
||||||
error_handler.report("item_buffs.update_armorskin", "Failed to access Data: armorskin_value");
|
error_handler.report("item_buffs.update_armorskin", "Failed to Access Data: armorskin_value");
|
||||||
this.list.armorskin = nil;
|
this.list.armorskin = nil;
|
||||||
this.list.mega_armorskin = nil;
|
this.list.mega_armorskin = nil;
|
||||||
return;
|
return;
|
||||||
@@ -241,7 +241,7 @@ function this.update_armorskin(player_data, item_parameter)
|
|||||||
|
|
||||||
local armorskin_const_value = armorskin_def_up_field:get_data(item_parameter);
|
local armorskin_const_value = armorskin_def_up_field:get_data(item_parameter);
|
||||||
if armorskin_const_value == nil then
|
if armorskin_const_value == nil then
|
||||||
error_handler.report("item_buffs.update_armorskin", "Failed to access Data: armorskin_const_value");
|
error_handler.report("item_buffs.update_armorskin", "Failed to Access Data: armorskin_const_value");
|
||||||
this.list.armorskin = nil;
|
this.list.armorskin = nil;
|
||||||
this.list.mega_armorskin = nil;
|
this.list.mega_armorskin = nil;
|
||||||
return;
|
return;
|
||||||
@@ -249,7 +249,7 @@ function this.update_armorskin(player_data, item_parameter)
|
|||||||
|
|
||||||
local mega_armorskin_const_value = great_armorskin_def_up_field:get_data(item_parameter);
|
local mega_armorskin_const_value = great_armorskin_def_up_field:get_data(item_parameter);
|
||||||
if mega_armorskin_const_value == nil then
|
if mega_armorskin_const_value == nil then
|
||||||
error_handler.report("item_buffs.update_armorskin", "Failed to access Data: mega_armorskin_const_value");
|
error_handler.report("item_buffs.update_armorskin", "Failed to Access Data: mega_armorskin_const_value");
|
||||||
this.list.armorskin = nil;
|
this.list.armorskin = nil;
|
||||||
this.list.mega_armorskin = nil;
|
this.list.mega_armorskin = nil;
|
||||||
return;
|
return;
|
||||||
@@ -280,14 +280,14 @@ function this.update_might_seed(player_data, item_parameter)
|
|||||||
|
|
||||||
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
||||||
if atk_up_buff_second == nil then
|
if atk_up_buff_second == nil then
|
||||||
error_handler.report("item_buffs.update_might_seed", "Failed to access Data: atk_up_buff_second");
|
error_handler.report("item_buffs.update_might_seed", "Failed to Access Data: atk_up_buff_second");
|
||||||
this.list.might_seed = nil;
|
this.list.might_seed = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local might_seed_atk_up = might_seed_atk_up_field:get_data(item_parameter);
|
local might_seed_atk_up = might_seed_atk_up_field:get_data(item_parameter);
|
||||||
if might_seed_atk_up == nil then
|
if might_seed_atk_up == nil then
|
||||||
error_handler.report("item_buffs.update_might_seed", "Failed to access Data: might_seed_atk_up");
|
error_handler.report("item_buffs.update_might_seed", "Failed to Access Data: might_seed_atk_up");
|
||||||
this.list.might_seed = nil;
|
this.list.might_seed = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -315,7 +315,7 @@ end
|
|||||||
function this.get_item_buff_name(key)
|
function this.get_item_buff_name(key)
|
||||||
local item_buff_name = get_name_method:call(nil, item_ids[key]);
|
local item_buff_name = get_name_method:call(nil, item_ids[key]);
|
||||||
if item_buff_name == nil then
|
if item_buff_name == nil then
|
||||||
error_handler.report("item_buffs.get_item_buff_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("item_buffs.get_item_buff_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -127,13 +127,13 @@ local get_name_method = data_shortcut_type_def:get_method("getName(snow.data.Dat
|
|||||||
function this.update(master_player)
|
function this.update(master_player)
|
||||||
local music_data_array = music_data_field:get_data(master_player);
|
local music_data_array = music_data_field:get_data(master_player);
|
||||||
if music_data_array == nil then
|
if music_data_array == nil then
|
||||||
error_handler.report("melody_effects.update", "Failed to access Data: music_data_array");
|
error_handler.report("melody_effects.update", "Failed to Access Data: music_data_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local length = get_length_method:call(music_data_array);
|
local length = get_length_method:call(music_data_array);
|
||||||
if length == nil then
|
if length == nil then
|
||||||
error_handler.report("melody_effects.update", "Failed to access Data: music_data_array -> length");
|
error_handler.report("melody_effects.update", "Failed to Access Data: music_data_array -> length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ function this.update(master_player)
|
|||||||
|
|
||||||
local music_data = get_value_method:call(music_data_array, id);
|
local music_data = get_value_method:call(music_data_array, id);
|
||||||
if music_data == nil then
|
if music_data == nil then
|
||||||
error_handler.report("melody_effects.update", "Failed to access Data: music_data No." .. tostring(id));
|
error_handler.report("melody_effects.update", "Failed to Access Data: music_data No." .. tostring(id));
|
||||||
this.list[lua_index] = nil;
|
this.list[lua_index] = nil;
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
@@ -165,7 +165,7 @@ end
|
|||||||
function this.update_melody_effect(lua_index, id, key, melody_effect, melody_data)
|
function this.update_melody_effect(lua_index, id, key, melody_effect, melody_data)
|
||||||
local melody_timer = time_field:get_data(melody_data);
|
local melody_timer = time_field:get_data(melody_data);
|
||||||
if melody_timer == nil then
|
if melody_timer == nil then
|
||||||
error_handler.report("melody_effects.update_melody_effect", "Failed to access Data: melody_timer No. " .. tostring(id));
|
error_handler.report("melody_effects.update_melody_effect", "Failed to Access Data: melody_timer No. " .. tostring(id));
|
||||||
this.list[lua_index] = nil;
|
this.list[lua_index] = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -233,7 +233,7 @@ function this.get_melody_effect_name(id)
|
|||||||
local melody_effect_name = get_name_method:call(nil, id);
|
local melody_effect_name = get_name_method:call(nil, id);
|
||||||
if melody_effect_name == nil then
|
if melody_effect_name == nil then
|
||||||
local name = string.format("Melody Effect No. %d", id);
|
local name = string.format("Melody Effect No. %d", id);
|
||||||
error_handler.report("melody_effects.get_melody_effect_name", "Failed to access Data: " .. melody_effect_name);
|
error_handler.report("melody_effects.get_melody_effect_name", "Failed to Access Data: " .. melody_effect_name);
|
||||||
return name;
|
return name;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -130,14 +130,14 @@ function this.update_attack_up(player_data, item_parameter)
|
|||||||
|
|
||||||
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
local atk_up_buff_second = atk_up_buff_second_field:get_data(player_data);
|
||||||
if atk_up_buff_second == nil then
|
if atk_up_buff_second == nil then
|
||||||
error_handler.report("item_buffs.update_attack_up", "Failed to access Data: atk_up_buff_second");
|
error_handler.report("item_buffs.update_attack_up", "Failed to Access Data: atk_up_buff_second");
|
||||||
this.list.attack_up = nil;
|
this.list.attack_up = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local might_seed_atk_up = might_seed_atk_up_field:get_data(item_parameter);
|
local might_seed_atk_up = might_seed_atk_up_field:get_data(item_parameter);
|
||||||
if might_seed_atk_up == nil then
|
if might_seed_atk_up == nil then
|
||||||
error_handler.report("item_buffs.update_might_seed", "Failed to access Data: might_seed_atk_up");
|
error_handler.report("item_buffs.update_might_seed", "Failed to Access Data: might_seed_atk_up");
|
||||||
this.list.attack_up = nil;
|
this.list.attack_up = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ end
|
|||||||
function this.get_otomo_move_name(key)
|
function this.get_otomo_move_name(key)
|
||||||
local otomo_move_name = get_name_method:call(nil, otomo_moves_ids[key]);
|
local otomo_move_name = get_name_method:call(nil, otomo_moves_ids[key]);
|
||||||
if otomo_move_name == nil then
|
if otomo_move_name == nil then
|
||||||
error_handler.report("otomo_moves.get_otomo_move_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("otomo_moves.get_otomo_move_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ end
|
|||||||
function this.get_rampage_skill_name(key)
|
function this.get_rampage_skill_name(key)
|
||||||
local rampage_skill_name = get_name_method:call(nil, rampage_skill_ids[key]);
|
local rampage_skill_name = get_name_method:call(nil, rampage_skill_ids[key]);
|
||||||
if rampage_skill_name == nil then
|
if rampage_skill_name == nil then
|
||||||
error_handler.report("rampage_skills.get_rampage_skill_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("rampage_skills.get_rampage_skill_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -472,7 +472,7 @@ end
|
|||||||
function this.update_equipped_skill_data(player)
|
function this.update_equipped_skill_data(player)
|
||||||
local player_skill_list = get_player_skill_list_method:call(player);
|
local player_skill_list = get_player_skill_list_method:call(player);
|
||||||
if player_skill_list == nil then
|
if player_skill_list == nil then
|
||||||
error_handler.report("this.update_equipped_skill_data", "Failed to access Data: player_skill_list");
|
error_handler.report("this.update_equipped_skill_data", "Failed to Access Data: player_skill_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -490,7 +490,7 @@ function this.update_equipped_skill_data(player)
|
|||||||
|
|
||||||
local skill_level = skill_lv_field:get_data(re_skill_data);
|
local skill_level = skill_lv_field:get_data(re_skill_data);
|
||||||
if skill_level == nil then
|
if skill_level == nil then
|
||||||
error_handler.report("skills.update_equipped_skill_data", string.format("Failed to access Data: %s -> skill_level", skill_key));
|
error_handler.report("skills.update_equipped_skill_data", string.format("Failed to Access Data: %s -> skill_level", skill_key));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -514,7 +514,7 @@ function this.update_wind_mantle(player, weapon_type)
|
|||||||
|
|
||||||
local is_wind_mantle_enable = is_equip_skill_226_enable_field:get_data(player);
|
local is_wind_mantle_enable = is_equip_skill_226_enable_field:get_data(player);
|
||||||
if is_wind_mantle_enable == nil then
|
if is_wind_mantle_enable == nil then
|
||||||
error_handler.report("skills.update_wind_mantle", "Failed to access Data: is_wind_mantle_enable");
|
error_handler.report("skills.update_wind_mantle", "Failed to Access Data: is_wind_mantle_enable");
|
||||||
this.list.wind_mantle = nil;
|
this.list.wind_mantle = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -526,14 +526,14 @@ function this.update_wind_mantle(player, weapon_type)
|
|||||||
|
|
||||||
local wind_mantle_timer = equip_skill_226_attack_off_timer_field:get_data(player);
|
local wind_mantle_timer = equip_skill_226_attack_off_timer_field:get_data(player);
|
||||||
if wind_mantle_timer == nil then
|
if wind_mantle_timer == nil then
|
||||||
error_handler.report("skills.update_wind_mantle", "Failed to access Data: wind_mantle_timer");
|
error_handler.report("skills.update_wind_mantle", "Failed to Access Data: wind_mantle_timer");
|
||||||
this.list.wind_mantle = nil;
|
this.list.wind_mantle = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local wind_mantle_value = equip_skill_226_attack_count_field:get_data(player);
|
local wind_mantle_value = equip_skill_226_attack_count_field:get_data(player);
|
||||||
if wind_mantle_value == nil then
|
if wind_mantle_value == nil then
|
||||||
error_handler.report("skills.update_wind_mantle", "Failed to access Data: wind_mantle_value");
|
error_handler.report("skills.update_wind_mantle", "Failed to Access Data: wind_mantle_value");
|
||||||
this.list.wind_mantle = nil;
|
this.list.wind_mantle = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -567,7 +567,7 @@ function this.update_maximum_might(player_data)
|
|||||||
|
|
||||||
local whole_body_timer = whole_body_timer_field:get_data(player_data);
|
local whole_body_timer = whole_body_timer_field:get_data(player_data);
|
||||||
if whole_body_timer == nil then
|
if whole_body_timer == nil then
|
||||||
error_handler.report("skills.update_maximum_might", "Failed to access Data: whole_body_timer");
|
error_handler.report("skills.update_maximum_might", "Failed to Access Data: whole_body_timer");
|
||||||
this.list.maximum_might = nil;
|
this.list.maximum_might = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -632,7 +632,7 @@ function this.update_bloodlust()
|
|||||||
if bloodlust == nil then
|
if bloodlust == nil then
|
||||||
local bloodlust_name = this.get_skill_name("bloodlust");
|
local bloodlust_name = this.get_skill_name("bloodlust");
|
||||||
if bloodlust_name == nil then
|
if bloodlust_name == nil then
|
||||||
error_handler.report("skills.update_bloodlust", "Failed to access Data: bloodlust_name");
|
error_handler.report("skills.update_bloodlust", "Failed to Access Data: bloodlust_name");
|
||||||
this.list.bloodlust = nil;
|
this.list.bloodlust = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -650,7 +650,7 @@ function this.update_frenzied_bloodlust(player, player_data)
|
|||||||
|
|
||||||
local hunter_wire_skill_231_num = get_hunter_wire_skill_231_num_method:call(player);
|
local hunter_wire_skill_231_num = get_hunter_wire_skill_231_num_method:call(player);
|
||||||
if hunter_wire_skill_231_num == nil then
|
if hunter_wire_skill_231_num == nil then
|
||||||
error_handler.report("skills.update_frenzied_bloodlust", "Failed to access Data: hunter_wire_skill_231_num");
|
error_handler.report("skills.update_frenzied_bloodlust", "Failed to Access Data: hunter_wire_skill_231_num");
|
||||||
this.list.frenzied_bloodlust = nil;
|
this.list.frenzied_bloodlust = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -664,14 +664,14 @@ function this.update_frenzied_bloodlust(player, player_data)
|
|||||||
|
|
||||||
local equip_skill_231_wire_num_timer = equip_skill_231_wire_num_timer_field:get_data(player_data);
|
local equip_skill_231_wire_num_timer = equip_skill_231_wire_num_timer_field:get_data(player_data);
|
||||||
if equip_skill_231_wire_num_timer == nil then
|
if equip_skill_231_wire_num_timer == nil then
|
||||||
error_handler.report("skills.update_frenzied_bloodlust", "Failed to access Data: equip_skill_231_wire_num_timer");
|
error_handler.report("skills.update_frenzied_bloodlust", "Failed to Access Data: equip_skill_231_wire_num_timer");
|
||||||
this.list.frenzied_bloodlust = nil;
|
this.list.frenzied_bloodlust = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local equip_skill_231_wp_off_timer = equip_skill_231_wp_off_timer_field:get_data(player_data);
|
local equip_skill_231_wp_off_timer = equip_skill_231_wp_off_timer_field:get_data(player_data);
|
||||||
if equip_skill_231_wp_off_timer == nil then
|
if equip_skill_231_wp_off_timer == nil then
|
||||||
error_handler.report("skills.update_frenzied_bloodlust", "Failed to access Data: equip_skill_231_wp_off_timer");
|
error_handler.report("skills.update_frenzied_bloodlust", "Failed to Access Data: equip_skill_231_wp_off_timer");
|
||||||
this.list.frenzied_bloodlust = nil;
|
this.list.frenzied_bloodlust = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -779,7 +779,7 @@ function this.update_resentment(player_data)
|
|||||||
|
|
||||||
local r_vital = r_vital_field:get_data(player_data);
|
local r_vital = r_vital_field:get_data(player_data);
|
||||||
if r_vital == nil then
|
if r_vital == nil then
|
||||||
error_handler.report("skills.update_resentment", "Failed to access Data: r_vital");
|
error_handler.report("skills.update_resentment", "Failed to Access Data: r_vital");
|
||||||
this.list.resentment = nil;
|
this.list.resentment = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -812,7 +812,7 @@ function this.update_spiribirds_call(player_data)
|
|||||||
|
|
||||||
local equip_skill_211_timer = equip_skill_211_timer_field:get_data(player_data);
|
local equip_skill_211_timer = equip_skill_211_timer_field:get_data(player_data);
|
||||||
if equip_skill_211_timer == nil then
|
if equip_skill_211_timer == nil then
|
||||||
error_handler.report("skills.update_spiribirds_call", "Failed to access Data: equip_skill_211_timer");
|
error_handler.report("skills.update_spiribirds_call", "Failed to Access Data: equip_skill_211_timer");
|
||||||
this.list.spiribirds_call = nil;
|
this.list.spiribirds_call = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -874,7 +874,7 @@ function this.get_skill_name(key)
|
|||||||
|
|
||||||
local skill_name = get_name_method:call(nil, skill_data_list[key].id);
|
local skill_name = get_name_method:call(nil, skill_data_list[key].id);
|
||||||
if skill_name == nil then
|
if skill_name == nil then
|
||||||
error_handler.report("skills.get_skill_name", string.format("Failed to access Data: %s_name", key));
|
error_handler.report("skills.get_skill_name", string.format("Failed to Access Data: %s_name", key));
|
||||||
return key;
|
return key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -586,21 +586,21 @@ function this.update_harvest_moon()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.long_sword_shell_manager == nil then
|
if singletons.long_sword_shell_manager == nil then
|
||||||
error_handler.report("weapon_skills.update_harvest_moon", "Failed to access Data: long_sword_shell_manager");
|
error_handler.report("weapon_skills.update_harvest_moon", "Failed to Access Data: long_sword_shell_manager");
|
||||||
this.list.harvest_moon = nil;
|
this.list.harvest_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local master_long_sword_shell_010_list = get_master_long_sword_shell_010s_method:call(singletons.long_sword_shell_manager, players.myself.id);
|
local master_long_sword_shell_010_list = get_master_long_sword_shell_010s_method:call(singletons.long_sword_shell_manager, players.myself.id);
|
||||||
if master_long_sword_shell_010_list == nil then
|
if master_long_sword_shell_010_list == nil then
|
||||||
error_handler.report("weapon_skills.update_harvest_moon", "Failed to access Data: master_long_sword_shell_010_list");
|
error_handler.report("weapon_skills.update_harvest_moon", "Failed to Access Data: master_long_sword_shell_010_list");
|
||||||
this.list.harvest_moon = nil;
|
this.list.harvest_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local master_long_sword_shell_010_list_count = get_long_sword_shell_010_list_count_method:call(master_long_sword_shell_010_list);
|
local master_long_sword_shell_010_list_count = get_long_sword_shell_010_list_count_method:call(master_long_sword_shell_010_list);
|
||||||
if master_long_sword_shell_010_list_count == nil then
|
if master_long_sword_shell_010_list_count == nil then
|
||||||
error_handler.report("weapon_skills.update_harvest_moon", "Failed to access Data: master_long_sword_shell_010_list_count");
|
error_handler.report("weapon_skills.update_harvest_moon", "Failed to Access Data: master_long_sword_shell_010_list_count");
|
||||||
this.list.harvest_moon = nil;
|
this.list.harvest_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -612,14 +612,14 @@ function this.update_harvest_moon()
|
|||||||
|
|
||||||
local master_long_sword_shell_010 = get_long_sword_shell_010_list_item_method:call(master_long_sword_shell_010_list, 0);
|
local master_long_sword_shell_010 = get_long_sword_shell_010_list_item_method:call(master_long_sword_shell_010_list, 0);
|
||||||
if master_long_sword_shell_010 == nil then
|
if master_long_sword_shell_010 == nil then
|
||||||
error_handler.report("weapon_skills.update_harvest_moon", "Failed to access Data: master_long_sword_shell_010");
|
error_handler.report("weapon_skills.update_harvest_moon", "Failed to Access Data: master_long_sword_shell_010");
|
||||||
this.list.harvest_moon = nil;
|
this.list.harvest_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local life_timer = long_sword_shell_010_life_timer_field:get_data(master_long_sword_shell_010);
|
local life_timer = long_sword_shell_010_life_timer_field:get_data(master_long_sword_shell_010);
|
||||||
if life_timer == nil then
|
if life_timer == nil then
|
||||||
error_handler.report("weapon_skills.update_harvest_moon", "Failed to access Data: life_timer");
|
error_handler.report("weapon_skills.update_harvest_moon", "Failed to Access Data: life_timer");
|
||||||
this.list.harvest_moon = nil;
|
this.list.harvest_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -645,7 +645,7 @@ function this.update_wyvernblast_reload(player_data)
|
|||||||
|
|
||||||
local wyvernblast_reload_timer = wyvernblast_reload_timer_field:get_data(player_data);
|
local wyvernblast_reload_timer = wyvernblast_reload_timer_field:get_data(player_data);
|
||||||
if wyvernblast_reload_timer == nil then
|
if wyvernblast_reload_timer == nil then
|
||||||
error_handler.report("weapon_skills.update_wyvernblast_reload", "Failed to access Data: heavy_bowgun_overheat_timer_field");
|
error_handler.report("weapon_skills.update_wyvernblast_reload", "Failed to Access Data: heavy_bowgun_overheat_timer_field");
|
||||||
this.list.wyvernblast_reload = nil;
|
this.list.wyvernblast_reload = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -675,21 +675,21 @@ function this.update_rising_moon()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.light_bowgun_shell_manager == nil then
|
if singletons.light_bowgun_shell_manager == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: light_bowgun_shell_manager");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: light_bowgun_shell_manager");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local light_bowgun_shell_030s_speed_boost_list = get_light_bowgun_shell_030s_speed_boost_list_method:call(singletons.light_bowgun_shell_manager);
|
local light_bowgun_shell_030s_speed_boost_list = get_light_bowgun_shell_030s_speed_boost_list_method:call(singletons.light_bowgun_shell_manager);
|
||||||
if light_bowgun_shell_030s_speed_boost_list == nil then
|
if light_bowgun_shell_030s_speed_boost_list == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: light_bowgun_shell_030s_speed_boost_list");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: light_bowgun_shell_030s_speed_boost_list");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local light_bowgun_shell_030_speed_boost_list_count = get_light_bowgun_shell_030_list_count_method:call(light_bowgun_shell_030s_speed_boost_list);
|
local light_bowgun_shell_030_speed_boost_list_count = get_light_bowgun_shell_030_list_count_method:call(light_bowgun_shell_030s_speed_boost_list);
|
||||||
if light_bowgun_shell_030_speed_boost_list_count == nil then
|
if light_bowgun_shell_030_speed_boost_list_count == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: light_bowgun_shell_030_speed_boost_list_count");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: light_bowgun_shell_030_speed_boost_list_count");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -701,14 +701,14 @@ function this.update_rising_moon()
|
|||||||
|
|
||||||
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_speed_boost_list, 0);
|
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_speed_boost_list, 0);
|
||||||
if light_bowgun_shell_030 == nil then
|
if light_bowgun_shell_030 == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: light_bowgun_shell_030");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: light_bowgun_shell_030");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_hit_enable = light_bowgun_shell_030_is_enable_hit_field:get_data(light_bowgun_shell_030);
|
local is_hit_enable = light_bowgun_shell_030_is_enable_hit_field:get_data(light_bowgun_shell_030);
|
||||||
if is_hit_enable == nil then
|
if is_hit_enable == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: is_hit_enable");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: is_hit_enable");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -720,7 +720,7 @@ function this.update_rising_moon()
|
|||||||
|
|
||||||
local timer = light_bowgun_shell_030_timer_field:get_data(light_bowgun_shell_030);
|
local timer = light_bowgun_shell_030_timer_field:get_data(light_bowgun_shell_030);
|
||||||
if timer == nil then
|
if timer == nil then
|
||||||
error_handler.report("weapon_skills.update_rising_moon", "Failed to access Data: timer");
|
error_handler.report("weapon_skills.update_rising_moon", "Failed to Access Data: timer");
|
||||||
this.list.rising_moon = nil;
|
this.list.rising_moon = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -739,21 +739,21 @@ function this.update_setting_sun()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.light_bowgun_shell_manager == nil then
|
if singletons.light_bowgun_shell_manager == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: light_bowgun_shell_manager");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: light_bowgun_shell_manager");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local light_bowgun_shell_030s_all_list = get_light_bowgun_shell_030s_all_list_method:call(singletons.light_bowgun_shell_manager);
|
local light_bowgun_shell_030s_all_list = get_light_bowgun_shell_030s_all_list_method:call(singletons.light_bowgun_shell_manager);
|
||||||
if light_bowgun_shell_030s_all_list == nil then
|
if light_bowgun_shell_030s_all_list == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: light_bowgun_shell_030s_all_list");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: light_bowgun_shell_030s_all_list");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local light_bowgun_shell_030_all_list_count = get_light_bowgun_shell_030_list_count_method:call(light_bowgun_shell_030s_all_list);
|
local light_bowgun_shell_030_all_list_count = get_light_bowgun_shell_030_list_count_method:call(light_bowgun_shell_030s_all_list);
|
||||||
if light_bowgun_shell_030_all_list_count == nil then
|
if light_bowgun_shell_030_all_list_count == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: light_bowgun_shell_030_all_list_count");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: light_bowgun_shell_030_all_list_count");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -770,14 +770,14 @@ function this.update_setting_sun()
|
|||||||
|
|
||||||
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_all_list, 0);
|
local light_bowgun_shell_030 = get_light_bowgun_shell_030_list_item_method:call(light_bowgun_shell_030s_all_list, 0);
|
||||||
if light_bowgun_shell_030 == nil then
|
if light_bowgun_shell_030 == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: light_bowgun_shell_030");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: light_bowgun_shell_030");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_hit_enable = light_bowgun_shell_030_is_enable_hit_field:get_data(light_bowgun_shell_030);
|
local is_hit_enable = light_bowgun_shell_030_is_enable_hit_field:get_data(light_bowgun_shell_030);
|
||||||
if is_hit_enable == nil then
|
if is_hit_enable == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: is_hit_enable");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: is_hit_enable");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -789,7 +789,7 @@ function this.update_setting_sun()
|
|||||||
|
|
||||||
local timer = light_bowgun_shell_030_timer_field:get_data(light_bowgun_shell_030);
|
local timer = light_bowgun_shell_030_timer_field:get_data(light_bowgun_shell_030);
|
||||||
if timer == nil then
|
if timer == nil then
|
||||||
error_handler.report("weapon_skills.update_setting_sun", "Failed to access Data: timer");
|
error_handler.report("weapon_skills.update_setting_sun", "Failed to Access Data: timer");
|
||||||
this.list.setting_sun = nil;
|
this.list.setting_sun = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -809,7 +809,7 @@ function this.update_overheat(player_data)
|
|||||||
|
|
||||||
local heavy_bowgun_overheat_timer = heavy_bowgun_overheat_timer_field:get_data(player_data);
|
local heavy_bowgun_overheat_timer = heavy_bowgun_overheat_timer_field:get_data(player_data);
|
||||||
if heavy_bowgun_overheat_timer_field == nil then
|
if heavy_bowgun_overheat_timer_field == nil then
|
||||||
error_handler.report("weapon_skills.update_overheat", "Failed to access Data: heavy_bowgun_overheat_timer_field");
|
error_handler.report("weapon_skills.update_overheat", "Failed to Access Data: heavy_bowgun_overheat_timer_field");
|
||||||
this.list.overheat = nil;
|
this.list.overheat = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -845,7 +845,7 @@ function this.update_twin_wine(player)
|
|||||||
|
|
||||||
local chain_death_match_shell = chain_death_match_shell_field:get_data(player);
|
local chain_death_match_shell = chain_death_match_shell_field:get_data(player);
|
||||||
if chain_death_match_shell == nil then
|
if chain_death_match_shell == nil then
|
||||||
error_handler.report("weapon_skills.update_twin_wine", "Failed to access Data: chain_death_match_shell");
|
error_handler.report("weapon_skills.update_twin_wine", "Failed to Access Data: chain_death_match_shell");
|
||||||
this.list.twin_wine = nil;
|
this.list.twin_wine = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -870,7 +870,7 @@ function this.update_archdemon_mode(player)
|
|||||||
|
|
||||||
local is_kijin_kyouka = is_kijin_kyouka_field:get_data(player);
|
local is_kijin_kyouka = is_kijin_kyouka_field:get_data(player);
|
||||||
if is_kijin_kyouka == nil then
|
if is_kijin_kyouka == nil then
|
||||||
error_handler.report("weapon_skills.update_archdemon_mode", "Failed to access Data: is_kijin_kyouka");
|
error_handler.report("weapon_skills.update_archdemon_mode", "Failed to Access Data: is_kijin_kyouka");
|
||||||
this.list.archdemon_mode = nil;
|
this.list.archdemon_mode = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -882,7 +882,7 @@ function this.update_archdemon_mode(player)
|
|||||||
|
|
||||||
local kijin_kyouka_gauge = get_kijin_kyouka_gauge_method:call(player);
|
local kijin_kyouka_gauge = get_kijin_kyouka_gauge_method:call(player);
|
||||||
if kijin_kyouka_gauge == nil then
|
if kijin_kyouka_gauge == nil then
|
||||||
error_handler.report("weapon_skills.update_archdemon_mode", "Failed to access Data: kijin_kyouka_gauge");
|
error_handler.report("weapon_skills.update_archdemon_mode", "Failed to Access Data: kijin_kyouka_gauge");
|
||||||
this.list.archdemon_mode = nil;
|
this.list.archdemon_mode = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -908,21 +908,21 @@ function this.update_bead_of_resonance()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.horn_shell_manager == nil then
|
if singletons.horn_shell_manager == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_manager");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_manager");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local horn_shell_003s_array = horn_shell_003s_field:get_data(singletons.horn_shell_manager);
|
local horn_shell_003s_array = horn_shell_003s_field:get_data(singletons.horn_shell_manager);
|
||||||
if horn_shell_003s_array == nil then
|
if horn_shell_003s_array == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003s_list");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_003s_list");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local horn_shell_003s_array_length = get_length_method:call(horn_shell_003s_array);
|
local horn_shell_003s_array_length = get_length_method:call(horn_shell_003s_array);
|
||||||
if horn_shell_003s_array_length == nil then
|
if horn_shell_003s_array_length == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003s_array_length");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_003s_array_length");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -934,14 +934,14 @@ function this.update_bead_of_resonance()
|
|||||||
|
|
||||||
local horn_shell_003_list = get_value_method:call(horn_shell_003s_array, 0);
|
local horn_shell_003_list = get_value_method:call(horn_shell_003s_array, 0);
|
||||||
if horn_shell_003_list == nil then
|
if horn_shell_003_list == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003_list");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_003_list");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local horn_shell_003_list_count = get_horn_shell_003_list_count_method:call(horn_shell_003_list);
|
local horn_shell_003_list_count = get_horn_shell_003_list_count_method:call(horn_shell_003_list);
|
||||||
if horn_shell_003_list_count == nil then
|
if horn_shell_003_list_count == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003_list_count");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_003_list_count");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -953,14 +953,14 @@ function this.update_bead_of_resonance()
|
|||||||
|
|
||||||
local horn_shell_003 = get_horn_shell_003_list_item_method:call(horn_shell_003_list, 0);
|
local horn_shell_003 = get_horn_shell_003_list_item_method:call(horn_shell_003_list, 0);
|
||||||
if horn_shell_003 == nil then
|
if horn_shell_003 == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: horn_shell_003");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: horn_shell_003");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local life_timer = horn_shell_003_life_timer_field:get_data(horn_shell_003);
|
local life_timer = horn_shell_003_life_timer_field:get_data(horn_shell_003);
|
||||||
if life_timer == nil then
|
if life_timer == nil then
|
||||||
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to access Data: life_timer");
|
error_handler.report("weapon_skills.update_bead_of_resonance", "Failed to Access Data: life_timer");
|
||||||
this.list.bead_of_resonance = nil;
|
this.list.bead_of_resonance = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -986,7 +986,7 @@ function this.update_sonic_bloom(player)
|
|||||||
|
|
||||||
local life_timer = horn_shell_020_life_timer_field:get_data(blast_speaker_shell);
|
local life_timer = horn_shell_020_life_timer_field:get_data(blast_speaker_shell);
|
||||||
if life_timer == nil then
|
if life_timer == nil then
|
||||||
error_handler.report("weapon_skills.update_sonic_bloom", "Failed to access Data: life_timer");
|
error_handler.report("weapon_skills.update_sonic_bloom", "Failed to Access Data: life_timer");
|
||||||
this.list.sonic_bloom = nil;
|
this.list.sonic_bloom = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -1026,7 +1026,7 @@ function this.update_all_extracts_mix(player)
|
|||||||
|
|
||||||
local is_get_all_extractive = is_get_all_extractive_method:call(player);
|
local is_get_all_extractive = is_get_all_extractive_method:call(player);
|
||||||
if is_get_all_extractive == nil then
|
if is_get_all_extractive == nil then
|
||||||
error_handler.report("weapon_skills.update_all_extracts_mix", "Failed to access Data: is_get_all_extractive");
|
error_handler.report("weapon_skills.update_all_extracts_mix", "Failed to Access Data: is_get_all_extractive");
|
||||||
this.list.all_extracts_mix = nil;
|
this.list.all_extracts_mix = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -1038,7 +1038,7 @@ function this.update_all_extracts_mix(player)
|
|||||||
|
|
||||||
local red_extractive_time = get_red_extractive_time_method:call(player);
|
local red_extractive_time = get_red_extractive_time_method:call(player);
|
||||||
if red_extractive_time == nil then
|
if red_extractive_time == nil then
|
||||||
error_handler.report("weapon_skills.update_all_extracts_mix", "Failed to access Data: red_extractive_time");
|
error_handler.report("weapon_skills.update_all_extracts_mix", "Failed to Access Data: red_extractive_time");
|
||||||
this.list.all_extracts_mix = nil;
|
this.list.all_extracts_mix = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -1058,7 +1058,7 @@ function this.update_extract(player, extract_key, time_holder)
|
|||||||
|
|
||||||
local extractive_time = time_holder:call(player);
|
local extractive_time = time_holder:call(player);
|
||||||
if extractive_time == nil then
|
if extractive_time == nil then
|
||||||
error_handler.report("weapon_skills.update_extract", string.format("Failed to access Data: %s_extractive_time", extract_key));
|
error_handler.report("weapon_skills.update_extract", string.format("Failed to Access Data: %s_extractive_time", extract_key));
|
||||||
this.list[extract_key] = nil;
|
this.list[extract_key] = nil;
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
@@ -1104,7 +1104,7 @@ function this.get_weapon_skill_name(weapon_skill_key)
|
|||||||
|
|
||||||
local weapon_skill_name = get_name_method:call(nil, weapon_skill_id);
|
local weapon_skill_name = get_name_method:call(nil, weapon_skill_id);
|
||||||
if weapon_skill_name == nil then
|
if weapon_skill_name == nil then
|
||||||
error_handler.report("weapon_skills.get_weapon_skill_name", string.format("Failed to access Data: %s_name", weapon_skill_key));
|
error_handler.report("weapon_skills.get_weapon_skill_name", string.format("Failed to Access Data: %s_name", weapon_skill_key));
|
||||||
return weapon_skill_key;
|
return weapon_skill_key;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -107,13 +107,13 @@ function this.update_damage(enemy, enemy_calc_damage_info)
|
|||||||
local is_large_monster = is_boss_enemy_method:call(enemy);
|
local is_large_monster = is_boss_enemy_method:call(enemy);
|
||||||
|
|
||||||
if is_large_monster == nil then
|
if is_large_monster == nil then
|
||||||
error_handler.report("damage_hook.update_damage", "Failed to access Data: is_large_monster");
|
error_handler.report("damage_hook.update_damage", "Failed to Access Data: is_large_monster");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local dead_or_captured = check_die_method:call(enemy);
|
local dead_or_captured = check_die_method:call(enemy);
|
||||||
if dead_or_captured == nil then
|
if dead_or_captured == nil then
|
||||||
error_handler.report("damage_hook.update_damage", "Failed to access Data: dead_or_captured");
|
error_handler.report("damage_hook.update_damage", "Failed to Access Data: dead_or_captured");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ function this.on_anomaly_core_break(anomaly_core_part)
|
|||||||
|
|
||||||
local anomaly_core_break_damage_rate = get_mystery_core_break_damage_rate_method:call(anomaly_monster.enemy);
|
local anomaly_core_break_damage_rate = get_mystery_core_break_damage_rate_method:call(anomaly_monster.enemy);
|
||||||
if anomaly_core_break_damage_rate == nil then
|
if anomaly_core_break_damage_rate == nil then
|
||||||
error_handler.report("damage_hook.on_anomaly_core_break", "Failed to access Data: anomaly_core_break_damage_rate");
|
error_handler.report("damage_hook.on_anomaly_core_break", "Failed to Access Data: anomaly_core_break_damage_rate");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -134,19 +134,19 @@ function this.update_servant_list()
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.servant_manager == nil then
|
if singletons.servant_manager == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_manager");
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local quest_servant_id_list = get_quest_servant_id_list_method:call(singletons.servant_manager);
|
local quest_servant_id_list = get_quest_servant_id_list_method:call(singletons.servant_manager);
|
||||||
if quest_servant_id_list == nil then
|
if quest_servant_id_list == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: quest_servant_id_list");
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: quest_servant_id_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local servant_count = servant_get_count_method:call(quest_servant_id_list);
|
local servant_count = servant_get_count_method:call(quest_servant_id_list);
|
||||||
if servant_count == nil then
|
if servant_count == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_count");
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -154,20 +154,20 @@ function this.update_servant_list()
|
|||||||
for i = 0, servant_count - 1 do
|
for i = 0, servant_count - 1 do
|
||||||
local servant_id = servant_get_item_method:call(quest_servant_id_list, i);
|
local servant_id = servant_get_item_method:call(quest_servant_id_list, i);
|
||||||
if servant_id == nil then
|
if servant_id == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_id No." .. tostring(i));
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_id No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local ai_control = get_ai_control_by_servant_id_method:call(singletons.servant_manager, servant_id);
|
local ai_control = get_ai_control_by_servant_id_method:call(singletons.servant_manager, servant_id);
|
||||||
if ai_control == nil then
|
if ai_control == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: ai_control No." .. tostring(i));
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: ai_control No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local servant_info = get_servant_info_method:call(ai_control);
|
local servant_info = get_servant_info_method:call(ai_control);
|
||||||
if servant_info == nil then
|
if servant_info == nil then
|
||||||
error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_info No." .. tostring(i));
|
error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_info No." .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ end
|
|||||||
|
|
||||||
function this.update_otomo_list(is_on_quest, is_online)
|
function this.update_otomo_list(is_on_quest, is_online)
|
||||||
if singletons.otomo_manager == nil then
|
if singletons.otomo_manager == nil then
|
||||||
error_handler.report("non_players.update_otomo_list", "Failed to access Data: otomo_manager");
|
error_handler.report("non_players.update_otomo_list", "Failed to Access Data: otomo_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -220,11 +220,11 @@ function this.update_my_otomos()
|
|||||||
|
|
||||||
local first_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 0);
|
local first_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 0);
|
||||||
if first_otomo == nil then
|
if first_otomo == nil then
|
||||||
error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo");
|
error_handler.report("non_players.update_my_otomos", "Failed to Access Data: first_otomo");
|
||||||
else
|
else
|
||||||
local name = otomo_create_data_name_field:get_data(first_otomo);
|
local name = otomo_create_data_name_field:get_data(first_otomo);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo -> name");
|
error_handler.report("non_players.update_my_otomos", "Failed to Access Data: first_otomo -> name");
|
||||||
end
|
end
|
||||||
|
|
||||||
if name ~= nil and name ~= "" then
|
if name ~= nil and name ~= "" then
|
||||||
@@ -241,11 +241,11 @@ function this.update_my_otomos()
|
|||||||
|
|
||||||
local second_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 1);
|
local second_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 1);
|
||||||
if second_otomo == nil then
|
if second_otomo == nil then
|
||||||
error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo");
|
error_handler.report("non_players.update_my_otomos", "Failed to Access Data: second_otomo");
|
||||||
else
|
else
|
||||||
local name = otomo_create_data_name_field:get_data(second_otomo);
|
local name = otomo_create_data_name_field:get_data(second_otomo);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo -> name");
|
error_handler.report("non_players.update_my_otomos", "Failed to Access Data: second_otomo -> name");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -268,20 +268,20 @@ function this.update_servant_otomos()
|
|||||||
|
|
||||||
local servant_otomo_list = get_servant_otomo_list_method:call(singletons.otomo_manager);
|
local servant_otomo_list = get_servant_otomo_list_method:call(singletons.otomo_manager);
|
||||||
if servant_otomo_list == nil then
|
if servant_otomo_list == nil then
|
||||||
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list");
|
error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = otomo_get_count_method:call(servant_otomo_list);
|
local count = otomo_get_count_method:call(servant_otomo_list);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list -> count");
|
error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo_list -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, count - 1 do
|
for i = 0, count - 1 do
|
||||||
local servant_otomo = otomo_get_item_method:call(servant_otomo_list, i);
|
local servant_otomo = otomo_get_item_method:call(servant_otomo_list, i);
|
||||||
if servant_otomo == nil then
|
if servant_otomo == nil then
|
||||||
error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo No. " .. tostring(i));
|
error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo No. " .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -292,7 +292,7 @@ function this.update_servant_otomos()
|
|||||||
local member_id = otomo_create_data:get_field("MemberID");
|
local member_id = otomo_create_data:get_field("MemberID");
|
||||||
|
|
||||||
if name == nil then
|
if name == nil then
|
||||||
error_handler.report("non_players.update_servant_otomos", string.format("Failed to access Data: servant_otomo No. %d -> name", i));
|
error_handler.report("non_players.update_servant_otomos", string.format("Failed to Access Data: servant_otomo No. %d -> name", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -313,33 +313,33 @@ function this.update_otomos(otomo_info_field_)
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
error_handler.report("non_players.update_otomos", "Failed to access Data: lobby_manager");
|
error_handler.report("non_players.update_otomos", "Failed to Access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- other players
|
-- other players
|
||||||
local otomo_info_list = otomo_info_field_:get_data(singletons.lobby_manager);
|
local otomo_info_list = otomo_info_field_:get_data(singletons.lobby_manager);
|
||||||
if otomo_info_list == nil then
|
if otomo_info_list == nil then
|
||||||
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list");
|
error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info_list");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = otomo_info_get_count_method:call(otomo_info_list);
|
local count = otomo_info_get_count_method:call(otomo_info_list);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list -> count");
|
error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info_list -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for id = 0, count - 1 do
|
for id = 0, count - 1 do
|
||||||
local otomo_info = otomo_info_get_item_method:call(otomo_info_list, id);
|
local otomo_info = otomo_info_get_item_method:call(otomo_info_list, id);
|
||||||
if otomo_info == nil then
|
if otomo_info == nil then
|
||||||
error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info No. " .. tostring(id));
|
error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info No. " .. tostring(id));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local name = otomo_info_name_field:get_data(otomo_info);
|
local name = otomo_info_name_field:get_data(otomo_info);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
error_handler.report("non_players.update_otomos", string.format("Failed to access Data: otomo_info No. %d -> name", id));
|
error_handler.report("non_players.update_otomos", string.format("Failed to Access Data: otomo_info No. %d -> name", id));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ local get_pos_field = player_base_type_def:get_method("get_Pos");
|
|||||||
|
|
||||||
function this.update_myself_position()
|
function this.update_myself_position()
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("players.update_myself_position", "Failed to access Data: player_manager");
|
error_handler.report("players.update_myself_position", "Failed to Access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -401,13 +401,13 @@ function this.update_myself_position()
|
|||||||
|
|
||||||
local master_player = find_master_player_method:call(singletons.player_manager);
|
local master_player = find_master_player_method:call(singletons.player_manager);
|
||||||
if master_player == nil then
|
if master_player == nil then
|
||||||
error_handler.report("players.update_myself_position", "Failed to access Data: master_player");
|
error_handler.report("players.update_myself_position", "Failed to Access Data: master_player");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local position = get_pos_field:call(master_player);
|
local position = get_pos_field:call(master_player);
|
||||||
if position == nil then
|
if position == nil then
|
||||||
error_handler.report("players.update_myself_position", "Failed to access Data: position");
|
error_handler.report("players.update_myself_position", "Failed to Access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
this.myself_position = position;
|
this.myself_position = position;
|
||||||
@@ -466,25 +466,25 @@ function this.update_player_list(hunter_info_field_)
|
|||||||
local cached_config = config.current_config.damage_meter_UI;
|
local cached_config = config.current_config.damage_meter_UI;
|
||||||
|
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: lobby_manager");
|
error_handler.report("players.update_player_list", "Failed to Access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.progress_manager == nil then
|
if singletons.progress_manager == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: progress_manager");
|
error_handler.report("players.update_player_list", "Failed to Access Data: progress_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- myself player
|
-- myself player
|
||||||
local myself_player_info = my_hunter_info_field:get_data(singletons.lobby_manager);
|
local myself_player_info = my_hunter_info_field:get_data(singletons.lobby_manager);
|
||||||
if myself_player_info == nil then
|
if myself_player_info == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: myself_player_info");
|
error_handler.report("players.update_player_list", "Failed to Access Data: myself_player_info");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local myself_player_name = name_field:get_data(myself_player_info);
|
local myself_player_name = name_field:get_data(myself_player_info);
|
||||||
if myself_player_name == nil then
|
if myself_player_name == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: myself_player_name");
|
error_handler.report("players.update_player_list", "Failed to Access Data: myself_player_name");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -494,7 +494,7 @@ function this.update_player_list(hunter_info_field_)
|
|||||||
local myself_id = get_master_player_id_method:call(singletons.player_manager);
|
local myself_id = get_master_player_id_method:call(singletons.player_manager);
|
||||||
|
|
||||||
if myself_id == nil then
|
if myself_id == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: myself_id");
|
error_handler.report("players.update_player_list", "Failed to Access Data: myself_id");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -507,26 +507,26 @@ function this.update_player_list(hunter_info_field_)
|
|||||||
-- other players
|
-- other players
|
||||||
local player_info_array = hunter_info_field_:get_data(singletons.lobby_manager);
|
local player_info_array = hunter_info_field_:get_data(singletons.lobby_manager);
|
||||||
if player_info_array == nil then
|
if player_info_array == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: player_info_array");
|
error_handler.report("players.update_player_list", "Failed to Access Data: player_info_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = get_count_method:call(player_info_array);
|
local count = get_count_method:call(player_info_array);
|
||||||
if count == nil then
|
if count == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: player_info_array -> count");
|
error_handler.report("players.update_player_list", "Failed to Access Data: player_info_array -> count");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, count - 1 do
|
for i = 0, count - 1 do
|
||||||
local player_info = get_item_method:call(player_info_array, i);
|
local player_info = get_item_method:call(player_info_array, i);
|
||||||
if player_info == nil then
|
if player_info == nil then
|
||||||
error_handler.report("players.update_player_list", "Failed to access Data: player_info No. " .. tostring(i));
|
error_handler.report("players.update_player_list", "Failed to Access Data: player_info No. " .. tostring(i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local id = member_index_field:get_data(player_info);
|
local id = member_index_field:get_data(player_info);
|
||||||
if id == nil then
|
if id == nil then
|
||||||
error_handler.report("players.update_player_list", string.format("Failed to access Data: player_info No. %d -> id", i));
|
error_handler.report("players.update_player_list", string.format("Failed to Access Data: player_info No. %d -> id", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -535,7 +535,7 @@ function this.update_player_list(hunter_info_field_)
|
|||||||
|
|
||||||
local name = name_field:get_data(player_info);
|
local name = name_field:get_data(player_info);
|
||||||
if name == nil then
|
if name == nil then
|
||||||
error_handler.report("players.update_player_list", string.format("Failed to access Data: player_info No. %d -> name", i));
|
error_handler.report("players.update_player_list", string.format("Failed to Access Data: player_info No. %d -> name", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -93,13 +93,13 @@ local get_pos_method = environment_creature_base_type_def:get_method("get_Pos");
|
|||||||
function this.init(creature, REcreature)
|
function this.init(creature, REcreature)
|
||||||
local creature_type = creature_type_field:get_data(REcreature);
|
local creature_type = creature_type_field:get_data(REcreature);
|
||||||
if creature_type == nil then
|
if creature_type == nil then
|
||||||
error_handler.report("env_creature.init", "Failed to access Data: creature_type");
|
error_handler.report("env_creature.init", "Failed to Access Data: creature_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager, creature_type);
|
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager, creature_type);
|
||||||
if creature_name == nil then
|
if creature_name == nil then
|
||||||
error_handler.report("env_creature.init", "Failed to access Data: creature_name");
|
error_handler.report("env_creature.init", "Failed to Access Data: creature_name");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ function this.update_position(REcreature, creature)
|
|||||||
|
|
||||||
local position = get_pos_method:call(REcreature);
|
local position = get_pos_method:call(REcreature);
|
||||||
if position == nil then
|
if position == nil then
|
||||||
error_handler.report("env_creature.update_position", "Failed to access Data: position");
|
error_handler.report("env_creature.update_position", "Failed to Access Data: position");
|
||||||
end
|
end
|
||||||
|
|
||||||
creature.position = position;
|
creature.position = position;
|
||||||
@@ -144,7 +144,7 @@ function this.update(REcreature, creature)
|
|||||||
|
|
||||||
local is_inactive = creature_is_inactive_field:get_data(REcreature);
|
local is_inactive = creature_is_inactive_field:get_data(REcreature);
|
||||||
if is_inactive == nil then
|
if is_inactive == nil then
|
||||||
error_handler.report("env_creature.update", "Failed to access Data: is_inactive");
|
error_handler.report("env_creature.update", "Failed to Access Data: is_inactive");
|
||||||
end
|
end
|
||||||
|
|
||||||
creature.is_inactive = is_inactive;
|
creature.is_inactive = is_inactive;
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ this.keys = {
|
|||||||
|
|
||||||
function this.update(hard_keyboard)
|
function this.update(hard_keyboard)
|
||||||
if hard_keyboard == nil then
|
if hard_keyboard == nil then
|
||||||
error_handler.report("keyboard.update", "Failed to access Data: hard_keyboard");
|
error_handler.report("keyboard.update", "Failed to Access Data: hard_keyboard");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -513,7 +513,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local all_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.all_UI.key));
|
local all_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.all_UI.key));
|
||||||
|
|
||||||
if all_UI_key_release == nil then
|
if all_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: all_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: all_UI_key_release");
|
||||||
|
|
||||||
elseif all_UI_key_release then
|
elseif all_UI_key_release then
|
||||||
local is_any_enabled = config.current_config.time_UI.enabled
|
local is_any_enabled = config.current_config.time_UI.enabled
|
||||||
@@ -545,7 +545,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local small_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.small_monster_UI.key));
|
local small_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.small_monster_UI.key));
|
||||||
|
|
||||||
if small_monster_UI_key_release == nil then
|
if small_monster_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: small_monster_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: small_monster_UI_key_release");
|
||||||
|
|
||||||
elseif small_monster_UI_key_release then
|
elseif small_monster_UI_key_release then
|
||||||
config.current_config.small_monster_UI.enabled = not config.current_config.small_monster_UI.enabled;
|
config.current_config.small_monster_UI.enabled = not config.current_config.small_monster_UI.enabled;
|
||||||
@@ -559,7 +559,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local large_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_UI.key));
|
local large_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_UI.key));
|
||||||
|
|
||||||
if large_monster_UI_key_release == nil then
|
if large_monster_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_UI_key_release");
|
||||||
|
|
||||||
elseif large_monster_UI_key_release then
|
elseif large_monster_UI_key_release then
|
||||||
local is_any_enabled = config.current_config.large_monster_UI.dynamic.enabled
|
local is_any_enabled = config.current_config.large_monster_UI.dynamic.enabled
|
||||||
@@ -579,7 +579,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local large_monster_dynamic_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_dynamic_UI.key));
|
local large_monster_dynamic_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_dynamic_UI.key));
|
||||||
|
|
||||||
if large_monster_dynamic_UI_key_release == nil then
|
if large_monster_dynamic_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_dynamic_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_dynamic_UI_key_release");
|
||||||
|
|
||||||
elseif large_monster_dynamic_UI_key_release then
|
elseif large_monster_dynamic_UI_key_release then
|
||||||
config.current_config.large_monster_UI.dynamic.enabled = not config.current_config.large_monster_UI.dynamic.enabled;
|
config.current_config.large_monster_UI.dynamic.enabled = not config.current_config.large_monster_UI.dynamic.enabled;
|
||||||
@@ -593,7 +593,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local large_monster_static_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_static_UI.key));
|
local large_monster_static_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_static_UI.key));
|
||||||
|
|
||||||
if large_monster_static_UI_key_release == nil then
|
if large_monster_static_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_static_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_static_UI_key_release");
|
||||||
|
|
||||||
elseif large_monster_static_UI_key_release then
|
elseif large_monster_static_UI_key_release then
|
||||||
config.current_config.large_monster_UI.static.enabled = not config.current_config.large_monster_UI.static.enabled;
|
config.current_config.large_monster_UI.static.enabled = not config.current_config.large_monster_UI.static.enabled;
|
||||||
@@ -607,7 +607,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local large_monster_highlighted_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_highlighted_UI.key));
|
local large_monster_highlighted_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_highlighted_UI.key));
|
||||||
|
|
||||||
if large_monster_highlighted_UI_key_release == nil then
|
if large_monster_highlighted_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_highlighted_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_highlighted_UI_key_release");
|
||||||
|
|
||||||
elseif large_monster_highlighted_UI_key_release then
|
elseif large_monster_highlighted_UI_key_release then
|
||||||
config.current_config.large_monster_UI.highlighted.enabled = not config.current_config.large_monster_UI.highlighted.enabled;
|
config.current_config.large_monster_UI.highlighted.enabled = not config.current_config.large_monster_UI.highlighted.enabled;
|
||||||
@@ -621,7 +621,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local time_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.time_UI.key));
|
local time_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.time_UI.key));
|
||||||
|
|
||||||
if time_UI_key_release == nil then
|
if time_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: time_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: time_UI_key_release");
|
||||||
|
|
||||||
elseif time_UI_key_release then
|
elseif time_UI_key_release then
|
||||||
config.current_config.time_UI.enabled = not config.current_config.time_UI.enabled;
|
config.current_config.time_UI.enabled = not config.current_config.time_UI.enabled;
|
||||||
@@ -635,7 +635,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local damage_meter_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.damage_meter_UI.key));
|
local damage_meter_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.damage_meter_UI.key));
|
||||||
|
|
||||||
if damage_meter_UI_key_release == nil then
|
if damage_meter_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: damage_meter_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: damage_meter_UI_key_release");
|
||||||
|
|
||||||
elseif damage_meter_UI_key_release then
|
elseif damage_meter_UI_key_release then
|
||||||
config.current_config.damage_meter_UI.enabled = not config.current_config.damage_meter_UI.enabled;
|
config.current_config.damage_meter_UI.enabled = not config.current_config.damage_meter_UI.enabled;
|
||||||
@@ -649,7 +649,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local endemic_life_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.endemic_life_UI.key));
|
local endemic_life_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.endemic_life_UI.key));
|
||||||
|
|
||||||
if endemic_life_UI_key_release == nil then
|
if endemic_life_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: endemic_life_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: endemic_life_UI_key_release");
|
||||||
|
|
||||||
elseif endemic_life_UI_key_release then
|
elseif endemic_life_UI_key_release then
|
||||||
config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled;
|
config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled;
|
||||||
@@ -663,7 +663,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local buff_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.buff_UI.key));
|
local buff_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.buff_UI.key));
|
||||||
|
|
||||||
if buff_UI_key_release == nil then
|
if buff_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: buff_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: buff_UI_key_release");
|
||||||
|
|
||||||
elseif buff_UI_key_release then
|
elseif buff_UI_key_release then
|
||||||
config.current_config.buff_UI.enabled = not config.current_config.buff_UI.enabled;
|
config.current_config.buff_UI.enabled = not config.current_config.buff_UI.enabled;
|
||||||
@@ -677,7 +677,7 @@ function this.check_hotkeys(hard_keyboard)
|
|||||||
local stats_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.stats_UI.key));
|
local stats_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.stats_UI.key));
|
||||||
|
|
||||||
if stats_UI_key_release == nil then
|
if stats_UI_key_release == nil then
|
||||||
error_handler.report("keyboard.check_hotkeys", "Failed to access Data: stats_UI_key_release");
|
error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: stats_UI_key_release");
|
||||||
|
|
||||||
elseif stats_UI_key_release then
|
elseif stats_UI_key_release then
|
||||||
config.current_config.stats_UI.enabled = not config.current_config.stats_UI.enabled;
|
config.current_config.stats_UI.enabled = not config.current_config.stats_UI.enabled;
|
||||||
|
|||||||
@@ -177,44 +177,44 @@ end
|
|||||||
|
|
||||||
function this.update_cart_count()
|
function this.update_cart_count()
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", "Failed to access Data: quest_manager");
|
error_handler.report("quest_status.update_cart_count", "Failed to Access Data: quest_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local death_num = get_death_num_method:call(singletons.quest_manager);
|
local death_num = get_death_num_method:call(singletons.quest_manager);
|
||||||
if death_num == nil then
|
if death_num == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", "Failed to access Data: death_num");
|
error_handler.report("quest_status.update_cart_count", "Failed to Access Data: death_num");
|
||||||
else
|
else
|
||||||
this.cart_count = death_num;
|
this.cart_count = death_num;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_manager");
|
error_handler.report("quest_status.update_cart_count", "Failed to Access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local player_data_array = get_player_data_method:call(singletons.player_manager);
|
local player_data_array = get_player_data_method:call(singletons.player_manager);
|
||||||
if player_data_array == nil then
|
if player_data_array == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_data_array");
|
error_handler.report("quest_status.update_cart_count", "Failed to Access Data: player_data_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local player_data_array_length = get_length_method:call(player_data_array);
|
local player_data_array_length = get_length_method:call(player_data_array);
|
||||||
if player_data_array_length == nil then
|
if player_data_array_length == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_data_array_length");
|
error_handler.report("quest_status.update_cart_count", "Failed to Access Data: player_data_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, player_data_array_length - 1 do
|
for i = 0, player_data_array_length - 1 do
|
||||||
local player_data = get_value_method:call(player_data_array, i);
|
local player_data = get_value_method:call(player_data_array, i);
|
||||||
if player_data_array_length == nil then
|
if player_data_array_length == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", string.format("Failed to access Data: player_data No. %d", i));
|
error_handler.report("quest_status.update_cart_count", string.format("Failed to Access Data: player_data No. %d", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local die_count = die_count_field:get_data(player_data);
|
local die_count = die_count_field:get_data(player_data);
|
||||||
if die_count == nil then
|
if die_count == nil then
|
||||||
error_handler.report("quest_status.update_cart_count", string.format("Failed to access Data: die_count No. %d", i));
|
error_handler.report("quest_status.update_cart_count", string.format("Failed to Access Data: die_count No. %d", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -229,13 +229,13 @@ end
|
|||||||
|
|
||||||
function this.get_max_cart_count()
|
function this.get_max_cart_count()
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
error_handler.report("quest_status.get_max_cart_count", "Failed to access Data: quest_manager");
|
error_handler.report("quest_status.get_max_cart_count", "Failed to Access Data: quest_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local quest_life = get_quest_life_method:call(singletons.quest_manager);
|
local quest_life = get_quest_life_method:call(singletons.quest_manager);
|
||||||
if quest_life == nil then
|
if quest_life == nil then
|
||||||
error_handler.report("quest_status.get_max_cart_count", "Failed to access Data: quest_life");
|
error_handler.report("quest_status.get_max_cart_count", "Failed to Access Data: quest_life");
|
||||||
end
|
end
|
||||||
|
|
||||||
this.max_cart_count = quest_life;
|
this.max_cart_count = quest_life;
|
||||||
@@ -256,7 +256,7 @@ function this.on_demo_request_activation(request_data_base)
|
|||||||
|
|
||||||
local request_data_type = request_data_base:call("get_Type");
|
local request_data_type = request_data_base:call("get_Type");
|
||||||
if request_data_type == nil then
|
if request_data_type == nil then
|
||||||
error_handler.report("quest_status.on_demo_request_activation", "Failed to access Data: request_data_type");
|
error_handler.report("quest_status.on_demo_request_activation", "Failed to Access Data: request_data_type");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -388,13 +388,13 @@ end
|
|||||||
|
|
||||||
function this.init()
|
function this.init()
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
error_handler.report("quest_status.init", "Failed to access Data: quest_manager");
|
error_handler.report("quest_status.init", "Failed to Access Data: quest_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local new_quest_status = get_status_method:call(singletons.game_manager);
|
local new_quest_status = get_status_method:call(singletons.game_manager);
|
||||||
if new_quest_status == nil then
|
if new_quest_status == nil then
|
||||||
error_handler.report("quest_status.init", "Failed to access Data: new_quest_status");
|
error_handler.report("quest_status.init", "Failed to Access Data: new_quest_status");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -415,13 +415,13 @@ end
|
|||||||
|
|
||||||
function this.update_is_online()
|
function this.update_is_online()
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
error_handler.report("quest_status.update_is_online", "Failed to access Data: lobby_manager");
|
error_handler.report("quest_status.update_is_online", "Failed to Access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_quest_online = is_quest_online_method:call(singletons.lobby_manager);
|
local is_quest_online = is_quest_online_method:call(singletons.lobby_manager);
|
||||||
if is_quest_online == nil then
|
if is_quest_online == nil then
|
||||||
error_handler.report("quest_status.update_is_online", "Failed to access Data: is_quest_online");
|
error_handler.report("quest_status.update_is_online", "Failed to Access Data: is_quest_online");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -430,13 +430,13 @@ end
|
|||||||
|
|
||||||
--[[function quest_status.update_is_quest_host()
|
--[[function quest_status.update_is_quest_host()
|
||||||
if singletons.lobby_manager == nil then
|
if singletons.lobby_manager == nil then
|
||||||
error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: lobby_manager");
|
error_handler.report("quest_status.update_is_quest_host", "Failed to Access Data: lobby_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_quest_host = is_quest_host_method:call(singletons.lobby_manager, true);
|
local is_quest_host = is_quest_host_method:call(singletons.lobby_manager, true);
|
||||||
if is_quest_host == nil then
|
if is_quest_host == nil then
|
||||||
error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: is_quest_host");
|
error_handler.report("quest_status.update_is_quest_host", "Failed to Access Data: is_quest_host");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -445,13 +445,13 @@ end--]]
|
|||||||
|
|
||||||
function this.update_is_training_area()
|
function this.update_is_training_area()
|
||||||
if singletons.village_area_manager == nil then
|
if singletons.village_area_manager == nil then
|
||||||
error_handler.report("quest_status.update_is_training_area", "Failed to access Data: village_area_manager");
|
error_handler.report("quest_status.update_is_training_area", "Failed to Access Data: village_area_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_training_area = check_current_area_training_area_method:call(singletons.village_area_manager);
|
local is_training_area = check_current_area_training_area_method:call(singletons.village_area_manager);
|
||||||
if is_training_area == nil then
|
if is_training_area == nil then
|
||||||
error_handler.report("quest_status.update_is_training_area", "Failed to access Data: is_training_area");
|
error_handler.report("quest_status.update_is_training_area", "Failed to Access Data: is_training_area");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -75,26 +75,26 @@ function this.get_game_window_size()
|
|||||||
scene_view = sdk.call_native_func(singletons.scene_manager, sdk.find_type_definition("via.SceneManager") , "get_MainView");
|
scene_view = sdk.call_native_func(singletons.scene_manager, sdk.find_type_definition("via.SceneManager") , "get_MainView");
|
||||||
|
|
||||||
if scene_view == nil then
|
if scene_view == nil then
|
||||||
error_handler.report("screen.get_game_window_size", "Failed to access Data: scene_view");
|
error_handler.report("screen.get_game_window_size", "Failed to Access Data: scene_view");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local size = get_size_method:call(scene_view);
|
local size = get_size_method:call(scene_view);
|
||||||
if size == nil then
|
if size == nil then
|
||||||
error_handler.report("screen.get_game_window_size", "Failed to access Data: size");
|
error_handler.report("screen.get_game_window_size", "Failed to Access Data: size");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local screen_width = width_field:get_data(size);
|
local screen_width = width_field:get_data(size);
|
||||||
if screen_width == nil then
|
if screen_width == nil then
|
||||||
error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_width");
|
error_handler.report("screen.get_game_window_size", "Failed to Access Data: screen_width");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local screen_height = height_field:get_data(size);
|
local screen_height = height_field:get_data(size);
|
||||||
if screen_height == nil then
|
if screen_height == nil then
|
||||||
error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_height");
|
error_handler.report("screen.get_game_window_size", "Failed to Access Data: screen_height");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ end
|
|||||||
function this.update_message_manager()
|
function this.update_message_manager()
|
||||||
this.message_manager = sdk.get_managed_singleton("snow.gui.MessageManager");
|
this.message_manager = sdk.get_managed_singleton("snow.gui.MessageManager");
|
||||||
if this.message_manager == nil then
|
if this.message_manager == nil then
|
||||||
error_handler.report("singletons.update_message_manager", "Failed to access Data: message_manager");
|
error_handler.report("singletons.update_message_manager", "Failed to Access Data: message_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.message_manager;
|
return this.message_manager;
|
||||||
@@ -79,7 +79,7 @@ end
|
|||||||
function this.update_enemy_manager()
|
function this.update_enemy_manager()
|
||||||
this.enemy_manager = sdk.get_managed_singleton("snow.enemy.EnemyManager");
|
this.enemy_manager = sdk.get_managed_singleton("snow.enemy.EnemyManager");
|
||||||
if this.enemy_manager == nil then
|
if this.enemy_manager == nil then
|
||||||
error_handler.report("singletons.update_enemy_manager", "Failed to access Data: enemy_manager");
|
error_handler.report("singletons.update_enemy_manager", "Failed to Access Data: enemy_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.enemy_manager;
|
return this.enemy_manager;
|
||||||
@@ -88,7 +88,7 @@ end
|
|||||||
function this.update_lobby_manager()
|
function this.update_lobby_manager()
|
||||||
this.lobby_manager = sdk.get_managed_singleton("snow.LobbyManager");
|
this.lobby_manager = sdk.get_managed_singleton("snow.LobbyManager");
|
||||||
if this.lobby_manager == nil then
|
if this.lobby_manager == nil then
|
||||||
error_handler.report("singletons.update_lobby_manager", "Failed to access Data: lobby_manager");
|
error_handler.report("singletons.update_lobby_manager", "Failed to Access Data: lobby_manager");
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ end
|
|||||||
function this.update_progress_manager()
|
function this.update_progress_manager()
|
||||||
this.progress_manager = sdk.get_managed_singleton("snow.progress.ProgressManager");
|
this.progress_manager = sdk.get_managed_singleton("snow.progress.ProgressManager");
|
||||||
if this.progress_manager == nil then
|
if this.progress_manager == nil then
|
||||||
error_handler.report("singletons.update_progress_manager", "Failed to access Data: progress_manager");
|
error_handler.report("singletons.update_progress_manager", "Failed to Access Data: progress_manager");
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ end
|
|||||||
function this.update_quest_manager()
|
function this.update_quest_manager()
|
||||||
this.quest_manager = sdk.get_managed_singleton("snow.QuestManager");
|
this.quest_manager = sdk.get_managed_singleton("snow.QuestManager");
|
||||||
if this.quest_manager == nil then
|
if this.quest_manager == nil then
|
||||||
error_handler.report("singletons.update_quest_manager", "Failed to access Data: quest_manager");
|
error_handler.report("singletons.update_quest_manager", "Failed to Access Data: quest_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.quest_manager;
|
return this.quest_manager;
|
||||||
@@ -117,7 +117,7 @@ end
|
|||||||
function this.update_player_manager()
|
function this.update_player_manager()
|
||||||
this.player_manager = sdk.get_managed_singleton("snow.player.PlayerManager");
|
this.player_manager = sdk.get_managed_singleton("snow.player.PlayerManager");
|
||||||
if this.player_manager == nil then
|
if this.player_manager == nil then
|
||||||
error_handler.report("singletons.update_player_manager", "Failed to access Data: player_manager");
|
error_handler.report("singletons.update_player_manager", "Failed to Access Data: player_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.player_manager;
|
return this.player_manager;
|
||||||
@@ -126,7 +126,7 @@ end
|
|||||||
function this.update_village_area_manager()
|
function this.update_village_area_manager()
|
||||||
this.village_area_manager = sdk.get_managed_singleton("snow.VillageAreaManager");
|
this.village_area_manager = sdk.get_managed_singleton("snow.VillageAreaManager");
|
||||||
if this.village_area_manager == nil then
|
if this.village_area_manager == nil then
|
||||||
error_handler.report("singletons.update_village_area_manager", "Failed to access Data: village_area_manager");
|
error_handler.report("singletons.update_village_area_manager", "Failed to Access Data: village_area_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.village_area_manager;
|
return this.village_area_manager;
|
||||||
@@ -135,7 +135,7 @@ end
|
|||||||
function this.update_gui_manager()
|
function this.update_gui_manager()
|
||||||
this.gui_manager = sdk.get_managed_singleton("snow.gui.GuiManager");
|
this.gui_manager = sdk.get_managed_singleton("snow.gui.GuiManager");
|
||||||
if this.gui_manager == nil then
|
if this.gui_manager == nil then
|
||||||
error_handler.report("singletons.update_gui_manager", "Failed to access Data: gui_manager");
|
error_handler.report("singletons.update_gui_manager", "Failed to Access Data: gui_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.gui_manager;
|
return this.gui_manager;
|
||||||
@@ -144,7 +144,7 @@ end
|
|||||||
function this.update_game_keyboard()
|
function this.update_game_keyboard()
|
||||||
this.game_keyboard = sdk.get_managed_singleton("snow.GameKeyboard");
|
this.game_keyboard = sdk.get_managed_singleton("snow.GameKeyboard");
|
||||||
if this.game_keyboard == nil then
|
if this.game_keyboard == nil then
|
||||||
error_handler.report("singletons.update_game_keyboard", "Failed to access Data: game_keyboard");
|
error_handler.report("singletons.update_game_keyboard", "Failed to Access Data: game_keyboard");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.game_keyboard;
|
return this.game_keyboard;
|
||||||
@@ -153,7 +153,7 @@ end
|
|||||||
function this.update_scene_manager()
|
function this.update_scene_manager()
|
||||||
this.scene_manager = sdk.get_native_singleton("via.SceneManager");
|
this.scene_manager = sdk.get_native_singleton("via.SceneManager");
|
||||||
if this.scene_manager == nil then
|
if this.scene_manager == nil then
|
||||||
error_handler.report("singletons.update_scene_manager", "Failed to access Data: scene_manager");
|
error_handler.report("singletons.update_scene_manager", "Failed to Access Data: scene_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.scene_manager;
|
return this.scene_manager;
|
||||||
@@ -162,7 +162,7 @@ end
|
|||||||
function this.update_game_manager()
|
function this.update_game_manager()
|
||||||
this.game_manager = sdk.get_managed_singleton("snow.SnowGameManager");
|
this.game_manager = sdk.get_managed_singleton("snow.SnowGameManager");
|
||||||
if this.game_manager == nil then
|
if this.game_manager == nil then
|
||||||
error_handler.report("singletons.update_game_manager", "Failed to access Data: game_manager");
|
error_handler.report("singletons.update_game_manager", "Failed to Access Data: game_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.game_manager;
|
return this.game_manager;
|
||||||
@@ -171,7 +171,7 @@ end
|
|||||||
function this.update_servant_manager()
|
function this.update_servant_manager()
|
||||||
this.servant_manager = sdk.get_managed_singleton("snow.ai.ServantManager");
|
this.servant_manager = sdk.get_managed_singleton("snow.ai.ServantManager");
|
||||||
if this.servant_manager == nil then
|
if this.servant_manager == nil then
|
||||||
error_handler.report("singletons.update_servant_manager", "Failed to access Data: servant_manager");
|
error_handler.report("singletons.update_servant_manager", "Failed to Access Data: servant_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.servant_manager;
|
return this.servant_manager;
|
||||||
@@ -180,7 +180,7 @@ end
|
|||||||
function this.update_otomo_manager()
|
function this.update_otomo_manager()
|
||||||
this.otomo_manager = sdk.get_managed_singleton("snow.otomo.OtomoManager");
|
this.otomo_manager = sdk.get_managed_singleton("snow.otomo.OtomoManager");
|
||||||
if this.otomo_manager == nil then
|
if this.otomo_manager == nil then
|
||||||
error_handler.report("singletons.update_otomo_manager", "Failed to access Data: otomo_manager");
|
error_handler.report("singletons.update_otomo_manager", "Failed to Access Data: otomo_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.otomo_manager;
|
return this.otomo_manager;
|
||||||
@@ -189,7 +189,7 @@ end
|
|||||||
function this.update_long_sword_shell_manager()
|
function this.update_long_sword_shell_manager()
|
||||||
this.long_sword_shell_manager = sdk.get_managed_singleton("snow.shell.LongSwordShellManager");
|
this.long_sword_shell_manager = sdk.get_managed_singleton("snow.shell.LongSwordShellManager");
|
||||||
if this.long_sword_shell_manager == nil then
|
if this.long_sword_shell_manager == nil then
|
||||||
error_handler.report("singletons.update_long_sword_shell_manager", "Failed to access Data: long_sword_shell_manager");
|
error_handler.report("singletons.update_long_sword_shell_manager", "Failed to Access Data: long_sword_shell_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.long_sword_shell_manager;
|
return this.long_sword_shell_manager;
|
||||||
@@ -198,7 +198,7 @@ end
|
|||||||
function this.update_light_bowgun_shell_manager()
|
function this.update_light_bowgun_shell_manager()
|
||||||
this.light_bowgun_shell_manager = sdk.get_managed_singleton("snow.shell.LightBowgunShellManager");
|
this.light_bowgun_shell_manager = sdk.get_managed_singleton("snow.shell.LightBowgunShellManager");
|
||||||
if this.light_bowgun_shell_manager == nil then
|
if this.light_bowgun_shell_manager == nil then
|
||||||
error_handler.report("singletons.update_light_bowgun_shell_manager", "Failed to access Data: light_bowgun_shell_manager");
|
error_handler.report("singletons.update_light_bowgun_shell_manager", "Failed to Access Data: light_bowgun_shell_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.light_bowgun_shell_manager;
|
return this.light_bowgun_shell_manager;
|
||||||
@@ -207,7 +207,7 @@ end
|
|||||||
function this.update_horn_shell_manager()
|
function this.update_horn_shell_manager()
|
||||||
this.horn_shell_manager = sdk.get_managed_singleton("snow.shell.HornShellManager");
|
this.horn_shell_manager = sdk.get_managed_singleton("snow.shell.HornShellManager");
|
||||||
if this.horn_shell_manager == nil then
|
if this.horn_shell_manager == nil then
|
||||||
error_handler.report("singletons.update_horn_shell_manager", "Failed to access Data: horn_shell_manager");
|
error_handler.report("singletons.update_horn_shell_manager", "Failed to Access Data: horn_shell_manager");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this.horn_shell_manager;
|
return this.horn_shell_manager;
|
||||||
|
|||||||
@@ -153,14 +153,14 @@ function this.update_quest_time()
|
|||||||
|
|
||||||
local quest_time_elapsed_minutes = get_quest_elapsed_time_min_method:call(singletons.quest_manager);
|
local quest_time_elapsed_minutes = get_quest_elapsed_time_min_method:call(singletons.quest_manager);
|
||||||
if quest_time_elapsed_minutes == nil then
|
if quest_time_elapsed_minutes == nil then
|
||||||
error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_elapsed_minutes");
|
error_handler.report("time.update_quest_time", "Failed to Access Data: quest_time_elapsed_minutes");
|
||||||
else
|
else
|
||||||
this.elapsed_minutes = quest_time_elapsed_minutes;
|
this.elapsed_minutes = quest_time_elapsed_minutes;
|
||||||
end
|
end
|
||||||
|
|
||||||
local quest_time_total_elapsed_seconds = get_quest_elapsed_time_sec_method:call(singletons.quest_manager);
|
local quest_time_total_elapsed_seconds = get_quest_elapsed_time_sec_method:call(singletons.quest_manager);
|
||||||
if quest_time_total_elapsed_seconds == nil then
|
if quest_time_total_elapsed_seconds == nil then
|
||||||
error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_total_elapsed_seconds");
|
error_handler.report("time.update_quest_time", "Failed to Access Data: quest_time_total_elapsed_seconds");
|
||||||
else
|
else
|
||||||
this.total_elapsed_seconds = quest_time_total_elapsed_seconds;
|
this.total_elapsed_seconds = quest_time_total_elapsed_seconds;
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -129,19 +129,19 @@ function this.update()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("player_info.update", "Failed to access Data: player_manager");
|
error_handler.report("player_info.update", "Failed to Access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local master_player = find_master_player_method:call(singletons.player_manager);
|
local master_player = find_master_player_method:call(singletons.player_manager);
|
||||||
if master_player == nil then
|
if master_player == nil then
|
||||||
error_handler.report("player_info.update", "Failed to access Data: master_player");
|
error_handler.report("player_info.update", "Failed to Access Data: master_player");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local master_player_data = get_player_data_method:call(master_player);
|
local master_player_data = get_player_data_method:call(master_player);
|
||||||
if master_player_data == nil then
|
if master_player_data == nil then
|
||||||
error_handler.report("player_info.update", "Failed to access Data: master_player_data");
|
error_handler.report("player_info.update", "Failed to Access Data: master_player_data");
|
||||||
end
|
end
|
||||||
|
|
||||||
master_player_ref = master_player;
|
master_player_ref = master_player;
|
||||||
@@ -176,7 +176,7 @@ end
|
|||||||
function this.update_generic(key, player_data, field)
|
function this.update_generic(key, player_data, field)
|
||||||
local value = field:get_data(player_data);
|
local value = field:get_data(player_data);
|
||||||
if value == nil then
|
if value == nil then
|
||||||
error_handler.report("player_info.update_generic", string.format("Failed to access Data: %s_value", key));
|
error_handler.report("player_info.update_generic", string.format("Failed to Access Data: %s_value", key));
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -186,14 +186,14 @@ end
|
|||||||
function this.update_resistances(player_data)
|
function this.update_resistances(player_data)
|
||||||
local resistance_element_array = resistance_element_field:get_data(player_data);
|
local resistance_element_array = resistance_element_field:get_data(player_data);
|
||||||
if resistance_element_array == nil then
|
if resistance_element_array == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: resistance_element_array");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: resistance_element_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Fire Resistance
|
-- Fire Resistance
|
||||||
local fire_resistance_single_valtype = get_value_method:call(resistance_element_array, 0);
|
local fire_resistance_single_valtype = get_value_method:call(resistance_element_array, 0);
|
||||||
if fire_resistance_single_valtype == nil then
|
if fire_resistance_single_valtype == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: fire_resistance_single_valtype");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: fire_resistance_single_valtype");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -201,14 +201,14 @@ function this.update_resistances(player_data)
|
|||||||
if fire_resistance ~= nil then
|
if fire_resistance ~= nil then
|
||||||
this.list.fire_resistance = math.floor(fire_resistance);
|
this.list.fire_resistance = math.floor(fire_resistance);
|
||||||
else
|
else
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: fire_resistance");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: fire_resistance");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Water Resistance
|
-- Water Resistance
|
||||||
local water_resistance_single_valtype = get_value_method:call(resistance_element_array, 1);
|
local water_resistance_single_valtype = get_value_method:call(resistance_element_array, 1);
|
||||||
if water_resistance_single_valtype == nil then
|
if water_resistance_single_valtype == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: water_resistance_single_valtype");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: water_resistance_single_valtype");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -216,14 +216,14 @@ function this.update_resistances(player_data)
|
|||||||
if water_resistance ~= nil then
|
if water_resistance ~= nil then
|
||||||
this.list.water_resistance = math.floor(water_resistance);
|
this.list.water_resistance = math.floor(water_resistance);
|
||||||
else
|
else
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: water_resistance");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: water_resistance");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Thunder Resistance
|
-- Thunder Resistance
|
||||||
local thunder_resistance_single_valtype = get_value_method:call(resistance_element_array, 2);
|
local thunder_resistance_single_valtype = get_value_method:call(resistance_element_array, 2);
|
||||||
if thunder_resistance_single_valtype == nil then
|
if thunder_resistance_single_valtype == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: thunder_resistance_single_valtype");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: thunder_resistance_single_valtype");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -231,14 +231,14 @@ function this.update_resistances(player_data)
|
|||||||
if thunder_resistance ~= nil then
|
if thunder_resistance ~= nil then
|
||||||
this.list.thunder_resistance = math.floor(thunder_resistance);
|
this.list.thunder_resistance = math.floor(thunder_resistance);
|
||||||
else
|
else
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: thunder_resistance");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: thunder_resistance");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Ice Resistance
|
-- Ice Resistance
|
||||||
local ice_resistance_single_valtype = get_value_method:call(resistance_element_array, 3);
|
local ice_resistance_single_valtype = get_value_method:call(resistance_element_array, 3);
|
||||||
if ice_resistance_single_valtype == nil then
|
if ice_resistance_single_valtype == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: ice_resistance_single_valtype");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: ice_resistance_single_valtype");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -246,14 +246,14 @@ function this.update_resistances(player_data)
|
|||||||
if ice_resistance ~= nil then
|
if ice_resistance ~= nil then
|
||||||
this.list.ice_resistance = math.floor(ice_resistance);
|
this.list.ice_resistance = math.floor(ice_resistance);
|
||||||
else
|
else
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: ice_resistance");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: ice_resistance");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Dragon Resistance
|
-- Dragon Resistance
|
||||||
local dragon_resistance_single_valtype = get_value_method:call(resistance_element_array, 4);
|
local dragon_resistance_single_valtype = get_value_method:call(resistance_element_array, 4);
|
||||||
if dragon_resistance_single_valtype == nil then
|
if dragon_resistance_single_valtype == nil then
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: dragon_resistance_single_valtype");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: dragon_resistance_single_valtype");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@ function this.update_resistances(player_data)
|
|||||||
if dragon_resistance ~= nil then
|
if dragon_resistance ~= nil then
|
||||||
this.list.dragon_resistance = math.floor(dragon_resistance);
|
this.list.dragon_resistance = math.floor(dragon_resistance);
|
||||||
else
|
else
|
||||||
error_handler.report("player_info.update_resistances", "Failed to access Data: dragon_resistance");
|
error_handler.report("player_info.update_resistances", "Failed to Access Data: dragon_resistance");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -285,7 +285,7 @@ end
|
|||||||
function this.update_health(quest_player_base)
|
function this.update_health(quest_player_base)
|
||||||
local vital = get_vital_method:call(master_player_data_ref);
|
local vital = get_vital_method:call(master_player_data_ref);
|
||||||
if vital == nil then
|
if vital == nil then
|
||||||
error_handler.report("player_info.update_health", "Failed to access Data: vital");
|
error_handler.report("player_info.update_health", "Failed to Access Data: vital");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ function this.update_heroics(quest_player_base)
|
|||||||
|
|
||||||
local is_predicament_power_up = is_predicament_power_up_method:call(master_player_ref);
|
local is_predicament_power_up = is_predicament_power_up_method:call(master_player_ref);
|
||||||
if is_predicament_power_up == nil then
|
if is_predicament_power_up == nil then
|
||||||
error_handler.report("player_info.update_heroics", "Failed to access Data: is_predicament_power_up");
|
error_handler.report("player_info.update_heroics", "Failed to Access Data: is_predicament_power_up");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ function this.update_dango_adrenaline(quest_player_base)
|
|||||||
|
|
||||||
local is_kitchen_skill_predicament_powerup = is_kitchen_skill_predicament_powerup_method:call(master_player_ref);
|
local is_kitchen_skill_predicament_powerup = is_kitchen_skill_predicament_powerup_method:call(master_player_ref);
|
||||||
if is_kitchen_skill_predicament_powerup == nil then
|
if is_kitchen_skill_predicament_powerup == nil then
|
||||||
error_handler.report("player_info.update_dango_adrenaline", "Failed to access Data: is_kitchen_skill_predicament_powerup");
|
error_handler.report("player_info.update_dango_adrenaline", "Failed to Access Data: is_kitchen_skill_predicament_powerup");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -69,13 +69,13 @@ function this.poison_proc(poison_param)
|
|||||||
|
|
||||||
local enemy = get_enemy_method:call(poison_param);
|
local enemy = get_enemy_method:call(poison_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
error_handler.report("ailment_hook.poison_proc", "Failed to access Data: enemy");
|
error_handler.report("ailment_hook.poison_proc", "Failed to Access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
error_handler.report("ailment_hook.poison_proc", "Failed to access Data: is_large");
|
error_handler.report("ailment_hook.poison_proc", "Failed to Access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -100,13 +100,13 @@ function this.blast_proc(blast_param)
|
|||||||
|
|
||||||
local enemy = get_enemy_method:call(blast_param);
|
local enemy = get_enemy_method:call(blast_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
error_handler.report("ailment_hook.blast_proc", "Failed to access Data: enemy");
|
error_handler.report("ailment_hook.blast_proc", "Failed to Access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
error_handler.report("ailment_hook.blast_proc", "Failed to access Data: is_large");
|
error_handler.report("ailment_hook.blast_proc", "Failed to Access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -128,13 +128,13 @@ function this.stock_damage()
|
|||||||
for enemy, monster in pairs(large_monster.list) do
|
for enemy, monster in pairs(large_monster.list) do
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> damage_param");
|
error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: large_monster -> damage_param");
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
if poison_param == nil then
|
if poison_param == nil then
|
||||||
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> poison_param");
|
error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: large_monster -> poison_param");
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -145,13 +145,13 @@ function this.stock_damage()
|
|||||||
for enemy, monster in pairs(small_monster.list) do
|
for enemy, monster in pairs(small_monster.list) do
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> damage_param");
|
error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: small_monster -> damage_param");
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
if poison_param == nil then
|
if poison_param == nil then
|
||||||
error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> poison_param");
|
error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: small_monster -> poison_param");
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ function this.update_ailments(enemy, monster)
|
|||||||
|
|
||||||
local damage_param = get_damage_param_method:call(enemy);
|
local damage_param = get_damage_param_method:call(enemy);
|
||||||
if damage_param == nil then
|
if damage_param == nil then
|
||||||
error_handler.report("ailments.update_ailments", "Failed to access Data: damage_param");
|
error_handler.report("ailments.update_ailments", "Failed to Access Data: damage_param");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -307,13 +307,13 @@ function this.update_ailments(enemy, monster)
|
|||||||
|
|
||||||
local condition_param_array = get_condition_param_method:call(damage_param);
|
local condition_param_array = get_condition_param_method:call(damage_param);
|
||||||
if condition_param_array == nil then
|
if condition_param_array == nil then
|
||||||
error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array");
|
error_handler.report("ailments.update_ailments", "Failed to Access Data: condition_param_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local condition_param_array_length = get_length_method:call(condition_param_array);
|
local condition_param_array_length = get_length_method:call(condition_param_array);
|
||||||
if condition_param_array_length == nil then
|
if condition_param_array_length == nil then
|
||||||
error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array_length");
|
error_handler.report("ailments.update_ailments", "Failed to Access Data: condition_param_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -324,7 +324,7 @@ function this.update_ailments(enemy, monster)
|
|||||||
|
|
||||||
local ailment_param = get_value_method:call(condition_param_array, id);
|
local ailment_param = get_value_method:call(condition_param_array, id);
|
||||||
if ailment_param == nil then
|
if ailment_param == nil then
|
||||||
error_handler.report("ailments.update_ailments", "Failed to access Data: ailment_param No. " .. tostring(id));
|
error_handler.report("ailments.update_ailments", "Failed to Access Data: ailment_param No. " .. tostring(id));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -338,21 +338,21 @@ function this.update_stun_poison_blast_ailments(monster, damage_param)
|
|||||||
if stun_param ~= nil then
|
if stun_param ~= nil then
|
||||||
this.update_ailment(monster, stun_param, this.stun_id);
|
this.update_ailment(monster, stun_param, this.stun_id);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: stun_param");
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: stun_param");
|
||||||
end
|
end
|
||||||
|
|
||||||
local poison_param = poison_param_field:get_data(damage_param);
|
local poison_param = poison_param_field:get_data(damage_param);
|
||||||
if poison_param ~= nil then
|
if poison_param ~= nil then
|
||||||
this.update_ailment(monster, poison_param, this.poison_id);
|
this.update_ailment(monster, poison_param, this.poison_id);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: poison_param");
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: poison_param");
|
||||||
end
|
end
|
||||||
|
|
||||||
local blast_param = blast_param_field:get_data(damage_param);
|
local blast_param = blast_param_field:get_data(damage_param);
|
||||||
if blast_param ~= nil then
|
if blast_param ~= nil then
|
||||||
this.update_ailment(monster, blast_param, this.blast_id);
|
this.update_ailment(monster, blast_param, this.blast_id);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: blast_param");
|
error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: blast_param");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -380,14 +380,14 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
if activate_count_valtype ~= nil then
|
if activate_count_valtype ~= nil then
|
||||||
activate_count = int32_mvalue_field:get_data(activate_count_valtype);
|
activate_count = int32_mvalue_field:get_data(activate_count_valtype);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_valtype");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_valtype");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array_length");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_array_length");
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_array ~= nil then
|
if buildup_array ~= nil then
|
||||||
@@ -401,14 +401,14 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
if buildup_valtype ~= nil then
|
if buildup_valtype ~= nil then
|
||||||
buildup = single_mvalue_field:get_data(buildup_valtype);
|
buildup = single_mvalue_field:get_data(buildup_valtype);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_valtype");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_valtype");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array_length");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_array_length");
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_limit_array ~= nil then
|
if buildup_limit_array ~= nil then
|
||||||
@@ -422,14 +422,14 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
if buildup_limit_valtype ~= nil then
|
if buildup_limit_valtype ~= nil then
|
||||||
buildup_limit = single_mvalue_field:get_data(buildup_limit_valtype);
|
buildup_limit = single_mvalue_field:get_data(buildup_limit_valtype);
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_valtype");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_valtype");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array_length");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_array_length");
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_array");
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_enable == nil then
|
if is_enable == nil then
|
||||||
@@ -453,7 +453,7 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
|
|
||||||
monster.ailments[id].activate_count = activate_count;
|
monster.ailments[id].activate_count = activate_count;
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup ~= nil then
|
if buildup ~= nil then
|
||||||
@@ -463,7 +463,7 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
|
|
||||||
monster.ailments[id].total_buildup = buildup;
|
monster.ailments[id].total_buildup = buildup;
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup_limit ~= nil then
|
if buildup_limit ~= nil then
|
||||||
@@ -473,7 +473,7 @@ function this.update_ailment(monster, ailment_param, id)
|
|||||||
|
|
||||||
monster.ailments[id].buildup_limit = buildup_limit;
|
monster.ailments[id].buildup_limit = buildup_limit;
|
||||||
else
|
else
|
||||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit");
|
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit");
|
||||||
end
|
end
|
||||||
|
|
||||||
if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then
|
if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then
|
||||||
@@ -544,7 +544,7 @@ function this.update_poison(monster, poison_param)
|
|||||||
--if poison tick, apply damage
|
--if poison tick, apply damage
|
||||||
local is_damage = poison_get_is_damage_method:call(poison_param);
|
local is_damage = poison_get_is_damage_method:call(poison_param);
|
||||||
if is_damage == nil then
|
if is_damage == nil then
|
||||||
error_handler.report("ailments.update_poison", "Failed to access Data: is_damage");
|
error_handler.report("ailments.update_poison", "Failed to Access Data: is_damage");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -554,7 +554,7 @@ function this.update_poison(monster, poison_param)
|
|||||||
|
|
||||||
local poison_damage = poison_damage_field:get_data(poison_param);
|
local poison_damage = poison_damage_field:get_data(poison_param);
|
||||||
if poison_damage == nil then
|
if poison_damage == nil then
|
||||||
error_handler.report("ailments.update_poison", "Failed to access Data: poison_damage");
|
error_handler.report("ailments.update_poison", "Failed to Access Data: poison_damage");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -205,13 +205,13 @@ end
|
|||||||
function this.update_health(enemy_damage_check)
|
function this.update_health(enemy_damage_check)
|
||||||
local enemy = get_ref_enemy:call(enemy_damage_check);
|
local enemy = get_ref_enemy:call(enemy_damage_check);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
error_handler.report("monster_hook.update_health", "Failed to access Data: enemy");
|
error_handler.report("monster_hook.update_health", "Failed to Access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local is_large = is_boss_enemy_method:call(enemy);
|
local is_large = is_boss_enemy_method:call(enemy);
|
||||||
if is_large == nil then
|
if is_large == nil then
|
||||||
error_handler.report("monster_hook.update_health", "Failed to access Data: is_large");
|
error_handler.report("monster_hook.update_health", "Failed to Access Data: is_large");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ function this.update_stamina(stamina_param, stamina_sub)
|
|||||||
|
|
||||||
local enemy = get_enemy_method:call(stamina_param);
|
local enemy = get_enemy_method:call(stamina_param);
|
||||||
if enemy == nil then
|
if enemy == nil then
|
||||||
error_handler.report("monster_hook.update_stamina", "Failed to access Data: enemy");
|
error_handler.report("monster_hook.update_stamina", "Failed to Access Data: enemy");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user