Formatting

This commit is contained in:
GreenComfyTea
2023-08-06 14:43:41 +03:00
parent 0eac453bf4
commit ade8a6bf19
19 changed files with 227 additions and 229 deletions

View File

@@ -114,7 +114,7 @@ end
function this.update() function this.update()
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
@@ -126,7 +126,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
@@ -134,7 +134,7 @@ function this.update()
if master_player_data ~= nil then if master_player_data ~= nil then
consumables.update(master_player_data); consumables.update(master_player_data);
else else
error_handler.report("buffs.update", "Failed to Access Data: master_player_data"); error_handler.report("buffs.update", "Failed to access Data: master_player_data");
end end
local music_data_array = music_data_field:get_data(master_player); local music_data_array = music_data_field:get_data(master_player);
@@ -145,7 +145,7 @@ function this.update()
for i = 0, length do for i = 0, length do
local music_data = get_value_method:call(music_data_array, i); local music_data = get_value_method:call(music_data_array, i);
if music_data == nil then if music_data == nil then
error_handler.report("buffs.update", "Failed to Access Data: music_data No." .. tostring(i)); error_handler.report("buffs.update", "Failed to access Data: music_data No." .. tostring(i));
music_data = ""; music_data = "";
end end
@@ -154,7 +154,7 @@ function this.update()
melody_effects.update(music_data_table); melody_effects.update(music_data_table);
else else
error_handler.report("buffs.update", "Failed to Access Data: music_data_array"); error_handler.report("buffs.update", "Failed to access Data: music_data_array");
end end
end end

View File

@@ -100,7 +100,7 @@ local get_value_method = system_array_type_def:get_method("GetValue(System.Int32
function this.update(player_data) function this.update(player_data)
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("consumables.update", "Failed to Access Data: item_parameter"); error_handler.report("consumables.update", "Failed to access Data: item_parameter");
return; return;
end end
@@ -117,7 +117,7 @@ end
function this.update_demondrug(player_data, item_parameter) 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("consumables.update_demondrug", "Failed to Access Data: demondrug_value"); error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_value");
return; return;
end end
@@ -129,13 +129,13 @@ 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("consumables.update_demondrug", "Failed to Access Data: demondrug_const_value"); error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_const_value");
return; return;
end end
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("consumables.update_demondrug", "Failed to Access Data: mega_demondrug_const_value"); error_handler.report("consumables.update_demondrug", "Failed to access Data: mega_demondrug_const_value");
return; return;
end end
if demondrug_value == demondrug_const_value then if demondrug_value == demondrug_const_value then
@@ -165,7 +165,7 @@ end
function this.update_armorskin(player_data, item_parameter) 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("consumables.update_armorskin", "Failed to Access Data: armorskin_value"); error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_value");
return; return;
end end
@@ -177,13 +177,13 @@ 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("consumables.update_armorskin", "Failed to Access Data: armorskin_const_value"); error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_const_value");
return; return;
end end
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("consumables.update_armorskin", "Failed to Access Data: mega_armorskin_const_value"); error_handler.report("consumables.update_armorskin", "Failed to access Data: mega_armorskin_const_value");
return; return;
end end
@@ -214,7 +214,7 @@ end
function this.update_might_seed(player_data, item_parameter) function this.update_might_seed(player_data, item_parameter)
local might_seed_value = atk_up_buff_second_field:get_data(player_data); local might_seed_value = atk_up_buff_second_field:get_data(player_data);
if might_seed_value == nil then if might_seed_value == nil then
error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_value"); error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_value");
return; return;
end end
@@ -225,7 +225,7 @@ function this.update_might_seed(player_data, item_parameter)
local might_seed_timer = atk_up_buff_second_timer_field:get_data(player_data); local might_seed_timer = atk_up_buff_second_timer_field:get_data(player_data);
if might_seed_timer == nil then if might_seed_timer == nil then
error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_timer"); error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_timer");
return; return;
end end
@@ -233,7 +233,7 @@ function this.update_might_seed(player_data, item_parameter)
if buff == nil then if buff == nil then
local might_seed_timer_const_value = might_seed_timer_field:get_data(item_parameter); local might_seed_timer_const_value = might_seed_timer_field:get_data(item_parameter);
if might_seed_timer_const_value == nil then if might_seed_timer_const_value == nil then
error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_timer_const_value"); error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_timer_const_value");
return; return;
end end
@@ -250,7 +250,7 @@ end
function this.update_adamant_seed(player_data, item_parameter) function this.update_adamant_seed(player_data, item_parameter)
local adamant_seed_value = def_up_buff_second_field:get_data(player_data); local adamant_seed_value = def_up_buff_second_field:get_data(player_data);
if adamant_seed_value == nil then if adamant_seed_value == nil then
error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_value"); error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_value");
return; return;
end end
@@ -261,7 +261,7 @@ function this.update_adamant_seed(player_data, item_parameter)
local adamant_seed_timer = def_up_buff_second_timer_field:get_data(player_data); local adamant_seed_timer = def_up_buff_second_timer_field:get_data(player_data);
if adamant_seed_timer == nil then if adamant_seed_timer == nil then
error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_timer"); error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_timer");
return; return;
end end
@@ -269,7 +269,7 @@ function this.update_adamant_seed(player_data, item_parameter)
if buff == nil then if buff == nil then
local adamant_seed_timer_const_value = adamant_seed_timer_field:get_data(item_parameter); local adamant_seed_timer_const_value = adamant_seed_timer_field:get_data(item_parameter);
if adamant_seed_timer_const_value == nil then if adamant_seed_timer_const_value == nil then
error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_timer_const_value"); error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_timer_const_value");
return; return;
end end
@@ -286,7 +286,7 @@ end
function this.update_demon_powder(player_data, item_parameter) function this.update_demon_powder(player_data, item_parameter)
local demon_powder_value = atk_up_item_second_field:get_data(player_data); local demon_powder_value = atk_up_item_second_field:get_data(player_data);
if demon_powder_value == nil then if demon_powder_value == nil then
error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_value"); error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_value");
return; return;
end end
@@ -297,7 +297,7 @@ function this.update_demon_powder(player_data, item_parameter)
local demon_powder_timer = atk_up_item_second_timer_field:get_data(player_data); local demon_powder_timer = atk_up_item_second_timer_field:get_data(player_data);
if demon_powder_timer == nil then if demon_powder_timer == nil then
error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_timer"); error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_timer");
return; return;
end end
@@ -305,7 +305,7 @@ function this.update_demon_powder(player_data, item_parameter)
if buff == nil then if buff == nil then
local demon_powder_timer_const_value = demondrug_powder_timer_field:get_data(item_parameter); local demon_powder_timer_const_value = demondrug_powder_timer_field:get_data(item_parameter);
if demon_powder_timer_const_value == nil then if demon_powder_timer_const_value == nil then
error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_timer_const_value"); error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_timer_const_value");
return; return;
end end
@@ -322,7 +322,7 @@ end
function this.update_hardshell_powder(player_data, item_parameter) function this.update_hardshell_powder(player_data, item_parameter)
local hardshell_powder_value = def_up_item_second_field:get_data(player_data); local hardshell_powder_value = def_up_item_second_field:get_data(player_data);
if hardshell_powder_value == nil then if hardshell_powder_value == nil then
error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: hardshell_powder_value"); error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: hardshell_powder_value");
return; return;
end end
@@ -333,7 +333,7 @@ function this.update_hardshell_powder(player_data, item_parameter)
local hardshell_powder_timer = def_up_item_second_timer_field:get_data(player_data); local hardshell_powder_timer = def_up_item_second_timer_field:get_data(player_data);
if hardshell_powder_timer == nil then if hardshell_powder_timer == nil then
error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: hardshell_powder_timer"); error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: hardshell_powder_timer");
return; return;
end end
@@ -341,7 +341,7 @@ function this.update_hardshell_powder(player_data, item_parameter)
if buff == nil then if buff == nil then
local demon_powder_timer_const_value = armorskin_powder_timer_field:get_data(item_parameter); local demon_powder_timer_const_value = armorskin_powder_timer_field:get_data(item_parameter);
if demon_powder_timer_const_value == nil then if demon_powder_timer_const_value == nil then
error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: demon_powder_timer_const_value"); error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: demon_powder_timer_const_value");
return; return;
end end
@@ -358,7 +358,7 @@ end
function this.update_immunizer(player_data, item_parameter) function this.update_immunizer(player_data, item_parameter)
local immunizer_timer = vitalizer_timer_field:get_data(player_data); local immunizer_timer = vitalizer_timer_field:get_data(player_data);
if immunizer_timer == nil then if immunizer_timer == nil then
error_handler.report("consumables.update_immunizer", "Failed to Access Data: immunizer_timer"); error_handler.report("consumables.update_immunizer", "Failed to access Data: immunizer_timer");
return; return;
end end
@@ -371,7 +371,7 @@ function this.update_immunizer(player_data, item_parameter)
if buff == nil then if buff == nil then
local immunizer_timer_const_value = vitalizer_timer_const_field:get_data(item_parameter); local immunizer_timer_const_value = vitalizer_timer_const_field:get_data(item_parameter);
if immunizer_timer_const_value == nil then if immunizer_timer_const_value == nil then
error_handler.report("consumables.update_immunizer", "Failed to Access Data: immunizer_timer_const_value"); error_handler.report("consumables.update_immunizer", "Failed to access Data: immunizer_timer_const_value");
return; return;
end end
@@ -387,7 +387,7 @@ end
function this.update_dash_juice(player_data, item_parameter) function this.update_dash_juice(player_data, item_parameter)
local dash_juice_timer = stamina_up_buff_second_timer_field:get_data(player_data); local dash_juice_timer = stamina_up_buff_second_timer_field:get_data(player_data);
if dash_juice_timer == nil then if dash_juice_timer == nil then
error_handler.report("consumables.update_dash_juice", "Failed to Access Data: dash_juice_timer"); error_handler.report("consumables.update_dash_juice", "Failed to access Data: dash_juice_timer");
return; return;
end end
@@ -401,7 +401,7 @@ function this.update_dash_juice(player_data, item_parameter)
if buff == nil then if buff == nil then
local dash_juice_timer_const_value = stamina_up_buff_second_field:get_data(item_parameter); local dash_juice_timer_const_value = stamina_up_buff_second_field:get_data(item_parameter);
if dash_juice_timer_const_value == nil then if dash_juice_timer_const_value == nil then
error_handler.report("consumables.update_dash_juice", "Failed to Access Data: dash_juice_timer"); error_handler.report("consumables.update_dash_juice", "Failed to access Data: dash_juice_timer");
return; return;
end end

View File

@@ -116,7 +116,7 @@ function this.update(melody_data_table)
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", "Failed to Access Data: melody_timer No. " .. tostring(lua_index - 1)); error_handler.report("melody_effects.update", "Failed to access Data: melody_timer No. " .. tostring(lua_index - 1));
goto continue; goto continue;
end end

View File

@@ -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
@@ -300,7 +300,7 @@ function this.on_stock_direct_marionette_finish_shoot_hit_parts_damage(enemy, da
end end
if player == nil then if player == nil then
error_handler.report("damage_hook.on_stock_direct_marionette_finish_shoot_hit_parts_damage", "Failed to Create Player Entry"); error_handler.report("damage_hook.on_stock_direct_marionette_finish_shoot_hit_parts_damage", "Failed to create Player Entry");
return; return;
end end
@@ -366,7 +366,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

View File

@@ -133,19 +133,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
@@ -153,20 +153,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
@@ -218,11 +218,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");
end end
if name ~= nil and name ~= "" then if name ~= nil and name ~= "" then
@@ -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
@@ -314,33 +314,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

View File

@@ -452,7 +452,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
@@ -463,13 +463,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;
@@ -521,25 +521,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
@@ -549,7 +549,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
@@ -562,26 +562,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
@@ -590,7 +590,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

View File

@@ -81,13 +81,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
@@ -114,7 +114,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;
@@ -131,7 +131,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;

View File

@@ -336,13 +336,13 @@ this.keys = {
function this.update() function this.update()
if singletons.game_keyboard == nil then if singletons.game_keyboard == nil then
error_handler.report("keyboard.update", "Failed to Access Data: game_keyboard"); error_handler.report("keyboard.update", "Failed to access Data: game_keyboard");
return; return;
end end
local hard_keyboard = hard_keyboard_field:get_data(singletons.game_keyboard); local hard_keyboard = hard_keyboard_field:get_data(singletons.game_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
@@ -495,7 +495,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
@@ -521,7 +521,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;
@@ -535,7 +535,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
@@ -555,7 +555,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;
@@ -569,7 +569,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;
@@ -583,7 +583,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;
@@ -597,7 +597,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;
@@ -611,7 +611,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;
@@ -625,7 +625,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;

View File

@@ -155,7 +155,7 @@ end
function this.get_cart_count() function this.get_cart_count()
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.get_cart_count", "Failed to Access Data: death_num"); error_handler.report("quest_status.get_cart_count", "Failed to access Data: death_num");
end end
this.cart_count = death_num; this.cart_count = death_num;
@@ -164,7 +164,7 @@ end
function this.get_max_cart_count() function this.get_max_cart_count()
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;
@@ -185,7 +185,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
@@ -317,13 +317,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
@@ -344,13 +344,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
@@ -359,13 +359,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
@@ -374,13 +374,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

View File

@@ -73,26 +73,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

View File

@@ -67,7 +67,7 @@ end
function this.init_message_manager() function this.init_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.init_message_manager", "Failed to Access Data: message_manager"); error_handler.report("singletons.init_message_manager", "Failed to access Data: message_manager");
end end
return this.message_manager; return this.message_manager;
@@ -76,7 +76,7 @@ end
function this.init_enemy_manager() function this.init_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.init_enemy_manager", "Failed to Access Data: enemy_manager"); error_handler.report("singletons.init_enemy_manager", "Failed to access Data: enemy_manager");
end end
return this.enemy_manager; return this.enemy_manager;
@@ -85,7 +85,7 @@ end
function this.init_lobby_manager() function this.init_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.init_lobby_manager", "Failed to Access Data: lobby_manager"); error_handler.report("singletons.init_lobby_manager", "Failed to access Data: lobby_manager");
return false; return false;
end end
@@ -95,7 +95,7 @@ end
function this.init_progress_manager() function this.init_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.init_lobby_manager", "Failed to Access Data: progress_manager"); error_handler.report("singletons.init_lobby_manager", "Failed to access Data: progress_manager");
return false; return false;
end end
@@ -105,7 +105,7 @@ end
function this.init_quest_manager() function this.init_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.init_quest_manager", "Failed to Access Data: quest_manager"); error_handler.report("singletons.init_quest_manager", "Failed to access Data: quest_manager");
end end
return this.quest_manager; return this.quest_manager;
@@ -114,7 +114,7 @@ end
function this.init_player_manager() function this.init_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.init_player_manager", "Failed to Access Data: player_manager"); error_handler.report("singletons.init_player_manager", "Failed to access Data: player_manager");
end end
return this.player_manager; return this.player_manager;
@@ -123,7 +123,7 @@ end
function this.init_village_area_manager() function this.init_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.init_village_area_manager", "Failed to Access Data: village_area_manager"); error_handler.report("singletons.init_village_area_manager", "Failed to access Data: village_area_manager");
end end
return this.village_area_manager; return this.village_area_manager;
@@ -132,7 +132,7 @@ end
function this.init_gui_manager() function this.init_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.init_gui_manager", "Failed to Access Data: gui_manager"); error_handler.report("singletons.init_gui_manager", "Failed to access Data: gui_manager");
end end
return this.gui_manager; return this.gui_manager;
@@ -141,7 +141,7 @@ end
function this.init_game_keyboard() function this.init_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.init_game_keyboard", "Failed to Access Data: game_keyboard"); error_handler.report("singletons.init_game_keyboard", "Failed to access Data: game_keyboard");
end end
return this.game_keyboard; return this.game_keyboard;
@@ -150,7 +150,7 @@ end
function this.init_scene_manager() function this.init_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.init_scene_manager", "Failed to Access Data: scene_manager"); error_handler.report("singletons.init_scene_manager", "Failed to access Data: scene_manager");
end end
return this.scene_manager; return this.scene_manager;
@@ -159,7 +159,7 @@ end
function this.init_game_manager() function this.init_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.init_game_manager", "Failed to Access Data: game_manager"); error_handler.report("singletons.init_game_manager", "Failed to access Data: game_manager");
end end
return this.game_manager; return this.game_manager;
@@ -168,7 +168,7 @@ end
function this.init_servant_manager() function this.init_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.init_servant_manager", "Failed to Access Data: servant_manager"); error_handler.report("singletons.init_servant_manager", "Failed to access Data: servant_manager");
end end
return this.servant_manager; return this.servant_manager;
@@ -177,7 +177,7 @@ end
function this.init_otomo_manager() function this.init_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.init_otomo_manager", "Failed to Access Data: otomo_manager"); error_handler.report("singletons.init_otomo_manager", "Failed to access Data: otomo_manager");
end end
return this.otomo_manager; return this.otomo_manager;

View File

@@ -97,14 +97,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

View File

@@ -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
@@ -129,13 +129,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
@@ -146,13 +146,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

View File

@@ -282,7 +282,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
@@ -300,13 +300,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 = length_method:call(condition_param_array); local condition_param_array_length = 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
@@ -317,7 +317,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
@@ -331,21 +331,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
@@ -373,14 +373,14 @@ function this.update_ailment(monster, ailment_param, id)
if activate_count_valuetype ~= nil then if activate_count_valuetype ~= nil then
activate_count = activate_count_valuetype:get_field("mValue"); activate_count = activate_count_valuetype:get_field("mValue");
else else
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_valuetype"); error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_valuetype");
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
@@ -394,14 +394,14 @@ function this.update_ailment(monster, ailment_param, id)
if buildup_valuetype ~= nil then if buildup_valuetype ~= nil then
buildup = buildup_valuetype:get_field("mValue"); buildup = buildup_valuetype:get_field("mValue");
else else
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_valuetype"); error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_valuetype");
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
@@ -415,14 +415,14 @@ function this.update_ailment(monster, ailment_param, id)
if buildup_limit_valuetype ~= nil then if buildup_limit_valuetype ~= nil then
buildup_limit = buildup_limit_valuetype:get_field("mValue"); buildup_limit = buildup_limit_valuetype:get_field("mValue");
else else
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_valuetype"); error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_valuetype");
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
@@ -446,7 +446,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
@@ -456,7 +456,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
@@ -466,7 +466,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
@@ -537,13 +537,13 @@ 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
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

View File

@@ -272,7 +272,7 @@ local get_targeting_enemy_index_field = tg_camera_type_def:get_field("OldTargeti
function this.init(monster, enemy) function this.init(monster, enemy)
local monster_id = enemy_type_field:get_data(enemy); local monster_id = enemy_type_field:get_data(enemy);
if monster_id == nil then if monster_id == nil then
error_handler.report("large_monster.init", "Failed to Access Data: enemy_type"); error_handler.report("large_monster.init", "Failed to access Data: enemy_type");
return; return;
end end
@@ -286,7 +286,7 @@ function this.init(monster, enemy)
if enemy_name ~= nil then if enemy_name ~= nil then
monster.name = enemy_name; monster.name = enemy_name;
else else
error_handler.report("large_monster.init", "Failed to Access Data: enemy_name"); error_handler.report("large_monster.init", "Failed to access Data: enemy_name");
end end
if monster_id ~= this.monster_ids.toadversary then if monster_id ~= this.monster_ids.toadversary then
@@ -296,10 +296,10 @@ function this.init(monster, enemy)
if unique_id ~= nil then if unique_id ~= nil then
monster.unique_id = unique_id; monster.unique_id = unique_id;
else else
error_handler.report("large_monster.init", "Failed to Access Data: unique_id"); error_handler.report("large_monster.init", "Failed to access Data: unique_id");
end end
else else
error_handler.report("large_monster.init", "Failed to Access Data: set_info"); error_handler.report("large_monster.init", "Failed to access Data: set_info");
end end
local size_info = find_enemy_size_info_method:call(singletons.enemy_manager, monster_id); local size_info = find_enemy_size_info_method:call(singletons.enemy_manager, monster_id);
@@ -313,25 +313,25 @@ function this.init(monster, enemy)
if small_border ~= nil then if small_border ~= nil then
monster.small_border = small_border; monster.small_border = small_border;
else else
error_handler.report("large_monster.init", "Failed to Access Data: small_border"); error_handler.report("large_monster.init", "Failed to access Data: small_border");
end end
if big_border ~= nil then if big_border ~= nil then
monster.big_border = big_border; monster.big_border = big_border;
else else
error_handler.report("large_monster.init", "Failed to Access Data: big_border"); error_handler.report("large_monster.init", "Failed to access Data: big_border");
end end
if king_border ~= nil then if king_border ~= nil then
monster.king_border = king_border; monster.king_border = king_border;
else else
error_handler.report("large_monster.init", "Failed to Access Data: king_border"); error_handler.report("large_monster.init", "Failed to access Data: king_border");
end end
if size ~= nil then if size ~= nil then
monster.size = size; monster.size = size;
else else
error_handler.report("large_monster.init", "Failed to Access Data: size"); error_handler.report("large_monster.init", "Failed to access Data: size");
end end
if monster.size <= monster.small_border then if monster.size <= monster.small_border then
@@ -342,7 +342,7 @@ function this.init(monster, enemy)
monster.crown = language.current_language.UI.silver; monster.crown = language.current_language.UI.silver;
end end
else else
error_handler.report("large_monster.init", "Failed to Access Data: size_info"); error_handler.report("large_monster.init", "Failed to access Data: size_info");
end end
end end
@@ -357,13 +357,13 @@ function this.init(monster, enemy)
if is_capture_enable_ ~= nil then if is_capture_enable_ ~= nil then
is_capture_enable = is_capture_enable_; is_capture_enable = is_capture_enable_;
else else
error_handler.report("large_monster.init", "Failed to Access Data: is_capture_enable_"); error_handler.report("large_monster.init", "Failed to access Data: is_capture_enable_");
end end
else else
error_handler.report("large_monster.init", "Failed to Access Data: capture_param"); error_handler.report("large_monster.init", "Failed to access Data: capture_param");
end end
else else
error_handler.report("large_monster.init", "Failed to Access Data: damage_param"); error_handler.report("large_monster.init", "Failed to access Data: damage_param");
end end
local mystery_param = get_mystery_param_method:call(enemy); local mystery_param = get_mystery_param_method:call(enemy);
@@ -469,7 +469,7 @@ function this.update_position(enemy, monster)
local position = get_pos_field:call(enemy); local position = get_pos_field:call(enemy);
if position == nil then if position == nil then
error_handler.report("large_monster.update_position", "Failed to Access Data: position"); error_handler.report("large_monster.update_position", "Failed to access Data: position");
end end
monster.position = position; monster.position = position;
@@ -481,20 +481,20 @@ function this.update_all_riders()
-- get marionette rider -- get marionette rider
local mario_param = get_mario_param_method:call(enemy); local mario_param = get_mario_param_method:call(enemy);
if mario_param == nil then if mario_param == nil then
error_handler.report("large_monster.update_all_riders", "Failed to Access Data: mario_param"); error_handler.report("large_monster.update_all_riders", "Failed to access Data: mario_param");
goto continue; goto continue;
end end
local is_marionette = get_is_marionette_method:call(mario_param); local is_marionette = get_is_marionette_method:call(mario_param);
if is_marionette == nil then if is_marionette == nil then
error_handler.report("large_monster.update_all_riders", "Failed to Access Data: is_marionette"); error_handler.report("large_monster.update_all_riders", "Failed to access Data: is_marionette");
goto continue; goto continue;
end end
if is_marionette then if is_marionette then
local player_id = get_mario_player_index_method:call(mario_param); local player_id = get_mario_player_index_method:call(mario_param);
if player_id == nil then if player_id == nil then
error_handler.report("large_monster.update_all_riders", "Failed to Access Data: player_id"); error_handler.report("large_monster.update_all_riders", "Failed to access Data: player_id");
goto continue; goto continue;
end end
@@ -520,14 +520,14 @@ function this.update(enemy, monster)
if dead_or_captured ~= nil then if dead_or_captured ~= nil then
monster.dead_or_captured = dead_or_captured; monster.dead_or_captured = dead_or_captured;
else else
error_handler.report("large_monster.update", "Failed to Access Data: dead_or_captured"); error_handler.report("large_monster.update", "Failed to access Data: dead_or_captured");
end end
local is_disp_icon_mini_map = is_disp_icon_mini_map_method:call(enemy); local is_disp_icon_mini_map = is_disp_icon_mini_map_method:call(enemy);
if is_disp_icon_mini_map ~= nil then if is_disp_icon_mini_map ~= nil then
monster.is_disp_icon_mini_map = is_disp_icon_mini_map; monster.is_disp_icon_mini_map = is_disp_icon_mini_map;
else else
error_handler.report("large_monster.update", "Failed to Access Data: is_disp_icon_mini_map"); error_handler.report("large_monster.update", "Failed to access Data: is_disp_icon_mini_map");
end end
if monster.id == this.monster_ids.lucent_nargacuga or monster.id == this.monster_ids.chameleos or monster.id == this.monster_ids.risen_chameleos then if monster.id == this.monster_ids.lucent_nargacuga or monster.id == this.monster_ids.chameleos or monster.id == this.monster_ids.risen_chameleos then
@@ -541,7 +541,7 @@ function this.update(enemy, monster)
if is_stealth == nil then if is_stealth == nil then
monster.is_stealth = is_stealth; monster.is_stealth = is_stealth;
else else
error_handler.report("large_monster.update", "Failed to Access Data: is_stealth"); error_handler.report("large_monster.update", "Failed to access Data: is_stealth");
end end
-- Chameleos and Risen Chameleos -- Chameleos and Risen Chameleos
@@ -551,14 +551,14 @@ function this.update(enemy, monster)
local status = get_current_status_method:call(stealth_controller); local status = get_current_status_method:call(stealth_controller);
if status == nil then if status == nil then
error_handler.report("large_monster.update", "Failed to Access Data: status"); error_handler.report("large_monster.update", "Failed to access Data: status");
elseif status >= 2 then elseif status >= 2 then
monster.is_stealth = true; monster.is_stealth = true;
else else
monster.is_stealth = false; monster.is_stealth = false;
end end
else else
error_handler.report("large_monster.update", "Failed to Access Data: stealth_controller"); error_handler.report("large_monster.update", "Failed to access Data: stealth_controller");
end end
end end
end end
@@ -583,13 +583,13 @@ function this.update_health(enemy, monster)
local physical_param = get_physical_param_method:call(enemy); local physical_param = get_physical_param_method:call(enemy);
if physical_param == nil then if physical_param == nil then
error_handler.report("large_monster.update_health", "Failed to Access Data: physical_param"); error_handler.report("large_monster.update_health", "Failed to access Data: physical_param");
return nil; return nil;
end end
local vital_param = get_vital_method:call(physical_param, 0, 0); local vital_param = get_vital_method:call(physical_param, 0, 0);
if vital_param == nil then if vital_param == nil then
error_handler.report("large_monster.update_health", "Failed to Access Data: vital_param"); error_handler.report("large_monster.update_health", "Failed to access Data: vital_param");
return nil; return nil;
end end
@@ -597,21 +597,21 @@ function this.update_health(enemy, monster)
if health ~= nil then if health ~= nil then
monster.health = health; monster.health = health;
else else
error_handler.report("large_monster.update_health", "Failed to Access Data: health"); error_handler.report("large_monster.update_health", "Failed to access Data: health");
end end
local max_health = get_max_method:call(vital_param); local max_health = get_max_method:call(vital_param);
if max_health ~= nil then if max_health ~= nil then
monster.max_health = max_health; monster.max_health = max_health;
else else
error_handler.report("large_monster.update_health", "Failed to Access Data: max_health"); error_handler.report("large_monster.update_health", "Failed to access Data: max_health");
end end
local capture_health = get_capture_hp_vital_method:call(physical_param); local capture_health = get_capture_hp_vital_method:call(physical_param);
if capture_health ~= nil then if capture_health ~= nil then
monster.capture_health = capture_health; monster.capture_health = capture_health;
else else
error_handler.report("large_monster.update_health", "Failed to Access Data: capture_health"); error_handler.report("large_monster.update_health", "Failed to access Data: capture_health");
end end
monster.missing_health = max_health - health; monster.missing_health = max_health - health;
@@ -641,7 +641,7 @@ function this.update_stamina(enemy, monster, stamina_param)
if stamina_param == nil then if stamina_param == nil then
stamina_param = get_stamina_param_method:call(enemy); stamina_param = get_stamina_param_method:call(enemy);
if stamina_param == nil then if stamina_param == nil then
error_handler.report("large_monster.update_stamina", "Failed to Access Data: stamina_param"); error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina_param");
return; return;
end end
end end
@@ -650,7 +650,7 @@ function this.update_stamina(enemy, monster, stamina_param)
if is_tired ~= nil then if is_tired ~= nil then
monster.is_tired = is_tired; monster.is_tired = is_tired;
else else
error_handler.report("large_monster.update_stamina", "Failed to Access Data: is_tired"); error_handler.report("large_monster.update_stamina", "Failed to access Data: is_tired");
return; return;
end end
@@ -662,7 +662,7 @@ function this.update_stamina(enemy, monster, stamina_param)
if stamina ~= nil then if stamina ~= nil then
monster.stamina = stamina; monster.stamina = stamina;
else else
error_handler.report("large_monster.update_stamina", "Failed to Access Data: stamina"); error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina");
return; return;
end end
@@ -670,7 +670,7 @@ function this.update_stamina(enemy, monster, stamina_param)
if max_stamina ~= nil then if max_stamina ~= nil then
monster.max_stamina = max_stamina; monster.max_stamina = max_stamina;
else else
error_handler.report("large_monster.update_stamina", "Failed to Access Data: max_stamina"); error_handler.report("large_monster.update_stamina", "Failed to access Data: max_stamina");
return; return;
end end
@@ -698,7 +698,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
if stamina_param == nil then if stamina_param == nil then
stamina_param = get_stamina_param_method:call(enemy); stamina_param = get_stamina_param_method:call(enemy);
if stamina_param == nil then if stamina_param == nil then
error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: stamina_param"); error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: stamina_param");
return; return;
end end
end end
@@ -707,7 +707,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
if is_tired ~= nil then if is_tired ~= nil then
monster.is_tired = is_tired; monster.is_tired = is_tired;
else else
error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: is_tired"); error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: is_tired");
return; return;
end end
@@ -719,7 +719,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
if tired_timer ~= nil then if tired_timer ~= nil then
monster.tired_timer = tired_timer; monster.tired_timer = tired_timer;
else else
error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: tired_timer"); error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_timer");
return; return;
end end
@@ -727,7 +727,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param)
if tired_duration ~= nil then if tired_duration ~= nil then
monster.tired_duration = tired_duration; monster.tired_duration = tired_duration;
else else
error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: tired_duration"); error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_duration");
return; return;
end end
@@ -762,7 +762,7 @@ function this.update_rage(enemy, monster, anger_param)
if anger_param == nil then if anger_param == nil then
anger_param = get_anger_param_method:call(enemy); anger_param = get_anger_param_method:call(enemy);
if anger_param == nil then if anger_param == nil then
error_handler.report("large_monster.update_rage", "Failed to Access Data: anger_param"); error_handler.report("large_monster.update_rage", "Failed to access Data: anger_param");
return; return;
end end
end end
@@ -771,7 +771,7 @@ function this.update_rage(enemy, monster, anger_param)
if is_in_rage ~= nil then if is_in_rage ~= nil then
monster.is_in_rage = is_in_rage; monster.is_in_rage = is_in_rage;
else else
error_handler.report("large_monster.update_rage", "Failed to Access Data: is_in_rage"); error_handler.report("large_monster.update_rage", "Failed to access Data: is_in_rage");
return; return;
end end
@@ -783,7 +783,7 @@ function this.update_rage(enemy, monster, anger_param)
if rage_point ~= nil then if rage_point ~= nil then
monster.rage_point = rage_point; monster.rage_point = rage_point;
else else
error_handler.report("large_monster.update_rage", "Failed to Access Data: rage_point"); error_handler.report("large_monster.update_rage", "Failed to access Data: rage_point");
return; return;
end end
@@ -791,7 +791,7 @@ function this.update_rage(enemy, monster, anger_param)
if rage_limit ~= nil then if rage_limit ~= nil then
monster.rage_limit = rage_limit; monster.rage_limit = rage_limit;
else else
error_handler.report("large_monster.update_rage", "Failed to Access Data: rage_limit"); error_handler.report("large_monster.update_rage", "Failed to access Data: rage_limit");
return; return;
end end
@@ -818,7 +818,7 @@ function this.update_rage_timer(enemy, monster, anger_param)
if anger_param == nil then if anger_param == nil then
anger_param = get_anger_param_method:call(enemy); anger_param = get_anger_param_method:call(enemy);
if anger_param == nil then if anger_param == nil then
error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: anger_param"); error_handler.report("large_monster.update_rage_timer", "Failed to access Data: anger_param");
return; return;
end end
end end
@@ -827,7 +827,7 @@ function this.update_rage_timer(enemy, monster, anger_param)
if is_in_rage ~= nil then if is_in_rage ~= nil then
monster.is_in_rage = is_in_rage; monster.is_in_rage = is_in_rage;
else else
error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: is_in_rage"); error_handler.report("large_monster.update_rage_timer", "Failed to access Data: is_in_rage");
return; return;
end end
@@ -839,7 +839,7 @@ function this.update_rage_timer(enemy, monster, anger_param)
if rage_timer ~= nil then if rage_timer ~= nil then
monster.rage_timer = rage_timer; monster.rage_timer = rage_timer;
else else
error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: rage_timer"); error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_timer");
return; return;
end end
@@ -847,7 +847,7 @@ function this.update_rage_timer(enemy, monster, anger_param)
if rage_duration ~= nil then if rage_duration ~= nil then
monster.rage_duration = rage_duration; monster.rage_duration = rage_duration;
else else
error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: rage_duration"); error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_duration");
return; return;
end end
@@ -894,32 +894,32 @@ function this.update_parts(enemy, monster, physical_param)
if physical_param == nil then if physical_param == nil then
physical_param = get_physical_param_method:call(enemy); physical_param = get_physical_param_method:call(enemy);
if physical_param == nil then if physical_param == nil then
error_handler.report("large_monster.update_parts", "Failed to Access Data: physical_param"); error_handler.report("large_monster.update_parts", "Failed to access Data: physical_param");
return; return;
end end
end end
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("large_monster.update_parts", "Failed to Access Data: damage_param"); error_handler.report("large_monster.update_parts", "Failed to access Data: damage_param");
return; return;
end end
local enemy_parts_damage_info = enemy_parts_damage_info_field:get_data(damage_param); local enemy_parts_damage_info = enemy_parts_damage_info_field:get_data(damage_param);
if enemy_parts_damage_info == nil then if enemy_parts_damage_info == nil then
error_handler.report("large_monster.update_parts", "Failed to Access Data: enemy_parts_damage_info"); error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_damage_info");
return; return;
end end
local core_parts_array = get_part_info_array_method:call(enemy_parts_damage_info); local core_parts_array = get_part_info_array_method:call(enemy_parts_damage_info);
if core_parts_array == nil then if core_parts_array == nil then
error_handler.report("large_monster.update_parts", "Failed to Access Data: core_parts_array"); error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array");
return; return;
end end
local core_parts_array_length = length_method:call(core_parts_array); local core_parts_array_length = length_method:call(core_parts_array);
if core_parts_array_length == nil then if core_parts_array_length == nil then
error_handler.report("large_monster.update_parts", "Failed to Access Data: core_parts_array_length"); error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array_length");
return; return;
end end
@@ -928,7 +928,7 @@ function this.update_parts(enemy, monster, physical_param)
local enemy_parts_info = get_value_method:call(core_parts_array, i); local enemy_parts_info = get_value_method:call(core_parts_array, i);
if enemy_parts_info == nil then if enemy_parts_info == nil then
error_handler.report("large_monster.update_parts", "Failed to Access Data: enemy_parts_info No. " .. tostring(i)); error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_info No. " .. tostring(i));
goto continue; goto continue;
end end
@@ -952,19 +952,19 @@ function this.update_parts(enemy, monster, physical_param)
local part_current = get_current_method:call(part_vital); local part_current = get_current_method:call(part_vital);
if part_current == nil then if part_current == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_current", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_current", i));
end end
local part_max = get_max_method:call(part_vital); local part_max = get_max_method:call(part_vital);
if part_max == nil then if part_max == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_max", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_max", i));
end end
if part_current ~= nil and part_max ~= nil then if part_current ~= nil and part_max ~= nil then
body_part.update_flinch(part, part_current, part_max); body_part.update_flinch(part, part_current, part_max);
end end
else else
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_vital", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_vital", i));
end end
end end
@@ -977,29 +977,29 @@ function this.update_parts(enemy, monster, physical_param)
local part_break_current = get_current_method:call(part_break_vital); local part_break_current = get_current_method:call(part_break_vital);
if part_break_current == nil then if part_break_current == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_current", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_current", i));
end end
local part_break_max = get_max_method:call(part_break_vital); local part_break_max = get_max_method:call(part_break_vital);
if part_break_max == nil then if part_break_max == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_max", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max", i));
end end
local part_break_count = get_parts_break_damage_level_method:call(enemy_parts_info); local part_break_count = get_parts_break_damage_level_method:call(enemy_parts_info);
if part_break_count == nil then if part_break_count == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_count", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_count", i));
end end
local part_break_max_count = get_parts_break_damage_max_level_method:call(enemy_parts_info); local part_break_max_count = get_parts_break_damage_max_level_method:call(enemy_parts_info);
if part_break_max_count == nil then if part_break_max_count == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_max_count", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max_count", i));
end end
if part_break_current ~= nil and part_break_max ~= nil and part_break_count ~= nil and part_break_max_count ~= nil then if part_break_current ~= nil and part_break_max ~= nil and part_break_count ~= nil and part_break_max_count ~= nil then
body_part.update_break(part, part_break_current, part_break_max, part_break_count, part_break_max_count); body_part.update_break(part, part_break_current, part_break_max, part_break_count, part_break_max_count);
end end
else else
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_vital", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_vital", i));
end end
end end
@@ -1012,24 +1012,24 @@ function this.update_parts(enemy, monster, physical_param)
local part_loss_current = get_current_method:call(part_loss_vital); local part_loss_current = get_current_method:call(part_loss_vital);
if part_loss_current == nil then if part_loss_current == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_current", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_current", i));
end end
local part_loss_max = get_max_method:call(part_loss_vital); local part_loss_max = get_max_method:call(part_loss_vital);
if part_loss_max == nil then if part_loss_max == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_max", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_max", i));
end end
local is_severed = get_parts_loss_state_method:call(enemy_parts_info); local is_severed = get_parts_loss_state_method:call(enemy_parts_info);
if is_severed == nil then if is_severed == nil then
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> is_severed", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> is_severed", i));
end end
if part_loss_current ~= nil and part_loss_max ~= nil and is_severed ~= nil then if part_loss_current ~= nil and part_loss_max ~= nil and is_severed ~= nil then
body_part.update_loss(part, part_loss_current, part_loss_max, is_severed); body_part.update_loss(part, part_loss_current, part_loss_max, is_severed);
end end
else else
error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_vital", i)); error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_vital", i));
end end
end end
@@ -1067,13 +1067,13 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
local core_parts_array = core_parts_array_field:get_data(mystery_param); local core_parts_array = core_parts_array_field:get_data(mystery_param);
if core_parts_array == nil then if core_parts_array == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_parts_array"); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array");
return; return;
end end
local core_parts_array_length = length_method:call(core_parts_array); local core_parts_array_length = length_method:call(core_parts_array);
if core_parts_array_length == nil then if core_parts_array_length == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_parts_array_length"); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array_length");
return; return;
end end
@@ -1082,7 +1082,7 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
local core_part = get_value_method:call(core_parts_array, i); local core_part = get_value_method:call(core_parts_array, i);
if core_part == nil then if core_part == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_part No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_part No. " .. tostring(i));
goto continue; goto continue;
end end
@@ -1099,13 +1099,13 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
local part_vital = core_parts_get_vital_method:call(core_part); local part_vital = core_parts_get_vital_method:call(core_part);
if part_vital == nil then if part_vital == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_vital No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_vital No. " .. tostring(i));
return; return;
end end
local part_is_active = core_parts_get_is_active_method:call(core_part); local part_is_active = core_parts_get_is_active_method:call(core_part);
if part_is_active == nil then if part_is_active == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_is_active No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_active No. " .. tostring(i));
return; return;
end end
@@ -1113,19 +1113,19 @@ function this.update_anomaly_parts(enemy, monster, mystery_param)
local part_current = get_current_method:call(part_vital); local part_current = get_current_method:call(part_vital);
if part_current == nil then if part_current == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_current No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_current No. " .. tostring(i));
goto continue; goto continue;
end end
local part_max = get_max_method:call(part_vital); local part_max = get_max_method:call(part_vital);
if part_max == nil then if part_max == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_max No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_max No. " .. tostring(i));
goto continue; goto continue;
end end
local part_is_enabled = is_enable_method:call(part_vital); local part_is_enabled = is_enable_method:call(part_vital);
if part_is_enabled == nil then if part_is_enabled == nil then
error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_is_enabled No. " .. tostring(i)); error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_enabled No. " .. tostring(i));
goto continue; goto continue;
end end
@@ -1147,19 +1147,19 @@ function this.update_highlighted_id()
end end
if singletons.gui_manager == nil then if singletons.gui_manager == nil then
error_handler.report("large_monster.update_highlighted_id", "Failed to Access Data: gui_manager"); error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_manager");
return; return;
end end
local gui_hud_target_camera = get_tg_camera_method:call(singletons.gui_manager); local gui_hud_target_camera = get_tg_camera_method:call(singletons.gui_manager);
if gui_hud_target_camera == nil then if gui_hud_target_camera == nil then
error_handler.report("large_monster.update_highlighted_id", "Failed to Access Data: gui_hud_target_camera"); error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_hud_target_camera");
return; return;
end end
local highlighted_id = get_targeting_enemy_index_field:get_data(gui_hud_target_camera); local highlighted_id = get_targeting_enemy_index_field:get_data(gui_hud_target_camera);
if highlighted_id == nil then if highlighted_id == nil then
error_handler.report("large_monster_UI.update_highlighted_id", "Failed to Access Data: highlighted_id"); error_handler.report("large_monster_UI.update_highlighted_id", "Failed to access Data: highlighted_id");
return; return;
end end

View File

@@ -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

View File

@@ -98,7 +98,7 @@ local get_enemy_name_message_method = message_manager_type_def:get_method("getEn
function this.init(monster, enemy) function this.init(monster, enemy)
local enemy_type = enemy_type_field:get_data(enemy); local enemy_type = enemy_type_field:get_data(enemy);
if enemy_type == nil then if enemy_type == nil then
error_handler.report("small_monster.init", "Failed to Access Data: enemy_type"); error_handler.report("small_monster.init", "Failed to access Data: enemy_type");
return; return;
end end
@@ -106,7 +106,7 @@ function this.init(monster, enemy)
local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type); local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type);
if enemy_name == nil then if enemy_name == nil then
error_handler.report("small_monster.init", "Failed to Access Data: enemy_name"); error_handler.report("small_monster.init", "Failed to access Data: enemy_name");
end end
monster.name = enemy_name; monster.name = enemy_name;
@@ -179,7 +179,7 @@ function this.update_position(enemy, monster)
local position = get_pos_method:call(enemy); local position = get_pos_method:call(enemy);
if position == nil then if position == nil then
error_handler.report("small_monster.update_position", "Failed to Access Data: position"); error_handler.report("small_monster.update_position", "Failed to access Data: position");
end end
monster.position = position; monster.position = position;
@@ -194,7 +194,7 @@ function this.update(enemy, monster)
if dead_or_captured ~= nil then if dead_or_captured ~= nil then
monster.dead_or_captured = dead_or_captured; monster.dead_or_captured = dead_or_captured;
else else
error_handler.report("small_monster.update", "Failed to Access Data: dead_or_captured"); error_handler.report("small_monster.update", "Failed to access Data: dead_or_captured");
end end
pcall(ailments.update_ailments, enemy, monster); pcall(ailments.update_ailments, enemy, monster);
@@ -207,13 +207,13 @@ function this.update_health(enemy, monster)
local physical_param = get_physical_param_method:call(enemy); local physical_param = get_physical_param_method:call(enemy);
if physical_param == nil then if physical_param == nil then
error_handler.report("small_monster.update_health", "Failed to Access Data: physical_param"); error_handler.report("small_monster.update_health", "Failed to access Data: physical_param");
return; return;
end end
local vital_param = get_vital_method:call(physical_param, 0, 0); local vital_param = get_vital_method:call(physical_param, 0, 0);
if vital_param == nil then if vital_param == nil then
error_handler.report("small_monster.update_health", "Failed to Access Data: vital_param"); error_handler.report("small_monster.update_health", "Failed to access Data: vital_param");
return; return;
end end
@@ -221,7 +221,7 @@ function this.update_health(enemy, monster)
if health ~= nil then if health ~= nil then
monster.health = health; monster.health = health;
else else
error_handler.report("small_monster.update_health", "Failed to Access Data: health"); error_handler.report("small_monster.update_health", "Failed to access Data: health");
return; return;
end end
@@ -229,7 +229,7 @@ function this.update_health(enemy, monster)
if max_health ~= nil then if max_health ~= nil then
monster.max_health = max_health; monster.max_health = max_health;
else else
error_handler.report("small_monster.update_health", "Failed to Access Data: max_health"); error_handler.report("small_monster.update_health", "Failed to access Data: max_health");
return; return;
end end

View File

@@ -74,20 +74,20 @@ function this.draw(dynamic_enabled, static_enabled, highlighted_enabled)
local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager); local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager);
if enemy_count == nil then if enemy_count == nil then
error_handler.report("large_monster_UI.draw", "Failed to Access Data: enemy_count"); error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy_count");
return; return;
end end
for i = 0, enemy_count - 1 do for i = 0, enemy_count - 1 do
local enemy = get_boss_enemy_method:call(singletons.enemy_manager, i); local enemy = get_boss_enemy_method:call(singletons.enemy_manager, i);
if enemy == nil then if enemy == nil then
error_handler.report("large_monster_UI.draw", "Failed to Access Data: enemy No. " .. tostring(i)); error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy No. " .. tostring(i));
goto continue; goto continue;
end end
local monster = large_monster.get_monster(enemy); local monster = large_monster.get_monster(enemy);
if monster == nil then if monster == nil then
error_handler.report("large_monster_UI.draw", "Failed to Create Large Monster Entry No. " .. tostring(i)); error_handler.report("large_monster_UI.draw", "Failed to create Large Monster Entry No. " .. tostring(i));
goto continue; goto continue;
end end

View File

@@ -58,25 +58,23 @@ function this.draw()
local enemy_count = get_zako_enemy_count_method:call(singletons.enemy_manager); local enemy_count = get_zako_enemy_count_method:call(singletons.enemy_manager);
if enemy_count == nil then if enemy_count == nil then
error_handler.report("small_monster_UI.draw", "Failed to Access Data: enemy_count"); error_handler.report("small_monster_UI.draw", "Failed to access Data: enemy_count");
return; return;
end end
for i = 0, enemy_count - 1 do for i = 0, enemy_count - 1 do
local enemy = get_zako_enemy_method:call(singletons.enemy_manager, i); local enemy = get_zako_enemy_method:call(singletons.enemy_manager, i);
if enemy == nil then if enemy == nil then
error_handler.report("small_monster_UI.draw", "Failed to Access Data: enemy No. " .. tostring(i)); error_handler.report("small_monster_UI.draw", "Failed to access Data: enemy No. " .. tostring(i));
goto continue; goto continue;
end end
local monster = small_monster.get_monster(enemy); local monster = small_monster.get_monster(enemy);
if monster == nil then if monster == nil then
error_handler.report("small_monster_UI.draw", "Failed to Create Small Monster Entry No. " .. tostring(i)); error_handler.report("small_monster_UI.draw", "Failed to create Small Monster Entry No. " .. tostring(i));
goto continue; goto continue;
end end
-- causes VMContext corruption and call failures
--for enemy, monster in pairs(small_monster.list) do
if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then
goto continue; goto continue;
end; end;