Remove Max Updates per Tick, add Update Rate

This commit is contained in:
GreenComfyTea
2022-07-11 10:03:46 +03:00
parent 7c04f79a74
commit 2d84b4bb65
11 changed files with 26 additions and 52 deletions

View File

@@ -185,9 +185,9 @@ function damage_hook.update_damage(enemy, enemy_calc_damage_info)
--" Condition Type: (" .. tostring(attacker_type) ..
--") " .. tostring(condition_type);
if string.len(xy) > 2300 then
xy = "";
end
--if string.len(xy) > 2300 then
-- xy = "";
--end
local damage_source_type = damage_hook.get_damage_source_type(attacker_type, is_marionette_attack);

View File

@@ -173,7 +173,7 @@ function player.update_damage(_player, damage_source_type, is_large_monster, dam
end
if _player.first_hit_time == -1 then
_player.first_hit_time = time.total_elapsed_seconds;
_player.first_hit_time = time.total_elapsed_script_seconds;
end
local player_monster_type = _player.small_monsters;