#	Example:
#
#	example_trigger = {
#		is_country_type = default
#		free_leader_slots > 0
#	}
#
#
#	In a script file:
#
#	trigger = {
#		example_trigger = yes
#	}
#

cow_barony_is_valid_for_metropolis_trigger = {
	title_province = {
		OR = {
			NOT = { has_holding_type = cow_metropolis_holding }
			has_holding_type = castle_holding
			has_holding_type = city_holding
			has_holding_type = church_holding
		}
		has_ongoing_construction = no
	}
	trigger_if = {
		limit = {
			holder = $CHARACTER$
		}
	}
	trigger_else = {
		holder.primary_title.tier = tier_barony
	}
}

all_hist_cow_metropolis_trigger = {
	calc_true_if = {
		amount >= 2
		any_sub_realm_barony = {
			this = title:b_alexandria
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_antiocheia
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_baghdad 
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_constantinople
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_cordoba
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_roma
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
		any_sub_realm_barony = { 
			this = title:b_jerusalem
			title_province = {
				NOT = { exists = var:cow_metropolis }
				NOT = { has_holding_type = cow_metropolis_holding }
			}
		}
	}
}

cow_does_not_hold_too_many_metropolises_trigger = {
	trigger_if = {
		limit = { 
			has_game_rule = cow_metropolis_holding_default
			is_ai = no
		}
		custom_description = {
			text = cow_does_not_hold_too_many_metropolises_3_max_trigger
			any_directly_owned_province = {	
				count >= 4
				has_holding_type = cow_metropolis_holding
			}
		}
	}
	trigger_else_if = {
		limit = { 
			has_game_rule = cow_metropolis_holding_one_max
			is_ai = no
		}
		custom_description = {
			text = cow_does_not_hold_too_many_metropolises_1_max_trigger
			any_directly_owned_province = {	
				count >= 2
				has_holding_type = cow_metropolis_holding
			}
		}
	}
	trigger_else_if = {
		limit = { 
			has_game_rule = cow_regular_holding_five_max
			is_ai = no
		}
		custom_description = {
			text = cow_does_not_hold_too_many_metropolises_5_max_trigger
			any_directly_owned_province = {
				count >= 6
				has_holding_type = cow_metropolis_holding
			}
		}
	}
	trigger_else_if = {
		limit = { has_game_rule = cow_regular_holding_no_max }
		always = no
	}
	trigger_else_if = {
		limit = {
			has_game_rule = cow_metropolis_buildings_player_disabled
			is_ai = no
		}
		custom_description = {
			text = cow_metropolis_buildings_disabled_trigger
			always = yes
		}
	}
	trigger_else_if = {
		limit = { has_game_rule = cow_metropolis_buildings_always_disabled }
		custom_description = {
			text = cow_metropolis_buildings_disabled_trigger
			always = yes
		}
	}
	trigger_else_if = {
		limit = { is_ai = yes }
		always = no
	}
	trigger_else = {
		custom_description = {
			text = cow_does_not_hold_too_many_metropolises_3_max_trigger
			any_directly_owned_province = {	
				count >= 4
				has_holding_type = cow_metropolis_holding
			}
		}
	}
	
}

cow_is_metropolis_building_disabled_rule_trigger = {
	trigger_if = {
		limit = { 
			OR = {
				has_game_rule = cow_metropolis_buildings_player_disabled
				has_game_rule = cow_metropolis_buildings_always_disabled
			}
		}
		always = yes
	}
	trigger_else = {
		always = no
	}
}

barony_variable_holding_level_trigger = {
	OR = {
		is_target_in_local_variable_list = { name = cow_local_holding_level target = flag:flag_cow_holding_01 } 
		is_target_in_local_variable_list = { name = cow_local_holding_level target = flag:flag_cow_holding_02 } 
		is_target_in_local_variable_list = { name = cow_local_holding_level target = flag:flag_cow_holding_03 } 
		is_target_in_local_variable_list = { name = cow_local_holding_level target = flag:flag_cow_holding_04 }
	}
}

barony_variable_building_level_trigger = {
	OR = {
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_01 } 
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_02 } 
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_03 } 
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_08 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_01 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_02 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_03 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_04 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_05 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_06 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_07 }
		is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_08 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_03 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_01 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_02 }
		# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_03 }
	}
}
