mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-23 20:08:05 -08:00
Formatting
This commit is contained in:
@@ -270,7 +270,7 @@ function this.cart(dead_player_id, flag_cat_skill_insurance)
|
|||||||
-- return;
|
-- return;
|
||||||
--end
|
--end
|
||||||
|
|
||||||
quest_status.get_cart_count();
|
quest_status.update_cart_count();
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.on_stock_direct_marionette_finish_shoot_hit_parts_damage(enemy, damage_rate, is_endure, is_ignore_multi_rate, category, no)
|
function this.on_stock_direct_marionette_finish_shoot_hit_parts_damage(enemy, damage_rate, is_endure, is_ignore_multi_rate, category, no)
|
||||||
|
|||||||
@@ -570,7 +570,7 @@ function this.update_player_list(hunter_info_field_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if update_cart_count then
|
if update_cart_count then
|
||||||
quest_status.get_cart_count();
|
quest_status.update_cart_count();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -159,53 +159,53 @@ function this.set_flow_state(new_flow_state)
|
|||||||
damage_meter_UI.last_displayed_players = {};
|
damage_meter_UI.last_displayed_players = {};
|
||||||
|
|
||||||
elseif this.flow_state >= this.flow_states.LOADING_QUEST then
|
elseif this.flow_state >= this.flow_states.LOADING_QUEST then
|
||||||
this.get_cart_count();
|
this.update_cart_count();
|
||||||
this.get_max_cart_count();
|
this.get_max_cart_count();
|
||||||
end
|
end
|
||||||
|
|
||||||
players.update_players();
|
players.update_players();
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.get_cart_count()
|
function this.update_cart_count()
|
||||||
if singletons.quest_manager == nil then
|
if singletons.quest_manager == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", "Failed to access Data: quest_manager");
|
error_handler.report("quest_status.update_cart_count", "Failed to access Data: quest_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local death_num = get_death_num_method:call(singletons.quest_manager);
|
local death_num = get_death_num_method:call(singletons.quest_manager);
|
||||||
if death_num == nil then
|
if death_num == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", "Failed to access Data: death_num");
|
error_handler.report("quest_status.update_cart_count", "Failed to access Data: death_num");
|
||||||
else
|
else
|
||||||
this.cart_count = death_num;
|
this.cart_count = death_num;
|
||||||
end
|
end
|
||||||
|
|
||||||
if singletons.player_manager == nil then
|
if singletons.player_manager == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", "Failed to access Data: player_manager");
|
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_manager");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local player_data_array = get_player_data_method:call(singletons.player_manager);
|
local player_data_array = get_player_data_method:call(singletons.player_manager);
|
||||||
if player_data_array == nil then
|
if player_data_array == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", "Failed to access Data: player_data_array");
|
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_data_array");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
local player_data_array_length = get_length_method:call(player_data_array);
|
local player_data_array_length = get_length_method:call(player_data_array);
|
||||||
if player_data_array_length == nil then
|
if player_data_array_length == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", "Failed to access Data: player_data_array_length");
|
error_handler.report("quest_status.update_cart_count", "Failed to access Data: player_data_array_length");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, player_data_array_length - 1 do
|
for i = 0, player_data_array_length - 1 do
|
||||||
local player_data = get_value_method:call(player_data_array, i);
|
local player_data = get_value_method:call(player_data_array, i);
|
||||||
if player_data_array_length == nil then
|
if player_data_array_length == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", string.format("Failed to access Data: player_data No. %d", i));
|
error_handler.report("quest_status.update_cart_count", string.format("Failed to access Data: player_data No. %d", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
local die_count = die_count_field:get_data(player_data);
|
local die_count = die_count_field:get_data(player_data);
|
||||||
if die_count == nil then
|
if die_count == nil then
|
||||||
error_handler.report("quest_status.get_cart_count", string.format("Failed to access Data: die_count No. %d", i));
|
error_handler.report("quest_status.update_cart_count", string.format("Failed to access Data: die_count No. %d", i));
|
||||||
goto continue;
|
goto continue;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user