﻿# FLAG_DEFINITION_LIST = {		# countries search for a list with the same name as their tag, the DEFAULT list is always included, if no flag definition is applicable for a country then its tag is used a COA_KEY
# 	includes = ANOTHER_LIST		# includes another list in this list, can be repeated
#
# 	flag_definition = {			# the flag definitions that make up this list, can be repeated
# 		coa = [list] COA_KEY	# main flag, optional list keyword denotes a coa template
# 		allow_overlord_canton = yes				# default no
# 		coa_with_overlord_canton = <[list] coa>	# flag where a canton can be placed, optional list keyword same as above, defaults to coa
# 		overlord_canton_offset = { x y }		# canton placement offset, default { 0 0 }
# 		overlord_canton_scale = { x y }			# canton placement scale, default { 0.5 0.5 }
# 		subject_canton = [list] COA_KEY	# canton applied to subjects by this country, optional list keyword same as above
#
# 		priority = value		# valid flag definition with the highest priority applies
# 		trigger = {}			# a trigger that determines if this flag definition is valid, see below for scope
#       allow_revolutionary_indicator = no      # Default = yes. If yes, a temporary revolutionary indicator will appear while the country is revolutionary
#       revolutionary_canton = [list] COA_KEY   # Optional. Default = default_revolutionary_canton. Defines which flag should be used as canton while this country is revolutionary
# 	}
# }

#            | existing country | releasing a country | country formation |
# |==========|==================|=====================|===================|
# |root      | definition       | definition          | definition        |
# |----------|------------------|---------------------|-------------------|
# |target    | country          | N/A                 | N/A               |
# |----------|------------------|---------------------|-------------------|
# |initiator | N/A              | player              | player            |
# |----------|------------------|---------------------|-------------------|
# |actor     | country          | player              | player            |
# |----------|------------------|---------------------|-------------------|
# |          | country's        |                     | player's          |
# |overlord  | direct overlord  | player              | direct overlord   |
# |          | if it exists     |                     | if it exists      |
# |----------|------------------|---------------------|-------------------|

FRA = { # France
	flag_definition = {
		coa = FRA
		subject_canton = FRA
		allow_overlord_canton = yes
		coa_with_overlord_canton = FRA_subject
		priority = 1
	}
	flag_definition = {
		coa = FRA
		subject_canton = FRA
		allow_overlord_canton = yes
		overlord_canton_scale = { 0.337 0.337 }
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = { # post-coup flag - bonapartist symbol
		coa = FRA_dictatorship
		subject_canton = FRA_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			ruler = {
				has_ideology = ideology:ideology_bonapartist
			}
		}
	}
	flag_definition = {
		coa = FRA_bourbon
		subject_canton = FRA_bourbon
		priority = 30
		allow_overlord_canton = yes
		coa_with_overlord_canton = FRA_subject
		trigger = {
			scope:actor ?= {
				country_has_monarchy_law = yes
				has_variable = legitimist_restoration_var
				ruler = {
					has_ideology = ideology:ideology_legitimist
				}
			}
		}
	}
	flag_definition = {
		coa = FRA_absolute_monarchy
		subject_canton = FRA_absolute_monarchy
		allow_overlord_canton = yes
		coa_with_overlord_canton = FRA_subject
		priority = 25
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			NOR = {
				ruler = {
					has_ideology = ideology:ideology_bonapartist
				}
				ruler = {
					has_ideology = ideology:ideology_orleanist
				}
			}
		}
	}
	flag_definition = {
		coa = FRA_second_empire
		subject_canton = FRA
		allow_overlord_canton = yes
		coa_with_overlord_canton = FRA_subject
		priority = 30
		trigger = {
			scope:actor ?= {
				country_has_monarchy_law = yes
				has_variable = bonapartist_restoration_var
				ruler = {
					has_ideology = ideology:ideology_bonapartist
				}
			}
		}
	}
	flag_definition = {
		coa = FRA_theocracy
		subject_canton = FRA_theocracy
		priority = 20
		trigger = {
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = FRA_communist
		subject_canton = FRA_communist_canton
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = FRA_military
		subject_canton = FRA_military
		priority = 1500
		trigger = {
			coa_def_military_junta_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = FRA_fascist
		subject_canton = FRA_fascist
		priority = 1550
		trigger = {
			coa_def_fascist_flag_trigger = yes
		}
	}
}