﻿# DUCHY
DuchyWesterosi = {
	type = character

	# MARCHER LORDSHIP
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			vassal_contract_has_flag = has_march_contract
		}
		localization_key = marcher_lordship
    }

	# PALATINATE LORDSHIP
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_lordship
    }

	# LORDSHIPS ONLY (DUCHY TIER)
	text = {
		trigger = {
			has_game_rule = no_powerful_landed_knights_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
		}
		localization_key = high_lordship
	}

	# HOUSE GLOVER LORDSHIP
	text = {
		trigger = {
			has_game_rule = lord_glover_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			has_primary_title = title:d_the_wolfswood
		}
		localization_key = high_lordship
	}

	# HOUSE FOSSOWAY LORDSHIP
	text = {
		trigger = {
			has_game_rule = lord_red_fossoway_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			has_primary_title = title:d_orchard_way
		}
		localization_key = high_lordship
	}

	# UNKNOWN LORDSHIPS
	text = {
		trigger = {
			has_game_rule = unknown_lordly_houses_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_unknown_duchy_title_trigger = yes
		}
		localization_key = high_lordship
	}

	# RESTRICED CREATED LORDSHIPS
	text = {
		trigger = {
			has_game_rule = created_restricted_lords_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_created_big_duchy_title_trigger = yes
		}
		localization_key = high_lordship
	}

	# ALL CREATED LORDSHIPS
	text = {
		trigger = {
			has_game_rule = created_all_lords_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_created_duchy_title_trigger = yes
		}
		localization_key = high_lordship
	}

	# KNIGHTLY HOUSE (EXTENDED)
	text = {
		trigger = {
			has_game_rule = extended_landed_knights_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_special_duchy_title_trigger = yes
			OR = { 
				faith = {
					has_doctrine = tenet_knighthood
				}
				is_agot_knight_trigger = yes
			}
		}
		localization_key = knightly_house
	}

	# KNIGHTLY HOUSE (STANDARD)
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_special_duchy_title_trigger = yes
			is_agot_knight_trigger = yes
		}
		localization_key = knightly_house
	}

	# MASTERLY HOUSE
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_special_duchy_title_trigger = yes
		}
		localization_key = masterly_house
	}

	# LORDLY HOUSE
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
		}
		localization_key = high_lordship
	}

	# FALLBACK
	text = {
		fallback = yes
		localization_key = duchy
	}
}

# COUNTY
CountyWesterosi = {
	type = character

	# CASTELLAN LORDSHIP
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			vassal_contract_has_flag = has_castellan_contract
		}
		localization_key = castellan_lordship
    }

	# PALATINATE LORDSHIP
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			vassal_contract_has_flag = has_palatinate_contract
		}
		localization_key = palatinate_lordship
    }

	# MINOR LORDSHIP (EXTENDED)
	text = {
		trigger = {
			has_game_rule = extended_lords_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
		}
		localization_key = minor_lordship
	}

	# MINOR LORDSHIP (STANDARD)
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			agot_has_special_county_title_trigger = yes
		}
		localization_key = minor_lordship
	}

	# KNIGHTLY HOUSE (EXTENDED)
	text = {
		trigger = {
			has_game_rule = extended_landed_knights_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			OR = { 
				faith = {
					has_doctrine = tenet_knighthood
				}
				is_agot_knight_trigger = yes
			}
		}
		localization_key = knightly_house
	}

	# KNIGHTLY HOUSE (STANDARD)
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			is_agot_knight_trigger = yes
		}
		localization_key = knightly_house
	}

	# MASTERLY HOUSE
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
		}
		localization_key = masterly_house
	}

	# FALLBACK
	text = {
		fallback = yes
		localization_key = county
	}
}

# BARONY
BaronyWesterosi = {
	type = character

	# KNIGHTLY HOUSE (EXTENDED)
	text = {
		trigger = {
			has_game_rule = extended_landed_knights_rule
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			OR = { 
				faith = {
					has_doctrine = tenet_knighthood
				}
				is_agot_knight_trigger = yes
			}
		}
		localization_key = knightly_house
	}

	# KNIGHTLY HOUSE (STANDARD)
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
			is_agot_knight_trigger = yes
		}
		localization_key = knightly_house
	}

	# MASTERLY HOUSE
	text = {
		trigger = {
			agot_flavour_is_lord_in_westeros_trigger = { CHAR = this }
		}
		localization_key = masterly_house
	}

	# FALLBACK
	text = {
		fallback = yes
		localization_key = county
	}
}