﻿@correct_culture_primary_score = 100
@better_than_the_alternatives_score = 50
@hi_always_primary_score = 1100

e_teutonic_state = {
	color = { 40 40 40 }

	capital = c_malbork

	can_create = {
		rule_title_creation_imperial_power_projection_title_creation_trigger = yes
	}

	ai_primary_priority = {
		if = {
			limit = {
				OR = {
					culture = { has_cultural_pillar = heritage_central_germanic }
					culture = { has_cultural_pillar = language_saxon }
				}
			}
			add = @correct_culture_primary_score
		}
		else_if = {
			limit = {
				NOR = {
					culture = { has_cultural_pillar = heritage_central_germanic }
					culture = { has_cultural_pillar = language_saxon }
				}
				culture = { has_cultural_pillar = language_central_germanic }
			}
			add = @better_than_the_alternatives_score
		}
	}

	definite_form = yes
	can_be_named_after_dynasty = no

	k_bassenheim = { # teutonic order
		color = { 25 25 25 }
	
		capital = c_konigsberg #c_malbork # Malbork is de jure duchy capital

		ai_primary_priority = {
			if = {
				limit = {
					OR = {
						culture = { has_cultural_pillar = heritage_central_germanic }
						culture = { has_cultural_pillar = language_saxon }
					}
				}
				add = @correct_culture_primary_score
			}
			else_if = {
				limit = {
					NOR = {
						culture = { has_cultural_pillar = heritage_central_germanic }
						culture = { has_cultural_pillar = language_saxon }
					}
					culture = { has_cultural_pillar = language_central_germanic }
				}
				add = @better_than_the_alternatives_score
			}
		}
	
		definite_form = yes
		can_be_named_after_dynasty = no
	}
	
	k_balk = { # livonian order
		color = { 80 30 50 }
	
		capital = c_vidzeme

		ai_primary_priority = {
			if = {
				limit = {
					OR = {
						culture = { has_cultural_pillar = heritage_central_germanic }
						culture = { has_cultural_pillar = language_saxon }
					}
				}
				add = @correct_culture_primary_score
			}
			else_if = {
				limit = {
					NOR = {
						culture = { has_cultural_pillar = heritage_central_germanic }
						culture = { has_cultural_pillar = language_saxon }
					}
					culture = { has_cultural_pillar = language_central_germanic }
				}
				add = @better_than_the_alternatives_score
			}
		}
	
		definite_form = yes
		can_be_named_after_dynasty = no
	}
}
