# common variables
@coa_width = 768
@coa_height = 512
@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / coa_height ) + 0.001 ]
@canton_scale_sweden_x = @[ ( 255 / coa_width ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / coa_height ) + 0.001 ]
@canton_scale_norway_x = @[ ( 192 / coa_width ) + 0.001 ]
@canton_scale_norway_y = @[ ( 192 / coa_height ) + 0.001 ]
@canton_scale_denmark_x = @[ ( 220 / coa_width ) + 0.001 ]
@canton_scale_denmark_y = @[ ( 220 / coa_height ) + 0.001 ]
@third = @[1/3]

### 'North' North America ###

CAN = { # Canada
	flag_definition = {
		coa = CAN
		coa_with_overlord_canton = CAN_subject
		allow_overlord_canton = yes
	}
	flag_definition = {
		coa = CAN_republic
		subject_canton = CAN_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = CAN_theocracy
		subject_canton = CAN_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CAN_absolute_monarchy
		subject_canton = CAN_absolute_monarchy
		priority = 20
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CAN_dictatorship
		subject_canton = CAN_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = CAN_oligarchy
		subject_canton = CAN_oligarchy
		priority = 25
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = CAN_fascist
		subject_canton = CAN_fascist
		priority = 1500
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = CAN_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	
	# WB originals
	
	flag_definition = {
		coa = CAN_subject_USA
		subject_canton = CAN_subject_USA		
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}	
	
	flag_definition = {
		coa = CAN_anarchist
		subject_canton = CAN_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CAN_subject_GBR
		priority = 50
		allow_overlord_canton = no
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CAN_parliamentary_committee_flag
		subject_canton = CAN_parliamentary_committee_flag
		priority = 1000
		trigger = {
			NOT = { has_game_rule = WB_no_extra_fluff }
			
			exists = scope:actor
			scope:actor = { 
				OR = {
					has_variable = WB_is_WU_Canada_var
					has_variable = WB_is_Quebec_var
				}
			}
			
			scope:actor = {
				has_law = law_type:law_parliamentary_republic
				
				OR = {
					has_law = law_type:law_autocracy
					has_law = law_type:law_oligarchy
				}
			}
		}
	}
	
	flag_definition = {
		coa = CAN_subject_USA
		subject_canton = CAN_subject_USA		
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CAN_subject_AST
		subject_canton = CAN_subject_AST		
		priority = 50
		trigger = { 
			coa_def_australian_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CAN_subject_NZL
		subject_canton = CAN_subject_NZL		
		priority = 50
		trigger = { 
			coa_def_new_zealander_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CAN_subject_AST_NZL
		subject_canton = CAN_subject_AST_NZL		
		priority = 51
		trigger = { 
			coa_def_NZL_australia_ensign_trigger = yes
		}
	}
	
	## The many Canadas ##
	
	# Quebec Canada
	
	flag_definition = {
		coa = CAN_QUE_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	
	flag_definition = {
		coa = CAN_Quebec
		subject_canton = CAN_Quebec
		coa_with_overlord_canton = CAN_QUE_subject
		priority = 20
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	flag_definition = {
		coa = CAN_QUE_republic
		subject_canton = CAN_QUE_republic
		priority = 30
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}	
	flag_definition = {
		coa = CAN_QUE_theocracy
		subject_canton = CAN_QUE_theocracy
		priority = 30
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	flag_definition = {
		coa = CAN_QUE_absolute_monarchy
		subject_canton = CAN_QUE_absolute_monarchy
		priority = 30
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	flag_definition = {
		coa = CAN_QUE_dictatorship
		subject_canton = CAN_QUE_dictatorship
		priority = 35
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}	
	flag_definition = {
		coa = CAN_QUE_oligarchy
		subject_canton = CAN_QUE_oligarchy
		priority = 35
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}	
	flag_definition = {
		coa = CAN_QUE_fascist
		subject_canton = CAN_QUE_fascist
		priority = 1600
		trigger = { 
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}	
	flag_definition = {
		coa = CAN_QUE_communist
		subject_canton = CAN_QUE_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	flag_definition = {
		coa = CAN_QUE_anarchist
		subject_canton = CAN_QUE_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Quebec_var }
		}
	}
	
	flag_definition = {
		coa = CAN_QUE_subject_FRA		
		priority = 100
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}	
	
	# Hudson Bay Canada
	
	flag_definition = {
		coa = CAN_HBC_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = { 
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
		
	}
	
	flag_definition = {
		coa = CAN_Hudson_Bay
		subject_canton = CAN_Hudson_Bay
		coa_with_overlord_canton = CAN_HBC_subject
		priority = 20
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}
	flag_definition = {
		coa = CAN_HBC_republic
		subject_canton = CAN_HBC_republic
		priority = 30
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}	
	flag_definition = {
		coa = CAN_HBC_theocracy
		subject_canton = CAN_HBC_theocracy
		priority = 30
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}
	flag_definition = {
		coa = CAN_HBC_absolute_monarchy
		subject_canton = CAN_HBC_absolute_monarchy
		priority = 30
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}
	flag_definition = {
		coa = CAN_HBC_dictatorship
		subject_canton = CAN_HBC_dictatorship
		priority = 35
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}	
	flag_definition = {
		coa = CAN_HBC_oligarchy
		subject_canton = CAN_HBC_oligarchy
		priority = 35
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}	
	flag_definition = {
		coa = CAN_HBC_fascist
		subject_canton = CAN_HBC_fascist
		priority = 1600
		trigger = { 
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}	
	flag_definition = {
		coa = CAN_HBC_communist
		subject_canton = CAN_HBC_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}
	flag_definition = {
		coa = CAN_HBC_anarchist
		subject_canton = CAN_HBC_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
		}
	}
	
	flag_definition = {
		coa = HBC_anarcho_capitalist
		subject_canton = HBC_anarcho_capitalist
		priority = 1605
		trigger = {
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_HBC_var }
			
			scope:actor = {
				has_law = law_type:law_free_trade
				has_law = law_type:law_laissez_faire
			}
		}
	}
	
	# New Brunswick Canada
	
	flag_definition = {
		coa = CAN_NBS_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	
	flag_definition = {
		coa = CAN_New_Brunswick
		subject_canton = CAN_New_Brunswick
		coa_with_overlord_canton = CAN_NBS_subject
		priority = 20
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	flag_definition = {
		coa = CAN_NBS_republic
		subject_canton = CAN_NBS_republic
		priority = 30
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}	
	flag_definition = {
		coa = CAN_NBS_theocracy
		subject_canton = CAN_NBS_theocracy
		priority = 30
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	flag_definition = {
		coa = CAN_NBS_absolute_monarchy
		subject_canton = CAN_NBS_absolute_monarchy
		priority = 30
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	flag_definition = {
		coa = CAN_NBS_dictatorship
		subject_canton = CAN_NBS_dictatorship
		priority = 35
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}	
	flag_definition = {
		coa = CAN_NBS_oligarchy
		subject_canton = CAN_NBS_oligarchy
		priority = 35
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}	
	flag_definition = {
		coa = CAN_NBS_fascist
		subject_canton = CAN_NBS_fascist
		priority = 1600
		trigger = { 
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	flag_definition = {
		coa = CAN_NBS_communist
		subject_canton = CAN_NBS_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	flag_definition = {
		coa = CAN_NBS_anarchist
		subject_canton = CAN_NBS_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_New_Brunswick_var }
		}
	}
	
	# Nova Scotia Canada
	
	flag_definition = {
		coa = CAN_NVS_subject_GBR
		priority = 65
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	
	flag_definition = {
		coa = CAN_Nova_Scotia
		subject_canton = CAN_Nova_Scotia
		coa_with_overlord_canton = CAN_NBS_subject
		priority = 25
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	flag_definition = {
		coa = CAN_NVS_republic
		subject_canton = CAN_NVS_republic
		priority = 35
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}	
	flag_definition = {
		coa = CAN_NVS_theocracy
		subject_canton = CAN_NVS_theocracy
		priority = 35
		trigger = {
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	flag_definition = {
		coa = CAN_NVS_absolute_monarchy
		subject_canton = CAN_NVS_absolute_monarchy
		priority = 35
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	flag_definition = {
		coa = CAN_NVS_dictatorship
		subject_canton = CAN_NVS_dictatorship
		priority = 40
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}	
	flag_definition = {
		coa = CAN_NVS_oligarchy
		subject_canton = CAN_NVS_oligarchy
		priority = 40
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}	
	flag_definition = {
		coa = CAN_NVS_fascist
		subject_canton = CAN_NVS_fascist
		priority = 1605
		trigger = {
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	flag_definition = {
		coa = CAN_NVS_communist
		subject_canton = CAN_NVS_communist
		priority = 1605
		trigger = {
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	flag_definition = {
		coa = CAN_NVS_anarchist
		subject_canton = CAN_NVS_anarchist
		priority = 1606
		trigger = {
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Nova_Scotia_var }
		}
	}
	
	# Oregon Canada
	
	flag_definition = {
		coa = CAN_ORG_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	
	flag_definition = {
		coa = CAN_Oregon
		subject_canton = CAN_Oregon
		coa_with_overlord_canton = CAN_ORG_subject
		priority = 20
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	flag_definition = {
		coa = CAN_ORG_republic
		subject_canton = CAN_ORG_republic
		priority = 30
		trigger = {
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}	
	flag_definition = {
		coa = CAN_ORG_theocracy
		subject_canton = CAN_ORG_theocracy
		priority = 30
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	flag_definition = {
		coa = CAN_ORG_absolute_monarchy
		subject_canton = CAN_ORG_absolute_monarchy
		priority = 30
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	flag_definition = {
		coa = CAN_ORG_dictatorship
		subject_canton = CAN_ORG_dictatorship
		priority = 35
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}	
	flag_definition = {
		coa = CAN_ORG_oligarchy
		subject_canton = CAN_ORG_oligarchy
		priority = 35
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}	
	flag_definition = {
		coa = CAN_ORG_fascist
		subject_canton = CAN_ORG_fascist
		priority = 1600
		trigger = { 
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	flag_definition = {
		coa = CAN_ORG_communist
		subject_canton = CAN_ORG_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	flag_definition = {
		coa = CAN_ORG_anarchist
		subject_canton = CAN_ORG_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Cascadia_var }
		}
	}
	
	
	# Newfoundland Canada
	
	flag_definition = {
		coa = CAN_NEW_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	
	flag_definition = {
		coa = CAN_Newfoundland
		subject_canton = CAN_Newfoundland
		coa_with_overlord_canton = CAN_NEW_subject
		priority = 20
		allow_overlord_canton = yes
		
		trigger = {
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	flag_definition = {
		coa = CAN_NEW_republic
		subject_canton = CAN_NEW_republic
		priority = 30
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}	
	flag_definition = {
		coa = CAN_NEW_theocracy
		subject_canton = CAN_NEW_theocracy
		priority = 30
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	flag_definition = {
		coa = CAN_NEW_absolute_monarchy
		subject_canton = CAN_NEW_absolute_monarchy
		priority = 30
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	flag_definition = {
		coa = CAN_NEW_dictatorship
		subject_canton = CAN_NEW_dictatorship
		priority = 35
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}	
	flag_definition = {
		coa = CAN_NEW_oligarchy
		subject_canton = CAN_NEW_oligarchy
		priority = 35
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}	
	flag_definition = {
		coa = CAN_NEW_fascist
		subject_canton = CAN_NEW_fascist
		priority = 1600
		trigger = { 
			coa_def_fascist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	flag_definition = {
		coa = CAN_NEW_communist
		subject_canton = CAN_NEW_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	flag_definition = {
		coa = CAN_NEW_anarchist
		subject_canton = CAN_NEW_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
	
	flag_definition = {
		coa = CAN_NEW_subject_GBR
		priority = 60
		allow_overlord_canton = no
		trigger = {
			coa_def_british_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = { has_variable = WB_is_Newfoundland_var }
		}
	}
}

ONT = { # Ontario / Upper Canada
	flag_definition = {
		coa = ONT
		coa_with_overlord_canton = ONT_subject
		allow_overlord_canton = yes
	}
	flag_definition = {
		coa = ONT_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
			coa_def_independent_trigger = yes
		}
	}
	flag_definition = {
		coa = ONT_secessionist
		priority = 15
		trigger = {
			coa_def_secessionist_or_revolutionary_trigger = yes
		}
	}
	
	# WB original flags
	
	flag_definition = {
		coa = ONT_communist
		subject_canton = ONT_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ONT_subject_USA
		subject_canton = ONT_subject_USA		
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}	
	
	flag_definition = {
		coa = ONT_anarchist
		subject_canton = ONT_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ONT_dictatorship
		subject_canton = ONT_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

HBC = { # Hudson Bay Company
	flag_definition = {
		# WB edit
		coa = HBC_republic
		subject_canton = HBC_canton
		coa_with_overlord_canton = HBC_subject
		allow_overlord_canton = yes
	}
	flag_definition = {
		coa = HBC_monarchy
		coa_with_overlord_canton = HBC_subject
		allow_overlord_canton = yes
		subject_canton = HBC_monarchy
		priority = 20
		trigger = { 
			OR = {
				coa_def_monarchy_flag_trigger = yes
				coa_def_theocracy_flag_trigger = yes
			}
		}
	}
	flag_definition = {
		coa = HBC_communist
		subject_canton = HBC_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = HBC_subject	
		allow_overlord_canton = yes				
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}		
	
	# WB originals
	
	flag_definition = {
		coa = HBC
		subject_canton = HBC_canton
		coa_with_overlord_canton = HBC_subject
		allow_overlord_canton = yes
		priority = 10
		
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HBC_anarchist
		subject_canton = HBC_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HBC_dictatorship
		subject_canton = HBC_canton
		coa_with_overlord_canton = HBC_subject
		allow_overlord_canton = yes
		priority = 10
		
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HBC_anarcho_capitalist
		subject_canton = HBC_anarcho_capitalist
		priority = 1502
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_free_trade
				has_law = law_type:law_laissez_faire
			}
		}
	}
}

NVS = { # Nova Scotia
	flag_definition = {
		coa = NVS
		subject_canton = NVS
		coa_with_overlord_canton = NVS_subject
		allow_overlord_canton = yes		
		priority = 1
	}

	# WB originals
	
	flag_definition = {
		coa = NVS_monarchy
		subject_canton = NVS_monarchy
		coa_with_overlord_canton = NVS_subject
		allow_overlord_canton = yes		
		priority = 10
		
		trigger = {
			coa_def_monarchy_flag_trigger = yes
		}
	}	
	
	flag_definition = {
		coa = NVS_communist
		subject_canton = NVS_communist
		priority = 10
		
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NVS_anarchist
		subject_canton = NVS_anarchist
		priority = 1501
		trigger = {
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NVS_dictatorship
		subject_canton = NVS_dictatorship
		priority = 10
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	# Unified Maritimes flags
	
	flag_definition = {
		coa = NVS_maritimes
		subject_canton = NVS_maritimes
		coa_with_overlord_canton = NVS_maritimes_subject
		allow_overlord_canton = yes	
		priority = 5
		
		trigger = {
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NBS }
		}
	}
	
	flag_definition = {
		coa = NVS_monarchy_maritimes
		subject_canton = NVS_monarchy_maritimes
		coa_with_overlord_canton = NVS_maritimes_subject
		allow_overlord_canton = yes		
		priority = 15
		
		trigger = {
			coa_def_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NBS }
		}
	}	
	
	flag_definition = {
		coa = NVS_communist_maritimes
		subject_canton = NVS_communist_maritimes
		
		priority = 1505
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NBS }
		}
	}
	
	flag_definition = {
		coa = NVS_anarchist_maritimes
		subject_canton = NVS_anarchist_maritimes
		priority = 1506
		trigger = {
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NBS }
		}
	}
	
	flag_definition = {
		coa = NVS_dictatorship_maritimes
		subject_canton = NVS_dictatorship_maritimes
		priority = 15
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NBS }
		}
	}
}

NBS = { # New Brunswick
	flag_definition = {
		coa = NBS
		coa_with_overlord_canton = NBS_subject
		allow_overlord_canton = yes		
	}
	flag_definition = {
		coa = NBS_subject_FRA
		allow_overlord_canton = yes			
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}	
	
	# WB original flags
	
	flag_definition = {
		coa = NBS_communist
		subject_canton = NBS_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NBS_anarchist
		subject_canton = NBS_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NBS_dictatorship
		subject_canton = NBS_dictatorship
		allow_overlord_canton = yes			
		priority = 10
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	# United Martimes flags
	
	flag_definition = {
		coa = NBS_maritimes
		coa_with_overlord_canton = NBS_maritimes_subject
		allow_overlord_canton = yes		
		priority = 5
		
		trigger = {
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NVS }
		}
	}
	flag_definition = {
		coa = NBS_subject_FRA_maritimes
		allow_overlord_canton = yes			
		priority = 55
		trigger = { 
			coa_def_french_ensign_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NVS }
		}
	}	
	
	
	flag_definition = {
		coa = NBS_communist_maritimes
		subject_canton = NBS_communist_maritimes
		priority = 1505
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NVS }
		}
	}
	
	flag_definition = {
		coa = NBS_anarchist_maritimes
		subject_canton = NBS_anarchist_maritimes
		priority = 1506
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NVS }
		}
	}
	
	flag_definition = {
		coa = NBS_dictatorship_maritimes
		subject_canton = NBS_dictatorship_maritimes
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = {
				owns_entire_state_region = STATE_NEW_BRUNSWICK
			}
			NOT = { exists = c:NVS }
		}
	}
}

NEW = { # Newfoundland
	flag_definition = {
		coa = NEW
		subject_canton = NEW
		coa_with_overlord_canton = NEW_subject	
		allow_overlord_canton = yes
	}
	flag_definition = {
		coa = NEW_republic
		subject_canton = NEW_republic
		allow_overlord_canton = yes
		coa_with_overlord_canton = NEW_subject
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = NEW_coa
		subject_canton = NEW_coa
		coa_with_overlord_canton = NEW_subject
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = NEW_theocracy
		subject_canton = NEW_theocracy
		priority = 20
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}	
	
	# WB original flags
	
	flag_definition = {
		coa = NEW_communist
		subject_canton = NEW_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NEW_anarchist
		subject_canton = NEW_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = NEW_dictatorship
		subject_canton = NEW_dictatorship	
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

QUE = { # Quebec / Lower Canada
	flag_definition = {
		coa = QUE
		subject_canton = QUE
		coa_with_overlord_canton = QUE_subject
		allow_overlord_canton = yes
	}
	flag_definition = {
		coa = QUE_secessionist
		priority = 15
		trigger = {
			coa_def_secessionist_or_revolutionary_trigger = yes
		}
	}
	flag_definition = {
		coa = QUE_communist
		subject_canton = QUE_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = QUE_subject_FRA		
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}	
	
	# WB original flags

	
	flag_definition = {
		coa = QUE_anarchist
		subject_canton = QUE_anarchist
		priority = 1501
		trigger = {
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = QUE_dictatorship
		subject_canton = QUE_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

ORG = { # Oregon / Columbia District
	flag_definition = {
		coa = ORG
		subject_canton = ORG		
		coa_with_overlord_canton = ORG_subject
		allow_overlord_canton = yes
		priority = 1		
	}	
	flag_definition = {
		coa = ORG_communist
		subject_canton = ORG_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = ORG_subject_GBR
		allow_overlord_canton = yes		
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}	
	
	# WB original flags
	
	flag_definition = {
		coa = ORG_anarchist
		subject_canton = ORG_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ORG_dictatorship
		subject_canton = ORG_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

COL = { # Columbia District for VFM compatibility 

# Why did you replace the Columbia District starting tag with this VFM???
		
	flag_definition = {
		coa = ORG
		subject_canton = ORG		
		coa_with_overlord_canton = ORG_subject
		allow_overlord_canton = yes
		priority = 1		
	}	
	flag_definition = {
		coa = ORG_communist
		subject_canton = ORG_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = ORG_subject_GBR
		allow_overlord_canton = yes		
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}	
	
	# WB original flags
	
	flag_definition = {
		coa = ORG_anarchist
		subject_canton = ORG_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ORG_dictatorship
		subject_canton = ORG_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

TEX = { # Texas
	flag_definition = {
		coa = TEX_Bonnie_Blue
		subject_canton = TEX_Bonnie_Blue
		allow_overlord_canton = yes			
		coa_with_overlord_canton = TEX_subject
		priority = 1
	}
	flag_definition = {
		coa = TEX
		subject_canton = TEX
		priority = 5
		allow_overlord_canton = yes			
		coa_with_overlord_canton = TEX_subject		
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_absolute_monarchy
		subject_canton = TEX_absolute_monarchy
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_merchant
		subject_canton = TEX_merchant
		priority = 10
		allow_overlord_canton = yes			
		coa_with_overlord_canton = TEX_subject			
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_oligarchy
		subject_canton = TEX_oligarchy
		priority = 25
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_subject_USA
		subject_canton = TEX_subject_USA
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}
	flag_definition = {
		coa = TEX_communist
		subject_canton = TEX_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_subject_SPA
		subject_canton = TEX_subject_SPA
		priority = 30
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}	
	flag_definition = {
		coa = TEX_subject_MEX
		subject_canton = TEX_subject_MEX
		priority = 30
		trigger = { 
			coa_def_mexican_ensign_trigger = yes
		}
	}	
	
	# WB originals
	
	flag_definition = {
	# so that an independent Texas will still use its modern flag eventually
	
		coa = TEX_subject_USA
		subject_canton = TEX_subject_USA
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
			
			game_date >= 1839.1.1
			
			exists = scope:actor
			scope:actor = {
				has_technology_researched = nationalism
			}
		}
	}
	
	flag_definition = {
		coa = TEX_anarchist
		subject_canton = TEX_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
}

### Central America ###

CUB = { # Cuba
	flag_definition = {
		coa = CUB_early
		subject_canton = CUB_early
		coa_with_overlord_canton = CUB_subject
		allow_overlord_canton = yes		
		priority = 1		
	}
	flag_definition = {
		coa = CUB
		subject_canton = CUB
		coa_with_overlord_canton = CUB_subject
		allow_overlord_canton = yes			
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}		
	}
	flag_definition = {
		coa = CUB_dictatorship
		subject_canton = CUB_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CUB_oligarchy
		subject_canton = CUB_oligarchy
		priority = 25
		trigger = {
			coa_def_oligarchy_flag_trigger = yes
		}
	}		
	flag_definition = {
		coa = CUB
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = CUB_spa
		priority = 30
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}
	flag_definition = {
		coa = CUB_subject_USA
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}	
	
	# WB anarchist flags
	flag_definition = {
		coa = CUB_anarchist
		subject_canton = CUB_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
}

HAI = { # Haiti
	flag_definition = {
		coa = HAI
		allow_overlord_canton = yes		
		coa_with_overlord_canton = HAI_subject			
		subject_canton = HAI
		priority = 1
	}	
	flag_definition = {
		coa = HAI # WB edit
		subject_canton = HAI # WB edit
		allow_overlord_canton = yes		
		coa_with_overlord_canton = HAI_republic_subject			
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	
	# switched vanilla's absolute monarchy flag with WB's monarchy flag
	flag_definition = {
		coa = HAI_monarchy # WB edit 
		subject_canton = HAI_monarchy # WB edit
		allow_overlord_canton = yes		
		coa_with_overlord_canton = HAI_subject		
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = HAI_communist
		subject_canton = HAI_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = HAI_subject_SPA
		subject_canton = HAI_subject_SPA
		priority = 50
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}	
	flag_definition = {
		coa = HAI_subject_USA
		subject_canton = HAI_subject_USA
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}		
	
	# WB originals
	
	flag_definition = {
		coa = HAI_absolute_monarchy # swtiched with the non-absolute monarchy flag
		subject_canton = HAI_absolute_monarchy
		allow_overlord_canton = yes		
		coa_with_overlord_canton = HAI_subject		
		priority = 19
		trigger = { 
			coa_def_monarchy_flag_trigger = yes # WB edit
		}
	}	
	
	flag_definition = {
		coa = HAI_dictatorship
		subject_canton = HAI_dictatorship
		allow_overlord_canton = yes				
		priority = 15
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HAI_dictatorship_alt
		subject_canton = HAI_dictatorship_alt
		allow_overlord_canton = yes				
		priority = 16
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
			
			scope:actor ?= {
				has_technology_researched = nationalism
			}
		}
	}
	
	flag_definition = {
		coa = HAI_anarchist
		subject_canton = HAI_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HAI_subject_FRA
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HAI_republic_coa
		subject_canton = HAI_republic_coa
		allow_overlord_canton = yes		
		coa_with_overlord_canton = HAI_republic_subject			
		priority = 11
		
		trigger = {
			coa_def_republic_flag_trigger = yes
			
			OR = {
				# Have Organized Sports and reach 1 August 1936 (the Liechtenstein-Haiti flag incident during the 1936 Summer Olympics)
				AND = {
					game_date >= 1936.8.1
					scope:actor ?= {
						has_technology_researched = organized_sports
					}
				}
				
				# Have Organized Sports and Greece takes the Olympics decision
				AND = {
					scope:actor ?= {
						has_technology_researched = organized_sports
					}
					
					OR = {
						c:GRE ?= { has_variable = revive_olympics_decision_taken }
						
						has_global_variable = WB_Greece_started_Olympics_var
					}
				}
				
				# Be at least a Major Power
				AND = {
					scope:actor ?= {
						country_rank >= rank_value:major_power
					}
				}
			}
		}
	}
	
	flag_definition = {
		coa = HAI_fascist
		subject_canton = HAI_fascist
		allow_overlord_canton = yes				
		priority = 100
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = HAI_secessionist
		subject_canton = HAI_secessionist
		priority = 100
		trigger = {
			coa_def_republic_flag_trigger = yes
			
			scope:actor ?= {
				is_secessionist = yes
			}
		}
	}
	
	flag_definition = {
		coa = HAI_secessionist_dictatorship
		subject_canton = HAI_secessionist_dictatorship
		priority = 101
		trigger = {
			coa_def_republic_flag_trigger = yes
			
			scope:actor ?= {
				is_secessionist = yes
			}
		}
	}
	
	flag_definition = {
		coa = HAI_secessionist_communist
		subject_canton = HAI_secessionist_communist
		priority = 1501
		trigger = {
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				is_secessionist = yes
			}
		}
	}
}

MEX = { # Mexico
	flag_definition = {
		coa = MEX
		subject_canton = MEX
		allow_overlord_canton = yes		
		coa_with_overlord_canton = MEX_subject			
		priority = 1
	}
	flag_definition = {
		coa = MEX_absolute_monarchy
		subject_canton = MEX_absolute_monarchy
		allow_overlord_canton = yes
		overlord_canton_scale = { 0.337 0.337 }
		coa_with_overlord_canton = MEX_habsburg_monarchy			
		priority = 20
		trigger = { 
			#coa_def_absolute_monarchy_flag_trigger = yes
			
			# WB edit
			coa_def_monarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = MEX_dictatorship
		subject_canton = MEX_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = MEX_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = MEX_subject_USA
		priority = 50
		trigger = { 
			coa_def_american_ensign_trigger = yes
		}
	}	
	
	# WB originals
	
	flag_definition = {
		coa = MEX_habsburg_monarchy 
		priority = 61
		trigger = {
			exists = scope:actor
			
			OR = {
				coa_def_french_ensign_trigger = yes
				
				coa_def_austrian_ensign_trigger = yes
				
				AND = {
					exists = c:GER
					scope:actor = {
						is_subject_of = c:GER
					}
					c:GER = {
						OR = {
							has_variable = WB_is_Austria_var
							has_variable = WB_is_Austria_Hungary_var
							has_variable = WB_force_use_Austria_Hungary_var
						}
					}
				}
				
				AND = {
					c:MEX ?= {
						has_law = law_type:law_monarchy
						ruler = { has_culture = cu:south_german }
					}
				}
			}
		}
	}
	
	flag_definition = {
		coa = MEX_anarchist
		subject_canton = MEX_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = MEX_subject_SPA
		subject_canton = MEX_subject_SPA
		priority = 100
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}	
	
	flag_definition = {
		coa = MEX_junta
		subject_canton = MEX_junta
		priority = 15
		trigger = {
			scope:actor ?= {
				has_ruling_interest_group = ig_armed_forces
			
				OR = {
					has_law = law_type:law_presidential_republic
					has_law = law_type:law_parliamentary_republic
				}
				
				OR = {
					has_law = law_type:law_mass_conscription
					has_law = law_type:law_professional_army
				}
				
				OR = {
					country_has_voting_franchise = no
					has_law = law_type:law_oligarchy
					has_law = law_type:law_technocracy
					has_law = law_type:law_single_party_state
				}
				
				# Because this law triggers a different type of flag
				NOT = { has_law = law_type:law_autocracy }
			}
		}
	}
	
	flag_definition = {
		# Temporary flag during the duration of the Texas Revolution because the back-to-back shot of Mexico and Texas is cool
		
		coa = MEX
		subject_canton = MEX
		priority = 16
		trigger = {
		
			exists = c:MEX
			exists = c:TEX
			
			c:MEX = { has_war_with = c:TEX }
			c:TEX = { has_journal_entry = je_texas_tex }
			
			game_date < 1840.1.1
		}
	}
}



## Free States of America and its Unifiers ##

FSA = { # Free States of America
	flag_definition = {
		coa = FSA
		subject_canton = FSA
		coa_with_overlord_canton = FSA_subject	
		allow_overlord_canton = yes
		priority = 1
	}	
	flag_definition = {
		coa = FSA_dictatorship
		subject_canton = FSA_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = FSA_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = FSA_subject_MEX
		priority = 30
		trigger = { 
			coa_def_mexican_ensign_trigger = yes
		}
	}		
	
	## WB originals ##
	
	flag_definition = {
		coa = FSA_monarchy
		subject_canton = FSA_monarchy
		priority = 25
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	
	# Oregon FSA
	
	flag_definition = {
		coa = FSA_ORG
		subject_canton = FSA_ORG
		coa_with_overlord_canton = FSA_ORG_subject
		allow_overlord_canton = yes
		priority = 100
		
		trigger = {
			scope:actor ?= { has_variable = WB_is_Cascadia_var }
		}
	}	
	flag_definition = {
		coa = FSA_ORG_dictatorship
		subject_canton = FSA_ORG_dictatorship
		priority = 120
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Cascadia_var }
		}
	}	
	flag_definition = {
		coa = FSA_ORG_communist
		subject_canton = FSA_ORG_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = FSA_ORG_subject_MEX
		subject_canton = FSA_ORG_subject_MEX
		priority = 130
		trigger = { 
			coa_def_mexican_ensign_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ORG_anarchist
		subject_canton = ORG_anarchist
		priority = 2601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = FSA_ORG_monarchy
		subject_canton = FSA_ORG_monarchy
		priority = 120
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
}