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

   group = je_group_technology

 	is_shown_when_inactive = {
 		is_player = yes
 		has_technology_researched = triage
 		is_at_war = yes
 		army_size >= 25
 	}

 	possible = {
 		has_technology_researched = modern_nursing
 		is_at_war = yes
 		army_size >= 40
 	}

 	immediate = {
 		trigger_event = { id = nursing_events.1 }
 		random_scope_war = {
 			save_scope_as = ongoing_journal_war
 		}
 	}

 	complete = {
        army_mobilization_option_fraction = {  
			target = mobilization_option:mobilization_option_field_hospitals  
			value >= 0.2  
		}
 		# for these JE's we would want this to be true for X months, but excluding that for the sake of readability
 		any_scope_war = {
            any_scope_front = {
               any_scope_general = {
                   owner = ROOT
                   this.commander_military_formation = {
                       has_mobilization_option = mobilization_option:mobilization_option_field_hospitals
                   }
               }
            }
        }
 	}

 	on_complete = {
 		trigger_event = { id = nursing_events.4 }
 	}

 	invalid = {
 		is_at_war = no
 	}

 	on_monthly_pulse = {
 		random_events = {
 			100 = 0
 			10 = nursing_events.2
 			10 = nursing_events.3
 		}
 	}
}