# Goering
GER_BoP_category = {
	GGR_SAW_Fight_For_The_Reich = {
		allowed = { original_tag = GER }
		icon = GFX_decision_generic_bombing
		fire_only_once = yes
		ai_will_do = { factor = 100 }
		visible = {
			TNO_fopo_saw_selected_goring = yes
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SGR_SAW_increase_volunteers_tt
				hidden_trigger = {
					OR = {
						check_variable = { GGR_SAW_involvement = GGR_SAW_involvement_check }
						check_variable = { GGR_SAW_involvement > GGR_SAW_involvement_check }
					}
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GGR_SAW_Fight_For_The_Reich"
			GGR_SAW_victory_policy = yes
		}


	}
	GGR_SAW_war_report = {
		icon = GFX_decision_generic_assault
		activation = {
			AND = {
				has_country_flag = GER_SAW_intervention
				has_global_flag = south_african_war_happening
				has_global_flag = german_civil_war_goeringvic
			}
			NOT = {
				OR = {
					has_global_flag = SAF_WAR_OVER
					has_idea = GGR_total_economic_collapse
				}
			}
		}
		available = {
			hidden_trigger = {
				OR = {
					has_global_flag = SAF_WAR_OVER
					NOT = { has_global_flag = south_african_war_happening }
					NOT = { has_country_flag = GER_SAW_intervention }
					has_variable = saw_withdrawal
				}
			}
		}

		is_good = yes
		days_mission_timeout = 14

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Mission GER_Goring_SAF_war_report"
			GGR_SAW_protest_growth = yes
		}
	}

	GER_Goring_SAF_war_effort_failure = {
		icon = GFX_decision_generic_assault

		activation = {
			always = no
			custom_trigger_tooltip = {
				tooltip = SGR_SAW_war_failure_tt
				has_country_flag = GER_SAW_intervention
				has_global_flag = german_civil_war_goeringvic
				has_global_flag = south_african_war_happening
				hidden_trigger = { NOT = { check_variable = { GGR_SAW_civilian_protest < 90 } } }
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SGR_SAW_war_save_tt
				has_global_flag = south_african_war_happening
				check_variable = { GGR_SAW_civilian_protest < 90 }
				NOT = { is_in_array = { TNO_active_conflicts = 1 } } #can't trigger after SAW tab removed
			}
		}

		is_good = no
		days_mission_timeout = 30

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Mission GER_Goring_SAF_war_effort_failure"
			TNO_fopo_add_saw_withdrawal_tab = yes
			clr_country_flag = GER_SAW_intervention
		}
	}

	GER_Goring_SAF_withdraw_from_the_war = {
		icon = GFX_decision_generic_political_action
		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = SGR_SAW_involvement_0_tt
					check_variable = { GGR_SAW_involvement = 0 }
				}
				custom_trigger_tooltip = {
					tooltip = SGR_SAW_protests_overwhelming_tt
					check_variable = { GGR_SAW_civilian_protest > 75 }
				}
			}
		}

		cost = 30
		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_withdraw_from_the_war"
			TNO_fopo_add_saw_withdrawal_tab = yes
		}

		ai_will_do = {
			factor = 0
			modifier = {
				check_variable = { GGR_SAW_civilian_protest > 75 }
				factor = 100
			}
		}

		visible = {
			TNO_fopo_saw_selected_goring = yes
		}
	}

	GER_Goring_SAF_increase_volunteers = {
		icon = GFX_decision_generic_political_action

		visible = {
			TNO_fopo_saw_selected_goring = yes
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = GGR_SAW_increase_volunteers_tt
				hidden_trigger = {
					OR = {
						check_variable = { GGR_SAW_involvement = GGR_SAW_involvement_check }
						check_variable = { GGR_SAW_involvement > GGR_SAW_involvement_check }
					}
				}
			}
		}

		cost = 30

		days_remove = 0
		days_re_enable = 0

		remove_effect = {

		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_increase_volunteers"
			add_to_variable = { GGR_SAW_involvement_check = 10 }

			set_temp_variable = { target = COG }
			TNO_increase_volunteer_cap_1 = yes
			set_temp_variable = { target = ANG }
			TNO_increase_volunteer_cap_1 = yes
			set_temp_variable = { target = GRO }
			TNO_increase_volunteer_cap_1 = yes
			set_temp_variable = { target = BOR }
			TNO_increase_volunteer_cap_1 = yes

			GGR_SAW_involvement_increase_med = yes
		}

		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_decrease_volunteers = {
		icon = GFX_decision_generic_political_action

		visible = {
			TNO_fopo_saw_selected_goring = yes
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SGR_SAW_decrease_volunteers_tt
				hidden_trigger = {
					is_in_array = { TNO_volunteers_tags = COG.id }
					check_variable = { GGR_SAW_involvement_check > 10 }
					check_variable = { GGR_SAW_involvement > 0 }
				}
			}
		}

		cost = 30

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Bormann_SAF_decrease_volunteers"
			#Stuff

			set_temp_variable = { target = COG }
			TNO_decrease_volunteer_cap_1 = yes
			set_temp_variable = { target = ANG }
			TNO_decrease_volunteer_cap_1 = yes
			set_temp_variable = { target = GRO }
			TNO_decrease_volunteer_cap_1 = yes
			set_temp_variable = { target = BOR }
			TNO_decrease_volunteer_cap_1 = yes

			GGR_SAW_involvement_decrease_med = yes
		}
		ai_will_do = { factor = 0 }
	}

	### PROPAGANDA DECISIONS ###
	GER_Goring_SAF_propaganda_open = {
		icon = GFX_decision_generic_political_action
		visible = {
			NOT = { has_country_flag = GER_Goring_SAF_propaganda_opened }
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_propaganda_open"
			set_country_flag = GER_Goring_SAF_propaganda_opened
		}
	}
	GER_Goring_SAF_propaganda_close = {
		icon = GFX_decision_generic_political_action
		visible = {
			has_country_flag = GER_Goring_SAF_propaganda_opened
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_propaganda_close"
			clr_country_flag = GER_Goring_SAF_propaganda_opened
		}
	}

	GER_Goring_SAF_propaganda_small = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_propaganda_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		cost = 25
		days_remove = 28
		days_re_enable = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_propaganda_small"
			GGR_SAW_protest_decrease_small = yes
		}
		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_propaganda_med = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_propaganda_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		cost = 50
		days_remove = 28
		days_re_enable = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_propaganda_med"
			GGR_SAW_protest_decrease_med = yes
		}
		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_propaganda_big = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_propaganda_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		cost = 75
		days_remove = 28
		days_re_enable = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_propaganda_big"
			GGR_SAW_protest_decrease_big = yes
		}
		ai_will_do = { factor = 5 }
	}

	### EQUIPMENT DECICIONS ###
	GER_Goring_SAF_equipment_open = {
		icon = GFX_decision_generic_political_action
		visible = {
			NOT = { has_country_flag = GER_Goring_SAF_equipment_opened }
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_equipment_open"
			set_country_flag = GER_Goring_SAF_equipment_opened
		}
	}
	GER_Goring_SAF_equipment_close = {
		icon = GFX_decision_generic_political_action
		visible = {
			has_country_flag = GER_Goring_SAF_equipment_opened
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_equipment_close"
			clr_country_flag = GER_Goring_SAF_equipment_opened
		}
	}

	GER_Goring_SAF_equipment_guns = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_equipment_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}
		available = {
			has_equipment = {
				infantry_equipment > 2999
			}
		}

		custom_cost_trigger = {
			has_political_power > 9.99
			command_power > 9.99
		}
		custom_cost_text = decision_cost_10_cp_10_pp
		days_remove = 21
		days_re_enable = 14

		remove_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 1000
				target = GRO
			}
			send_equipment = {
				equipment = infantry_equipment
				amount = 1000
				target = ANG
			}
			send_equipment = {
				equipment = infantry_equipment
				amount = 1000
				target = ANG
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_equipment_small"
			hidden_effect = {
				add_command_power = -10
				add_political_power = -10
			}
			GGR_SAW_protest_increase_small = yes
		}
		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_equipment_antitank = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_equipment_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		available = {
			has_equipment = {
				artillery_equipment > 1499
			}
			has_equipment = {
				anti_tank_equipment > 449
			}
		}

		custom_cost_trigger = {
			has_political_power > 19.99
			command_power > 19.99
		}
		custom_cost_text = decision_cost_20_cp_20_pp
		days_remove = 21
		days_re_enable = 14

		remove_effect = {
			send_equipment = {
				equipment = artillery_equipment
				amount = 500
				target = GRO
			}
			send_equipment = {
				equipment = anti_tank_equipment
				amount = 150
				target = GRO
			}
			send_equipment = {
				equipment = artillery_equipment
				amount = 500
				target = ANG
			}
			send_equipment = {
				equipment = anti_tank_equipment
				amount = 150
				target = ANG
			}
			send_equipment = {
				equipment = artillery_equipment
				amount = 500
				target = COG
			}
			send_equipment = {
				equipment = anti_tank_equipment
				amount = 150
				target = COG
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Bormann_SAF_equipment_small"
			hidden_effect = {
				add_command_power = -20
				add_political_power = -20
			}
			GGR_SAW_protest_increase_med = yes
		}
		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_equipment_helicopters = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_equipment_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		available = {
			has_equipment = {
				attack_helicopter_equipment > 299
			}
		}

		custom_cost_trigger = {
			has_political_power > 29.99
			command_power > 29.99
		}
		custom_cost_text = decision_cost_30_cp_30_pp
		days_remove = 21
		days_re_enable = 14

		remove_effect = {
			send_equipment = {
				equipment = attack_helicopter_equipment
				amount = 100
				target = GRO
			}
			send_equipment = {
				equipment = attack_helicopter_equipment
				amount = 100
				target = ANG
			}
			send_equipment = {
				equipment = attack_helicopter_equipment
				amount = 100
				target = COG
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Bormann_SAF_equipment_small"
			hidden_effect = {
				add_command_power = -30
				add_political_power = -30
			}
			GGR_SAW_protest_increase_med = yes
		}
		ai_will_do = { factor = 5 }
	}

	### REINFORCEMENTS DECISIONS ###
	GER_Goring_SAF_reinforcements_open = {
		icon = GFX_decision_generic_political_action
		visible = {
			NOT = { has_country_flag = GER_Goring_SAF_reinforcements_opened }
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_reinforcements_open"
			set_country_flag = GER_Goring_SAF_reinforcements_opened
		}
	}
	GER_Goring_SAF_reinforcements_close = {
		icon = GFX_decision_generic_political_action
		visible = {
			has_country_flag = GER_Goring_SAF_reinforcements_opened
			is_ai = no
			TNO_fopo_saw_selected_goring = yes
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_reinforcements_close"
			clr_country_flag = GER_Goring_SAF_reinforcements_opened
		}
	}

	GER_Goring_SAF_reinforcements = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_reinforcements_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}
		available = {
			has_manpower > 4500
		}

		custom_cost_trigger = {
			has_political_power > 29.99
			command_power > 29.99
		}
		custom_cost_text = decision_cost_30_cp_30_pp
		days_remove = 14
		days_re_enable = 14

		remove_effect = {
			ANG = {
				add_manpower = 1500
			}
			GRO = {
				add_manpower = 1500
			}
			COG = {
				add_manpower = 1500
			}
			add_to_variable = {GER_Goring_SAF_manpower = 4500}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_reinforcements"
			hidden_effect = {
				add_command_power = -30
				add_political_power = -30
			}
			add_manpower = -4500
			GGR_SAW_involvement_increase_big = yes
		}
		ai_will_do = { factor = 5 }
	}

	GER_Goring_SAF_drugs = {
		icon = GFX_decision_generic_political_action
		visible = {
			OR = {
				has_country_flag = GER_Goring_SAF_reinforcements_opened
				is_ai = yes
			}
			TNO_fopo_saw_selected_goring = yes
		}

		custom_cost_trigger = {
			has_political_power > 29.99
			command_power > 29.99
		}
		custom_cost_text = decision_cost_30_cp_30_pp
		days_remove = 7
		days_re_enable = 113

		remove_effect = {
			ANG = {
				add_timed_idea = {
					idea = GER_GGR_drugs_SAW
					days = 120
				}
			}
			GRO = {
				add_timed_idea = {
					idea = GER_GGR_drugs_SAW
					days = 120
				}
			}
			COG = {
				add_timed_idea = {
					idea = GER_GGR_drugs_SAW
					days = 120
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_SAF_drugs"
			hidden_effect = {
				add_command_power = -30
				add_political_power = -30
			}
			GGR_SAW_involvement_increase_med = yes
			GGR_SAW_protest_increase_med = yes
		}
		ai_will_do = { factor = 5 }
	}

	### GENERIC DECISIONS ###
	GER_Goring_Deploy_Speidelite_Officers = {
		icon = GFX_decision_generic_military_parade
		visible = {
			TNO_fopo_saw_selected_goring = yes
		}

		custom_cost_trigger = {
			command_power > 19.99
		}

		custom_cost_text = decision_cost_20_cp
		days_remove = 10
		days_re_enable = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_Deploy_Speidelite_Officers"
			hidden_effect = {
				add_command_power = -20
				add_political_power = -25
			}
			GGR_SAW_involvement_increase_med = yes
			GGR_SAW_protest_increase_small = yes
		}
		remove_effect = {
			GGR_increase_militarist_hawkishness  = yes
			GGR_increase_militarist_loyalty_large = yes
			GRO = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
			COG = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
			ANG = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
		}
	}
	GER_Goring_Deploy_Schornerite_Officers = {
		icon = GFX_decision_generic_military_parade
		visible = {
			TNO_fopo_saw_selected_goring = yes
		}

		custom_cost_trigger = {
			command_power > 19.99
		}

		custom_cost_text = decision_cost_20_cp
		days_remove = 10
		days_re_enable = 100

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision GER_Goring_Deploy_Schornerite_Officers"
			hidden_effect = {
				add_command_power = -20
				add_political_power = -25
			}
			GGR_SAW_involvement_increase_med = yes
			GGR_SAW_protest_increase_small = yes
		}
		remove_effect = {
			GGR_decrease_militarist_power_large = yes
			GGR_decrease_militarist_loyalty_large = yes
			GRO = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
			COG = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
			ANG = {
				add_manpower = 250
				add_command_power = 30
				army_experience = 25
			}
		}
	}
}