Réparation des succès en mode infini et du niveau max des mutations

This commit is contained in:
2026-07-26 17:16:39 +02:00
parent a6c1c4a770
commit 9de99680e5
7 changed files with 22 additions and 8 deletions
+4 -1
View File
@@ -75,6 +75,9 @@ func get_all_story_steps() -> Array[StoryStep]:
AstraStoryStep.new(),
]
func update_best_run(run : RunData):
best_run = max(best_run, run.level)
func finish_run(run : RunData):
run_number += 1
best_run = max(best_run, run.level)
update_best_run(run)