#historical events for hearts of iron 4 - initially created by CSRZ for 1.7.1 Hydra/Man the Guns
#Events for Liberian entry to war in 1944

add_namespace = afradd

#Liberia joins the American war
country_event = {
	id = afradd.1
	title = afradd.1.t
	desc = afradd.1.d
	picture = GFX_report_eth_1936
	
	fire_only_once = yes

	trigger = {
		tag = USA
		date > 1944.01.01
		is_subject = no
		is_in_faction = yes
		is_faction_leader = yes
		has_government = democratic
		OR = {
			LIB = { is_puppet = no }
			LIB = { is_subject_of = USA }
		}
		country_exists = LIB
		LIB = { is_in_faction = no }
		#LIB = { has_government = democratic }
	}
	
	option = {
		name = afradd.1.a
		ai_chance = { factor = 100 }
		LIB = { 
			country_event = {
    				id = afradd.2
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = afradd.1.b
	}	
}

country_event = {
	id = afradd.2
	title = afradd.2.t
	desc = afradd.2.d
	picture = GFX_report_eth_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.2.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = LIB }
		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
		}
		hidden_effect = {
			set_popularities = {
				democratic = 90
				neutrality = 5
				fascism = 0
				communism = 5
			}
		}
		remove_ideas = collectivist_ethos_focus
		remove_ideas = nationalism
		remove_ideas = internationalism
		add_timed_idea = {
			idea = democratic_influence_custom
			days = 720
		}
		if = {
			limit = { 
				USA = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = USA 
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
		if = {
			limit = { 
				USA = { has_war_with = JAP }
			}
			add_to_war = { 
				targeted_alliance = USA
				enemy = JAP 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.2.b
	}	
}

#Liberia joins the British war
country_event = {
	id = afradd.3
	title = afradd.1.t
	desc = afradd.1.d
	picture = GFX_report_eth_1936
	
	fire_only_once = yes

	trigger = {
		tag = ENG
		date > 1944.01.01
		is_subject = no
		is_in_faction = yes
		is_faction_leader = yes
		has_government = democratic
		OR = {
			LIB = { is_puppet = no }
			LIB = { is_subject_of = ENG }
		}
		country_exists = LIB
		LIB = { is_in_faction = no }
		#LIB = { has_government = democratic }
	}
	
	option = {
		name = afradd.1.a
		ai_chance = { factor = 100 }
		LIB = { 
			country_event = {
    				id = afradd.4
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = afradd.1.b
	}	
}

country_event = {
	id = afradd.4
	title = afradd.4.t
	desc = afradd.4.d
	picture = GFX_report_eth_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.4.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = LIB }
		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
		}
		hidden_effect = {
			set_popularities = {
				democratic = 90
				neutrality = 5
				fascism = 0
				communism = 5
			}
		}
		remove_ideas = collectivist_ethos_focus
		remove_ideas = nationalism
		remove_ideas = internationalism
		add_timed_idea = {
			idea = democratic_influence_custom
			days = 720
		}
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG 
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
		if = {
			limit = { 
				ENG = { has_war_with = JAP }
			}
			add_to_war = { 
				targeted_alliance = ENG
				enemy = JAP 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.4.b
	}	
}