From 265356af876c8da5f52666845f1eba0cc12f295f Mon Sep 17 00:00:00 2001 From: istamarahsan Date: Mon, 14 Aug 2023 08:57:18 +0700 Subject: [PATCH] halve sprint recovery rate --- game.gd | 2 +- presentation/hud/hud.tscn | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/game.gd b/game.gd index c5422dd..5c0ce41 100644 --- a/game.gd +++ b/game.gd @@ -76,7 +76,7 @@ func _process(delta): ran_out_of_sprint = true tick_timer.wait_time = _calc_tick_interval() else: - sprint_seconds_remaining = min(sprint_capacity_seconds, sprint_seconds_remaining + delta) + sprint_seconds_remaining = min(sprint_capacity_seconds, sprint_seconds_remaining + delta/2) for hook in scheduler_hooks: if ran_out_of_sprint: diff --git a/presentation/hud/hud.tscn b/presentation/hud/hud.tscn index 4b7a28d..47cd01e 100644 --- a/presentation/hud/hud.tscn +++ b/presentation/hud/hud.tscn @@ -256,6 +256,7 @@ offset_bottom = 56.0 theme_override_styles/background = SubResource("StyleBoxFlat_2snbr") theme_override_styles/fill = ExtResource("13_wt5t2") max_value = 1.0 +step = 0.001 value = 0.5 show_percentage = false