focus_tree = {
	id = ZZB_focus
	country = {
		factor = 0
		modifier = {
			add = 20
			tag = ZZB
		}
	}
	continuous_focus_position = { x = 0 y = 100 }
	
	focus = {
		id = ZZB_Fortress_Goering
		icon = GFX_inthesultansname
		x = 16
		y = 1

		ai_will_do = {
			factor = 30
		}
		cost = 6
		
	completion_reward = {
			navy_experience = 20
			add_political_power = 20
			increase_ruling_party_popularity_by_5 = yes
			country_event = { id = zanz.28 days = 176 } #The Rechenberg Commission Arrives
			hidden_effect = {
				MAF = { country_event = { id = zanz.28 days = 176 } }
				GER = { country_event = { id = zanz.28 days = 176 } }
			}
		}
	}

#The Sultan's Speech
focus = {
id = ZZB_thestaathaltersvisit
icon = GFX_goal_AFG_return_tradition
x = 12
y = 2
cost = 5
prerequisite = {
	focus = ZZB_Fortress_Goering
}
available = {
	OR = {
		has_global_flag = congo_bush_war
		NOT = {
			country_exists = COG
		}
	}
}
available_if_capitulated = no
ai_will_do = { 
 factor = 250
 } 
completion_reward = {
	country_event = zanz.34
	add_political_power = 30
		hidden_effect = {
			MAF = {
				country_event = zanz.34
			}
			GER = {
				country_event = zanz.34
			}
			KEN = {
				country_event = zanz.34
			}
			DJI = {
				country_event = zanz.34
			}
			UGA = {
				country_event = zanz.34
			}
			PAF = {
				country_event = zanz.34
			}
			MAG = {
				country_event = zanz.34
			}
		}
	}
 }
 
#Invest in Hunting Lodges
focus = {
id = ZZB_investinhuntinglodges
icon = GFX_goal_COR_bbbb
x = 24
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_mwanzaportproject } 
ai_will_do = { factor = 60 }
completion_reward = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
}

#Arms Manufacturing
focus = {
id = ZZB_arms_manufacturing
icon = GFX_goal_factory_complex
x = 23
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_massselloffs focus = ZZB_investinhuntinglodges } 
ai_will_do = { factor = 60 }
completion_reward = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
	}
}

#The Children of Kiungani
focus = {
id = ZZB_thechildrenofkiungani
icon = GFX_goal_brain
x = 18
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_greeksboersandindians } 
ai_will_do = { factor = 60 }
completion_reward = {
	hidden_effect = {
		country_event = { 
			id = zanz.2
			days = 34
		}
	}
		add_research_slot_until_five = yes
		add_political_power = -50
		add_stability = -0.02
	}
 }

#The Labour Crisis
focus = {
id = ZZB_thelabourcrisis
icon = GFX_goal_COR_Black_Laws
x = 27
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_slashthebudget } 
ai_will_do = { factor = 60 }
	completion_reward = {
	add_manpower = 10298
	add_stability = -0.01
	}
 }

#Privilege the Shirzis
focus = {
id = ZZB_privilegetheshirzis
icon = GFX_SOM_goal_hoboyards
x = 6
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_solvethezanzibarproblem } 

ai_will_do = { factor = 60 }
completion_reward = {
	remove_ideas = ZZB_zanzibar_problem_idea
	increase_ruling_party_popularity_by_5 = yes
	add_political_power = -20
}
 } 

#Subsidise the Plantations
focus = {
id = ZZB_subsidisetheplantations
icon = GFX_goal_plantation_grants
x = 27
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thelabourcrisis } 
ai_will_do = { factor = 70 }
completion_reward = {
	add_stability = 0.05
 }
}


#Radio station
focus = {
id = ZZB_enforceugandanbordercontrols
icon = GFX_focus_generic_radio_equipment
x = 14
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_expandthesecretpolice } 
prerequisite = { focus = ZZB_solvethepresswar } 
ai_will_do = { factor = 60 }
completion_reward = {
	country_event = { id = zanz.26 days = 1 }
	}
}
#The Amani Programme
focus = {
id = ZZB_theamaniprogramme
icon = GFX_goal_generic_scientific_exchange
x = 23
y = 9
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_finishdernbergsdream focus = ZZB_thetanganiykanboom } 
ai_will_do = { factor = 60 }
completion_reward = {
	add_research_slot_until_five = yes
	remove_ideas = ZZB_black_monday_nearly_fixed_idea
	}
}
#Expand the Secret Police
focus = {
id = ZZB_expandthesecretpolice
icon = GFX_goal_SIC_Arabs_and_parthians
x = 13
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_windderzerstrung focus = ZZB_assisttheparamounts } 
prerequisite = { focus = ZZB_endprivileges } 
ai_will_do = { factor = 60 }
completion_reward = {
	add_stability = 0.05
	increase_ruling_party_popularity_by_5 = yes
	}
}
#Reorganise the Steuerkreisen
focus = {
id = ZZB_reorganisethesteuerkreisen
icon = GFX_goal_OTT_Tithe
x = 23
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_openthedoors focus = ZZB_focusonthebloc } 
ai_will_do = { factor = 60 }
completion_reward = {
	add_ideas = ZZB_reorganised_tax_administration_idea
	}
}
#The Technology Solution
focus = {
id = ZZB_thetechnologysolution
icon = GFX_cooptnativeassociations
x = 28
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thelabourcrisis } 
mutually_exclusive = { focus = ZZB_resettlementprogramme } 
ai_will_do = { factor = 60 }
 available = {
	is_in_faction_with = GER
 }
completion_reward = {
		add_ideas = ZZB_technology_idea
		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = industry
		}
	}
}
#Foreign Expertise
focus = {
id = ZZB_foreignexpertise
icon = GFX_focus_generic_military_academy
x = 28
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thetechnologysolution focus = ZZB_resettlementprogramme } 
ai_will_do = { factor = 60 }
completion_reward = {
	modify_tech_sharing_bonus = {
		id = german_research
		bonus = 0.05
	}
	add_tech_bonus = {
	bonus = 0.5
	uses = 1
	category = electronics
		}
	}
 }

#Co-Opt the Urban Natives
focus = {
id = ZZB_coopttheurbannatives
icon = GFX_coopttheurbannatives
x = 10
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestaathaltersvisit } 
ai_will_do = { factor = 60 }
	completion_reward = {
		increase_ruling_party_popularity_by_10 = yes
		if = {
			limit = {
				ROOT = {
					is_ai = no
					}
				}
			add_offsite_building = { type = industrial_complex level = 1 }
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}
 } 


#Zuchtigungsrecht Ordnance
focus = {
id = ZZB_zuchtigungsrechtordnance
icon = GFX_zuchtigungsrechtordnance
x = 26
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thetechnologysolution focus = ZZB_resettlementprogramme } 
ai_will_do = { factor = 70 }
completion_reward = {
			random_owned_controlled_state = { add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
	add_resource = {
		type = steel
		amount = 2
		state = 905
		}
	}
}
#Resettlement Programme
focus = {
id = ZZB_resettlementprogramme
icon = GFX_antimutineermeasures
x = 26
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thelabourcrisis } 
mutually_exclusive = { focus = ZZB_thetechnologysolution } 
ai_will_do = { factor = 60 }
 completion_reward = {
	add_ideas = ZZB_resettlement_idea
	add_manpower = 9500
	add_stability = -0.02
	add_political_power = -20
	}
}
#Wind der Zerstörung
focus = {
id = ZZB_windderzerstrung
icon = GFX_focus_generic_provoke_border_clashes
x = 10
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thengonichiefs } 
mutually_exclusive = { focus = ZZB_assisttheparamounts } 
ai_will_do = { factor = 60 }
	completion_reward = {
		add_political_power = 90
		add_stability = 0.05
	}
}
#
focus = {
id = ZZB_subsidisecomorosshirazis
icon = GFX_goal_NGR_native_rights
x = 9
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_integrationpolicy }
prerequisite = { focus = ZZB_solvethezanzibarproblem } 
prerequisite = { focus = ZZB_windderzerstrung focus = ZZB_assisttheparamounts } 
ai_will_do = { factor = 70 }
	completion_reward = {
		country_event = zanz.40
		hidden_effect = {
			if = {
				limit = {
					ZZB = {
						is_subject_of = MAF
					}
				}
				MAF = {
					country_event = zanz.40
				}
				GER = {
					country_event = zanz.40
				}
			}
			MAG = {
				country_event = zanz.40
			}
		}
		add_stability = 0.05
		increase_ruling_party_popularity_by_5 = yes
	}
}

#Assist the Paramounts
focus = {
id = ZZB_assisttheparamounts
icon = GFX_goal_COR_tribal_law
x = 12
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thengonichiefs } 
mutually_exclusive = { focus = ZZB_windderzerstrung } 
ai_will_do = { factor = 60 }
	completion_reward = {
		increase_ruling_party_popularity_by_10 = yes
	}
}
#Deal with the Company
focus = {
id = ZZB_dealwiththecompany
icon = GFX_dealwiththecompany
x = 20
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_massselloffs focus = ZZB_investinhuntinglodges }
mutually_exclusive = {
	focus = ZZB_endthefiefdoms
}
ai_will_do = { factor = 60 }
	completion_reward = {
		add_stability = 0.1
		add_political_power = 50
		remove_ideas = ZZB_Company_idea
	}
}
#Solve the Press War
focus = {
id = ZZB_solvethepresswar
icon = GFX_solvethepresswar
x = 16
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thechinesequestion } 
prerequisite = { focus = ZZB_meetingwiththetia } 
ai_will_do = { factor = 60 }
	completion_reward = {
		add_stability = 0.05
		add_war_support = 0.05
	}
}
#Greeks, Boers and Indians
focus = {
id = ZZB_greeksboersandindians
icon = GFX_greeksboersandindians
x = 18
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestaathaltersvisit } 
ai_will_do = { factor = 60 }
completion_reward = {
	country_event = { id = zanz.12 }
	add_stability = 0.05
	add_political_power = -20
	}
}
#A New Kleinsiedlung?
focus = {
id = ZZB_anewkleinsiedlung
icon = GFX_goal_KTG_Colonial_Economy_Focus
x = 21
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_openthedoors } 
ai_will_do = { factor = 60 }
completion_reward = {
	every_owned_state = {
		add_extra_state_shared_building_slots = 1
	}
	add_ideas = ZZB_kleinsiedlung_idea
	add_stability = -0.02
	}
}
#Meeting with the TIA
focus = {
id = ZZB_meetingwiththetia
icon = GFX_gaincooliesupport
x = 17
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_endprivileges focus = ZZB_chieflyacademies focus = ZZB_thechildrenofkiungani } 
ai_will_do = { factor = 60 }
completion_reward = {
	if = {
		limit = {
			has_idea = ZZB_angry_indians_idea
		}
		remove_ideas = ZZB_angry_indians_idea
	}
		add_stability = 0.05
	}
}
#The Ngoni Chiefs
focus = {
id = ZZB_thengonichiefs
icon = GFX_tribalreforms
x = 11
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_coopttheurbannatives } 
ai_will_do = { factor = 60 }
	completion_reward = {
		country_event = { id = zanz.14 }
	}
}
#Focus on the Bloc
focus = {
id = ZZB_focusonthebloc
icon = GFX_focusonthebloc
x = 24
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_slashthebudget } 
mutually_exclusive = { focus = ZZB_openthedoors } 
ai_will_do = { factor = 60 }
  available = {
	is_in_faction_with = GER
 }
	completion_reward = {
		swap_ideas = {
			remove_idea = ZZB_black_monday_less_severe_idea
			add_idea = ZZB_black_monday_mostly_fixed_idea
		}
		custom_effect_tooltip = mitteleuropafocus_tt
		set_country_flag = mitteleuropafocus
	}
}
#Rein in the Missions
focus = {
id = ZZB_reininthemissions
icon = GFX_expirationdoctrine
x = 13
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestaathaltersvisit } 
mutually_exclusive = { focus = ZZB_supportthefaith } 
ai_will_do = { factor = 60 }
	completion_reward = {
		remove_ideas = ZZB_broken_missions_idea
		add_political_power = 50
	}
}
#Support the Faith
focus = {
id = ZZB_supportthefaith
icon = GFX_employthewalimu
x = 16
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestaathaltersvisit } 
mutually_exclusive = { focus = ZZB_reininthemissions }
ai_will_do = { factor = 60 }
	completion_reward = {
		swap_ideas = {
			remove_idea = ZZB_broken_missions_idea
			add_idea = ZZB_support_missions_idea
		}	
	}
}
#The Chinese Question
focus = {
id = ZZB_thechinesequestion
icon = GFX_goal_QIE_manchu_unite_china
x = 15
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_endprivileges focus = ZZB_chieflyacademies focus = ZZB_thechildrenofkiungani } 
ai_will_do = { factor = 60 }
	completion_reward = {
		country_event = { id = zanz.13 }
		add_manpower = 15433
	}
 } 

	
#ea the Budget
focus = {
id = ZZB_slashthebudget
icon = GFX_goal_bankruptcy
x = 21
y = 2
cost = 5
prerequisite = {
	focus = ZZB_Fortress_Goering
}
available = {
	has_idea = ZZB_black_monday_severe_idea
}
available_if_capitulated = no
ai_will_do = { factor = 60 }
completion_reward = {
	swap_ideas = {
		remove_idea = ZZB_black_monday_severe_idea
		add_idea = ZZB_black_monday_less_severe_idea
	}
 } 
}

#The Status of Islam
focus = {
id = ZZB_thestatusofislam
icon = GFX_goal_SAU_Army
x = 8
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestaathaltersvisit } 
ai_will_do = { factor = 60 }
completion_reward = {
	country_event = { id = zanz.5 }
	}
}
#Expiration Doctrine
focus = {
id = ZZB_expirationdoctrine
icon = GFX_goal_skull_treaty
x = 6
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestatusofislam } 
mutually_exclusive = { focus = ZZB_integrationpolicy } 
ai_will_do = { 
 factor = 70
} 
available = {
	has_authoritarian_government = yes
}
completion_reward = {
	add_stability = 0.05
	add_war_support = 0.05
	}
 }

#Open the Doors
focus = {
id = ZZB_openthedoors
icon = GFX_USA_ports_atlantic
x = 22
y = 3
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_slashthebudget } 
mutually_exclusive = { focus = ZZB_focusonthebloc } 
ai_will_do = { factor = 60 }
	completion_reward = {
		swap_ideas = {
			remove_idea = ZZB_black_monday_less_severe_idea
			add_idea = ZZB_black_monday_mostly_fixed_idea
		}
		custom_effect_tooltip = internationalfocus_tt
		set_country_flag = internationalfocus
	}
}
#Mass Sell-Offs
focus = {
id = ZZB_massselloffs
icon = GFX_goal_generic_loans
x = 22
y = 6
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_leasethesekenkemines } 
ai_will_do = { factor = 60 }
completion_reward = {
		swap_ideas = {
			remove_idea = ZZB_black_monday_mostly_fixed_idea
			add_idea = ZZB_black_monday_nearly_fixed_idea
		}
	add_political_power = -30
	}
}
#The New Breadbasket
focus = {
id = ZZB_thenewbreadbasket
icon = GFX_focus_AUS_agriculture
x = 27
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_foreignexpertise focus = ZZB_zuchtigungsrechtordnance } 
ai_will_do = { factor = 60 }
completion_reward = {
			random_owned_controlled_state = { add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = { add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
	}
}
#Seychellois Reforms
focus = {
id = ZZB_seychelloisreforms
icon = GFX_goal_NFA_control_mediterranean
x = 4
y = 5
cost = 5
available = {
	has_country_flag = seychellesreforms
}
available_if_capitulated = no
ai_will_do = { factor = 60 }
completion_reward = {
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = {
					709
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 2
			}
		709 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}	
		add_stability = 0.05
		hidden_effect = {
			clr_country_flag = seychellesreforms
		}
	}
 }
 
#Solve the Zanzibar Problem
focus = {
id = ZZB_solvethezanzibarproblem
icon = GFX_solvethezanzibarproblem
x = 7
y = 5
cost = 1

available_if_capitulated = no
prerequisite = { focus = ZZB_expirationdoctrine focus = ZZB_integrationpolicy } 
ai_will_do = { factor = 60 }
completion_reward = {
	country_event = zanz.9
	}
}
#End Privileges
focus = {
id = ZZB_endprivileges
icon = GFX_goal_CSA_black_autonomy
x = 14
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_reininthemissions focus = ZZB_supportthefaith } 
ai_will_do = { factor = 60 }
completion_reward = {
	add_popularity = { ideology = social_democrat popularity = -0.02 }
	add_popularity = { ideology = radical_socialist popularity = -0.03 }
	add_popularity = { ideology = syndicalist popularity = -0.03 }
	add_popularity = { ideology = totalist popularity = 0.01 }
	}
}
#Integration Policy
focus = {
id = ZZB_integrationpolicy
icon = GFX_goal_MNT_open_ports
x = 9
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thestatusofislam } 
mutually_exclusive = { focus = ZZB_expirationdoctrine } 
ai_will_do = { 
 factor = 70
}
available = {
	has_elected_government = yes
}
completion_reward = {
	add_stability = 0.05
	}
}
#Pangani Valley Investments
focus = {
id = ZZB_panganivalleyinvestments
icon = GFX_goal_SZC_salt
x = 25
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_focusonthebloc } 
ai_will_do = { factor = 60 }
	completion_reward = {
		905 = {
		add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
				}
			}
		add_offsite_building = { type = industrial_complex level = 1 }
		905 = {
			add_extra_state_shared_building_slots = 1
		}
	}
}
#Chiefly Academies
focus = {
id = ZZB_chieflyacademies
icon = GFX_goal_KTG_Bookstack
x = 16
y = 4
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_supportthefaith } 
ai_will_do = { factor = 60 }
completion_reward = {
	add_ideas = ZZB_Academies_idea
	}
}
#Lease the Sekenke Mines
focus = {
id = ZZB_leasethesekenkemines
icon = GFX_goal_CRO_steel_deposits
x = 22
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_anewkleinsiedlung } 
prerequisite = { focus = ZZB_reorganisethesteuerkreisen } 
ai_will_do = { factor = 60 }
completion_reward = {
		swap_ideas = {
			remove_idea = ZZB_black_monday_mostly_fixed_idea
			add_idea = ZZB_black_monday_nearly_fixed_idea
		}
			905 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
	add_tech_bonus = {
		bonus = 0.5
		uses = 1
		category = excavation_tech
		}
		
	}
}
#Mwanza Port Project
focus = {
id = ZZB_mwanzaportproject
icon = GFX_diversificationefforts
x = 24
y = 5
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_reorganisethesteuerkreisen } 
prerequisite = { focus = ZZB_panganivalleyinvestments } 
ai_will_do = { factor = 60 }
completion_reward = {
	country_event = { id = zanz.6 }
	country_event = { 
		id = zanz.1
		days = 43
		}
	}	
}

#Finish Dernberg's Dream
focus = {
id = ZZB_finishdernbergsdream
icon = GFX_goal_generic_positive_trade_relations
x = 24
y = 8
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thenewbreadbasket } 
prerequisite = { focus = ZZB_investinhuntinglodges } 
mutually_exclusive = {
	focus = ZZB_thetanganiykanboom
}
ai_will_do = { factor = 60 }
completion_reward = {
	swap_ideas = {
			remove_idea = ZZB_black_monday_mostly_fixed_idea
			add_idea = ZZB_black_monday_nearly_fixed_idea
		}
	add_ideas = ZZB_Dernberg_idea
	}
}
#The tanganiykan Boom
focus = {
id = ZZB_thetanganiykanboom
icon = GFX_goal_generic_lightbulb
x = 22
y = 8
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thenewbreadbasket } 
prerequisite = { focus = ZZB_massselloffs } 
mutually_exclusive = {
	focus = ZZB_finishdernbergsdream
}
ai_will_do = { factor = 60 }
completion_reward = {
	add_ideas = ZZB_Boom_idea
	}
 } 


#End the Fiefdoms
focus = {
id = ZZB_endthefiefdoms
icon = GFX_pithhelmet
x = 18
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_solvethepresswar }
mutually_exclusive = {
	focus = ZZB_dealwiththecompany
}
ai_will_do = { factor = 60 }
completion_reward = {
	add_stability = 0.1
	add_political_power = -30
	}
}
#The Model Colony
focus = {
id = ZZB_themodelcolony
icon = GFX_goal_CZE_german_concession
x = 19
y = 8
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_endthefiefdoms focus = ZZB_dealwiththecompany } 
ai_will_do = { factor = 60 }

completion_reward = {
	increase_ruling_party_popularity_by_5 = yes
	add_political_power = 100
	}
}
#Embrace the Arab Tradition
focus = {
id = ZZB_embracethearabtradition
icon = GFX_goal_navy_decision
x = 7
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_militarisemalindiport } 
prerequisite = { focus = ZZB_privilegetheshirzis } 
ai_will_do = { factor = 60 }
completion_reward = {
		country_event = { id = zanz.7 }
	}
}
#Militarise Kionga Port
focus = {
id = ZZB_militarisemalindiport
icon = GFX_goal_generic_construct_naval_dockyard
x = 3
y = 6
cost = 5

available_if_capitulated = no
prerequisite = { focus = ZZB_seychelloisreforms }
prerequisite = { focus = ZZB_solvethezanzibarproblem } 
ai_will_do = { factor = 60 }
completion_reward = {
		905 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = naval_base
				level = 1
				instant_build = yes
			}
		}
		905 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
	}
}
#Indian Ocean Patrols
focus = {
id = ZZB_indianoceanpatrols
icon = GFX_goal_generic_sea_focused_navy
x = 2
y = 7
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_militarisemalindiport }
ai_will_do = { factor = 60 }
completion_reward = {
	add_war_support = 0.05
	navy_experience = 15
	}
}
#Zanzibar City Development Scheme
focus = {
id = ZZB_zanzibarcitydevelopmentscheme
icon = GFX_zanzibarcitydevelopmentscheme
x = 4
y = 7
cost = 5

available_if_capitulated = no
prerequisite = { focus = ZZB_privilegetheshirzis } 
ai_will_do = { factor = 60 }
completion_reward = {
	905 = {
		add_extra_state_shared_building_slots = 2
		add_building_construction = {
			type = fuel_silo
			level = 1
			instant_build = yes
			}
		}
	}
 } 
 
 #The zanza Declaration
focus = {
id = ZZB_thezanzadeclaration
icon = GFX_MAF_size_the_archives
x = 17
y = 9
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_darsfall focus = ZZB_themodelcolony } 
ai_will_do = { factor = 80 }
completion_reward = {
	country_event = { id = zanz.8 } #demand the mainland
	}
 }
 
focus = {
id = ZZB_proclaim_union_with_oman
icon = GFX_goal_OMA_Navy
x = 17
y = 10
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_thezanzadeclaration } 
ai_will_do = { factor = 60 }
 available = {
	is_subject = no
	OMA = {
		exists = yes
		is_subject = no
	}
}
bypass = {
 OR = {
 	OMA = {
		exists = no
	}
	OMA = {
		is_subject = yes
	}
	}
 }
completion_reward = {
	country_event = zanz.37
	}
 }

focus = {
id = ZZB_restore_the_african_empire
icon = GFX_goal_COR_riches_of_africa
x = 16
y = 11
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_proclaim_union_with_oman }
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = TZN ratio < 1 }
			}
			modifier = {
				factor = 0
				TZN = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				TZN = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = MAF ratio < 1 }
			}
			modifier = {
				factor = 0
				MAF = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				MAF = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
	will_lead_to_war_with = MAF
	will_lead_to_war_with = TZN
	 available = {
		is_in_faction = no
		is_subject = no
		OR = {
			can_declare_war_on = 546.owner
		}
	 }
	completion_reward = {
			add_state_core = 899
			add_state_core = 546
			add_state_core = 1032
			add_state_core = 918
			add_state_core = 869
			add_state_core = 870
		if = {
			limit = {
				can_declare_war_on = 546.owner
			}
			declare_war_on = { type = annex_everything target = 546.owner }
		}
	}
 }

focus = {
id = ZZB_restore_utetera
icon = GFX_abolishthekingdoms
x = 15
y = 12
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_restore_the_african_empire } 
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = COG ratio < 1 }
			}
			modifier = {
				factor = 0
				COG = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				COG = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = MAF ratio < 1 }
			}
			modifier = {
				factor = 0
				MAF = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				MAF = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
	will_lead_to_war_with = COG
	will_lead_to_war_with = KIV
	will_lead_to_war_with = MSF
	will_lead_to_war_with = UMN
	will_lead_to_war_with = LPD
	will_lead_to_war_with = KTG
	will_lead_to_war_with = ORT
	will_lead_to_war_with = KAS
	 available = {
		is_in_faction = no
		is_subject = no
		OR = {
			can_declare_war_on = 977.owner
		}
	 }
	completion_reward = {
			add_state_core = 977
			add_state_core = 949
			add_state_core = 948
		if = {
			limit = {
				can_declare_war_on = 977.owner
			}
			declare_war_on = { type = annex_everything target = 977.owner }
		}
	}
 }

focus = {
id = ZZB_rebuild_lake_authority
icon = GFX_crushthenyambiri
x = 17
y = 12
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_restore_the_african_empire } 
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = MLW ratio < 1 }
			}
			modifier = {
				factor = 0
				MLW = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				MLW = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = MAF ratio < 1 }
			}
			modifier = {
				factor = 0
				MAF = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				MAF = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
	will_lead_to_war_with = MLW
	 available = {
		is_in_faction = no
		is_subject = no
		OR = {
			can_declare_war_on = 871.owner
		}
	}
	completion_reward = {
		add_state_core = 871
		add_state_core = 955
		if = {
			limit = {
				can_declare_war_on = 871.owner
			}
			declare_war_on = { type = annex_everything target = 871.owner }
		}
	}
 }
 
  focus = {
id = ZZB_the_old_enemy
icon = GFX_goal_POR_Imperio_Ultramarino
x = 18
y = 11
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_proclaim_union_with_oman }
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = PAF ratio < 1 }
			}
			modifier = {
				factor = 0
				PAF = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				PAF = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
will_lead_to_war_with = POR
will_lead_to_war_with = PAF
 available = {
 is_in_faction = no
	is_subject = no
	OR = {
		can_declare_war_on = 950.owner
	}
 }
completion_reward = {
		add_state_core = 950
		add_state_core = 544
		add_state_core = 954
		if = {
			limit = {
				can_declare_war_on = 950.owner
			}
			declare_war_on = { type = annex_everything target = 950.owner }
		}
	}
 }
 
  focus = {
id = ZZB_restore_madagascar
icon = GFX_antitsetsecampaign
x = 19
y = 12
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_proclaim_union_with_oman }
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = MAG ratio < 1 }
			}
			modifier = {
				factor = 0
				MAG = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				MAG = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
will_lead_to_war_with = MAG
 available = {
 is_in_faction = no
	is_subject = no
	OR = {
		can_declare_war_on = 543.owner
	}
 }
completion_reward = {
		add_state_core = 543
		add_state_core = 1177
		add_state_core = 1178
		add_state_core = 1179
	if = {
		limit = {
			can_declare_war_on = 543.owner
		}
		declare_war_on = { type = annex_everything target = 543.owner }
	}
	}
 }

focus = {
id = ZZB_restore_rule_over_gwadar
icon = GFX_goal_JAP_target_india
x = 14
y = 11
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_proclaim_union_with_oman }
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = DEH ratio < 1 }
			}
			modifier = {
				factor = 0
				DEH = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				DEH = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
 available = {
	is_in_faction = no
	is_subject = no
	OR = {
		can_declare_war_on = 444.owner
	}
 }
 will_lead_to_war_with = DEH
completion_reward = {
	add_state_core = 444
	if = {
		limit = {
			can_declare_war_on = 444.owner
		}
		declare_war_on = { type = annex_everything target = 444.owner }
		}
	}
 }

focus = {
id = ZZB_seize_mombasa_and_witu
icon = GFX_goal_generic_coastal_navy
x = 19
y = 10
cost = 5
available_if_capitulated = no
available = {
	MAF = {
		exists = no
	}
}
prerequisite = { focus = ZZB_thezanzadeclaration } 
		ai_will_do = {
			factor = 70
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = KEN ratio < 1 }
			}
			modifier = {
				factor = 0
				KEN = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				KEN = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
 available = {
	is_in_faction = no
	is_subject = no
	OR = {
		can_declare_war_on = 547.owner
	}
 }
 will_lead_to_war_with = KEN
  will_lead_to_war_with = KIK
completion_reward = {
	970.owner = {
		ZZB = { transfer_state = 970 }
		}
		KEN = {
				create_wargoal = {
					target = ZZB
					type = annex_everything
				}
		KIK = {
				create_wargoal = {
					target = ZZB
					type = annex_everything
				}
			}
		}
	}
}
###

focus = {
id = ZZB_Rechenberg_Report
icon = GFX_offerterms
x = 5
y = 9
cost = 5
available_if_capitulated = no

ai_will_do = { factor = 80 }
available = {
	has_country_flag = ZZB_rechenberg
}
completion_reward = {
	add_stability = 0.1
	}
 }
 
focus = {
id = ZZB_Appoint_Africans
icon = GFX_federalisationpolicy
x = 3
y = 10
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	country_event = zanz.29
	hidden_effect = {
		MAF = {
			country_event = zanz.29
		}
	}
	}
}

focus = {
id = ZZB_Debt_Moratoriums
icon = GFX_pensionoffkeychiefs
x = 2
y = 11
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	add_stability = 0.05
	country_event = zanz.32
	hidden_effect = {
		MAF = {
			country_event = zanz.32
		}
	}
	}
}

focus = {
id = ZZB_District_Reorganisation
icon = GFX_cooptnativeassociations
x = 7
y = 10
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	country_event = zanz.30
	hidden_effect = {
		MAF = {
			country_event = zanz.30
		}
	}
	}
}

focus = {
id = ZZB_formalise_koran_schools
icon = GFX_goal_OTT_Muslim_Relations
x = 8
y = 11
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	add_ideas = ISLAMIC_modern_budget
	add_war_support = 0.03
	country_event = zanz.33
	hidden_effect = {
		MAF = {
			country_event = zanz.33
		}
	}
	}
}

focus = {
id = ZZB_Troupe_Reforms
icon = GFX_nativetobaccoboard
x = 4
y = 11
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	country_event = zanz.31
	hidden_effect = {
		MAF = {
			country_event = zanz.31
		}
	}
	}
}

focus = {
id = ZZB_An_Urban_Board
icon = GFX_redevelopfortjameson
x = 5
y = 10
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
	add_stability = 0.05
	increase_ruling_party_popularity_by_5 = yes
	}
}

focus = {
id = ZZB_Expand_the_GCS
icon = GFX_goal_munitions_factories
x = 5
y = 12
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Debt_Moratoriums
}
prerequisite = {
	focus = ZZB_Appoint_Africans
}
prerequisite = {
	focus = ZZB_Troupe_Reforms
}
prerequisite = {
	focus = ZZB_An_Urban_Board
}
prerequisite = {
	focus = ZZB_expandthebububuline
}
prerequisite = {
	focus = ZZB_District_Reorganisation
}
prerequisite = {
	focus = ZZB_formalise_koran_schools
}
ai_will_do = { factor = 80 }
available = {

}
completion_reward = {
	add_offsite_building = { type = arms_factory level = 1 }
	add_offsite_building = { type = arms_factory level = 1 }
	add_offsite_building = { type = industrial_complex level = 1 }
	}
}

focus = {
id = ZZB_expandthebububuline
icon = GFX_focusonthedreyfusline
x = 6
y = 11
cost = 5
available_if_capitulated = no

prerequisite = {
	focus = ZZB_Rechenberg_Report
}
ai_will_do = { factor = 80 }

completion_reward = {
		905 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}		
		905 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
	}
}
 
###
focus = {
id = ZZB_darsfall
icon = GFX_Anti_German_Influence_2
x = 12
y = 8
cost = 5
available_if_capitulated = no

ai_will_do = { factor = 60 }
 available = {
	OR = {
		NOT = {
			country_exists = MAF
			}
		is_subject = no
	}
}
completion_reward = {
	add_war_support = 0.1
	add_manpower = 5000
	}
 }

focus = {
id = ZZB_seek_german_protection
icon = GFX_goal_COS_German_Bailout
x = 11
y = 9
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_darsfall }
ai_will_do = {
	factor = 70
	modifier = {
		factor = 0
		OR = {
		has_war = yes
		has_completed_focus = ZZB_thezanzadeclaration
		}
	}
}
 available = {
	threat > 0.6
	is_subject = no
	is_in_faction = no
	NOT = {
		country_exists = MAF
		}
	}
completion_reward = {
			if = {
				limit = {
					country_exists = GER
					GER = {
						is_faction_leader = yes
						}
					}
					GER = {
					country_event = sharedafrika.2
					}
				}
	}
 }
 
focus = {
id = ZZB_with_the_entente
icon = GFX_goal_USA_reconcile_canada
x = 13
y = 9
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_darsfall }
ai_will_do = {
	factor = 70
	modifier = {
		factor = 0
		OR = {
		has_war = yes
		has_completed_focus = ZZB_thezanzadeclaration
		}
	}
}
 available = {
	threat > 0.6
	is_subject = no
	is_in_faction = no
	}
	completion_reward = {
		if = {
			limit = {
				country_exists = ENT
				ENT = {
					is_faction_leader = yes
					}
				}
				ENT = {
				country_event = sharedafrika.2
				}
			}
		}
	}
 
focus = {
id = ZZB_join_egypt
icon = GFX_goal_EGY_navy
x = 15
y = 9
cost = 5
available_if_capitulated = no
prerequisite = { focus = ZZB_darsfall }
ai_will_do = {
	factor = 70
	modifier = {
		factor = 0
		OR = {
		has_war = yes
		has_completed_focus = ZZB_thezanzadeclaration
		}
	}
}
 available = {
	threat > 0.6
	is_subject = no
	is_in_faction = no
	EGY = {
		is_faction_leader = yes
		}
	}
	completion_reward = {
			if = {
				limit = {
					country_exists = EGY
					EGY = {
						is_faction_leader = yes
						}
					}
					EGY = {
					country_event = sharedafrika.2
					}
				}
			}
 }
 
#End of focuses 
 }