## Production Tech

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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = atomic_jets_je_done }
	}

	possible = {
		has_technology_researched = advanced_nuclear_ramjet
		any_scope_building = {
			is_building_type = building_nuclear_jet_airport
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_nuclear_jet_airport
			cash_reserves_ratio > 0.05
			weekly_profit > 0
			occupancy >= 0.5
			level >= 5
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.1 }
		set_variable = {
			name = atomic_jets_je_done
		}
	}

	timeout = 7300
}


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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = aerial_farming_je_done }
		has_technology_researched = advanced_nuclear_ramjet
	}

	possible = {
		has_technology_researched = general_aviation
	}

	complete = {
		any_scope_building = {
			filter = {
				OR = {
					is_building_type = building_rye_farm
					is_building_type = building_wheat_farm
					is_building_type = building_maize_farm
					is_building_type = building_millet_farm
				}
			}
			percent >= 0.75
			trigger = {
				has_active_production_method = pm_aerial_sowing_and_tractor
			}
			cash_reserves_ratio > 0.25
			weekly_profit > 0
			occupancy > 0.75
		}
	}

	on_complete = {
		set_variable = aerial_farming_je_done
		trigger_event = { id =  Mod_Nuclear_production_JE_events.2 }
	}

	timeout = 7300
}



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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = general_aviation_je_done }
		has_technology_researched = advanced_nuclear_ramjet
	}

	possible = {
		has_technology_researched = general_aviation
		any_scope_building = {
			is_building_type = building_urban_center
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_urban_center
			has_active_production_method = pm_general_aviation
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			occupancy >= 0.75
			level >= 20
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.3 }
		set_variable = {
			name = general_aviation_je_done
		}
	}

	timeout = 7300
}


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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = submerged_farm_je_done }
		has_technology_researched = atomic_powered_vessels
	}

	possible = {
		has_technology_researched = permanant_ocean_structures
		any_scope_building = {
			is_building_type = building_submerged_farm
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_submerged_farm
			cash_reserves_ratio > 0.10
			weekly_profit > 0
			occupancy >= 0.5
			level >= 10
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.4 }
		set_variable = {
			name = submerged_farm_je_done
		}
	}

	timeout = 7300
}

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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = ocean_mining_je_done }
		has_technology_researched = permanant_ocean_structures
	}

	possible = {
		has_technology_researched = seabed_cracking_device
		any_scope_building = {
			is_building_type = building_ocean_mining_operation
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_ocean_mining_operation
			cash_reserves_ratio > 0.10
			weekly_profit > 0
			occupancy >= 0.5
			level >= 10
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.5 }
		set_variable = {
			name = ocean_mining_je_done
		}
	}

	timeout = 7300
}



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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = cybernetics_production_je_done }
		has_technology_researched = programmables_tech
	}

	possible = {
		has_technology_researched = cybernetics_circuitry
		any_scope_building = {
			is_building_type = building_circuit_printing
		}
	}

	complete = {
		any_scope_building = {
			filter = {
				is_building_type = building_circuit_printing
			}
			percent > 0.75
			OR = {
				has_active_production_method = pm_organic_material_cybernetics 
				has_active_production_method = pm_stainless_steel_and_glass_cybernetics
			}
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			occupancy >= 0.75
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.6 }
		set_variable = {
			name = cybernetics_production_je_done
		}
	}

	timeout = 7300
}



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

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = first_commercial_reactor_je_done }
	}

	possible = {
		has_technology_researched = chicago_pile_one
		any_scope_building = {
			is_building_type = building_nuclear_reactor
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_nuclear_reactor
			cash_reserves_ratio > 0.25
			weekly_profit > 0
			occupancy >= 0.5
			level >= 10
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_production_JE_events.7 }
		set_variable = {
			name = first_commercial_reactor_je_done
		}
	}

	timeout = 7300
}