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

	group = je_group_technology

	is_shown_when_inactive = {
		is_player = yes
		NOT = { has_variable = elevators_je_done }
		has_technology_researched = steel_frame_buildings
	}

	possible = {
		has_technology_researched = elevator
		any_scope_building = {
			is_building_type = building_steel_mills
		}
		any_scope_building = {
			is_building_type = building_glassworks
		}
		any_scope_building = {
			is_building_type = building_urban_center
		}
	}

	complete = {
		any_scope_building = {
			is_building_type = building_steel_mills
		}
		any_scope_building = {
			is_building_type = building_glassworks
		}
		any_scope_building = {
			filter = {
				is_building_type = building_urban_center
			}
			is_building_type = building_urban_center
			percent > 0.75
			has_active_production_method = pm_arcades
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			occupancy >= 0.75
		}
	}

	on_complete = {
		trigger_event = { id = society_tech_events.104 }
		set_variable = {
			name = elevators_je_done
		}
	}

	timeout = 3650
}

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

 	group = je_group_technology

 	is_shown_when_inactive = {
 		is_player = yes
 		NOT = { has_variable = mutual_funds_je_done }
 		has_technology_researched = central_banking
 	}

 	possible = {
 		has_technology_researched = mutual_funds
 	}

 	complete = {
 		any_scope_building = {
 			filter = {
 				is_building_type = building_financial_district
 			}
 			percent >= 0.5
 			has_active_production_method = pm_financial_district_publicly_traded
 			cash_reserves_ratio >= 0.5
 			weekly_profit > 0
 			occupancy >= 0.75
 		}
 	}

 	on_complete = {
 		trigger_event = { id = society_tech_events.105 }
 		set_variable = {
 			name = mutual_funds_je_done
 		}
 	}

 	timeout = 3650
 }
