* refonte du scene manager * refonte du audio manager * premier rework des plantes * nettoyage des dossiers/fichiers * renommage de planète en region * fix des run
17 lines
490 B
GDScript
17 lines
490 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(data : PlantData, score : int) -> int:
|
|
return score + (0 if data.get_state() == PlantData.State.MATURE else level) |