# Adding tags to culture groups - edit the following in common/scripted_triggers/EAW_race_triggers.txt:
#    - is_country_main_culture_CULTURE
#    - is_state_main_culture_CULTURE
#    - is_operative_main_culture_CULTURE
# Adding a new culture group - ask Yard. In case I die/become unresponsive, you'll need to:
# 1. In common/scripted_triggers/EAW_race_triggers.txt:
#    a) Add new main_culture triggers as above
#    b) Add a is_country_secondary_culture_CULTURE trigger
# 3. In common/scripted_effects/EAW_race_effects.txt:
#    a) operative_add_nationalities_CULTURE (look at existing ones for guidiance, add a new cultures index)
#    b) add an entry in operative_add_main_nationalities_from_PREV
#    c) add an entry in operative_add_secondary_nationalities_from_PREV
#    d) add an entry in operative_add_starting_nationalities_and_race
#    e) depending on tag, add an entry in operative_add_secondary_nationalities and operative_handle_secondary_cultures_races

#New Triggers from Expert AI

muchstronger = {
	all_enemy_country = {
			add_to_temp_variable = { yours = num_battalions }
		}
		set_temp_variable = { mine = num_battalions }
			divide_temp_variable = { mine = yours }
			check_variable = { mine > 2.00 }
}

stronger = {
	all_enemy_country = {
			add_to_temp_variable = { yours = num_battalions }
		}
		set_temp_variable = { mine = num_battalions }
			divide_temp_variable = { mine = yours }
			check_variable = { mine > 1.00 }
}

weaker = {
	all_enemy_country = {
			add_to_temp_variable = { yours = num_battalions }
		}
		set_temp_variable = { mine = num_battalions }
			divide_temp_variable = { mine = yours }
			check_variable = { mine < 1.00 }
}

muchweaker = {
	all_enemy_country = {
			add_to_temp_variable = { yours = num_battalions }
		}
		set_temp_variable = { mine = num_battalions }
			divide_temp_variable = { mine = yours }
			check_variable = { mine < 0.50 }
}



mil_vs_civ = {
	set_temp_variable = { fact = num_of_available_military_factories }
	divide_temp_variable = { fact = num_of_available_civilian_factories }
	check_variable = { fact > 1.00 }
}

Productioncheck = {
	all_enemy_country = {
			add_to_temp_variable = { yours = num_of_available_military_factories }
		}
			set_temp_variable = { mine = num_of_available_military_factories }
			
			all_allied_country = {
			add_to_temp_variable = { mine = num_of_available_military_factories }
			}			
			divide_temp_variable = { mine = yours }
			check_variable = { mine > 1.00 }
}
