Files
seeding-planets/entities/plants/scripts/plant_mutation/social_mutation.gd
2026-02-27 16:34:07 +01:00

25 lines
649 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 "SOCIABLE"
func get_mutation_name() -> String:
return tr("SOCIABLE")
func get_mutation_description() -> String:
return tr("SOCIABLE_EFFECT_TEXT_LEVEL").format({"near_amount": get_near_plants_around()})
func mutate_score(_plant_data: PlantData, score: int) -> int:
printerr("TODO:: implement SOCIABLE score based on plants around")
return score + level
func get_near_plants_around():
return 5 - level