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