extends PlantMutation class_name EphemeralMutation func get_icon() -> Texture: return preload("res://common/icons/butterfly.svg") func get_mutation_id() -> String: return "EPHEMERAL" func get_mutation_name() -> String: return tr("EPHEMERAL") func get_mutation_description() -> String: return tr("EPHEMERAL_EFFECT_TEXT").format({ "seed_number": level, "seed_icon": Text.bbcode_icon(Plant.SEED_ICON), "lifetime_change": get_lifetime_change(), "lifetime_icon": Text.bbcode_icon(Plant.LIFETIME_ICON), }) func mutate_lifetime(_plant_data: PlantData, lifetime: int) -> int: return lifetime + get_lifetime_change() func mutate_seed_number(_plant_data: PlantData, seed_number: int): return seed_number + level + 1 func get_seed_increase() -> int: return floori((level + 1.0) / 2) func get_lifetime_change() -> int: return -1