Ajout d'un effet visuel sur les nouvelles graines, et dev en cours de l'imprimante 3D
This commit is contained in:
@@ -160,6 +160,15 @@ func get_particles() -> Array[EffectParticles.Parameters]:
|
||||
|
||||
return param
|
||||
|
||||
func get_rarity_color() -> Color:
|
||||
var higher_rarity : int = -1
|
||||
var higher_color : Color = Color.WHITE
|
||||
for m in plant_mutations:
|
||||
if m.get_rarity() > higher_rarity:
|
||||
higher_rarity = m.get_rarity()
|
||||
higher_color = PlantMutation.get_rarity_color(higher_rarity)
|
||||
return higher_color
|
||||
|
||||
static func generate_first_mutations(rarity := 0) -> Array[PlantMutation]:
|
||||
|
||||
if rarity < 0:
|
||||
|
||||
Reference in New Issue
Block a user