﻿court_language_ai_score = {
	add = scope:their_language_counties

	if = {
		limit = {
			scope:checking_native_language = yes
			has_court_language_of_culture = culture
		}
	 	add = 1000 # Add a large constant to the score of the current court language
	}
	else_if = {
		limit = {
			scope:checking_native_language = no
			scope:target = { has_royal_court = yes }
			has_same_court_language = scope:target
		}
	 	add = 1000 # Add a large constant to the score of the current court language
	}
}
