Dev beta 1.2
* Ajout d'un tutoriel pour recommencer * Fix du Surchargeur de Talion qui ne fonctionnait pas * Suppression de flou sur beaucoup d'éléments visuels pour des raisons de performances * Augmentation du rayon de spawn du Talion * Fix léger de la météo (suppression du brouillard lors de la pluie)
This commit is contained in:
@@ -152,22 +152,15 @@ static func generate_first_mutation(rarity := 0) -> PlantMutation:
|
||||
|
||||
static func mutate_mutations(mutations : Array[PlantMutation]) -> Array[PlantMutation]:
|
||||
|
||||
var mutation_possibility : Array[MutationPossibility] = [
|
||||
AddMutation.new()
|
||||
]
|
||||
var mutation_possibility : Array[MutationPossibility] = []
|
||||
|
||||
if (
|
||||
len(mutations) >= GameInfo.game_data.current_run.plant_info.get_mutation_max_number()
|
||||
len(mutations) < GameInfo.game_data.current_run.plant_info.get_mutation_max_number()
|
||||
):
|
||||
mutation_possibility = [
|
||||
UpgradeMutation.new(),
|
||||
]
|
||||
mutation_possibility.append(AddMutation.new())
|
||||
elif len(mutations) > 0:
|
||||
mutation_possibility = [
|
||||
AddMutation.new(),
|
||||
UpgradeMutation.new(),
|
||||
]
|
||||
|
||||
mutation_possibility.append(UpgradeMutation.new())
|
||||
|
||||
var chosen_mutation_possibility = mutation_possibility.pick_random()
|
||||
|
||||
return chosen_mutation_possibility.mutate(mutations)
|
||||
|
||||
Reference in New Issue
Block a user