mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 20:38:03 -08:00
Grammar
This commit is contained in:
@@ -289,7 +289,7 @@ function this.update_ailments(enemy, monster)
|
||||
|
||||
local damage_param = get_damage_param_method:call(enemy);
|
||||
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;
|
||||
end
|
||||
|
||||
@@ -307,13 +307,13 @@ function this.update_ailments(enemy, monster)
|
||||
|
||||
local condition_param_array = get_condition_param_method:call(damage_param);
|
||||
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;
|
||||
end
|
||||
|
||||
local condition_param_array_length = get_length_method:call(condition_param_array);
|
||||
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;
|
||||
end
|
||||
|
||||
@@ -324,7 +324,7 @@ function this.update_ailments(enemy, monster)
|
||||
|
||||
local ailment_param = get_value_method:call(condition_param_array, id);
|
||||
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;
|
||||
end
|
||||
|
||||
@@ -338,21 +338,21 @@ function this.update_stun_poison_blast_ailments(monster, damage_param)
|
||||
if stun_param ~= nil then
|
||||
this.update_ailment(monster, stun_param, this.stun_id);
|
||||
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
|
||||
|
||||
local poison_param = poison_param_field:get_data(damage_param);
|
||||
if poison_param ~= nil then
|
||||
this.update_ailment(monster, poison_param, this.poison_id);
|
||||
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
|
||||
|
||||
local blast_param = blast_param_field:get_data(damage_param);
|
||||
if blast_param ~= nil then
|
||||
this.update_ailment(monster, blast_param, this.blast_id);
|
||||
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
|
||||
|
||||
@@ -380,14 +380,14 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
if activate_count_valtype ~= nil then
|
||||
activate_count = int32_mvalue_field:get_data(activate_count_valtype);
|
||||
else
|
||||
error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_valtype");
|
||||
error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_valtype");
|
||||
end
|
||||
end
|
||||
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
|
||||
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
|
||||
|
||||
if buildup_array ~= nil then
|
||||
@@ -401,14 +401,14 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
if buildup_valtype ~= nil then
|
||||
buildup = single_mvalue_field:get_data(buildup_valtype);
|
||||
else
|
||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_valtype");
|
||||
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_valtype");
|
||||
end
|
||||
end
|
||||
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
|
||||
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
|
||||
|
||||
if buildup_limit_array ~= nil then
|
||||
@@ -422,14 +422,14 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
if buildup_limit_valtype ~= nil then
|
||||
buildup_limit = single_mvalue_field:get_data(buildup_limit_valtype);
|
||||
else
|
||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_valtype");
|
||||
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_valtype");
|
||||
end
|
||||
end
|
||||
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
|
||||
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
|
||||
|
||||
if is_enable == nil then
|
||||
@@ -453,7 +453,7 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
|
||||
monster.ailments[id].activate_count = activate_count;
|
||||
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
|
||||
|
||||
if buildup ~= nil then
|
||||
@@ -463,7 +463,7 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
|
||||
monster.ailments[id].total_buildup = buildup;
|
||||
else
|
||||
error_handler.report("ailments.update_ailment", "Failed to access Data: buildup");
|
||||
error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup");
|
||||
end
|
||||
|
||||
if buildup_limit ~= nil then
|
||||
@@ -473,7 +473,7 @@ function this.update_ailment(monster, ailment_param, id)
|
||||
|
||||
monster.ailments[id].buildup_limit = buildup_limit;
|
||||
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
|
||||
|
||||
if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then
|
||||
@@ -544,7 +544,7 @@ function this.update_poison(monster, poison_param)
|
||||
--if poison tick, apply damage
|
||||
local is_damage = poison_get_is_damage_method:call(poison_param);
|
||||
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;
|
||||
end
|
||||
|
||||
@@ -554,7 +554,7 @@ function this.update_poison(monster, poison_param)
|
||||
|
||||
local poison_damage = poison_damage_field:get_data(poison_param);
|
||||
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;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user