17 lines
434 B
GDScript
17 lines
434 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_name() -> String:
|
|
return tr("QUICK")
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("QUICK_EFFECT_TEXT_LEVEL_%d") % level
|
|
|
|
func mutate_grow_time(_plant : Plant, grow_time : int) -> int:
|
|
return max(grow_time - level, 0) |