
je_nuclear_powered_battlecruiser = {
    icon = "gfx/interface/icons/event_icons/event_military.dds"
    is_shown_when_inactive = {
	always = no
        is_player = yes
        has_technology_researched = atomic_powered_vessels
    }

    possible = {
	always = no
        has_technology_researched = atomic_powered_battlecruiser
        navy_size >= 30
    }
    complete = {
        country_pm_usage = {
            target = ROOT
            production_method = pm_nuclear_powered_battlecruiser
            value > 0.20
        }
        any_scope_character = {
            has_role = admiral
            OR = {
                has_commander_order = patrol_coast
                has_commander_order = raid_convoys
                has_commander_order = naval_invasion
            }
            commander_pm_usage = {
                target = ROOT
                production_method = pm_nuclear_powered_battlecruiser
                value > 0.50
            }
        }
    }
    on_complete = {
        trigger_event = { 
            id = Mod_Nuclear_military_JE_event.1
        }
    }
    timeout = 7300
}

je_ballistic_supercomputers = {
    icon = "gfx/interface/icons/event_icons/event_military.dds"
    is_shown_when_inactive = {
	always = no
        is_player = yes
       has_technology_researched = atomic_powered_battlecruiser
    }

    possible = {
	always = no
		has_technology_researched = ballistic_computers
		has_technology_researched = atomic_powered_battlecruiser
        navy_size >= 30
    }
    complete = {
        country_pm_usage = {
            target = ROOT
            production_method = pm_ballistic_supercomputer
            value > 0.20
        }
        any_scope_character = {
            has_role = admiral
            OR = {
                has_commander_order = patrol_coast
                has_commander_order = raid_convoys
                has_commander_order = naval_invasion
            }
            commander_pm_usage = {
                target = ROOT
                production_method = pm_ballistic_supercomputer
                value > 0.50
            }
        }
    }
    on_complete = {
        trigger_event = { 
            id = Mod_Nuclear_military_JE_event.2
        }
    }
    timeout = 7300
}


je_hydrofoils = {
    icon = "gfx/interface/icons/event_icons/event_military.dds"
    is_shown_when_inactive = {
	always = no
        is_player = yes
        has_technology_researched = atomic_powered_vessels
    }

    possible = {
	always = no
        has_technology_researched = general_aviation
        navy_size >= 50
    }
    complete = {
        country_pm_usage = {
            target = ROOT
            production_method = pm_nuclear_turbojet_hydrofoil
            value > 0.20
        }
        any_scope_character = {
            has_role = admiral
            OR = {
                has_commander_order = patrol_coast
                has_commander_order = raid_convoys
                has_commander_order = naval_invasion
            }
            commander_pm_usage = {
                target = ROOT
                production_method = pm_nuclear_turbojet_hydrofoil
                value > 0.50
            }
        }
    }
    on_complete = {
        trigger_event = { 
            id = Mod_Nuclear_military_JE_event.3
        }
    }
    timeout = 7300
}

je_torpedo_raider_jets = {
    icon = "gfx/interface/icons/event_icons/event_military.dds"
    is_shown_when_inactive = {
	always = no
        is_player = yes
        has_technology_researched = atomic_powered_vessels
    }

    possible = {
	always = no
        has_technology_researched = general_aviation
        navy_size >= 50
    }
    complete = {
        country_pm_usage = {
            target = ROOT
            production_method = pm_nuclear_torpedo_raider_jets
            value > 0.20
        }
        any_scope_character = {
            has_role = admiral
            OR = {
                has_commander_order = patrol_coast
                has_commander_order = raid_convoys
                has_commander_order = naval_invasion
            }
            commander_pm_usage = {
                target = ROOT
                production_method = pm_nuclear_torpedo_raider_jets
                value > 0.50
            }
        }
    }
    on_complete = {
        trigger_event = { 
            id = Mod_Nuclear_military_JE_event.4
        }
    }
    timeout = 7300
}


je_nuclear_bombards = {
	icon = "gfx/interface/icons/event_icons/event_skull.dds"

	is_shown_when_inactive = {
		always = no
		is_player = yes
		has_technology_researched = uncontrolled_fusion
		army_size >= 25
	}

	possible = {
	always = no
		has_technology_researched = nuclear_artillery 
		army_size >= 40
	}

	complete = {
		OR = {
			country_pm_usage = {
				target = ROOT
				production_method = pm_nuclear_artillery_with_ballistic_computers
				value > 0.25
			}
			country_pm_usage = {
				target = ROOT
				production_method = pm_nuclear_bombardment_artillery
				value > 0.25
			}
		}
		any_scope_war = {
			any_scope_front = {
				any_scope_character = {
					owner = ROOT
					OR = {
						commander_pm_usage = {
							target = ROOT
							production_method = pm_nuclear_bombardment_artillery
							value > 0.4
						}
						commander_pm_usage = {
							target = ROOT
							production_method = pm_nuclear_artillery_with_ballistic_computers
							value > 0.4
						}
					}
				}
			}
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_military_JE_event.5 }
	}

	timeout = 7300
}


je_atomic_sappers = {
	icon = "gfx/interface/icons/event_icons/event_skull.dds"

	is_shown_when_inactive = {
		always = no
		is_player = yes
		has_technology_researched = nuclear_dynamite_for_mining
		army_size >= 25
	}

	possible = {
	always = no
		has_technology_researched = dirty_bombs
		army_size >= 40
	}

	complete = {
		OR = {
			country_pm_usage = {
				target = ROOT
				production_method = pm_nuclear_sapper
				value > 0.25
			}
			country_pm_usage = {
				target = ROOT
				production_method = pm_cybernetics_enhanced_tunneler
				value > 0.25
			}
		}
		any_scope_war = {
			any_scope_front = {
				any_scope_character = {
					owner = ROOT
					OR = {
						commander_pm_usage = {
							target = ROOT
							production_method = pm_nuclear_sapper
							value > 0.4
						}
						commander_pm_usage = {
							target = ROOT
							production_method = pm_cybernetics_enhanced_tunneler
							value > 0.4
						}
					}
				}
			}
		}
	}

	on_complete = {
		trigger_event = { id = Mod_Nuclear_military_JE_event.6 }
	}

	timeout = 7300
}