capital = 877
OOB = "CIV_AFR"
set_stability = 0.24
set_war_support = 0.19
add_political_power = -46

set_convoys = 16

starting_train_buffer = 2.0

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		basic_heavy_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
	}
}
set_technology = {
	### MOD ###
	basic_train = 1
	
	### General ###
	electronic_mechanical_engineering = 1

	### INF ###
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1
	tech_recon = 1
	tech_engineers = 1
	tech_mountaineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			early_bombs = 1
			engines_1 = 1
			engines_2 = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			iw_medium_airframe = 1
			basic_medium_airframe = 1
			iw_large_airframe = 1
			basic_large_airframe = 1
			air_torpedoe_1 = 1
		}
		MAF_BBA_air_variants = yes
	else = {
		set_technology = {
			early_fighter = 1
			fighter1 = 1
			naval_bomber1 = 1
			early_bomber = 1
			strategic_bomber1 = 1
			tactical_bomber1 = 1
			CAS1 = 1
			cv_early_fighter = 1
			cv_naval_bomber1 = 1
			cv_CAS1 = 1
		}
	}
}

### Navy - MtG ###
set_technology = {
	early_ship_hull_light = 1
	basic_ship_hull_light = 1
	early_ship_hull_cruiser = 1
	basic_ship_hull_cruiser = 1
	panzerschiffe = 1
	early_ship_hull_submarine = 1
	basic_ship_hull_submarine = 1
	early_ship_hull_carrier = 1
	basic_ship_hull_carrier = 1
	early_ship_hull_heavy = 1
	basic_ship_hull_heavy = 1
	pre_dreadnoughts = 1
	
	basic_naval_mines = 1

	## Modules##
	basic_battery = 1
	basic_light_battery = 1
	
	basic_heavy_battery = 1
	basic_depth_charges = 1
	basic_torpedo = 1
	improved_ship_torpedo_launcher = 1
	basic_cruiser_armor_scheme = 1
	basic_heavy_armor_scheme = 1
	
	mtg_transport = 1
}

#Togoland, the Musterkolonie
CIV = {
	country_event = {
		id = civ.27
		days = 2 
	}
}
MAF = {
	country_event = {
		id = civ.27
		days = 51 
	}
}
GER = {
	country_event = {
		id = civ.27
		days = 51 
	}
}

#Colony of Dahomey and Dependencies
CIV = {
	country_event = {
		id = dahomeynew.1
		days = 23 
	}
}
MAF = {
	country_event = {
		id = dahomeynew.1
		days = 55 
	}
}

#Black Monday
CIV = {
	country_event = {
		id = civ.2
		days = 40 
	}
}
MAF = {
	country_event = {
		id = civ.2
		days = 40 
	}
}
IVO = {
	country_event = {
		id = civ.2
		days = 40 
	}
}
GHA = {
	country_event = {
		id = civ.2
		days = 40 
	}
}

#End of the Kabye Besserungsiedlungen
CIV = {
	country_event = {
		id = civ.36
		days = 63 
	}
}
MAF = {
	country_event = {
		id = civ.36
		days = 63 
	}
}
GER = {
	country_event = {
		id = civ.36
		days = 63 
	}
}

#Restoration of the House of Aladaxonu
DAH = { 
	country_event = {
		id = dahomeynew.7
		days = 6 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.7
		days = 87 
	}
}
MAF = {
	country_event = {
		id = dahomeynew.7
		days = 87 
	}
}

#Bremen Missionary Society and the Mina Revolt
CIV = {
	country_event = {
		id = civ.34
		days = 119 
	}
}
MAF = {
	country_event = {
		id = civ.34
		days = 119 
	}
}
GER = {
	country_event = {
		id = civ.34
		days = 119 
	}
}

#Algiers Protests Togoland-Volta Gold Smuggling
CIV = {
	country_event = {
		id = civ.39
		days = 143 
	}
}
TOG = {
	country_event = {
		id = civ.39
		days = 43 
	}
}
DAH = {
	country_event = {
		id = civ.39
		days = 43 
	}
}
NFA = {
	country_event = {
		id = civ.39
		days = 143 
	}
}
IVO = {
	country_event = {
		id = civ.39
		days = 143 
	}
}
GHA = {
	country_event = {
		id = civ.39
		days = 143 
	}
}
MAF = {
	country_event = {
		id = civ.39
		days = 143 
	}
}
GER = {
	country_event = {
		id = civ.39
		days = 143 
	}
}

#Le Pacte de sang au Dahomey
country_event = {
	id = dahomeynew.5
	days = 243 
}

if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.5
			days = 243 
		}
	}
}
DAH = {
	country_event = {
		id = dahomeynew.5
		days = 77 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.5
		days = 77 
	}
}

NFA = {
	country_event = {
		id = dahomeynew.5
		days = 243 
	}
}

FRA = {
	country_event = {
		id = dahomeynew.5
		days = 243 
	}
}

if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	GER = {
		country_event = {
			id = dahomeynew.5
			days = 243 
		}
	}
}

GHA = {
	country_event = {
		id = dahomeynew.5
		days = 243 
	}
}

#The Fourth Konkomba Revolt
DAH = {
	country_event = {
		id = civ.40
		days = 122 
	}
}
TOG = {
	country_event = {
		id = civ.40
		days = 122 
	}
}
CIV = {
	country_event = {
		id = civ.40
		days = 341 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = civ.40
			days = 341 
		}
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	GER = {
		country_event = {
			id = civ.40
			days = 341 
		}
	}
}

#Tacoondonou
DAH = { 
	country_event = {
		id = dahomeynew.8
		days = 244 
	}
}
TOG = { 
	country_event = {
		id = dahomeynew.8
		days = 244 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.8
		days = 389 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.8
			days = 389 
		}
	}
}

#The Return of Behanzin
DAH = { 
	country_event = {
		id = dahomeynew.9
		days = 288 
	}
}
TOG = { 
	country_event = {
		id = dahomeynew.9
		days = 288 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.9
		days = 439 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.9
			days = 439
		}
	}
}

#Disko flavour
every_country = {
	limit = {
		OR = {
				tag = MAF
				tag = GER
				tag = CMR
				tag = NMB
				tag = CEA
				tag = COG
				tag = KTG
				tag = KOG
				tag = ZAM
				tag = CIV
				tag = GHA
				tag = NGR
				tag = KEN
				tag = UGA
				tag = ZZB
				tag = CIV
				tag = BSC
				tag = MLW
				tag = TOG
				tag = DAH
		}
	}
	country_event = {
		id = civ.31
		days = 661 
	}
}

#Soil exhaustion
DAH = { 
	country_event = {
		id = dahomeynew.10
		days = 333 
	}
}
TOG = { 
	country_event = {
		id = dahomeynew.10
		days = 333 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.10
		days = 490 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.10
			days = 490 
		}
	}
}

#Café Touba
DAH = {
	country_event = {
		id = dahomeynew.17
		days = 320 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.17
		days = 320 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
NFA = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
FRA = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
IVO = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
CEA = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
GHA = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
SIE = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
MAF = {
	country_event = {
		id = dahomeynew.17
		days = 520 
	}
}
#From Askari to Star: the Rise of Kwassi Bruce - moved to later
every_country = {
	limit = {
		OR = {
				tag = MAF
				tag = GER
				tag = DAH
				tag = CMR
				tag = NMB
				tag = CEA
				tag = KOG
				tag = ZAM
				tag = CIV
				tag = GHA
				tag = NGR
				tag = KEN
				tag = UGA
				tag = ZAM
				tag = CIV
				tag = BSC
				tag = MLW			
				tag = DAH
				tag = TOG
		}
	}
	country_event = {
		id = civ.30
		days = 541 
	}
}

#Palm trees

DAH = { 
	country_event = {
		id = dahomeynew.11
		days = 377 
	}
}
TOG = { 
	country_event = {
		id = dahomeynew.11
		days = 377 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.11
		days = 567 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.11
			days = 567 
		}
	}
}

#Calendar confusion
DAH = { 
	country_event = {
		id = dahomeynew.12
		days = 422 
	}
}
TOG = { 
	country_event = {
		id = dahomeynew.12
		days = 422 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.12
		days = 642 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.12
			days = 642 
		}
	}
}

#Murder of Kojo Tovalou Houénou
DAH = {
	country_event = {
		id = dahomeynew.15
		days = 455 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.15
		days = 455 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.15
		days = 655 
	}
}
NFA = {
	country_event = {
		id = dahomeynew.15
		days = 655 
	}
}
FRA = {
	country_event = {
		id = dahomeynew.15
		days = 655 
	}
}
IVO = {
	country_event = {
		id = dahomeynew.15
		days = 655 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.15
			days = 655 
		}
	}
}
#Gletanu
TOG = { 
	country_event = {
		id = dahomeynew.13
		days = 511 
	}
}
DAH = { 
	country_event = {
		id = dahomeynew.13
		days = 511 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.13
		days = 709 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.13
			days = 709 
		}
	}
}


#Doguicimi - The First Dahomeyan Novel
DAH = {
	country_event = {
		id = dahomeynew.18
		days = 544 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.18
		days = 544 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.18
		days = 744 
	}
}
FRA = {
	country_event = {
		id = dahomeynew.18
		days = 744 
	}
}
IVO = {
	country_event = {
		id = dahomeynew.18
		days = 744 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.18
			days = 744 
		}
	}
}

#Publication of 'The Walls of Notse'
CIV = {
	country_event = {
		id = civ.35
		days = 788 
	}
}
TOG = {
	country_event = {
		id = civ.35
		days = 588 
	}
}
MAF = {
	country_event = {
		id = civ.35
		days = 788 
	}
}
GER = {
	country_event = {
		id = civ.35
		days = 788 
	}
}
GHA = {
	country_event = {
		id = civ.35
		days = 788 
	}
}
DAH = {
	country_event = {
		id = civ.35
		days = 588 
	}
}
IVO = {
	country_event = {
		id = civ.35
		days = 788 
	}
}

#Sodudo
DAH = {
	country_event = {
		id = dahomeynew.14
		days = 644 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.14
		days = 644 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.14
		days = 821 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = dahomeynew.14
			days = 821 
		}
	}
}


##Booming Profits for DSTAG
every_country = {
	limit = {
		OR = {
				tag = MAF
				tag = GER
				tag = CMR
				tag = NMB
				tag = CEA
				tag = KOG
				tag = COG
				tag = KTG
				tag = ZAM
				tag = GHA
				tag = NGR
				tag = KEN
				tag = UGA
				tag = ZZB
				tag = CIV
				tag = BSC
				tag = MLW
				tag = ZZB
				tag = BRA
				tag = ARG
				tag = TOG	
		}
	}
	country_event = {
		id = civ.37
		days = 899 
	}
}

#The Disappearance of Louise Diel
CIV = {
country_event = { id = civ.38 days = 978 }
}
TOG = {
	country_event = {
		id = civ.38
		days = 800 
	}
}
GHA = {
country_event = { id = civ.38 days = 978 }
}
IVO = {
country_event = { id = civ.38 days = 978 }
}
NGR = {
country_event = { id = civ.38 days = 978 }
}
DAH = {
	country_event = {
		id = civ.38
		days = 800 
	}
}
MAF = {
country_event = { id = civ.38 days = 978 }
}
GEA = {
country_event = { id = civ.38 days = 978 }
}
GER = {
country_event = { id = civ.38 days = 978 }
}

#Muslim-Pagan Clashes in Kotokoliland
DAH = {
	country_event = {
		id = civ.41
		days = 850 
	}
}
TOG = {
	country_event = {
		id = civ.41
		days = 850 
	}
}
GHA = {
	country_event = {
		id = civ.41
		days = 1047 
	}
}
CIV = {
	country_event = {
		id = civ.41
		days = 1047 
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	MAF = {
		country_event = {
			id = civ.41
			days = 1047 
		}
	}
}
if = {
	limit = {
		CIV = {
			owns_state = 876
			}
		}
	GER = {
		country_event = {
			id = civ.41
			days = 1047 
		}
	}
}

#Publication of 'Les Vrais Chefs de l'Empire'
DAH = {
	country_event = {
		id = dahomeynew.16
		days = 899 
	}
}
TOG = {
	country_event = {
		id = dahomeynew.16
		days = 899 
	}
}
CIV = {
	country_event = {
		id = dahomeynew.16
		days = 1089 
	}
}
NFA = {
	country_event = {
		id = dahomeynew.16
		days = 1089 
	}
}
FRA = {
	country_event = {
		id = dahomeynew.16
		days = 1089 
	}
}
IVO = {
	country_event = {
		id = dahomeynew.16
		days = 1089 
	}
}

set_country_flag = KX_no_naval_tech_decision_enable

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
	}
}

set_research_slots = 2
set_politics = {
	ruling_party = authoritarian_democrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}
add_ideas = {
	Generic_Colonial_Nation
	CIV_Runaway_Corruption
	CIV_Federal_Army
	CIV_French_Settlers
	CIV_British_Settlers
}

add_ideas = { #Cabinet
	CIV_Nikolaus_von_Oldenburg_hog_ade
	CIV_Friedrich_von_Lindequist_for_ade
	CIV_Edmund_Bruckner_eco_ade
	CIV_Heinrich_Ludwig_Randad_Jr_sec_ade
}

set_popularities = {
totalist = 0
radical_socialist = 0
syndicalist = 0
social_democrat = 5 
social_liberal = 15
market_liberal = 15
social_conservative = 5
authoritarian_democrat = 50
paternal_autocrat = 5
national_populist = 5
}

create_country_leader = {
	name = "Hans Georg von Doering"
	desc = "POLITICS_FELIX_CIV_BOIGNY_DESC"
	picture = "gfx/leaders/CIV/CIV_Hans_Georg_von_Doering.png"
	expire = "1.1.1"
	ideology = colonial_govt_subtype
	traits = {}
}

create_country_leader = {
	name = "Duke Nicholaus von Oldenburg"
	desc = "POLITICS_FELIX_CIV_BOIGNY_DESC"
	picture = "gfx/leaders/CIV/CIV_Nikolaus_von_Oldenburg.png"
	expire = "1.1.1"
	ideology = autocratic_colonial_govt_subtype
	traits = {}
}

create_country_leader = {
	name = "Jules Brévie"
	desc = "POLITICS_FELIX_CIV_BOIGNY_DESC"
	picture = "gfx/leaders/CIV/CIV_Jules_Brevie.png"
	expire = "1.1.1"
	ideology = socdem_colonial_govt_subtype 
	traits = {}
}

create_country_leader = {
	name = "Arnold Hodson"
	desc = "POLITICS_FELIX_CIV_BOIGNY_DESC"
	picture = "gfx/leaders/CIV/CIV_Arnold_Hodson.png"
	expire = "1.1.1"
	ideology = soclib_colonial_govt_subtype 
	traits = {}
}

create_corps_commander = { #Auto-Generated
	name = "Walter von Wiese"
	portrait_path = "gfx/leaders/CIV/CIV_Walter_von_Wiese_und_Kaiserswaldau.png"
	traits = {
		old_guard
	}
	skill = 2
	attack_skill = 1
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 2
	#id = 972
}

create_field_marshal = { #Auto-Generated
	name = "Arnold Schultze"
	portrait_path = "gfx/leaders/CIV/CIV_Arnold_Schultze.png"
	traits = {
		old_guard
	}
	skill = 2
	attack_skill = 1
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 2
	id = 12434
}

create_corps_commander = { #Auto-Generated
	name = "Kléber Dadjo"
	portrait_path = "gfx/leaders/TOG/Portrait_TOG_Dadjo.png"
	traits = {
		career_officer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 12733
}

create_corps_commander = { #Auto-Generated
	name = "Bukaro Frafra"
	portrait_path = "gfx/leaders/CIV/CIV_Bukaro_Frafra.png"
	traits = {
		career_officer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = { #Auto-Generated
	name = "Charles Macpherson Dobell"
	portrait_path = "gfx/leaders/CIV/CIV_Charles_Macpherson_Dobell.png"
	traits = {
		old_guard
		trait_engineer
	}
	skill = 3
	attack_skill = 2
	defense_skill = 3
	planning_skill = 3
	logistics_skill = 2
}

create_corps_commander = {
	name = "Kwassi Bruce"
	portrait_path = "gfx/leaders/CIV/CIV_Kwassi_Bruce.png"
	traits = {
		media_personality 
		politically_connected 
		war_hero
	}
	skill = 2
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
	id = 12734
}


