* Changement de l'UI, ajouts de l'inspecteur par carte et changement de police * Ajout d'un semblant d'exploration * Ajout de la sauvegarde des entités * Restructuration mineure de l'arborescence * Fix divers et réécriture des textes
17 lines
506 B
GDScript
17 lines
506 B
GDScript
extends PlantMutation
|
|
class_name QualityMutation
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/north-star.svg")
|
|
|
|
func get_base_rarity() -> int:
|
|
return 0
|
|
|
|
func get_mutation_name() -> String:
|
|
return "Quality"
|
|
|
|
func get_mutation_description() -> String:
|
|
return "Add [b]%d[/b] to the score if the plant is mature." % level
|
|
|
|
func mutate_score(plant_state : Plant.State, _plant : Plant, score : int) -> int:
|
|
return score + (level if plant_state == Plant.State.MATURE else 0) |