﻿je_camera = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	group = je_group_technology

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = camera_je_done }
		has_technology_researched = realism
		NOT = { has_technology_researched = film }
		NOT = { is_country_type = unrecognized }
	}

	possible = {
		has_technology_researched = camera
		any_scope_building = {
			is_building_type = building_arts_academy
			level >= 3
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_arts_academy
			level >= 5
			has_active_production_method = pm_photographic_art
		}
		any_scope_building = {
			filter = {
				is_building_type = building_arts_academy
			}
			percent > 0.75
			has_active_production_method = pm_photographic_art
			occupancy > 0.75
		}
	}

	on_complete = {
		set_variable = camera_je_done
		trigger_event = { id = camera_film_pm_events.1 }
	}

	invalid = {
		has_technology_researched = film
	}

	timeout = 3650
}

je_film = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	group = je_group_technology

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = film_je_done }
		has_technology_researched = camera
		NOT = { is_country_type = unrecognized }
	}

	possible = {
		has_technology_researched = film
		any_scope_building = {
			is_building_type = building_arts_academy
			level >= 3
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_arts_academy
			level >= 5
			has_active_production_method = pm_film_art
		}
		any_scope_building = {
			filter = {
				is_building_type = building_arts_academy
			}
			percent > 0.75
			has_active_production_method = pm_film_art
			occupancy > 0.75
		}
	}

	on_complete = {
		set_variable = film_je_done
		trigger_event = { id = camera_film_pm_events.2 }
	}

	timeout = 3650
}
