namespace = Mod_Nuclear_production_JE_events

Mod_Nuclear_production_JE_events.1 = {
	type = country_event

	## Jet Airport

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/airport_hub.dds"
	}

	duration = 3

	placement = scope:airport_state

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	title = Mod_Nuclear_production_JE_events.1.t
	desc = Mod_Nuclear_production_JE_events.1.d
	flavor = Mod_Nuclear_production_JE_events.1.f

	immediate = {
		random_scope_state = {
			limit = {
				any_scope_building = {
					is_building_type = building_nuclear_jet_airport
					occupancy >= 0.5
					level >= 5
				}
			}
			save_scope_as = airport_state
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.1.a
		default_option = yes
		scope:airport_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_airport_hub_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.1.b
		trigger = {
			NOT = { has_technology_researched = general_aviation }
			can_research = general_aviation
		}
		add_technology_progress = { progress = 2500 technology = general_aviation }
	}
}


Mod_Nuclear_production_JE_events.2 = {
	type = country_event

	## Aerial Farming

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/aerial_farming.dds"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	duration = 3
	placement = root

	title = Mod_Nuclear_production_JE_events.2.t
	desc = Mod_Nuclear_production_JE_events.2.d
	flavor = Mod_Nuclear_production_JE_events.2.f

	immediate = {
	}

	option = {
		name = Mod_Nuclear_production_JE_events.2.a
		default_option = yes
		add_modifier = {
			name = tractor_food_for_the_poor
			months = normal_modifier_time
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.2.b
		add_modifier = {
			name = tractor_production
			months = normal_modifier_time
		}
	}
}

Mod_Nuclear_production_JE_events.3 = {
	type = country_event

	## General Aviation

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/vertical_city.dds"
	}

	duration = 3

	placement = scope:airport_state

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	title = Mod_Nuclear_production_JE_events.3.t
	desc = Mod_Nuclear_production_JE_events.3.d
	flavor = Mod_Nuclear_production_JE_events.3.f

	immediate = {
		random_scope_state = {
			limit = {
				any_scope_building = {
					is_building_type = building_urban_center
					occupancy >= 0.5
					level >= 20
				}
			}
			save_scope_as = general_aviation_state
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.3.a
		default_option = yes
		scope:airport_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_general_aviation_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.3.b
		trigger = {
			NOT = { has_technology_researched = automated_systems }
		}
		add_technology_progress = { progress = 2500 technology = automated_systems }
	}
}

Mod_Nuclear_production_JE_events.4 = {
	type = country_event

	## Submerged Farm

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/submerged_farm.dds"
	}

	duration = 3

	placement = scope:submerged_farm_state

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	title = Mod_Nuclear_production_JE_events.4.t
	desc = Mod_Nuclear_production_JE_events.4.d
	flavor = Mod_Nuclear_production_JE_events.4.f

	immediate = {
		random_scope_state = {
			limit = {
				any_scope_building = {
					is_building_type = building_submerged_farm
					occupancy >= 0.5
					level >= 10
				}
			}
			save_scope_as = submerged_farm_state
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.4.a
		default_option = yes
		scope:submerged_farm_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_submerged_farm_production_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.4.b
		scope:submerged_farm_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_submerged_farm_shipbuilding_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.4.c
		scope:submerged_farm_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_submerged_farm_naval_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.4.e
		trigger = {
			NOT = { has_technology_researched = seabed_cracking_device }
		}
		add_technology_progress = { progress = 2500 technology = seabed_cracking_device }
	}
}


Mod_Nuclear_production_JE_events.5 = {
	type = country_event

	## Ocean Mining

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/ocean_mining.dds"
	}

	duration = 3

	placement = scope:ocean_mining_state

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	title = Mod_Nuclear_production_JE_events.5.t
	desc = Mod_Nuclear_production_JE_events.5.d
	flavor = Mod_Nuclear_production_JE_events.5.f

	immediate = {
		random_scope_state = {
			limit = {
				any_scope_building = {
					is_building_type = building_ocean_mining_operation
					occupancy >= 0.5
					level >= 10
				}
			}
			save_scope_as = ocean_mining_state
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.5.a
		default_option = yes
		scope:ocean_mining_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_ocean_mining_production_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.5.b
		scope:ocean_mining_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_ocean_mining_shipbuilding_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.5.c
		add_modifier = {
			name = Mod_Nuclear_JE_ocean_mining_naval_combat_modifier
			months = normal_modifier_time
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.5.d
		trigger = {
			NOT = { has_technology_researched = extreme_condition_processors }
		}
		add_technology_progress = { progress = 2500 technology = extreme_condition_processors }
	}

	option = {
		name = Mod_Nuclear_production_JE_events.5.d
		trigger = {
			NOT = { has_technology_researched = ocean_based_mega_structures }
		}
		add_technology_progress = { progress = 2500 technology = ocean_based_mega_structures }
	}
}

Mod_Nuclear_production_JE_events.6 = {
	type = country_event

	## Cybernetics Production

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/cybernetics.dds"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	duration = 3
	placement = root

	title = Mod_Nuclear_production_JE_events.6.t
	desc = Mod_Nuclear_production_JE_events.6.d
	flavor = Mod_Nuclear_production_JE_events.6.f

	immediate = {
	}

	option = {
		name = Mod_Nuclear_production_JE_events.6.a
		default_option = yes
		add_modifier = {
			name = Mod_Nuclear_JE_cybernetics_science_modifier
			months = normal_modifier_time
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.6.b
		trigger = {
			NOT = { has_technology_researched = human_ego_programming }
		}
		add_technology_progress = { progress = 2000 technology = human_ego_programming }
	}

	option = {
		name = Mod_Nuclear_production_JE_events.6.c
		add_modifier = {
			name = Mod_Nuclear_JE_cybernetics_society_modifier
			months = normal_modifier_time
		}
	}
}


Mod_Nuclear_production_JE_events.7 = {
	type = country_event

	## Ocean Mining

	trigger = {
	}

	event_image = {
		texture = "gfx/Mod_Nuclear_event_pictures/reactor.dds"
	}

	duration = 3

	placement = scope:first_commercial_reactor_state

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/factory_opening"

	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	title = Mod_Nuclear_production_JE_events.7.t
	desc = Mod_Nuclear_production_JE_events.7.d
	flavor = Mod_Nuclear_production_JE_events.7.f

	immediate = {
		random_scope_state = {
			limit = {
				any_scope_building = {
					is_building_type = building_nuclear_reactor
					occupancy >= 0.5
					level >= 10
				}
			}
			save_scope_as = first_commercial_reactor_state
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.7.a
		default_option = yes
		scope:first_commercial_reactor_state = {
			add_modifier = {
				name = Mod_Nuclear_JE_first_commercial_reactor_modifier
				months = normal_modifier_time
			}
		}
	}

	option = {
		name = Mod_Nuclear_production_JE_events.7.b
		trigger = {
			NOT = { has_technology_researched = miniaturized_nuclear_reactor }
		}
		add_technology_progress = { progress = 2000 technology = miniaturized_nuclear_reactor }
	}

	option = {
		name = Mod_Nuclear_production_JE_events.7.c
		trigger = {
			NOT = { has_technology_researched = sophisticated_nuclear_reactor }
		}
		add_technology_progress = { progress = 2000 technology = sophisticated_nuclear_reactor }
	}
}


