Dev 0.2.0
* Ajout de la déblocage des mutation du mode infini dans le mode histoire * Ajout de plus de caverne * Rework de l'emplacement des distributeurs/cavernes * Rework de l'influence, plus de clarté sur les plantes influencées * 4 d'inventaire dans le mode infini * Fix du tuto de mouvement en 3D * Déblocage de toutes le mutations à la fin du jeu * Fix de bug de chargelent de scène multiple
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
extends ProgressionData
|
||||
class_name InfiniteProgressionData
|
||||
|
||||
@export var mutation_unlocked := StoryProgressionData.START_UNLOCKED_MUTATIONS
|
||||
|
||||
func get_story_step() -> StoryStep:
|
||||
return InfiniteStoryStep.new(run_number)
|
||||
|
||||
@@ -25,8 +27,14 @@ func are_all_mutations_unlocked() -> bool:
|
||||
func unlock_new_mutation() -> PlantMutation:
|
||||
return null
|
||||
|
||||
func unlock_all_mutation() -> void:
|
||||
pass
|
||||
|
||||
func get_available_mutations() -> Array[PlantMutation]:
|
||||
return get_all_mutations()
|
||||
if GameInfo.story_game_data and GameInfo.story_game_data.progression_data:
|
||||
mutation_unlocked = max(mutation_unlocked,GameInfo.story_game_data.progression_data.mutations_unlocked)
|
||||
|
||||
return get_all_mutations().slice(0, mutation_unlocked)
|
||||
|
||||
func set_best_run(v := best_run):
|
||||
if best_run < 10 and v == 10:
|
||||
|
||||
Reference in New Issue
Block a user