fix time bonus giving you 2500 or nothin'

This commit is contained in:
Haze Weathers 2023-10-14 10:35:16 -04:00
parent 95cb7ee138
commit 175670455f

View file

@ -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: