29 lines
627 B
GDScript
29 lines
627 B
GDScript
extends PlantMutation
|
|
class_name SpontaneousMutation
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/sparkles.svg")
|
|
|
|
func get_base_rarity() -> int:
|
|
return 0
|
|
|
|
func is_max_level() -> bool:
|
|
return true
|
|
|
|
func get_mutation_id() -> String:
|
|
return "SPONTANEOUS"
|
|
|
|
func get_mutation_name() -> String:
|
|
return tr("SPONTANEOUS")
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("SPONTANEOUS_EFFECT_TEXT")
|
|
|
|
func nullify_seed_production() -> bool:
|
|
return true
|
|
|
|
func _start_maturation_effect(plant: Plant):
|
|
for i in range(plant.data.get_seed_number()):
|
|
await plant.produce_seed()
|
|
|