situation_zoosubmission = { #Zoo Submission
	category = neutral
	picture = GFX_evt_alien_wildlife
	start_value = 400
	initial_progress = 400
	abort_trigger = {
		OR = {
			target = { is_colony = no }
			owner = { is_ai = yes }
			NOT = {	exists = target.owner }
			target.owner = { NOT = { is_same_value = root.owner } }
		}
	}
	progress_direction = bidirectional
	complete_category = positive
	fail_category = negative
	complete_icon_frame = GFX_situation_outcome_frame_green
	fail_icon_frame = GFX_situation_outcome_frame_red
	complete_icon = GFX_situation_outcome_positive
	fail_icon = GFX_situation_outcome_negative

	on_progress_complete = { #When situation succeeds
		custom_tooltip = "situation_zoosubmission_success"
		target = {
			add_modifier = {
				modifier = pe_grateful_pops
				days = 360
			}
		}
		situation_event = {
			id = planetary_exploration_situation.105
			days = 1
		}	
		hidden_effect = {
			situation_event = {
				id = planetary_exploration_situation.106
				days = 1
			}
			target = { #Remove Flags on Situatuon end
				remove_planet_flag = eager_1
				remove_planet_flag = eager_2
				remove_planet_flag = submit_1
				remove_planet_flag = submit_2
				remove_planet_flag = colony_event
			}
		}
	}

	on_fail = { #When situation fails
		custom_tooltip = "situation_zoosubmission_fail"
		target = {
			if = {
				limit = {
					current_situation_approach = situation_zoosubmission_encourage
					owner = {
						OR = {
							has_ethic = ethic_fanatic_xenophile
							has_ethic = ethic_xenophile
						}
						OR = {
							has_valid_civic = civic_WL_lv_ecoterrorism
							has_valid_civic = civic_WL_lv_ecosynchronism
							has_valid_civic = civic_WL_lv_bestial_hedonism
							has_valid_civic = civic_WL_lv_zoophilic_rituals
						}
					}
				}
				add_modifier = {
					modifier = pm_zoo_integrated
					days = -1
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							current_situation_approach = situation_zoosubmission_encourage
							NOT = {
								OR = {
									has_ethic = ethic_fanatic_xenophile
									has_ethic = ethic_xenophile
								}
								OR = {
									has_valid_civic = civic_WL_lv_ecoterrorism
									has_valid_civic = civic_WL_lv_ecosynchronism
									has_valid_civic = civic_WL_lv_bestial_hedonism
									has_valid_civic = civic_WL_lv_zoophilic_rituals
								}
							}
						}
						
						current_situation_approach = situation_zoosubmission_fight
						current_situation_approach = situation_zoosubmission_purge
						current_situation_approach = situation_zoosubmission_neutral
					}
				}
				random_list = {
					5 = { #Add Feral Planet
						modifier = {
							factor = 2
							current_situation_approach = situation_zoosubmission_fight
						}
						modifier = {
							factor = 100
							current_situation_approach = situation_zoosubmission_purge
						}
						add_modifier = {
							modifier = pe_feral_planet
							days = -1
						}
					}
					5 = { #Add Broken World
						modifier = {
							factor = 2
							current_situation_approach = situation_zoosubmission_encourage
						}
						add_modifier = {
							modifier = pe_broken_planet
							days = -1
						}
					}
				}
			}
		}
		situation_event = {
			id = planetary_exploration_situation.104
			days = 1
		}
		hidden_effect = { #Remove Flags on situation end
			target = {
				remove_planet_flag = eager_1
				remove_planet_flag = eager_2
				remove_planet_flag = submit_1
				remove_planet_flag = submit_2
				remove_planet_flag = colony_event
			}
		}
	}
	
	on_abort = { # Remove situation flag if situation ends prematurely
		target = {
			remove_planet_flag = eager_1
			remove_planet_flag = eager_2
			remove_planet_flag = submit_1
			remove_planet_flag = submit_2
			remove_planet_flag = colony_event
		}
	}
	stages = {
		stage_3 = {
			icon = GFX_situation_stage_3
			icon_background = GFX_situation_stage_frame_red
			end = 150
			on_first_enter = {
				situation_event = {
					id = planetary_exploration_situation.102
				}
			}
			custom_tooltip = "zoosubmission_stage3_tooltip"
		}
		stage_2 = {
			icon = GFX_situation_stage_2
			icon_background = GFX_situation_stage_frame_blue
			end = 300
			custom_tooltip = "zoosubmission_stage2_tooltip"
		}
		stage_1 = {
			icon = GFX_situation_stage_1
			icon_background = GFX_situation_stage_frame_blue
			end = 500
			custom_tooltip = "zoosubmission_stage1_tooltip"
		}
		stage_2_alt = {
			icon = GFX_situation_stage_2
			icon_background = GFX_situation_stage_frame_blue
			end = 700
			custom_tooltip = "zoosubmission_stage2_alt_tooltip"
		}
		stage_3_alt = { 
			icon = GFX_situation_stage_3
			icon_background = GFX_situation_stage_frame_green
			end = 1000
			on_first_enter = {
				situation_event = {
					id = planetary_exploration_situation.103
					days = 1
				}
			}
			custom_tooltip = "zoosubmission_stage3_alt_tooltip"
		}
	}
	
	approach = {# Submit Response
		name = situation_zoosubmission_encourage
		icon = GFX_situation_approach_heart
		icon_background = GFX_situation_approach_bg_green
		on_select = {
			custom_tooltip = "situation_zoosubmission_encourage_tt"
		}
		allow = { #Available only to pacifists/fanatic xenophiles/sluts
			NOT = { has_situation_flag = path_locked }
			owner = {
				NOR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
					has_valid_civic = civic_natural_design
					has_valid_civic = civic_pompous_purists
					has_valid_civic = civic_hive_natural_design
					has_valid_civic = civic_obsessive_concubinage
					has_valid_civic = civic_biological_slaves_machine
					has_valid_civic = civic_fanatic_purifiers
					has_valid_civic = civic_hive_devouring_swarm
					has_valid_civic = civic_machine_terminator
				}
				OR = {
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
					has_valid_civic = civic_pleasure_seekers
					has_valid_civic = civic_corporate_hedonism
					has_valid_civic = civic_lv_sex_crazed_breeders
					has_valid_civic = civic_lv_divine_coupling
					has_valid_civic = civic_void_prurience
					has_valid_civic = civic_void_prurience_corporate
					has_valid_civic = civic_obedient_breed
					has_valid_civic = civic_corporate_obedient_breed
					has_valid_civic = civic_hive_obedient_breed
				}
			}	
		}
		modifier = {
			pop_ethic_pacifist_attraction_mult = 0.2
		}
	}
	approach = {# Neutral Response
		name = situation_zoosubmission_neutral
		icon = GFX_situation_approach_scales
		icon_background = GFX_situation_approach_bg_yellow
		default = yes
		on_select = {
			custom_tooltip = "situation_zoosubmission_neutral_tt"
		}
		allow = { #Not available to fanatic xenophobe/militarist/pompus/purgers
			NOT = { has_situation_flag = path_locked }
			owner = {
				NOR = {
					has_ethic = ethic_fanatic_xenophobe
					has_ethic = ethic_fanatic_militarist
					has_valid_civic = civic_natural_design
					has_valid_civic = civic_pompous_purists
					has_valid_civic = civic_hive_natural_design
					has_valid_civic = civic_obsessive_concubinage
					has_valid_civic = civic_biological_slaves_machine
					has_valid_civic = civic_fanatic_purifiers
					has_valid_civic = civic_hive_devouring_swarm
					has_valid_civic = civic_machine_terminator
				}
			}
		}
	}
	approach = {# Fight Response
		name = situation_zoosubmission_fight
		icon = GFX_situation_approach_scales
		icon_background = GFX_situation_approach_bg_yellow
		on_select = {
			custom_tooltip = "situation_zoosubmission_fight_tt"
		}
		allow = { #Not available to fanatic xenophiles/pacifist/sluts/purgers
			NOT = { has_situation_flag = path_locked }
			owner = {
				NOR = {
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_fanatic_pacifist
					has_valid_civic = civic_pleasure_seekers
					has_valid_civic = civic_corporate_hedonism
					has_valid_civic = civic_lv_sex_crazed_breeders
					has_valid_civic = civic_lv_divine_coupling
					has_valid_civic = civic_void_prurience
					has_valid_civic = civic_void_prurience_corporate
					has_valid_civic = civic_obedient_breed
					has_valid_civic = civic_corporate_obedient_breed
					has_valid_civic = civic_hive_obedient_breed
					has_valid_civic = civic_fanatic_purifiers
					has_valid_civic = civic_hive_devouring_swarm
					has_valid_civic = civic_machine_terminator
				}
			}
		}
	}
	approach = {# Purge Response
		name = situation_zoosubmission_purge
		icon = GFX_situation_approach_fist
		icon_background = GFX_situation_approach_bg_red
		on_select = {
			custom_tooltip = "situation_zoosubmission_purge_tt"
		}
		allow = { #Not available to xenophiles/pacifist/sluts/naturist
			owner = {
				NOR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
					has_valid_civic = civic_pleasure_seekers
					has_valid_civic = civic_corporate_hedonism
					has_valid_civic = civic_lv_sex_crazed_breeders
					has_valid_civic = civic_lv_divine_coupling
					has_valid_civic = civic_void_prurience
					has_valid_civic = civic_void_prurience_corporate
					has_valid_civic = civic_obedient_breed
					has_valid_civic = civic_corporate_obedient_breed
					has_valid_civic = civic_hive_obedient_breed
					has_valid_civic = civic_guided_sapience
					has_valid_civic = civic_hive_guided_sapience
					has_valid_civic = civic_machine_guided_sapience
					has_valid_civic = civic_corporate_guided_sapience
					has_valid_civic = civic_lv_open_door_policy
					has_valid_civic = civic_beastmasters
				}
			}
		}
		target_modifier = {
			pop_ethic_militarist_attraction_mult = 0.2
		}
	}
	monthly_progress = {
		base = -10
		modifier = {
			mult = 1.2
			desc = "situation_zoosubmission_encourage_approach_tt"
			current_situation_approach = situation_zoosubmission_encourage
		}
		modifier = {
			mult = -1.2
			desc = "situation_zoosubmission_fight_approach_tt"
			current_situation_approach = situation_zoosubmission_fight
		}
		modifier = {
			mult = -3
			desc = "situation_zoosubmission_purge_approach_tt"
			current_situation_approach = situation_zoosubmission_purge
		}
	}
	on_monthly = { #Events to fire during situation
		events = { #Monthly event to lock in purge/add devestation
			planetary_exploration_situation.101
		}
		random_events = { # Should be 1/5 chance of event firing
			104 = 0
			1 = planetary_exploration_situation.107
			1 = planetary_exploration_situation.108
			3 = planetary_exploration_situation.109
			3 = planetary_exploration_situation.110
			1 = planetary_exploration_situation.111
			2 = planetary_exploration_situation.112
			1 = planetary_exploration_situation.113
			3 = planetary_exploration_situation.114
			1 = planetary_exploration_situation.115
			2 = planetary_exploration_situation.116
			3 = planetary_exploration_situation.117
			3 = planetary_exploration_situation.118
			2 = planetary_exploration_situation.119
		}
	}
}