* modification de certains assets * optimisation de chunks * ajout d'un SceneManager * ajout d'un premier dialogue avec Demeter * changement des jour en charge * mise en place d'un système de run * etc...
20 lines
558 B
GDScript
20 lines
558 B
GDScript
extends PlantMutation
|
|
class_name StrongMutation
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/dna.svg")
|
|
|
|
func get_base_rarity() -> int:
|
|
return 0
|
|
|
|
func get_mutation_name() -> String:
|
|
return tr("STRONG")
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("STRONG_EFFECT_TEXT_LEVEL_%d") % [roundi(get_score_multiplier() * 100)]
|
|
|
|
func get_score_multiplier():
|
|
return float(level)/2
|
|
|
|
func mutate_score(_plant_state : Plant.State, _plant : Plant, score: int) -> int:
|
|
return score + roundi(score * get_score_multiplier()) |