22 lines
551 B
GDScript
22 lines
551 B
GDScript
extends PlantMutation
|
|
class_name SocialMutation
|
|
|
|
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 "SOCIAL"
|
|
|
|
func get_mutation_name() -> String:
|
|
return tr("SOCIAL")
|
|
|
|
func get_mutation_description() -> String:
|
|
return tr("SOCIAL_EFFECT_TEXT_LEVEL_%d") % level
|
|
|
|
func mutate_score(_plant_data : PlantData, score : int) -> int:
|
|
printerr("TODO:: implement SOCIAL score based on plants around")
|
|
return score + level
|