<commit_before>extends CanvasLayer

export (NodePath) var collected_text #= get_node("hudframe/items_label/score_display")
export (NodePath) var score_text #final_score_text = get_node("hudframe/finalscore_label/final_scoredisplay")
export (NodePath) var highscore_text #= get_node("hudframe/highscore_label/highscore_display")
export (NodePath) var sound_off_button #= get_node("hudframe/sound_off")

onready var animations = get_node("animations")

func _on_met_yan():
#	get_node("sfx").play("card_unlock")
	animations.play("yan_unlock_anim")

func _ready():
	var yan = get_parent().find_node("Yan")
	print (yan.get_name())
	if yan:
		print("Yan is present")
		yan.connect("met_yan", self,"_on_met_yan")
		animations.play("yan_unlock_anim")
		print("working")
	
	update_scores()
	game.connect("scores_changed", self, "update_scores")
	update_sound_hud()


# Update scores<commit_msg>yan name check crashed when switching maps<commit_after>extends CanvasLayer

export (NodePath) var collected_text #= get_node("hudframe/items_label/score_display")
export (NodePath) var score_text #final_score_text = get_node("hudframe/finalscore_label/final_scoredisplay")
export (NodePath) var highscore_text #= get_node("hudframe/highscore_label/highscore_display")
export (NodePath) var sound_off_button #= get_node("hudframe/sound_off")

onready var animations = get_node("animations")

func _on_met_yan():
#	get_node("sfx").play("card_unlock")
	animations.play("yan_unlock_anim")

func _ready():
	var yan = get_parent().find_node("Yan")
	if yan:
		print("Yan is present")
		yan.connect("met_yan", self,"_on_met_yan")
		animations.play("yan_unlock_anim")
		print("working")
	
	update_scores()
	game.connect("scores_changed", self, "update_scores")
	update_sound_hud()


# Update scores
{'fraction_non_alphanumeric': 0.13014084507042253, 'fraction_numerical': 0.0, 'mean_word_length': 7.924623115577889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4083726', 'n_tokens_mistral': 639, 'n_tokens_neox': 620, 'n_words': 111}