seeding-planets/entities/plants/scripts/plant_mutation/strong_mutation.gd
Zacharie Guet dbe8f03531 fix post-proto
* ajout d'un fondu de musique au changement de phase
* résolution de bugs en tout genre
2025-11-14 16:43:52 +01:00

20 lines
559 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())