situation_event = {# World Defeated Event
	id = planetary_exploration_situation.104
	is_triggered_only = yes
	fire_only_once = no
	picture = { #Picture randomizer
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 1
					}
				}
			}
			picture = GFX_evt_pv_beast
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 2
					}
				}
			}
			picture = GFX_evt_pv_beast_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 3
					}
				}
			}
			picture = GFX_evt_pv_beast_3
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 4
					}
				}
			}
			picture = GFX_evt_pv_beast_4
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 5
					}
				}
			}
			picture = GFX_evt_pv_beast_5
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 6
					}
				}
			}
			picture = GFX_evt_pv_beast_6
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 7
					}
				}
			}
			picture = GFX_evt_pv_beast_7
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 8
					}
				}
			}
			picture = GFX_evt_pv_beast_8
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 9
					}
				}
			}
			picture = GFX_evt_pv_beast_9
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 10
					}
				}
			}
			picture = GFX_evt_pv_conquered
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 11
					}
				}
			}
			picture = GFX_evt_pv_horse
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 12
					}
				}
			}
			picture = GFX_evt_pv_horse_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 13
					}
				}
			}
			picture = GFX_evt_pv_horse_3
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 14
					}
				}
			}
			picture = GFX_evt_pv_horse_4
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 15
					}
				}
			}
			picture = GFX_evt_pv_horse_5
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 16
					}
				}
			}
			picture = GFX_evt_pv_horse_6
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 17
					}
				}
			}
			picture = GFX_evt_pv_horse_7
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 18
					}
				}
			}
			picture = GFX_evt_pv_horse_8
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 19
					}
				}
			}
			picture = GFX_evt_pv_horse_9
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 20
					}
				}
			}
			picture = GFX_evt_pv_goblins
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 21
					}
				}
			}
			picture = GFX_evt_pv_goblins_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 22
					}
				}
			}
			picture = GFX_evt_pv_goblins_3
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 23
					}
				}
			}
			picture = GFX_evt_pv_goblins_4
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 24
					}
				}
			}
			picture = GFX_evt_pv_insect
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 25
					}
				}
			}
			picture = GFX_evt_pv_insect_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 26
					}
				}
			}
			picture = GFX_evt_pv_insect_3
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 27
					}
				}
			}
			picture = GFX_evt_pv_insect_4
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 28
					}
				}
			}
			picture = GFX_evt_pv_generic
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 29
					}
				}
			}
			picture = GFX_evt_pv_public_5
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 30
					}
				}
			}
			picture = GFX_evt_pv_public_6
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 31
					}
				}
			}
			picture = GFX_evt_pv_spider
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 32
					}
				}
			}
			picture = GFX_evt_pv_spider_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 33
					}
				}
			}
			picture = GFX_evt_pv_canine
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 34
					}
				}
			}
			picture = GFX_evt_pv_canine_2
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 35
					}
				}
			}
			picture = GFX_evt_pv_canine_3
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 36
					}
				}
			}
			picture = GFX_evt_pv_canine_4
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 37
					}
				}
			}
			picture = GFX_evt_pv_canine_5
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 38
					}
				}
			}
			picture = GFX_evt_pv_canine_6
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 39
					}
				}
			}
			picture = GFX_evt_pv_canine_7
		}
		picture = {
			trigger = {
				owner = {
					check_variable = {
						which = pe_image
						value = 40
					}
				}
			}
			picture = GFX_evt_pv_canine_8
	}
	show_sound = event_swarm
	location = target
	title = "planetary_exploration_situation.104.name"
	desc = { #Feral Text
		trigger = {
			target = {
				has_modifier = pe_feral_planet
			}
		}
		text = planetary_exploration_situation.104.desc
	}
	desc = { #Broken Text
		trigger = {
			target = {
				has_modifier = pe_broken_planet
			}
		}
		text = planetary_exploration_situation.104a.desc
	}
	desc = { #Integrated Text
		trigger = {
			target = {
				has_modifier = pm_zoo_integrated
			}
		}
		text = planetary_exploration_situation.104b.desc
	}

	option = {# Submit Integrated Response
		trigger = {
			current_situation_approach = situation_zoosubmission_encourage
			target = {
				has_modifier = pm_zoo_integrated
			}
		}
		name = planetary_exploration_situation.104.e
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 5
				min = 240
				max = 20000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pm_zoo_integrated
				}
			}
		}
		target = {
			add_building = building_pe_breeder_kennel
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Submit Feral Response
		trigger = {
			current_situation_approach = situation_legalizezoo_encourage
			target = {
				has_modifier = pe_feral_planet
			}
		}
		name = planetary_exploration_situation.104.a
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 5
				min = 240
				max = 20000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_feral_planet
				}
			}
		}
		target = {
			add_building = building_pe_alpha_den
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Neutral Feral Response
		trigger = {
			current_situation_approach = situation_legalizezoo_neutral
			target = {
				has_modifier = pe_feral_planet
			}
		}
		name = planetary_exploration_situation.104.b
		owner = {
			add_resource = {
				unity = -500
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_feral_planet
				}
			}
		}
		target = {
			add_building = building_pe_alpha_den
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Fight Feral Response
		trigger = {
			current_situation_approach = situation_legalizezoo_fight
			target = {
				has_modifier = pe_feral_planet
			}
		}
		name = planetary_exploration_situation.104.c
		owner = {
			add_resource = {
				unity = -2000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_feral_planet
				}
			}
		}
		target = {
			add_building = building_pe_alpha_den
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Submit Broken Response
		trigger = {
			current_situation_approach = situation_legalizezoo_encourage
			target = {
				has_modifier = pe_broken_planet
			}
		}
		name = planetary_exploration_situation.104.a
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 5
				min = 240
				max = 20000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_broken_planet
				}
			}
		}
		target = {
			add_building = building_pe_breeder_kennel
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Neutral Broken Response
		trigger = {
			current_situation_approach = situation_legalizezoo_neutral
			target = {
				has_modifier = pe_broken_planet
			}
		}
		name = planetary_exploration_situation.104.b
		owner = {
			add_resource = {
				unity = -500
			}
		}
		target = {
			add_modifier = {
				modifier = pe_broken_planet
			}
		}
		target = {
			add_building = building_pe_breeder_kennel
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Fight Broken Response
		trigger = {
			current_situation_approach = situation_legalizezoo_fight
			target = {
				has_modifier = pe_broken_planet
			}
		}
		name = planetary_exploration_situation.104.c
		owner = {
			add_resource = {
				unity = -2000
			}
		}
		target = {
			add_modifier = {
				modifier = pe_broken_planet
			}
		}
		target = {
			add_building = building_pe_breeder_kennel
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = { # Purge Response
		trigger = {
			current_situation_approach = situation_legalizezoo_purge
		}
		name = planetary_exploration_situation.104.d
		owner = {
			add_resource = {
				unity = -10000
			}
		}
		target = {
			change_pc = pc_nuked
			add_planet_devastation = 50
			remove_modifier = dangerous_wildlife
		}
		
		hidden_effect = {
			destroy_situation = this
			target = {
				remove_planet_flag = colony_event
				remove_modifier = pe_broken_planet
				remove_modifier = pe_feral_planet
			}
		}
	}
}

situation_event = {# Planet Defended situation_zoosubmission
	id = planetary_exploration_situation.105
	is_triggered_only = yes
	fire_only_once = no
	picture = GFX_evt_happy_reunion
	show_sound = event_celebration
	location = target
	title = "planetary_exploration_situation.105.name"
	desc = planetary_exploration_situation.105.desc
	trigger = {
		And = {
			exists = target
			exists = this
			NOT = {
				current_situation_approach = situation_zoosubmission_purge
			}
		}
	}
	option = {# Submit Response
		trigger = {
			current_situation_approach = situation_zoosubmission_encourage
		}
		name = planetary_exploration_situation.105.a
		owner = {
			add_resource = {
				unity = -500
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_grateful_pops
					days = 360
				}
			}
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Neutral Response
		trigger = {
			current_situation_approach = situation_zoosubmission_neutral
		}
		name = planetary_exploration_situation.105.b
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 2
				min = 240
				max = 4000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_grateful_pops
					days = 360
				}
			}
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
	option = {# Fight Response
		trigger = {
			current_situation_approach = situation_zoosubmission_fight
		}
		name = planetary_exploration_situation.105.c
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 4
				min = 240
				max = 20000
			}
		}
		tooltip = {
			target = {
				add_modifier = {
					modifier = pe_grateful_pops
					days = 360
				}
			}
		}
		hidden_effect = {
			destroy_situation = this
		}
	}
}

