REPLACE:je_curtiss_lindbergh_generic = {
	icon = "gfx/interface/icons/event_icons/event_aviation.dds"

	group = je_group_curtiss_aviation

	is_shown_when_inactive = {
		has_technology_researched = military_aviation
		exists = capital
		capital = {
			OR = {
				region = sr:region_western_europe
				region = sr:region_atlantic_coast
				region = sr:region_canada
			}
		}
		NOT = {
			exists = c:USA
			this = c:USA
		}
    }

    possible = {
        has_technology_researched = curtiss_modern_aviation_tech
    }

	complete = {
		game_date >= 1920.1.1
		NOT = {
			game_date >= 1927.1.1
		}
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_airport
				is_under_construction = no
			}
		}
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_aircraft_industry #T&R
			}
		}
		OR = {
			any_scope_state = {
				state_region = s:STATE_ILE_DE_FRANCE
			}
			any_country = {
				has_diplomatic_pact = {
					who = ROOT
					type = airspace_convention
				}				
				any_scope_state = {
					state_region = s:STATE_ILE_DE_FRANCE
				}
			}		
		}
		OR = {
			any_scope_state = {
				state_region = s:STATE_NEW_YORK
			}
			any_country = {
				has_diplomatic_pact = {
					who = ROOT
					type = airspace_convention
				}				
				any_scope_state = {
					state_region = s:STATE_NEW_YORK
				}
			}		
		}
	}

	on_complete = {
		trigger_event = { 
			id = curtiss.40
			popup = yes
		}
	}

	invalid = {
		has_global_variable = curtiss_lindbergh_happened
	}
}

REPLACE:je_curtiss_lindbergh_usa = {
	icon = "gfx/interface/icons/event_icons/event_aviation.dds"

	group = je_group_curtiss_aviation

	is_shown_when_inactive = {
		has_technology_researched = military_aviation
		exists = capital
		capital = {
			OR = {
				region = sr:region_western_europe
				region = sr:region_atlantic_coast
				region = sr:region_canada
			}
		}
		exists = c:USA
		this = c:USA
    }

    possible = {
        has_technology_researched = curtiss_modern_aviation_tech
    }

	complete = {
		game_date >= 1920.1.1
		NOT = {
			game_date >= 1927.1.1
		}
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_airport
				is_under_construction = no
			}
		}
		any_scope_state = {
			any_scope_building = {
				is_building_type = building_aircraft_industry #T&R
			}
		}
		OR = {
			any_scope_state = {
				state_region = s:STATE_ILE_DE_FRANCE
			}
			any_country = {
				has_diplomatic_pact = {
					who = ROOT
					type = airspace_convention
				}				
				any_scope_state = {
					state_region = s:STATE_ILE_DE_FRANCE
				}
			}		
		}
		OR = {
			any_scope_state = {
				state_region = s:STATE_NEW_YORK
			}
			any_country = {
				has_diplomatic_pact = {
					who = ROOT
					type = airspace_convention
				}				
				any_scope_state = {
					state_region = s:STATE_NEW_YORK
				}
			}		
		}
	}

	on_complete = {
		trigger_event = { 
			id = curtiss.41
			popup = yes
		}
	}

	invalid = {
		has_global_variable = curtiss_lindbergh_happened
	}
}