extends PlantMutation class_name PrecociousMutation func get_icon() -> Texture: return preload("res://common/icons/hourglass-empty.svg") func get_base_rarity() -> int: return 0 func get_mutation_name() -> String: return "Precocious" func get_mutation_description() -> String: return "Add [b]%d[/b] to the score while the plant is growing" % level func mutate_score(plant : Plant, score) -> int: return score + (0 if plant.state == Plant.State.MATURE else level)