capital = 178
OOB = "SFA_AFR"

set_technology = {
	###MOD ###
	###INF ###
	infantry_weapons = 1
	basic_train = 1
	early_fighter = 1
}

SPR = {
	set_autonomy = {
		target = SFA
		autonomous_state = kr_colonial_government
	}
}

SPR = { add_opinion_modifier = { target = SFA modifier = colonial_master } }

#Delete colonial guard units
SPR = {
	delete_unit_template_and_units = {
 	division_template = "Guardias Coloniales"
	}
}


if = {
	limit = {
		is_ai = no
	}
	set_rule = {
		can_send_volunteers = yes
		can_be_spymaster = yes
		can_decline_call_to_war = yes
		can_not_declare_war = no
		can_puppet = yes
		units_deployed_to_overlord = yes
	}
}

country_event = { id = spanishafrica.1 days = 1 } #Intro
#SPR = { country_event = { id = spanishafrica.1 days = 14 } }

country_event = { id = spanishafrica.4 days = 12 } #Ongoing work shortages in Guinea
#SPR = { country_event = { id = spanishafrica.4 days = 17 } }

country_event = { id = spanishafrica.23 days = 39 } #Restoration of the SS Kaiser Wilhelm der Grosse
#SPR = { country_event = { id = spanishafrica.23 days = 39 } }
MOR = { country_event = { id = spanishafrica.23 days = 39 } }
GER = { country_event = { id = spanishafrica.23 days = 39 } }
MAF = { country_event = { id = spanishafrica.23 days = 39 } }

country_event = { id = spanishafrica.32 days = 48 } #Conflict on Fernando Pó
#SPR = { country_event = { id = spanishafrica.32 days = 48 } }

country_event = { id = spanishafrica.5 days = 57 } #Black Monday
#SPR = { country_event = { id = spanishafrica.5 days = 57 } }


SPR = { country_event = { id = spanishafrica.38 days = 66 } } #Transfer of Rif?

country_event = { id = spanishafrica.11 days = 72 } #The Collapse of CEGUI
#SPR = { country_event = { id = spanishafrica.11 days = 72 } }

country_event = { id = spanishafrica.7 days = 102 } #Fight Rif raiders
#SPR = { country_event = { id = spanishafrica.7 days = 102 } }

country_event = { id = spanishafrica.8 days = 134 } #Rio Muni border
#SPR = { country_event = { id = spanishafrica.8 days = 134 } }

country_event = { id = spanishafrica.24 days = 164 } #The Spanish Army Reaches Semana
#SPR = { country_event = { id = spanishafrica.24 days = 164 } }
MOR = { country_event = { id = spanishafrica.24 days = 164 } }
NFA = { country_event = { id = spanishafrica.24 days = 164 } }

country_event = { id = spanishafrica.9 days = 189 } #Trade Unionists Deported to Annobó
#SPR = { country_event = { id = spanishafrica.9 days = 189 } }

country_event = { id = spanishafrica.3 days = 214 } #Hajj Hatmi assassinated
SPR = { country_event = { id = spanishafrica.3 days = 214 } }
GER = { country_event = { id = spanishafrica.3 days = 214 } }
DJI = { country_event = { id = spanishafrica.3 days = 214 } }
MOR = { country_event = { id = spanishafrica.3 days = 214 } }

country_event = { id = spanishafrica.10 days = 258 } #Comite Sindical de Cacao Founded
#SPR = { country_event = { id = spanishafrica.10 days = 258 } }

country_event = { id = spanishafrica.12 days = 293 } #Death of King Malabo
#SPR = { country_event = { id = spanishafrica.12 days = 293 } }
CNT = { country_event = { id = spanishafrica.12 days = 293 } }
CAR = { country_event = { id = spanishafrica.12 days = 293 } }

country_event = { id = spanishafrica.25 days = 332 } #Famine in the Northern Morocco
#SPR = { country_event = { id = spanishafrica.25 days = 332 } }
CNT = { country_event = { id = spanishafrica.25 days = 332 } }
CAR = { country_event = { id = spanishafrica.25 days = 332 } }
MOR = { country_event = { id = spanishafrica.25 days = 332 } }
NFA = { country_event = { id = spanishafrica.25 days = 332 } }
GER = { country_event = { id = spanishafrica.25 days = 332 } }
FRA = { country_event = { id = spanishafrica.25 days = 332 } }
ENG = { country_event = { id = spanishafrica.25 days = 332 } }

country_event = { id = spanishafrica.13 days = 377 } #Instituto Colonial Indígena Established
#SPR = { country_event = { id = spanishafrica.13 days = 377 } }
CNT = { country_event = { id = spanishafrica.13 days = 377 } }
CAR = { country_event = { id = spanishafrica.13 days = 377 } }

country_event = { id = spanishafrica.22 days = 404 } #CEMR Develops New Iron Mine
#SPR = { country_event = { id = spanishafrica.22 days = 404 } }
CNT = { country_event = { id = spanishafrica.22 days = 404 } }
CAR = { country_event = { id = spanishafrica.22 days = 404 } }
MOR = { country_event = { id = spanishafrica.22 days = 404 } }
NFA = { country_event = { id = spanishafrica.22 days = 404 } }
GER = { country_event = { id = spanishafrica.22 days = 404 } }

country_event = { id = spanishafrica.14 days = 458 } #The ALENA Scandal
#SPR = { country_event = { id = spanishafrica.14 days = 458 } }
CNT = { country_event = { id = spanishafrica.14 days = 458 } }
CAR = { country_event = { id = spanishafrica.14 days = 458 } }

country_event = { id = spanishafrica.15 days = 512 } #Attack on the Evinayong Mission
#SPR = { country_event = { id = spanishafrica.15 days = 512 } }
CNT = { country_event = { id = spanishafrica.15 days = 512 } }
CAR = { country_event = { id = spanishafrica.15 days = 512 } }
PAP = { country_event = { id = spanishafrica.15 days = 512 } }

country_event = { id = spanishafrica.16 days = 577 } #The Hatton & Cookson Incident
#SPR = { country_event = { id = spanishafrica.16 days = 577 } }
CNT = { country_event = { id = spanishafrica.16 days = 577 } }
CAR = { country_event = { id = spanishafrica.16 days = 577 } }
GAB = { country_event = { id = spanishafrica.16 days = 577 } }
KOG = { country_event = { id = spanishafrica.16 days = 577 } }
CMR = { country_event = { id = spanishafrica.16 days = 577 } }
NGR = { country_event = { id = spanishafrica.16 days = 577 } }
MAF = { country_event = { id = spanishafrica.16 days = 577 } }
ENG = { country_event = { id = spanishafrica.16 days = 577 } }

country_event = { id = spanishafrica.17 days = 644 } #The Legend of Mbo Mba
#SPR = { country_event = { id = spanishafrica.17 days = 644 } }
CNT = { country_event = { id = spanishafrica.17 days = 644 } }
CAR = { country_event = { id = spanishafrica.17 days = 644 } }
GAB = { country_event = { id = spanishafrica.17 days = 644 } }
KOG = { country_event = { id = spanishafrica.17 days = 644 } }
CMR = { country_event = { id = spanishafrica.17 days = 644 } }
NGR = { country_event = { id = spanishafrica.17 days = 644 } }
MAF = { country_event = { id = spanishafrica.17 days = 644 } }

country_event = { id = spanishafrica.18 days = 703 } #Gold Discovered at Kukumankok
#SPR = { country_event = { id = spanishafrica.18 days = 703 } }
CNT = { country_event = { id = spanishafrica.18 days = 703 } }
CAR = { country_event = { id = spanishafrica.18 days = 703 } }
GAB = { country_event = { id = spanishafrica.18 days = 703 } }
KOG = { country_event = { id = spanishafrica.18 days = 703 } }
CMR = { country_event = { id = spanishafrica.18 days = 703 } }
NGR = { country_event = { id = spanishafrica.18 days = 703 } }
MAF = { country_event = { id = spanishafrica.18 days = 703 } }

country_event = { id = spanishafrica.19 days = 781 } #Hermann Eidmann Summits Pico Basilé
#SPR = { country_event = { id = spanishafrica.19 days = 781 } }
CNT = { country_event = { id = spanishafrica.19 days = 781 } }
CAR = { country_event = { id = spanishafrica.19 days = 781 } }
MAF = { country_event = { id = spanishafrica.19 days = 781 } }
GER = { country_event = { id = spanishafrica.19 days = 781 } }

country_event = { id = spanishafrica.20 days = 854 } #The San Carlos Affair
#SPR = { country_event = { id = spanishafrica.20 days = 854 } }
CNT = { country_event = { id = spanishafrica.20 days = 854 } }
CAR = { country_event = { id = spanishafrica.20 days = 854 } }
RUS = { country_event = { id = spanishafrica.20 days = 854 } }
MAF = { country_event = { id = spanishafrica.20 days = 854 } }
GER = { country_event = { id = spanishafrica.20 days = 854 } }

country_event = { id = spanishafrica.21 days = 902 } #The Saint of the Forest
#SPR = { country_event = { id = spanishafrica.21 days = 902 } }
CNT = { country_event = { id = spanishafrica.21 days = 902 } }
CAR = { country_event = { id = spanishafrica.21 days = 902 } }
PAP = { country_event = { id = spanishafrica.21 days = 902 } }
MAF = { country_event = { id = spanishafrica.21 days = 902 } }

country_event = { id = spanishafrica.31 days = 974 } #The Alonso Affair
#SPR = { country_event = { id = spanishafrica.31 days = 974 } }
CAR = { country_event = { id = spanishafrica.31 days = 974 } }
MAF = { country_event = { id = spanishafrica.31 days = 974 } }
GAB = { country_event = { id = spanishafrica.31 days = 974 } }
CMR = { country_event = { id = spanishafrica.31 days = 974 } }
KOG = { country_event = { id = spanishafrica.31 days = 974 } }
PAF = { country_event = { id = spanishafrica.31 days = 974 } }

country_event = { id = sprd.401 days = 1205 } # Last of the Barbary Lions - from SPR rework
MOR = { country_event = { id = sprd.401 days = 1205 } }
NFA = { country_event = { id = sprd.401 days = 1205 } }
TUN = { country_event = { id = sprd.401 days = 1205 } }
TUR = { country_event = { id = sprd.401 days = 1205 } }
LBA = { country_event = { id = sprd.401 days = 1205 } }
TRP = { country_event = { id = sprd.401 days = 205 } }

set_stability = 0.23
set_war_support = 0.29
add_political_power = -54
set_convoys = 35

set_research_slots = 2
set_politics = {
	ruling_party = paternal_autocrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}


add_ideas = {
	Generic_Colonial_Nation_lesser
	SFA_divisionsintheadministration
	SFA_colonial_fragmentation
	SPR_JM_Gil_Robles_Quinones_hog_ade
	SPR_Francisco_de_Asis_Serrat_y_Bonastre_for_pau
	SPR_German_Gil_y_Yuste_eco_pau
	SPR_Miguel_Ponte_Manso_de_Zuniga_sec_ade
}

set_popularities = {
  totalist = 0
  radical_socialist = 0
  syndicalist = 0
  social_democrat = 2
  social_liberal = 6
  market_liberal = 6
  social_conservative = 12
  authoritarian_democrat = 15
  paternal_autocrat = 47
  national_populist = 12
}
create_country_leader = {
	name = "Martínez Anido"
	desc = "POLITICS_MARTINEZ_ANIDO_DESC"
	picture = "gfx/leaders/SPR/Portrait_SPR_Martinez_Anido.png"
	expire = "1.1.1"
	ideology = soccon_colonial_govt_subtype 
	traits = {}
}
create_country_leader = {
	name = "Martínez Anido"
	desc = "POLITICS_MARTINEZ_ANIDO_DESC"
	picture = "gfx/leaders/SPR/Portrait_SPR_Martinez_Anido.png"
	expire = "1.1.1"
	ideology = colonial_govt_subtype
	traits = {}
}
create_country_leader = {
	name = "Martínez Anido"
	desc = "POLITICS_MARTINEZ_ANIDO_DESC"
	picture = "gfx/leaders/SPR/Portrait_SPR_Martinez_Anido.png"
	expire = "1.1.1"
	ideology = autocratic_colonial_govt_subtype
	traits = {}
}

create_corps_commander = {
	name = "Manuel Goded Llopis"
	portrait_path = "gfx/leaders/SPR/Portrait_SPR_Goded_Llopis.png"
	traits = { }
	skill = 3
	attack_skill = 1
	defense_skill = 3
	planning_skill = 1
	logistics_skill = 2
	id = 307
}

