extends PlantMutation class_name ProtectiveMutation func get_icon() -> Texture: return preload("res://common/icons/tree.svg") func get_mutation_id() -> String: return "PROTECTIVE" func get_mutation_description() -> String: return tr("PROTECTIVE_EFFECT_TEXT").format({ "lifetime_buff": get_lifetime_buff(), "lifetime_icon": Text.bbcode_icon(Plant.LIFETIME_ICON) }) func mutate_lifetime_buff(_plant_data: PlantData, lifetime_buff : int) -> int: return lifetime_buff + get_lifetime_buff() func get_lifetime_buff(): return level