Ajout des mutation Nettoyage, Ermite, Tropicale, Rhizome et Spontanée
This commit is contained in:
@@ -2,10 +2,13 @@ extends PlantMutation
|
||||
class_name SpontaneousMutation
|
||||
|
||||
func get_icon() -> Texture:
|
||||
return preload("res://common/icons/droplet.svg")
|
||||
return preload("res://common/icons/sparkles.svg")
|
||||
|
||||
func get_base_rarity() -> int:
|
||||
return 1
|
||||
return 0
|
||||
|
||||
func is_max_level() -> bool:
|
||||
return true
|
||||
|
||||
func get_mutation_id() -> String:
|
||||
return "SPONTANEOUS"
|
||||
@@ -14,19 +17,12 @@ func get_mutation_name() -> String:
|
||||
return tr("SPONTANEOUS")
|
||||
|
||||
func get_mutation_description() -> String:
|
||||
return tr("SPONTANEOUS_EFFECT_TEXT").format({
|
||||
"bonus_seed": get_bonus_seed()
|
||||
})
|
||||
return tr("SPONTANEOUS_EFFECT_TEXT")
|
||||
|
||||
func produce_seeds() -> bool:
|
||||
return false
|
||||
|
||||
func mutate_seed_number(_plant_data: PlantData, seed_number: int) -> int:
|
||||
return seed_number + get_bonus_seed()
|
||||
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()
|
||||
|
||||
func get_bonus_seed() -> int:
|
||||
return level - 1
|
||||
|
||||
Reference in New Issue
Block a user