extends PlantMutation class_name VivaciousMutation func get_icon() -> Texture: return preload("res://common/icons/bolt.svg") func get_mutation_id() -> String: return "VIVACIOUS" func get_mutation_description() -> String: return tr("VIVACIOUS_EFFECT_TEXT").format({ "score_change": get_score_change(), "score_icon": Text.bbcode_icon(Plant.SCORE_ICON) }) func mutate_score(data : PlantData, score : int) -> int: if data.day == data.get_growing_time(): return score + get_score_change() return score func get_score_change(): return level * 2