#
#Edit for Rt56 by Thinking_Waffle#
	shared_focus = {
		id = CARIB_caribbean_unification
		icon = GFX_goal_generic_befriend_united_caribbean
		cost = 5
		allow_branch = {
            OR = {
                original_tag = DOM
                original_tag = HAI
                original_tag = CUB
				original_tag = JAM
				original_tag = PUE
				original_tag = BAH
                original_tag = TRI
                original_tag = GDL
                original_tag = CRC
                original_tag = STK
				original_tag = DMN
				original_tag = BRB
				original_tag = STL
				original_tag = SVG
				original_tag = GRA
                original_tag = MAR
				original_tag = MAA
				original_tag = BAS
				original_tag = MAA
            }
			
		}
		x = 58	
		y = 0
		offset = {
			x = 6
			y = 12
			trigger = {
				has_focus_tree = cuban_focus
			}
		}
		offset = {
			x = 20
			y = 0
			trigger = {
				has_focus_tree = venezuela_focus
			}
		}
		offset = {
			x = 6
			y = 0
			trigger = {
				original_tag = CRC
			}
		}							
		ai_will_do = {
			factor = 5
		}

		text_icon = NORDIC_focus_style

		available = {
			if = {
				limit = {
					OR = {
						original_tag = VEN
						original_tag = CRC
					}
					
				}
				NOT = {
					has_completed_focus = GCO_UNIFIED_gran_colombian_unification
				}
			}			
			NOT = {
				has_idea = generic_recent_political_unification
			}
			custom_trigger_tooltip = {
				tooltip = is_caribbean_tt
				OR = {
					has_cosmetic_tag = CAB
					has_cosmetic_tag = VEN_CARIBBEAN
					has_cosmetic_tag = FORM_CAB #RT56 RP
				}
					
			}			
			

		}
	#	bypass = {
	#		any_other_country = {
	#			has_completed_focus = BRI_construction_effort_2
	#		}
	#	}

		completion_reward = {
			add_stability = 0.05
			add_political_power = 75
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	shared_focus = {
		id = CARIB_improve_local_infrastructure
		icon = GFX_goal_generic_road
		cost = 10
		prerequisite = {
			focus = CARIB_caribbean_unification
		}
		relative_position_id = CARIB_caribbean_unification
		search_filters = { FOCUS_FILTER_INDUSTRY }
		x = -3
		y = 1
		ai_will_do = {
			factor = 10
		}
		text_icon = NORDIC_focus_style

		available = {
			NOT = {
				has_idea = generic_recent_economic_unification
			}
			num_of_controlled_states > 3	
		}

		bypass = {
		
		}
		allow_branch = {

		}
		completion_reward = {
			random_state = {
				limit = {
					is_core_of = ROOT
					is_controlled_by = ROOT
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					is_core_of = ROOT
					is_controlled_by = ROOT
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					is_core_of = ROOT
					is_controlled_by = ROOT
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					is_core_of = ROOT
					is_controlled_by = ROOT
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}								
		}
	}	
	shared_focus = {
		id = CARIB_naval_buildup
		icon = GFX_goal_generic_admirality
		cost = 10
		prerequisite = {
			focus = CARIB_improve_local_infrastructure
		}
		relative_position_id = CARIB_improve_local_infrastructure
		x = -1
		y = 1
		text_icon = NORDIC_focus_style

		available = {
			NOT = {
				has_idea = generic_recent_economic_unification
			}
			num_of_controlled_states > 2
			has_tech = construction3	
		}
		allow_branch = {

		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	shared_focus = {
		id = CARIB_legacy_of_piracy
		icon = GFX_goal_generic_navy_submarine
		cost = 10
		prerequisite = {
			focus = CARIB_naval_buildup
		}
		relative_position_id = CARIB_naval_buildup
		x = 0
		y = 1
		text_icon = NORDIC_focus_style

		available = {
			NOT = {
				has_idea = generic_recent_economic_unification
			}
			num_of_controlled_states > 2
			has_tech = construction3	
		}
		allow_branch = {

		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					dockyard > 0
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			add_ideas = JAP_supply_disruption
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
	}
	shared_focus = {
		id = CARIB_ethnic_collaboration
		icon = GFX_goal_VEN_caribbean_union
		cost = 10
		prerequisite = {
			focus = CARIB_improve_local_infrastructure
		}
		relative_position_id = CARIB_improve_local_infrastructure
		search_filters = { FOCUS_FILTER_STABILITY }
		x = 1
		y = 1
		ai_will_do = {
			factor = 10
		}
		text_icon = NORDIC_focus_style
		allow_branch = {

		}
		completion_reward = {
			add_stability = 0.15							
		}
	}	
	shared_focus = {
		id = CARIB_develop_mining
		icon = GFX_goal_generic_construct_civilian
		cost = 10
		prerequisite = {
			focus = CARIB_caribbean_unification
		}
		relative_position_id = CARIB_caribbean_unification
		search_filters = { FOCUS_FILTER_RESOURCES }
		x = 0
		y = 1
		ai_will_do = {
			factor = 10
		}
		text_icon = NORDIC_focus_style

		available = {
			NOT = {
				has_idea = generic_recent_economic_unification
			}	
		}

		bypass = {
		
		}
		allow_branch = {

		}
		completion_reward = {
			add_ideas = YUG_idea_expanded_mining_industry					
		}
	}
	shared_focus = {
		id = CARIB_antilles_gold_deposits
		icon = GFX_goal_generic_extraction_gold
		cost = 10
		prerequisite = {
			focus = CARIB_develop_mining
		}
		relative_position_id = CARIB_develop_mining
		search_filters = { FOCUS_FILTER_INDUSTRY }
		x = 0
		y = 1
		ai_will_do = {
			factor = 10
		}
		text_icon = NORDIC_focus_style

		available = {
			controls_state = 692
			controls_state = 694
			controls_state = 308
			has_tech = excavation2
		}

		bypass = {
		
		}
		allow_branch = {

		}
		completion_reward = {
			add_ideas = ROM_gold_extraction_idea	#no clue what antilles_gold_extraction represents			
		}
	}
	shared_focus = {
		id = CARIB_defend_the_new_union
		icon = GFX_goal_class_a_reservists
		cost = 10
		text = GCO_UNIFIED_defend_the_new_union
		prerequisite = {
			focus = CARIB_caribbean_unification
		}
		relative_position_id = CARIB_caribbean_unification
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
		x = 2
		y = 1
		ai_will_do = {
			factor = 10
		}
		text_icon = NORDIC_focus_style
		allow_branch = {

		}
		completion_reward = {
			add_ideas = idea_r56_defense_of_the_union						
		}
	}
	shared_focus = {
		id = CARIB_united_armed_forces
		icon = GFX_goal_generic_multinational_army
		text = GCO_UNIFIED_united_armed_forces
		cost = 10
		prerequisite = {
			focus = CARIB_defend_the_new_union
		}
		text_icon = NORDIC_focus_style

		available = {
			NOT = {
				has_idea = generic_recent_army_unification
			}
		}
		relative_position_id = CARIB_defend_the_new_union
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
		x = 0
		y = 1
		ai_will_do = {
			factor = 10
		}
		allow_branch = {

		}
		completion_reward = {
			swap_ideas = {
				remove_idea = idea_r56_defense_of_the_union
				add_idea = idea_r56_united_armed_forces
			}						
		}
	}
