﻿je_flamethrowers = {
 	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	group = je_group_technology

 	is_shown_when_inactive = {
 		is_player = yes
 		has_technology_researched = trench_works
 		has_technology_researched = automatic_machine_guns
 		army_size >= 25
 	}

 	possible = {
 		has_technology_researched = flamethrowers
 		army_size >= 40
 	}

 	complete = {
 		is_at_war = yes
 		army_mobilization_option_fraction = {  
			target = mobilization_option:mobilization_option_flamethrowers  
			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
 		# If this trigger is changed, also change the trigger in the event
 		any_scope_war = {
            any_scope_front = {
               any_scope_general = {
                   owner = ROOT
                   this.commander_military_formation = {
                       has_mobilization_option = mobilization_option:mobilization_option_flamethrowers
                   }
               }
            }
        }
 	}

 	on_complete = {
 		trigger_event = { id = flamethrowers_event.1 }
 	}

 	timeout = 3650
}
