fix time bonus giving you 2500 or nothin'
This commit is contained in:
parent
95cb7ee138
commit
175670455f
1 changed files with 2 additions and 2 deletions
|
@ -114,12 +114,12 @@ func tally_scores() -> void:
|
||||||
shards_collected[5] = true
|
shards_collected[5] = true
|
||||||
# 100% time bonus
|
# 100% time bonus
|
||||||
if time < map.target_time_100:
|
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
|
shards_collected[6] = true
|
||||||
else:
|
else:
|
||||||
# any% time bonus
|
# any% time bonus
|
||||||
if time < map.target_time_any:
|
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
|
shards_collected[6] = true
|
||||||
# life bonus
|
# life bonus
|
||||||
if deaths == 0:
|
if deaths == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue