mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Buff UI -> Clear buff data on error
This commit is contained in:
@@ -221,11 +221,13 @@ function this.update_dango_insurance()
|
||||
|
||||
if singletons.player_manager == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: player_manager");
|
||||
this.list.dango_insurance = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
if singletons.quest_manager == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: quest_manager");
|
||||
this.list.dango_insurance = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -234,12 +236,14 @@ function this.update_dango_insurance()
|
||||
local flag_cat_skill_insurance = flag_cat_skill_insurance_field:get_data(singletons.quest_manager);
|
||||
if flag_cat_skill_insurance == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: flag_cat_skill_insurance");
|
||||
this.list.dango_insurance = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
local is_cat_skill_insurance = is_cat_skill_insurance_method:call(singletons.quest_manager, flag_cat_skill_insurance);
|
||||
if is_cat_skill_insurance == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance", "Failed to access Data: is_cat_skill_insurance");
|
||||
this.list.dango_insurance = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -261,6 +265,7 @@ function this.update_dango_insurance_defense_up(player_data)
|
||||
local insurance_def_up_lv3 = kitchen_skill_insurance_def_up_lv3_field:get_data(player_data);
|
||||
if insurance_def_up_lv3 == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to access Data: insurance_def_up_lv3");
|
||||
this.list.dango_insurance_defense_up = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -269,6 +274,7 @@ function this.update_dango_insurance_defense_up(player_data)
|
||||
|
||||
if insurance_def_up_lv4 == nil then
|
||||
error_handler.report("dango_skills.update_dango_insurance_defense_up", "Failed to access Data: insurance_def_up_lv4");
|
||||
this.list.dango_insurance_defense_up = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -280,7 +286,7 @@ function this.update_dango_insurance_defense_up(player_data)
|
||||
level = 4;
|
||||
end
|
||||
|
||||
this.update_generic("dango_insurance_defense_up", level);
|
||||
this.update_generic("dango_insurance_defense_up", level);
|
||||
end
|
||||
|
||||
function this.update_dango_flyer(player)
|
||||
@@ -293,6 +299,7 @@ function this.update_dango_flyer(player)
|
||||
local is_kitchen_skill_wire_stop_regene = get_is_kitchen_skill_wire_stop_regene_method:call(player);
|
||||
if is_kitchen_skill_wire_stop_regene == nil then
|
||||
error_handler.report("dango_skills.update_dango_flyer", "Failed to access Data: is_kitchen_skill_wire_stop_regene");
|
||||
this.list.dango_flyer = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -301,6 +308,7 @@ function this.update_dango_flyer(player)
|
||||
local is_kitchen_skill_wire_stop_heal_spd = get_is_kitchen_skill_wire_stop_heal_spd_method:call(player);
|
||||
if is_kitchen_skill_wire_stop_heal_spd == nil then
|
||||
error_handler.report("dango_skills.update_dango_flyer", "Failed to access Data: is_kitchen_skill_wire_stop_heal_spd");
|
||||
this.list.dango_flyer = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -312,7 +320,7 @@ function this.update_dango_flyer(player)
|
||||
level = 3;
|
||||
end
|
||||
|
||||
this.update_generic("dango_flyer", level);
|
||||
this.update_generic("dango_flyer", level);
|
||||
end
|
||||
|
||||
function this.update_dango_hunter(player_data)
|
||||
@@ -331,6 +339,7 @@ function this.update_super_recovery_dango(player)
|
||||
local kitchen_skill_surume_regene_timer = get_kitchen_skill_surume_regene_timer_method:call(player);
|
||||
if kitchen_skill_surume_regene_timer == nil then
|
||||
error_handler.report("dango_skills.update_super_recovery_dango", "Failed to access Data: kitchen_skill_surume_regene_timer");
|
||||
this.list.super_recovery_dango = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -341,7 +350,7 @@ function this.update_super_recovery_dango(player)
|
||||
end
|
||||
|
||||
previous_super_recovery_dango_timer = kitchen_skill_surume_regene_timer;
|
||||
this.update_generic("super_recovery_dango");
|
||||
this.update_generic("super_recovery_dango");
|
||||
end
|
||||
|
||||
function this.init_all_UI()
|
||||
|
||||
Reference in New Issue
Block a user