Added hotkeys, separated player initialization and drawing.

This commit is contained in:
GreenComfyTea
2022-02-20 19:23:36 +02:00
parent 39e324e0a5
commit c6669e5df0
25 changed files with 1458 additions and 361 deletions

View File

@@ -24,7 +24,7 @@ function body_part.new(REpart, name, id)
part.health_percentage = 0;
part.name = name;
part.break_count = 0;
part.flinch_count = 0;
body_part.init_dynamic_UI(part);
body_part.init_static_UI(part);
@@ -73,7 +73,7 @@ function body_part.update(part, new_health, new_max_health)
end
if new_health > part.health then
part.break_count = part.break_count + 1;
part.flinch_count = part.flinch_count + 1;
end
part.health = new_health;