Ajout d'un mode infini
This commit is contained in:
@@ -35,15 +35,14 @@ func update_model():
|
||||
func unlock_mutation():
|
||||
var progression = GameInfo.game_data.progression_data
|
||||
|
||||
if progression.mutations_unlocked < len(progression.get_all_mutations()):
|
||||
var new_mutation : PlantMutation = progression.get_all_mutations()[progression.mutations_unlocked]
|
||||
progression.mutations_unlocked += 1
|
||||
if not progression.are_all_mutations_unlocked():
|
||||
var new_mutation : PlantMutation = progression.unlock_new_mutation()
|
||||
|
||||
get_tree().create_timer(1.).timeout.connect(
|
||||
func (): %MutationAnnounce.announce_mutation = new_mutation
|
||||
);
|
||||
|
||||
if progression.mutations_unlocked == len(progression.get_all_mutations()):
|
||||
if progression.are_all_mutations_unlocked():
|
||||
SteamConnection.unlock_achievement(SteamConnection.ACH_UNLOCK_ALL_MUTATION)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user