focus_tree = {
	id = canadian_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = CAN
			has_dlc = "Together for Victory"
		}

		#modifier = {
		#	add = 10
		#	original_tag = CAN
		#	has_dlc = "Together for Victory"
		#}
	}

	shared_focus = Alais_pact
	
	default = no



#	focus = {
#		id = CAN_
#		icon = GFX_
#		prerequisite = { focus = }
#		mutually_exclusive = { focus =  }
#		x = -3
#		y = 0
#		relative_position_id = 
#
#		cost = 10
#
#		ai_will_do = {
#			factor = 1
#		}
#
#		available = {
#
#		}
#		
#		bypass = {
#
#		}
#
#		cancel_if_invalid = yes
#		continue_if_invalid = no
#		available_if_capitulated = no
#
#		complete_tooltip = {
#
#		}
#
#		completion_reward = {
#
#		}
#	}




	############################
	##### INDUSTRY SECTION #####
	############################

	focus = {
		id = CAN_rowell_sirois_commission
		icon = GFX_goal_generic_consumer_goods
		x = 0
		y = 0

		cost = 10

		ai_will_do = {
			factor = 24
			modifier = {
				factor = 3
				has_completed_focus = CAN_crown_corporations
			}
		}

		available = {
		
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_political_power = 120
		}
	}

	focus = {
		id = CAN_crown_corporations
		icon = GFX_goal_generic_construct_civ_factory
		x = 3
		y = 0
		relative_position_id = CAN_rowell_sirois_commission

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 3
				has_completed_focus = CAN_rowell_sirois_commission
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CAN_c_d_howe
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 2

				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
	}


	focus = {
		id = CAN_national_housing_act
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = CAN_rowell_sirois_commission }
		prerequisite = { focus = CAN_crown_corporations }
		x = 2
		y = 1
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {
		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = construction_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = industrial_complex
						size < 1
						include_locked = yes
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_national_housing_act_IC
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			IF = {
				limit = {
					has_country_leader = {
						ruling_only = yes
						character = CAN_mackenzie_king
					}
				}

				add_trait = {
					character = CAN_mackenzie_king
					trait = CAN_father_of_the_canadian_welfare_state
					ideology = liberalism 
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
				set_state_flag = CAN_national_housing_act_IC
			}

			IF = {
				limit = {
					has_country_leader = {
						ruling_only = yes
						character = CAN_mackenzie_king
					}
				}
				
				add_trait = {
					character = CAN_mackenzie_king
					trait = CAN_father_of_the_canadian_welfare_state
					ideology = liberalism 
				}
				
			}
		}
	}


	focus = {
		id = CAN_dollar_a_year_men
		icon = GFX_goal_generic_construction
		prerequisite = { focus = CAN_national_housing_act}
		x = 2
		y = 2
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_ideas = CAN_dollar_a_year_men
			add_tech_bonus = {
				name = CAN_dollar_a_year_men
				bonus = 1.0
				uses = 1
				category = industry
			}
		}
	}

	focus = {
		id = CAN_canada_pacific_railway
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CAN_rowell_sirois_commission }
		x = 0
		y = 2
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {

		}
		
		bypass = {
			NOT = {
				owns_state = 473
				owns_state = 471
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			473 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}

			471 = {
				add_building_construction = {
					type = infrastructure
					level = 4
					instant_build = yes
				}
			}
			740 = {
				add_building_construction = {
					type = infrastructure
					level = 4
					instant_build = yes
				}
			}
			739 = {
				add_building_construction = {
					type = infrastructure
					level = 4
					instant_build = yes
				}
			}
			build_railway = { #Vancouver - NW Canada
				path = {
					1408 1858 10273 4870 10548
				}
			}

			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = canadian_pacific_railway
		}
	}

	focus = {
		id = CAN_maritime_colonial_railway
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CAN_canada_pacific_railway }
		x = 0
		y = 3
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {
			controls_state = 464
			controls_state = 465
			controls_state = 468
		}
		
		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			build_railway = { #Montreal - Halifax
				path = {
					4345 4417 10320 7433 1284 12291 4362 7379 4432 1424 7304 7644 7361
				}
			}
			build_railway = {
				path = {
					1424 4285
				}
			} 
			build_railway = {
				path = { 7433 12149 }
			}

			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 2

				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = CAN_retool_angus_shops
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CAN_canada_pacific_railway }
		prerequisite = { focus = CAN_bits_and_pieces_program }
		x = 2
		y = 3
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {

		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}					
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_retool_angus_shops_AF
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 285 517 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_retool_angus_shops_AF
			}
		}
	}

	focus = {
		id = CAN_imperial_oil
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = CAN_retool_angus_shops }
		x = 2
		y = 4
		relative_position_id = CAN_rowell_sirois_commission

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {
			controls_state = 470
			controls_state = 471
			controls_state = 472
			controls_state = 683
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			470 = {
				add_resource = {
					type = oil
					amount = 2
				}
			}
			471 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
			472 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
			683 = {
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}
	}


	############################
	#### WAR PREP SECTION ######
	############################

	focus = {
		id = CAN_defence_of_canada_regulations
		icon = GFX_goal_generic_construct_military
		x = 8
		y = 0

		cost = 5

		ai_will_do = {
			factor = 30
		}

		available = {
			threat > 0.2
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = { has_government = democratic }
				add_ideas = CAN_defence_of_canada_regulations_democratic
			}
			if = {
				limit = { has_government = communism }
				add_ideas = CAN_defence_of_canada_regulations_communism
			}
			if = {
				limit = { has_government = fascism }
				add_ideas = CAN_defence_of_canada_regulations_fascism
			}
		}
	}

	focus = {
		id = CAN_war_bonds
		icon = GFX_goal_generic_consumer_goods
		x = -2
		y = 0
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 80
		}

		available = {
			has_war = yes
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_ideas = CAN_war_bonds_1
		}
	}

	focus = {
		id = CAN_department_of_munitions_and_supply
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = CAN_crown_corporations }
		prerequisite = { focus = CAN_defence_of_canada_regulations }
		prerequisite = { focus = CAN_war_bonds }
		x = -3
		y = 1
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}					
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_department_of_munitions_and_supply_AF1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_department_of_munitions_and_supply_AF2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_department_of_munitions_and_supply_AF1
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_department_of_munitions_and_supply_AF2
			}
		}
	}

	focus = {
		id = CAN_national_resources_mobilization_act
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = CAN_defence_of_canada_regulations }
		x = -1
		y = 1
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_ideas = CAN_national_resources_mobilization_act
		}
	}

	focus = {
		id = CAN_wartime_prices_and_trade_board
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = CAN_defence_of_canada_regulations }
		x = 2
		y = 1
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 50
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_ideas = CAN_wartime_prices_and_trade_board
		}
	}

	focus = {
		id = CAN_bits_and_pieces_program
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CAN_department_of_munitions_and_supply }
		x = -4
		y = 2
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_ideas = CAN_bits_and_pieces_program
		}
	}

	focus = {
		id = CAN_fund_the_national_research_council
		icon = GFX_focus_research
		prerequisite = { focus = CAN_department_of_munitions_and_supply focus = CAN_national_resources_mobilization_act }
		x = -1
		y = 2
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CAN_fund_the_national_research_council2
		icon = GFX_focus_research
		prerequisite = { focus = CAN_fund_the_national_research_council }
		x = 1
		y = 1
		relative_position_id = CAN_fund_the_national_research_council

		cost = 10

		ai_will_do = {
			factor = 75
		}

		available = {
			num_of_factories > 65
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CAN_mine_the_shield
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CAN_national_resources_mobilization_act }
		x = 1
		y = 2
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_canada_wheat_board
			}
		}

		available = {

		}
		
		bypass = {
			NOT = {
				any_owned_state = {
					is_in_home_area = yes
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 471 472 683 }
				limit = {
					is_in_home_area = yes
				}
				add_resource = {
					type = steel
					amount = 2
				}
			}
			random_owned_controlled_state = {
				prioritize = { 471 472 683 }
				limit = {
					is_in_home_area = yes
				}
				add_resource = {
					type = steel
					amount = 2
				}
			}
			random_owned_controlled_state = {
				prioritize = { 471 472 683 }
				limit = {
					is_in_home_area = yes
				}
				add_resource = {
					type = chromium
					amount = 3
				}
			}
		}
	}

	focus = {
		id = CAN_canada_wheat_board
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CAN_wartime_prices_and_trade_board }
		x = 3
		y = 2
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_mine_the_shield
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			if = {
				limit = { has_idea = CAN_great_depression_1 }
				swap_ideas = {
					remove_idea = CAN_great_depression_1
					add_idea = CAN_great_depression_2		
				}
			}
			else_if = {
				limit = { has_idea = CAN_great_depression_2 }
				remove_ideas = CAN_great_depression_2
			}
		}
	}

	focus = {
		id = CAN_victory_aircraft_limited
		icon = GFX_goal_generic_production2
		prerequisite = { focus = CAN_department_of_munitions_and_supply }
		x = -2
		y = 3
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_john_inglis_and_company
			}
		}

		available = {

		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}					
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_victory_aircraft_limited_AF1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_victory_aircraft_limited_AF2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 276 682 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_victory_aircraft_limited_AF1
			}
			random_owned_controlled_state = {
				prioritize = { 276 682 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_victory_aircraft_limited_AF2
			}
		}
	}

	focus = {
		id = CAN_alberta_coal_towns
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = CAN_mine_the_shield }
		prerequisite = { focus = CAN_canada_wheat_board }		
		x = 2
		y = 3
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 470 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_alberta_coal_towns_IC
			}
		}
	}

	focus = {
		id = CAN_commit_to_the_war
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = CAN_canada_wheat_board }
		x = 4
		y = 3
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {
			has_war = yes
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_ideas = CAN_commit_to_the_war
		}
	}

	focus = {
		id = CAN_john_inglis_and_company
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = CAN_bits_and_pieces_program }
		x = -4
		y = 4
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_victory_aircraft_limited
			}
		}

		available = {

		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_john_inglis_and_company_AF1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_john_inglis_and_company_AF2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 276 682 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_john_inglis_and_company_AF1
			}
			random_owned_controlled_state = {
				prioritize = { 276 682 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_john_inglis_and_company_AF2
			}
		}
	}

	focus = {
		id = CAN_polymer_corporation
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = CAN_victory_aircraft_limited focus = CAN_fund_the_national_research_council }
		x = -1
		y = 4
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 50
		}

		available = {

		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = synth_oil_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = synthetic_refinery
						size < 0
						include_locked = yes
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

		complete_tooltip = {
			if = {
				limit = { has_country_flag = CAN_polymer_corporation_unlock }
				set_technology = { synth_oil_experiments = 1 }
				else = {					
					add_tech_bonus = {
						name = CAN_polymer_corporation
						ahead_reduction = 2
						bonus = 1.0
						uses = 1
						category = synth_resources
					}
				}				
			}
			random_state = {
				limit = {
					has_state_flag = CAN_polymer_corporation_1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_polymer_corporation_2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					NOT = { has_tech = synth_oil_experiments }
				}
				set_technology = { synth_oil_experiments = 1 }
				set_country_flag = CAN_polymer_corporation_unlock
				effect_tooltip = {
					random_owned_controlled_state = {
						prioritize = { 682 }
						limit = {
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = synthetic_refinery
							level = 1
							instant_build = yes
						}
						set_state_flag = CAN_polymer_corporation_1
					}
					random_owned_controlled_state = {
						prioritize = { 276 }
						limit = {
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = synthetic_refinery
							level = 1
							instant_build = yes
						}
						set_state_flag = CAN_polymer_corporation_2
					}
				}
				else = {
					add_tech_bonus = {
						name = CAN_polymer_corporation
						ahead_reduction = 2
						bonus = 1.0
						uses = 1
						category = synth_resources
					}
				}
			}
			random_owned_controlled_state = {
				prioritize = { 682 }
				limit = {
					free_building_slots = {
						building = synthetic_refinery
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_polymer_corporation_1
			}
			random_owned_controlled_state = {
				prioritize = { 276 }
				limit = {
					free_building_slots = {
						building = synthetic_refinery
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_polymer_corporation_2
			}
		}
	}

	focus = {
		id = CAN_national_steel_car
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CAN_alberta_coal_towns }
		x = 1
		y = 4
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_if_day
			}
		}

		available = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_national_steel_car_IC1
			}
		}
	}

	focus = {
		id = CAN_send_in_the_zombies
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = CAN_commit_to_the_war }
		x = 3
		y = 4
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_ideas = CAN_send_in_the_zombies
		}
	}

	focus = {
		id = CAN_if_day
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CAN_john_inglis_and_company }
		prerequisite = { focus = CAN_victory_aircraft_limited }
		x = -2
		y = 5
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_national_steel_car
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			swap_ideas = {
				remove_idea = CAN_war_bonds_1
				add_idea = CAN_war_bonds_2
			}
		}
	}

	focus = {
		id = CAN_defense_research_grants
		icon = GFX_focus_research
		prerequisite = { focus = CAN_john_inglis_and_company }
		prerequisite = { focus = CAN_if_day }
		x = -3
		y = 6
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {
			num_of_factories > 90
			is_subject = no
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CAN_uranium_mining
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = CAN_polymer_corporation focus = CAN_national_steel_car }
		x = 0
		y = 5
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 5

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

			completion_reward = {
			IF = {
				limit = {
					NOT = {
						has_tech = atomic_research
					}
				}
				add_tech_bonus = {
					name = CAN_uranium_mining
					bonus = 1
					uses = 1
					category = nuclear
				}
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.25
				}
			}
			ELSE = {
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.75
				}
			}
		}	
	}

	focus = {
		id = CAN_long_branch_arsenal
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = CAN_send_in_the_zombies }
		x = 2
		y = 5
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_long_branch_arsenal
				bonus = 1.0
				uses = 1
				category = infantry_weapons
				category = artillery
			}
		}
	}

	focus = {
		id = CAN_independent_command
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = CAN_send_in_the_zombies }
		prerequisite = { focus = CAN_red_deer_training_camp }
		x = 4
		y = 5
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			army_experience = 50
			add_doctrine_cost_reduction = {
				name = CAN_independent_command
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = CAN_forced_quebec_conscription
		icon = GFX_goal_tfv_can_forced_quebec_conscription 
		prerequisite = { focus = CAN_long_branch_arsenal focus = CAN_independent_command }
		mutually_exclusive = { focus =  CAN_compromise_with_quebec }
		x = 2
		y = 6
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			remove_ideas = CAN_conscription_crisis
			custom_effect_tooltip = "CAN_ANGERED_WORKERS"
			
			# Opens up the MTTH events tfv_canada.50 - tfv_canada.53
		}
	}

	focus = {
		id = CAN_compromise_with_quebec
		icon = GFX_goal_tfv_can_compromise_with_quebec
		prerequisite = { focus = CAN_long_branch_arsenal focus = CAN_independent_command }
		mutually_exclusive = { focus =  CAN_forced_quebec_conscription }
		x = 4
		y = 6
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			swap_ideas = {
				remove_idea = CAN_conscription_crisis
				add_idea = CAN_conscription_crisis_mended
			}
		}
	}

	focus = {
		id = CAN_war_fueled_economy
		icon = GFX_goal_generic_trade
		prerequisite = { focus = CAN_national_steel_car }
		prerequisite = { focus = CAN_if_day }
		x = 1
		y = 7
		relative_position_id = CAN_defence_of_canada_regulations

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			if = {
				limit = { 
					OR = {
						has_idea = CAN_great_depression_1
						has_idea = CAN_great_depression_2
					}
				}
				remove_ideas = CAN_great_depression_2
				custom_effect_tooltip = if_no_depression_get_stuff_TT
			}
			else = {
				add_timed_idea = {
					idea = CAN_booming_economy
					days = 1095
				}
			}
		}
	}

	focus = {
		id = CAN_war_fueled_economy2
		icon = GFX_focus_SWE_landsverk
		prerequisite = { focus = CAN_war_fueled_economy }
		x = 0
		y = 1
		relative_position_id = CAN_war_fueled_economy

		cost = 10

		ai_will_do = {
			factor = 25
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			swap_ideas = {
			remove_idea = CAN_wartime_prices_and_trade_board
			add_idea = CAN_wartime_prices_and_trade_board2
		}
		}
	}


	############################
	####### ARMY SECTION #######
	############################

	focus = {
		id = CAN_army_modernization
		icon = GFX_goal_generic_army_doctrines
		x = 15
		y = 0

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			army_experience = 50 
			add_doctrine_cost_reduction = {
				name = CAN_army_modernization
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = CAN_canadian_infantry_corps
		icon = GFX_goal_generic_allies_build_infantry
		prerequisite = { focus = CAN_army_modernization }
		x = -1
		y = 1
		relative_position_id = CAN_army_modernization

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_canadian_infantry_corps
				bonus = 1.0
				uses = 1
				category = infantry_weapons
				category = artillery
			}
		}
	}

	focus = {
		id = CAN_cmp_truck
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = CAN_army_modernization }
		x = 1
		y = 1
		relative_position_id = CAN_army_modernization

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_cmp_truck
				ahead_reduction = 2
				bonus = 3.0
				uses = 1
				category = motorized_equipment
			}
		}
	}

	focus = {
		id = CAN_the_walkie_talkie
		icon = GFX_goal_generic_radar
		prerequisite = { focus = CAN_canadian_infantry_corps focus = CAN_cmp_truck }
		x = 0
		y = 2
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_the_walkie_talkie
				bonus = 1.0
				uses = 1
				category = electronics
			}
			add_tech_bonus = {
				name = CAN_the_walkie_talkie
				bonus = 1.0
				uses = 1
				technology = tech_signal_company
				technology = tech_signal_company2
				technology = tech_signal_company3
				technology = tech_signal_company4
			}
		}
	}

	focus = {
		id = CAN_royal_regiment_of_canadian_artillery
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = CAN_canadian_infantry_corps }
		x = -1
		y = 3
		relative_position_id = CAN_army_modernization

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.15
			}
			add_tech_bonus = {
				name = CAN_royal_regiment_of_canadian_artillery
				bonus = 1.0
				uses = 1
				category = artillery
			}
		}
	}

	focus = {
		id = CAN_a_motorized_army
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = CAN_cmp_truck }
		x = 1
		y = 3
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_a_motorized_army
				bonus = 1.0
				uses = 1
				category = motorized_equipment
				technology = tech_field_hospital
				technology = tech_field_hospital2
				technology = tech_field_hospital3
				technology = tech_field_hospital4
				technology = tech_logistics_company
				technology = tech_logistics_company2
				technology = tech_logistics_company3
				technology = tech_logistics_company4
				technology = tech_signal_company
				technology = tech_signal_company2
				technology = tech_signal_company3
				technology = tech_signal_company4
			}
		}
	}

	focus = {
		id = CAN_red_deer_training_camp
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = CAN_royal_regiment_of_canadian_artillery focus = CAN_a_motorized_army }
		x = -2
		y = 4
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			army_experience = 30
			add_doctrine_cost_reduction = {
				name = CAN_red_deer_training_camp
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = CAN_1st_canadian_parachute_battalion
		icon = GFX_goal_generic_special_forces 
		prerequisite = { focus = CAN_the_plan focus = CAN_a_motorized_army }
		x = 2
		y = 4
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_1st_canadian_parachute_battalion
				bonus = 1.0
				uses = 1
				category = para_tech
			}
			if = {
				limit = { has_dlc = "Arms Against Tyranny" }
				add_doctrine_cost_reduction = {
					cost_reduction = 0.5
					uses = 2
					category = special_forces_doctrine
				}
			}
		}
	}

	focus = {
		id = CAN_the_black_devils
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = CAN_red_deer_training_camp }
		x = -1
		y = 5
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_the_black_devils
				bonus = 1.00
				uses = 1
				category = marine_tech
				category = para_tech
			}
		}
	}

	focus = {
		id = CAN_the_rocky_mountain_rangers
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = CAN_red_deer_training_camp }
		x = 1
		y = 5
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_the_rocky_mountain_rangers
				bonus = 1.00
				uses = 1
				category = mountaineers_tech
			}
		}
	}

	focus = {
		id = CAN_the_valentine_tank
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = CAN_red_deer_training_camp }
		x = 0
		y = 6
		relative_position_id = CAN_army_modernization 

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.5
			}

			add_tech_bonus = {
				name = CAN_the_valentine_tank
				bonus = 1.0
				uses = 1
				category = armor
			}
			add_tech_bonus = {
				name = CAN_the_valentine_tank
				ahead_reduction = 2
				bonus = 1.0
				uses = 1
				category = cat_light_armor
			}

		}
	}


	############################
	#### GO WITH UK SECTION ####
	############################

	focus = {
		id = CAN_strengthen_the_commonwealth_ties
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		x = 21
		y = 0

		cost = 5

		ai_will_do = {
			factor = 9
			modifier = {
				democratic < 0.5
				factor = 0.5
			}
		}

		available = {
			ENG = { has_government = ROOT }
			is_in_tech_sharing_group = commonwealth_research
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
   			modify_tech_sharing_bonus = {
         		id = commonwealth_research
         		bonus = 0.03
			}
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = CAN_strengthen_the_commonwealth_ties
				}
			}
		}
	}

	focus = {
		id = CAN_shadow_factories
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CAN_strengthen_the_commonwealth_ties }
		x = -2
		y = 1
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 10

		ai_will_do = {
			factor = 35
		}

		available = {
			threat > 0.05
		}
		
		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = CAN_shadow_factories_AF1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_shadow_factories_AF2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = CAN_shadow_factories_AF3
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_shadow_factories_AF1
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_shadow_factories_AF2
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = CAN_shadow_factories_AF3
			}
		}
	}

	focus = {
		id = CAN_montreal_laboratory_collaboration
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = CAN_strengthen_the_commonwealth_ties }
		x = 0
		y = 1
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 35
		}

		available = {
			is_in_faction_with = ENG
			is_in_tech_sharing_group = commonwealth_research
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			CAN = {
   				 modify_tech_sharing_bonus = {
        			id = commonwealth_research
        			bonus = 0.05  
    			}
			}
		}
	}

	focus = {
		id = CAN_the_plan
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = CAN_shadow_factories }
		x = -2
		y = 2
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_supply_the_empire
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CAN_the_plan
		}
	}

	focus = {
		id = CAN_camp_x
		icon = GFX_goal_generic_intelligence_exchange 
		prerequisite = { focus = CAN_montreal_laboratory_collaboration }
		x = 0
		y = 2
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_the_plan
			}
		}

		available = {
			
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			if = {
				limit = {
					NOT = { has_dlc = "La Resistance" }
				}
				add_tech_bonus = {
					name = CAN_camp_x
					bonus = 1.0
					uses = 1
					category = encryption_tech
					category = decryption_tech
				}
			}
			else = {
				hidden_effect = {
					set_technology = { lar_decryption_bonus_tech = 1 }
				}
				custom_effect_tooltip = lar_decryption_bonus_tt
			}
		}
	}

	focus = {
		id = CAN_supply_the_empire
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CAN_the_plan}
		prerequisite = { focus = CAN_camp_x }
		x = -1
		y = 3
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_supply_the_empire
				bonus = 1.0
				uses = 3
				technology = excavation1
				technology = excavation2
				technology = excavation3
				technology = excavation4
				technology = excavation5
			}
		}
	}

	focus = {
		id = CAN_aluminium_company_of_canada
		icon = GFX_goal_generic_positive_trade_relations 
		prerequisite = { focus = CAN_supply_the_empire }
		x = -2
		y = 4
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 25
		}

		available = {
			controls_state = 682
			controls_state = 863
			controls_state = 468
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			682 = {
				add_resource = {
					type = aluminium
					amount = 20
				}
			}
			863 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
			468 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}

	focus = {
		id = CAN_turner_valley_oilfield
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = CAN_supply_the_empire }
		x = 0
		y = 4
		relative_position_id = CAN_strengthen_the_commonwealth_ties

		cost = 5

		ai_will_do = {
			factor = 25
		}

		available = {
			controls_state = 470
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			470 = {
				add_resource = {
					type = oil
					amount = 36
				}
			}
		}
	}
	############################
	#### GO WITH US SECTION ####
	############################
	

	focus = {
		id = CAN_dominion_rifle_association
		icon = GFX_focus_CAN_rifle_association
		x = 1
		y = 1
		prerequisite = { focus = CAN_camp_x }
		relative_position_id = CAN_camp_x

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			OR = {
				threat > 0.15
				is_subject = no
			}
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			
			add_ideas = CAN_dominion_rifle_association_idea

		}
	}

	focus = {
		id = CAN_canadian_citizenship_act
		icon = GFX_focus_eng_decolonization
		x = 3
		y = 1
		prerequisite = { focus = CAN_supply_the_empire }
		relative_position_id = CAN_supply_the_empire

		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 5
				is_subject = no 
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			
			add_ideas = CAN_canadian_citizenship

		}
	}

	focus = {
		id = CAN_newfoundland_act
		icon = GFX_focus_chi_british_cooperation
		x = 0
		y = 1
		prerequisite = { focus = CAN_canadian_citizenship_act }
		relative_position_id = CAN_canadian_citizenship_act

		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 5
				is_subject = no 
			}
		}

		available = {
			OR = {
				any_country = {
					OR = {
						has_subject = ROOT
						original_tag = ENG
					}
					has_opinion = {
						target = ROOT
						value > 50
					}	
					owns_state = 332
					owns_state = 331
				}
				AND = {
					any_country = {
						OR = {
							has_subject = ROOT
							original_tag = ENG
						}
						has_opinion = {
							target = ROOT
							value > 50
						}	
						OR = {
							owns_state = 332
							owns_state = 331
						}
					}
					any_country = {
						NOT = {
							original_tag = ENG
						}
						AND = {
							is_in_faction_with = ROOT
							original_tag = USA
						}
						has_opinion = {
							target = ROOT
							value > 50
						}	
						OR = {
							owns_state = 332
							owns_state = 331
						}
					}
				}
			}
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			
			IF = {
				limit = {
					any_country = {
						AND = {
							owns_state = 332
							owns_state = 331
						}
					}
				}
				random_country = {
					limit = {
						AND = {
							owns_state = 332
							owns_state = 331
						}
						OR = {
							has_subject = ROOT
							original_tag = ENG
						}
					}
					country_event = {
						id = tfv_canada.70
						days = 2
						random_days = 3 
					}	
				}
			}
			ELSE = {
				set_global_flag = not_all_newf_owned
				random_country = {
					limit = {
						OR = {
							has_subject = ROOT
							original_tag = ENG
						}
					}
					country_event = {
						id = tfv_canada.70
						days = 2
						random_days = 3 
					}
				}
			}

		}
	}

	############################
	####### AIR SECTION ########
	############################

	focus = {
		id = CAN_rcaf_station_borden
		icon = GFX_goal_generic_build_airforce
		x = 25
		y = 0

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		complete_tooltip = {
			air_experience = 25
			random_state = {				
				limit = {
					has_state_flag = CAN_rcaf_station_borden_AB
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			add_doctrine_cost_reduction = {
				name = CAN_rcaf_station_borden
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}

		completion_reward = {
			air_experience = 25
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = air_base
						size > 1
					}
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_rcaf_station_borden_AB
			}
			add_doctrine_cost_reduction = {
				name = CAN_rcaf_station_borden
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}

	focus = {
		id = CAN_we_have_the_hurricane
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = CAN_rcaf_station_borden }
		x = -1
		y = 1
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_we_have_the_hurricane
				bonus = 1.0
				uses = 1
				category = light_fighter
			}
		}
	}

	focus = {
		id = CAN_the_pacific_coast_air_defence_radar_system
		icon = GFX_goal_generic_radar
		prerequisite = { focus = CAN_rcaf_station_borden }
		x = 1
		y = 1
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {
			has_tech = radio
		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {

			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}

			add_tech_bonus = {
				name = CAN_the_pacific_coast_air_defence_radar_system
				bonus = 1.0
				uses = 1
				category = radar_tech
			}

			if = {
				limit = { has_tech = radio_detection }
				random_owned_controlled_state = {
					prioritize = { 473 }
					limit = {
						is_in_home_area = yes
						free_building_slots = {
							building = radar_station
							size > 0
						}
					}
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
					set_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1
				}

				random_owned_controlled_state = {
					limit = {
						NOT = { has_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1 }
						is_in_home_area = yes
						free_building_slots = {
							building = radar_station
							size > 0
						}
					}
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
					set_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar2
				}

				random_owned_controlled_state = {
					limit = {
						NOT = { has_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1 }
						NOT = { has_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar2 }
						is_in_home_area = yes
						free_building_slots = {
							building = radar_station
							size > 0
						}
					}
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
					set_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar3
				}
				else = {
					complete_special_project = {
						project = sp:sp_air_radar
					}
					effect_tooltip = {
						random_owned_controlled_state = {
							prioritize = { 473 }
							limit = {
								is_in_home_area = yes
							}
							add_building_construction = {
								type = radar_station
								level = 1
								instant_build = yes
							}
						}

						random_owned_controlled_state = {
							limit = {
								NOT = { state = 473 }
								NOT = { has_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1 }
								is_in_home_area = yes
							}
							add_building_construction = {
								type = radar_station
								level = 1
								instant_build = yes
							}
						}
					}
					random_owned_controlled_state = {
						prioritize = { 473 }
						limit = {
							is_in_home_area = yes
							free_building_slots = {
								building = radar_station
								size > 0
							}
						}
						add_building_construction = {
							type = radar_station
							level = 1
							instant_build = yes
						}
						set_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1
					}

					random_owned_controlled_state = {
						limit = {
							NOT = { has_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar1 }
							is_in_home_area = yes
							free_building_slots = {
								building = radar_station
								size > 0
							}
						}
						add_building_construction = {
							type = radar_station
							level = 1
							instant_build = yes
						}
						set_state_flag = CAN_the_pacific_coast_air_defence_radar_system_radar2
					}
				}
			}
		}
	}

	focus = {
		id = CAN_commonwealth_air_training_plan
		icon = GFX_goal_generic_build_airforce
		prerequisite = { focus = CAN_the_pacific_coast_air_defence_radar_system focus = CAN_we_have_the_hurricane }
		x = 0
		y = 2
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		complete_tooltip = {
			air_experience = 25
			random_state = {
				limit = {
					has_state_flag = CAN_commonwealth_air_training_plan_AB
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			add_doctrine_cost_reduction = {
				name = CAN_commonwealth_air_training_plan
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}

		completion_reward = {
			air_experience = 25
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = air_base
						size > 1
					}
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = CAN_commonwealth_air_training_plan_AB
			}
			add_doctrine_cost_reduction = {
				name = CAN_commonwealth_air_training_plan
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}

	focus = {
		id = CAN_fund_fairchilds_development
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = CAN_commonwealth_air_training_plan }
		x = -1
		y = 3
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_cookie_carriers
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_fund_fairchilds_development
				bonus = 1.0
				uses = 1
				category = tactical_bomber
				category = cas_bomber
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = CAN_fairchild_aircraft_ltd_organization
				mio:CAN_fairchild_aircraft_ltd_organization = {
					add_mio_funds = 2500
				}
			}

			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = CAN_fairchild_aircraft_ltd
			}
		}
	}

	focus = {
		id = CAN_cookie_carriers
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = CAN_commonwealth_air_training_plan }
		x = 1
		y = 3
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_completed_focus = CAN_fund_fairchilds_development
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_cookie_carriers
				bonus = 1.0
				uses = 1
				category = cat_strategic_bomber
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = CAN_handley_page_organization
				mio:CAN_handley_page_organization = {
					add_mio_size = 1
					add_mio_funds = 500

				#	unlock_mio_trait_tooltip  = {
				#		department = CAN_mio_department_design_plane_heavy_combat
				#		trait = CAN_mio_trait_cookie_carriers
				#	}
				}
			}

			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = CAN_handley_page
			}
		}
	}

	focus = {
		id = CAN_the_sabre_project
		icon = GFX_focus_rocketry
		prerequisite = { focus = CAN_cookie_carriers }
		prerequisite = { focus = CAN_fund_fairchilds_development }
		x = 0
		y = 4
		relative_position_id = CAN_rcaf_station_borden

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}

			add_tech_bonus = {
				name = CAN_the_sabre_project
				ahead_reduction = 2
				uses = 2
				category = rocketry
				category = jet_technology
			}

		}
	}


	############################
	###### NAVY SECTION ########
	############################

	focus = {
		id = CAN_halifax_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		x = 29
		y = 0

		cost = 10

		ai_will_do = {
			factor = 9
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			navy_experience = 25
			random_state = {
				limit = {
					has_state_flag = CAN_halifax_shipyards_DY
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = dockyard
					level = 3
					instant_build = yes
				}
			}
		}

		completion_reward = {
			navy_experience = 25
			random_owned_controlled_state = {
				prioritize = { 464 }
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = dockyard
					level = 3
					instant_build = yes
				}
				set_state_flag = CAN_halifax_shipyards_DY
			}
		}
	}

	focus = {
		id = CAN_destroyer_effort
		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = CAN_halifax_shipyards }
		x = 0
		y = 1
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			navy_experience = 25

			add_tech_bonus = {
				name = CAN_destroyer_effort
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = dd_tech
			}

		}
	}

	focus = {
		id = CAN_light_cruiser_effort
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = CAN_destroyer_effort }
		x = -1
		y = 2
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_light_cruiser_effort
				bonus = 0.5
				ahead_reduction = 2
				uses = 1
				category = cl_tech
			}
			IF = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = CAN_light_cruiser_effort
					bonus = 0.5
					uses = 1
					category = cat_ship_light_battery
				}
			}
		}
	}

	focus = {
		id = CAN_heavy_cruiser_effort
		icon = GFX_goal_generic_occupy_states_coastal
		prerequisite = { focus = CAN_destroyer_effort }
		x = 1
		y = 2
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = CAN_heavy_cruiser_effort
				bonus = 1.0
				ahead_reduction = 1
				uses = 1
				category = ca_tech
			}
			IF = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = CAN_heavy_cruiser_effort
					bonus = 0.5
					uses = 1
					category = cat_ship_medium_battery
				}
			}
		}
	}

	focus = {	
		id = CAN_escort_fleet
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = CAN_light_cruiser_effort }
		mutually_exclusive = { focus = CAN_fleet_in_being }
		x = -1
		y = 3
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				has_war_with = GER
				factor = 2
			}
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			navy_experience = 25
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.15
			}
			add_doctrine_cost_reduction = {
				name = CAN_escort_fleet
				cost_reduction = 0.25
				uses = 2
				category = convoy_defense_tree
			}
		}
	}

	focus = {
		id = CAN_fleet_in_being
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = CAN_light_cruiser_effort }
		mutually_exclusive = { focus = CAN_escort_fleet }
		x = 1
		y = 3
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			navy_experience = 25
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.15
			}
			add_doctrine_cost_reduction = {
				name = CAN_fleet_in_being
				cost_reduction = 0.25
				uses = 2
				category = cat_fleet_in_being
			}			
		}
	}

	focus = {
		id = CAN_degauss_ship_hulls
		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = CAN_escort_fleet focus = CAN_fleet_in_being }
		x = -1
		y = 4
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_ideas = CAN_degauss_ship_hulls
		}
	}

	focus = {
		id = CAN_trade_fleet
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = CAN_escort_fleet focus = CAN_fleet_in_being }
		x = 1
		y = 4
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_ideas = CAN_trade_fleet			
		}
	}

	focus = {
		id = CAN_united_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = CAN_trade_fleet focus = CAN_degauss_ship_hulls }
		x = 0
		y = 5
		relative_position_id = CAN_halifax_shipyards

		cost = 10

		ai_will_do = {
			factor = 25
		}

		available = {

		}
		
		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			navy_experience = 25
			random_state = {
				limit = {
					has_state_flag = CAN_united_shipyards_DY
				}
				add_extra_state_shared_building_slots = 4
				add_building_construction = {
					type = dockyard
					level = 4
					instant_build = yes
				}
			}
		}

		completion_reward = {
			navy_experience = 25
			random_owned_controlled_state = {
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 3
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 4
				add_building_construction = {
					type = dockyard
					level = 4
					instant_build = yes
				}
				set_state_flag = CAN_united_shipyards_DY
			}
		}
	}

}		
