Réparation des succès en mode infini et du niveau max des mutations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user