24 lines
585 B
GDScript
24 lines
585 B
GDScript
extends PlantMutation
|
|
class_name QuickMutation
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/chevrons-up.svg")
|
|
|
|
func get_base_rarity() -> int:
|
|
return 0
|
|
|
|
func get_mutation_id() -> String:
|
|
return "QUICK"
|
|
|
|
func get_mutation_name() -> String:
|
|
return tr("QUICK")
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("QUICK_EFFECT_TEXT_LEVEL_%d") % level
|
|
|
|
func mutate_score(_plant_data : PlantData, score : int) -> int:
|
|
return score + level
|
|
|
|
func mutate_growing_time(_data : PlantData, grow_time : int) -> int:
|
|
return max(grow_time - level, 1)
|