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
@@ -34,6 +34,10 @@ func reload() -> void:
pass
func get_process_percent() -> int:
return 100 - int(_cooldown * 100 / _delay)
func _calculate_delay() -> void:
_delay = 60.0 / firerate
_delay_tenth = _delay / 10