extends PlantMutation class_name ErmitMutation func get_icon() -> Texture: return preload("res://common/icons/seedling-off.svg") func get_base_rarity() -> int: return 0 func get_mutation_name() -> String: return "Ermit" func get_mutation_description() -> String: return "Multiply the score by [b]%d[/b] if no plant is near, but set it to 0 otherwise." % get_score_multiplier() func get_score_multiplier(): return level + 1 func mutate_score(plant : Plant, score) -> int: for area in plant.influence_zone.get_overlapping_areas(): if area is Plant and area != plant: return 0 return score * get_score_multiplier()