From 175670455fa0db83ea340e19dcc49f8f60760156 Mon Sep 17 00:00:00 2001 From: Haze Weathers Date: Sat, 14 Oct 2023 10:35:16 -0400 Subject: [PATCH] fix time bonus giving you 2500 or nothin' --- autoloads/game.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoloads/game.gd b/autoloads/game.gd index 5d78f40..01bd7b4 100644 --- a/autoloads/game.gd +++ b/autoloads/game.gd @@ -114,12 +114,12 @@ func tally_scores() -> void: shards_collected[5] = true # 100% time bonus if time < map.target_time_100: - time_bonus = max(2500 - 2500 * int(time / map.target_time_100), 0) + time_bonus = max(2500 - int(2500.0 * time / map.target_time_100), 0) shards_collected[6] = true else: # any% time bonus if time < map.target_time_any: - time_bonus = max(2500 - 2500 * int(time / map.target_time_any), 0) + time_bonus = max(2500 - int(2500.0 * time / map.target_time_any), 0) shards_collected[6] = true # life bonus if deaths == 0: