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_id() -> String: return "QUALITY" func get_mutation_name() -> String: return tr("QUALITY") func get_mutation_description() -> String: return tr("QUALITY_EFFECT_TEXT").format({ "score": get_score(), "score_icon": Text.bbcode_icon(Plant.SCORE_ICON) }) func mutate_score(data : PlantData, score : int) -> int: return score + (get_score() if data.get_state() == PlantData.State.MATURE else 0) func get_score(): return level