Added get_process_percent()

This commit is contained in:
2025-10-24 11:06:12 +03:00
parent 29d0cf59af
commit f46630499c
4 changed files with 22 additions and 7 deletions
@@ -52,6 +52,10 @@ func reload() -> void:
pass
func get_process_percent() -> int:
return 100 - int(_heat * 100 / heat_capacity)
func _calculate_critical_heat() -> void:
_critical_heat = heat_capacity - heat_per_shot