###########################
# Liberia (Firestone)
###########################
# By Foppe
###########################

add_namespace = fire


### MAIN TREE SHIT###
# Firestone installs puppet legislature
country_event = {
	id = fire.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.1"}
	title = fire.1.t
	desc = fire.1.d
	picture = GFX_report_event_LIB_parliment

	is_triggered_only = yes

	option = {
		name = fire.1.a
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.05
		}
		hidden_effect = {
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.15
		}
		add_popularity = {
			ideology = national_populist
			popularity = -0.15
		}
		add_popularity = {
			ideology = social_liberal
			popularity = -0.15
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.15
		}
		}
	}
}

# Firestone gets Monrovia on his side
country_event = {
	id = fire.2
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.2"}
	title = fire.2.t
	desc = fire.2.d
	
	picture = GFX_report_event_LIB_monrovia

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.2.a
		add_political_power = 30
		add_stability = 0.20
	}
}

# Firestone approaches the Duke
country_event = {
	id = fire.3
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.3"}
	title = fire.3.t
	desc = fire.3.d
	
	picture = GFX_report_event_generic_diplomacy1

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.3.a
		add_manpower = -413
	}
}

# Firestone receives Westafrikan Mercs
country_event = {
	id = fire.4
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.4"}
	title = fire.4.t
	desc = fire.4.d
	
	picture = GFX_report_event_EGY_egyptian_troops

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.4.a
		army_experience = 20
		add_war_support = 0.10
	}
}

# Firestone uses the Methodist church
country_event = {
	id = fire.5
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.5"}
	title = fire.5.t
	desc = fire.5.d
	
	picture = GFX_report_event_LIB_church

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.5.a
		add_stability = 0.02
	}
}

# Firestone rules from the shadows (unscrupulous Liberia)
country_event = {
	id = fire.6
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.6"}
	title = fire.6.t
	desc = fire.6.d
	
	picture = GFX_report_event_LIB_parliment
	immediate = {
		hidden_effect = {
			set_country_flag = LIB_firestone_puppet
			set_country_flag = LEADER_GUI_VISIBLE
		}
	}

	is_triggered_only = yes

	option = { #Barclay in charge
		name = fire.6.a
		create_country_leader = {
			name = "Edwin Barclay"
			desc = "POLITICS_EDWIN_BARCLAY_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Edwin_Barclay_KR.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = { firestones_puppet }
		}
		set_party_name = {
			ideology = paternal_autocrat
			long_name = LIB_Firestone_paternal_autocrat_party_long
			name = LIB_Firestone_paternal_autocrat_party
		}
		hidden_effect = {
				country_event = {
					id = LIBflavor.4
					days = 60
				}
			}
	}
	option = { #King back in charge
		name = fire.6.b
		create_country_leader = {
			name = "Charles D. B. King"
			desc = "POLITICS_CHARLES_KING_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Charles_D_B_King.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = { firestones_puppet }
		}
		set_party_name = {
			ideology = paternal_autocrat
			long_name = LIB_Firestone_paternal_autocrat_party_long
			name = LIB_Firestone_paternal_autocrat_party
		}
	}
	option = { #Tubman in charge
		name = fire.6.c
		create_country_leader = {
	name = "William Tubman"
	desc = "POLITICS_WILLIAM_TUBMAN_DESC"
	picture = "gfx/leaders/LIB/Portrait_LIB_William_Tubman.png"
	expire = "1.1.1"
	ideology = corporatocracy_subtype
	traits = { firestones_puppet }
}
set_party_name = {
			ideology = paternal_autocrat
			long_name = LIB_Firestone_paternal_autocrat_party_long
			name = LIB_Firestone_paternal_autocrat_party
		}
		hidden_effect = {
				country_event = {
					id = LIBflavor.6
					days = 60
				}
			}
	}
}

# Firestone and Christie begin evacuating America
country_event = {
	id = fire.7
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.7"}
	title = fire.7.t
	desc = fire.7.d
	
	picture = GFX_report_event_CAN_refugees

	is_triggered_only = yes

	option = {
		name = fire.7.a
		298 = {
			add_manpower = 3702
		}
		add_timed_idea = {
			idea = LIB_foreign_investment_idea
			days = 365
		}
	}
}

# Firestone becomes Andrew Ryan
country_event = {
	id = fire.8
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.8"}
	title = fire.8.t
	desc = fire.8.d
	picture = GFX_report_event_LIB_objectivism

	is_triggered_only = yes

	option = {
		name = fire.8.a
		add_timed_idea = {
			idea = LIB_foreign_investment_idea
			days = 365
		}
	}
}

# Firestone and Christie oversee American evacuation
country_event = {
	id = fire.9
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.9"}
	title = fire.9.t
	desc = fire.9.d
	
	picture = GFX_report_event_legco2

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.9.a
		298 = {
			add_manpower = 13813
		}
	}
}

# Firestone and the TWP rule forever
country_event = {
	id = fire.10
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.10"}
	title = fire.10.t
	desc = fire.10.d
	
	picture = GFX_report_event_LIB_parade
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes

	option = {
		name = fire.10.a
		add_war_support = 0.02
	}
}

# Firestone makes Christie acting CEO
country_event = {
	id = fire.11
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.11"}
	title = fire.11.t
	desc = fire.11.d
	
	picture = GFX_report_event_generic_diplomacy1

	is_triggered_only = yes

	option = {
		name = fire.11.a
		if = {
			limit = {
				NOT = {
					OR = {
						has_cosmetic_tag = LIB_GREATER
						has_cosmetic_tag = LIB_GREATERDORNAN
						has_cosmetic_tag = LIB_DORNANLIBERIA
				}
			}
		}
		set_cosmetic_tag = LIB_Enclave
		}
	}
}

# Firestone rejects Christie's plan
country_event = {
	id = fire.12
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.12"}
	title = fire.12.t
	desc = fire.12.d
	
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.12.a
		add_popularity = { ideology = paternal_autocrat popularity = -0.05 }
		add_political_power = 10
	}
}

# Firestone meets with Westafrikan businessmen
country_event = {
	id = fire.13
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.13"}
	title = fire.13.t
	desc = fire.13.d
	
	picture = GFX_report_event_generic_diplomacy1

	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = fire.13.a
		966 = {
			add_manpower = -413
		}
		add_stability = -0.05
	}
}

# Firestone creates self-sufficient plantation fortresses
country_event = {
	id = fire.14
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.14"}
	title = fire.14.t
	desc = fire.14.d
	picture = GFX_AUS_southern_farmers

	is_triggered_only = yes

	option = {
		name = fire.14.a
		298 = {
			add_manpower = -2516
		}
		966 = {
			add_manpower = 1745
		}
		set_province_name = {
			id = 14443
			name = "Davistown"
		}
		set_province_name = {
			id = 14444
			name = "Libertalia"
		}
		hidden_effect = {
			966 = {	set_state_flag = renamed_state_firestone }
			every_controlled_state = { rename_state_effect = yes }
		}
		add_stability = -0.10
	}
}

country_event = { #Puppet Elections
	id = fire.15
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.15"}
	title = fire.15.t
	desc = fire.15.d
	picture = GFX_report_event_SAF_parliament_3

	fire_only_once = yes
	is_triggered_only = yes

trigger = {
		tag = LIB
		has_country_flag = LIB_Firestone_Coup
		NOT = {
			has_country_flag = LIB_1939_elections_held
		}
	}

	immediate = {
		remove_all_ministers = yes
		set_country_flag = LIB_1939_elections_held
	}

	option = { #True Whig Party
		
		name = fire.15.a
		add_political_power = 30
		hidden_effect = {
			add_ideas = {
				LIB_Harvey_Firestone_hog_mli
				LIB_George_S_Padmore_for_sco
				LIB_J_A_Railey_eco_sco
				LIB_Frank_Emmanuel_Tolbert_sec_sco
			}
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.10
		}
	}
	}

###ACW REACTION RELATED EVENTS###

country_event = {
	id = fire.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.16"
	set_country_flag = LIB_hoover_is_here }
	title = fire.16.t
	desc = { # Hoover Lived
		text = fire.16.d
	trigger = {
			NOT = {
				has_global_flag = USA_Hoover_ded
			}
		}
	}
	desc = { # Hoover ded
		text = fire.16.d.d.sus
	trigger = {
			has_global_flag = USA_Hoover_ded
		}
	}
	picture = GFX_USA_Inauguration

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = fire.16.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = { rule = LIB_society option = LIB_SOCIETY_FIRESTONE }
			}
		}
		if = {
			limit = {
				NOT = {
				has_global_flag = USA_Hoover_ded
				}
			}
			create_country_leader = {
			name = "Herbert Hoover"
			desc = "POLITICS_HERB_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Herb_Hoover.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = {hog_thepresident}
		}
		}
		if = {
			limit = {
				has_global_flag = USA_Hoover_ded
			}
			create_country_leader = {
			name = "Herbert Hoover"
			desc = "POLITICS_HERB_SUS_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Herb_Hoover_Imposter.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = { LIB_the_president_sus }
			}
			hidden_effect = {
				country_event = {
					id = fire.21
					days = 21
				}
			}
		}
		set_party_name = {
			ideology = paternal_autocrat
			long_name = LIB_Hoover_paternal_autocrat_party_long
			name = LIB_Hoover_paternal_autocrat_party
		}
		add_stability = -0.10
	}
	option = {
		name = fire.16.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = { rule = LIB_society option = LIB_SOCIETY_HOOVER }
			}
		}
		add_political_power = 10
		}
}

# Firestone Dies
country_event = {
	id = fire.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.17"}
	title = fire.17.t
	desc = fire.17.d
	
	picture = GFX_report_event_LIB_firestone_tire

	is_triggered_only = yes
	
trigger = {
		tag = LIB
		has_government = paternal_autocrat
	}
	
	fire_only_once = yes

	option = { #
		name = fire.17.a
	trigger = {
		has_country_leader = {
			name = "Harvey Firestone"
			ruling_only = yes
			}
		}
		create_country_leader = {
			name = "Harvey Firestone Jr."
			desc = "POLITICS_HARVEY_FIRESTONE_JR_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Harvey_Firestone_Jr.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype

		}
		set_country_flag = LIB_firestone_sr_dead
	}
	option = { #
		name = fire.17.b
	trigger = {
		NOT = {
		has_country_leader = {
			name = "Harvey Firestone"
			ruling_only = yes
				}
			}
		}
		add_political_power = 5
	}
}

# Christie Plan
country_event = {
	id = fire.18
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.18"}
	title = fire.18.t
	desc = fire.18.d
	
	picture = GFX_report_event_LIB_christie

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { #sure
		name = fire.18.a
		set_country_flag = LIB_christie_plan_ok
	}
	option = { #no
		name = fire.18.b
		set_country_flag = LIB_christie_plan_gay
		
	}
}
country_event = { #buying CIV
	id = fire.19
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.19"}
	title = fire.19.t
	desc = fire.19.d
	
	picture = GFX_report_event_LIB_firestone_tire
	is_triggered_only = yes
	
trigger = {
		tag = LIB
		has_completed_focus = LIB_star_of_africa
		has_country_flag = LIB_Firestone_Coup
		CIV = {
			is_ai = yes
			has_country_flag = CIV_Slavery_BM
			NOT = {
				has_completed_focus = CIV_investigatecorruption
			}
		}
		
	}
	
	fire_only_once = yes

	option = { #
		name = fire.19.a
		CIV = {
			country_event = civfirestone.1
		}
	}

}
country_event = { #buying CIV
	id = fire.20
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.20"}
	title = fire.20.t
	desc = fire.20.d
	
	picture = GFX_report_event_LIB_firestone_tire
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	is_triggered_only = yes
	
	fire_only_once = yes

	option = { #
		name = fire.20.a
		add_political_power = 30
	}

}

country_event = { #sus hoover
	id = fire.21
	immediate = {log = "[GetDateText]: [Root.GetName]: event fire.20"}
	title = fire.21.t
	desc = fire.21.d
	
	picture = GFX_USA_curtis_hoover

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { #
		name = fire.21.a
		add_political_power = -50
		add_stability = 0.1
	}

	option = { #
		name = fire.21.b
		clr_country_flag = LIB_hoover_is_here
		add_political_power = -25
		add_stability = -0.1
		create_country_leader = {
			name = "Harvey Firestone"
			desc = "POLITICS_HARVEY_FIRESTONE_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Harvey_Firestone.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = { rubber_magnate }
			}
		add_ideas = LIB_hoover_exilegov	
	}

	option = { #
		name = fire.21.c
		clr_country_flag = LIB_hoover_is_here
		add_political_power = 30
		add_stability = -0.2
		create_country_leader = {
			name = "Harvey Firestone"
			desc = "POLITICS_HARVEY_FIRESTONE_DESC"
			picture = "gfx/leaders/LIB/Portrait_LIB_Harvey_Firestone.png"
			expire = "1.1.1"
			ideology = corporatocracy_subtype
			traits = { rubber_magnate }
			}
	}


}

