20 lines
471 B
GDScript
20 lines
471 B
GDScript
extends PlantMutation
|
|
class_name AdaptiveMutation
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/dna.svg")
|
|
|
|
func get_mutation_id() -> String:
|
|
return "ADAPTIVE"
|
|
|
|
func get_base_rarity() -> int:
|
|
return 0
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("ADAPTIVE_EFFECT_TEXT").format({
|
|
"mutation_probability_boost": get_mutation_probability_boost(),
|
|
})
|
|
|
|
func get_mutation_probability_boost()->float:
|
|
return level * 0.05
|