seeding-planets/entities/plants/scripts/plant_mutation/precocious_mutation.gd
Zacharie Guet a8bb09407e ajout de la traduction #70
* Fix de l'inspection de l'inventaire
* Suppression des assets d'objectifs
2025-11-07 17:36:18 +01:00

17 lines
500 B
GDScript

extends PlantMutation
class_name PrecociousMutation
func get_icon() -> Texture:
return preload("res://common/icons/hourglass-empty.svg")
func get_base_rarity() -> int:
return 0
func get_mutation_name() -> String:
return tr("PRECOCIOUS")
func get_mutation_description() -> String:
return tr("PRECOCIOUS_EFFECT_TEXT_LEVEL_%d") % level
func mutate_score(plant_state : Plant.State, _plant : Plant, score) -> int:
return score + (0 if plant_state == Plant.State.MATURE else level)