###########################
#Goeringia
###########################

add_namespace = goering

country_event = { #
	id = goering.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.1"}
	title = goering.1.t
	desc = goering.1.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = goering.1.a
		ai_chance = {
			factor = 100
		}
		random_owned_state = {
			add_building_construction = {
				type = industrial_complex
				level = -1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_building_construction = {
				type = industrial_complex
				level = -1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_building_construction = {
				type = industrial_complex
				level = -1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_building_construction = {
				type = industrial_complex
				level = -1
				instant_build = yes
			}
		}
	}
}

country_event = { #
	id = goering.2
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.2"}
	title = goering.2.t
	desc = goering.2.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = goering.2.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.3
				days = 20
			}
		}
	}
}

country_event = { #
	id = goering.3
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.3"}
	title = goering.3.t
	desc = goering.3.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = goering.3.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.8
				days = 23
			}
		}
	}
}

country_event = { #
	id = goering.4
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.4"}
	title = goering.4.t
	desc = goering.4.d
	picture = GFX_report_event_lake

	fire_only_once = yes
	is_triggered_only = yes

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

	option = {
		name = goering.4.a
		ai_chance = {
			factor = 100
		}
		
	}
}

country_event = { #
	id = goering.5
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.5"}
	title = goering.5.t
	desc = goering.5.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

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

	option = {
		name = goering.5.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #
	id = goering.6
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.6"}
	title = goering.6.t
	desc = goering.6.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

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

	option = {
		name = goering.6.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.7
				days = 23
			}
		}
	}
}

country_event = { #
	id = goering.7
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.7"}
	title = goering.7.t
	desc = goering.7.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

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

	option = {
		name = goering.7.a
		ai_chance = {
			factor = 100
		}
		
	}
}

country_event = { #
	id = goering.8
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.8"}
	title = goering.8.t
	desc = goering.8.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

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

	option = {
		name = goering.8.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.9
				days = 43
			}
		}
	}
}

country_event = { #
	id = goering.9
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.9"}
	title = goering.9.t
	desc = goering.9.d
	picture = GFX_report_event_duala

	fire_only_once = yes

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

	option = {
		name = goering.9.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #
	id = goering.10
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.10"}
	title = goering.10.t
	desc = goering.10.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes

	mean_time_to_happen = {
		days = 90
	}

	trigger = {
		has_war = no
		has_completed_focus = TNZ_sovereignbeyondstate
		NOT = {
			country_exists = COG
			country_exists = ZAM
			country_exists = CIV
			country_exists = CMR
			country_exists = NGR
			country_exists = MSF
			country_exists = UMN
			country_exists = NMB
		}
	}
	option = {
		name = goering.10.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.11
				days = 10
			}
		}
	}
}

country_event = { #
	id = goering.11
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.11"}
	title = goering.11.t
	desc = goering.11.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = goering.11.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = goering.12
				days = 10
			}
		}
	}
}

country_event = { #
	id = goering.12
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.12"}
	title = goering.12.t
	desc = goering.12.d
	picture = GFX_report_event_MAF_goering_castle_eventpic

	fire_only_once = yes
	is_triggered_only = yes
	

	option = {
		name = goering.12.a
		ai_chance = {
			factor = 100
		}
		set_cosmetic_tag = AFK
		create_country_leader = {
			name = "Hermann I"
			desc = "POLITICS_WARLORD_GOERING_DESC"
			picture = "gfx/leaders/TNZ/TNZ_Hermann_I.png"
			expire = "1.1.1"
			ideology = goering_loyalism_subtype
		}
	}
}

country_event = { #hidden event to get rid of Goeringia if Goering is in Germany
	id = goering.13
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event goering.12"
		TZN = {
			set_cosmetic_tag = TZN_GER_BUT_NOT_GOERING
			create_country_leader = {
				name = "Mohamed Husen"
				desc = "POLITICS_HUSAN_DESC"
				picture = "gfx/leaders/TZN/Portrait_TZN_Muhamed_Husan.png"
				expire = "1.1.1"
				ideology = authdem_junta_subtype

			}
			set_politics = {
				ruling_party = authoritarian_democrat
			}
			load_focus_tree = generic_focus
		}
	}

	hidden = yes

	fire_only_once = yes
	
	mean_time_to_happen = {
	days = 90
	}

trigger = {
		tag = TZN
		GER = {
			has_completed_focus = GER_the_kanzler_and_the_statthalter
		}
		TZN = {
			OR = {
				has_country_leader = {
					name = "Hermann I"
					ruling_only = yes
				}
				has_country_leader = {
					name = "Hermann von Göring"
					ruling_only = yes
				}
			}
		}
	}
}

country_event = { #Olympic Stadium
	id = goering.14
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.14"}
	title = goering.14.t
	desc = goering.14.d
	picture = GFX_report_event_TZN_olympic_stadium

	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
 
	option = {
		name = goering.14.a
		965 = {
			add_extra_state_shared_building_slots = 1
		}
	}
}

country_event = { #Schnapps
	id = goering.15
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.15"}
	title = goering.15.t
	desc = goering.15.d
	picture = GFX_report_event_TZN_reichsjagermeister

	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = goering.15.a
		add_offsite_building = { type = industrial_complex level = 1 }
		increase_ruling_party_popularity_by_5 = yes
		hidden_effect = {
			country_event = {
				id = goering.20
				days = 45
			}
		}
	}
}

country_event = { #THE SOVEREIGN IS HE WHO DECIDES THE EXCEPTION
	id = goering.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.16"}
	title = goering.16.t
	desc = goering.16.d
	picture = GFX_report_event_TZN_goering_plane

	fire_only_once = yes
	is_triggered_only = yes

trigger = {
		OR = {
			has_country_leader = { 
				name = "Hermann von Göring"
				ruling_only = yes
			}
			has_country_leader = { 
				name = "Hermann I"
				ruling_only = yes
			}
			has_idea = GER_Hermann_von_Goering_hog_npo
		}
	}
  
	option = {
		name = goering.16.a
		add_manpower = -50
		add_war_support = 0.03
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		hidden_effect = {
			country_event = {
				id = goering.17
				days = 23
			}
		}
	}
}

country_event = { #Hans Frank
	id = goering.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.17"}
	title = goering.17.t
	desc = goering.17.d
	picture = GFX_report_event_TZN_schmitt

	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		OR = {
			has_country_leader = { 
				name = "Hermann von Göring"
				ruling_only = yes
			}
			has_country_leader = { 
				name = "Hermann I"
				ruling_only = yes
			}
			has_idea = GER_Hermann_von_Goering_hog_npo
		}
	}

	option = {
		name = goering.17.a
		add_manpower = -50
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
	}
}

country_event = { #Nephew
	id = goering.18
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.17"}
	title = goering.18.t
	desc = goering.18.d
	picture = GFX_report_event_TZN_werner

	fire_only_once = yes
	is_triggered_only = yes

trigger = {
		OR = {
			has_country_leader = { 
				name = "Hermann von Göring"
				ruling_only = yes
			}
			has_country_leader = { 
				name = "Hermann I"
				ruling_only = yes
			}
			has_idea = GER_Hermann_von_Goering_hog_npo
		}
	}

	option = {
		name = goering.18.a
		add_political_power = 10
	}
	
	option = {
		name = goering.18.b
		add_popularity = {
			ideology = national_populist
			popularity = 0.02
		}
		add_stability = 0.02
	}
	
	option = {
		name = goering.18.c
		add_war_support = 0.05
		add_political_power = -10
		add_manpower = -1
	}
}

country_event = { #Lion baby
	id = goering.19
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.18"}
	title = goering.19.t
	desc = goering.19.d
	picture = GFX_GER_Schleicher_6
	
trigger = {
		OR = {
			has_country_leader = { 
				name = "Hermann von Göring"
				ruling_only = yes
			}
			has_country_leader = { 
				name = "Hermann I"
				ruling_only = yes
			}
			has_idea = GER_Hermann_von_Goering_hog_npo
		}
	}

	fire_only_once = yes
	is_triggered_only = yes

  
	option = {
		name = goering.19.a
		add_political_power = 10
		add_stability = 0.01
		if = {
			limit = { tag = TZN }
			remove_ideas_with_trait = security_minister
			add_ideas = MAF_Mucki_sec_npo
		}
	}
}

country_event = { #Reemtsma
	id = goering.20
	immediate = {log = "[GetDateText]: [Root.GetName]: event goering.20"}
	title = goering.20.t
	desc = goering.20.d
	picture = GFX_report_event_TZN_reemtsma

	fire_only_once = yes
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
trigger = {
		OR = {
			has_country_leader = { 
				name = "Hermann von Göring"
				ruling_only = yes
			}
			has_country_leader = { 
				name = "Hermann I"
				ruling_only = yes
			}
			has_idea = GER_Hermann_von_Goering_hog_npo
		}
	}
  
	option = {
		name = goering.20.a
		add_offsite_building = { type = industrial_complex level = 1 }
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
		}
	}
}