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
@@ -37,13 +37,14 @@ func get_available_mutations() -> Array[PlantMutation]:
return get_all_mutations().slice(0, mutation_unlocked)
func set_best_run(v := best_run):
if best_run < 10 and v == 10:
best_run = v
if best_run > 10:
SteamConnection.unlock_achievement(SteamConnection.ACH_STW_HIT_10_INFINITE)
if best_run < 20 and v == 20:
if best_run > 20:
SteamConnection.unlock_achievement(SteamConnection.ACH_STW_HIT_20_INFINITE)
if best_run < 30 and v == 30:
if best_run > 30:
SteamConnection.unlock_achievement(SteamConnection.ACH_STW_HIT_30_INFINITE)
best_run = v