default_pp_spend_amount = {
	enable = { always = yes }
	abort_when_not_enabled = yes

	ai_strategy = {
		type = pp_spend_amount
		id = idea
		value = 100
	}
	ai_strategy = {
		type = pp_spend_amount
		id = decision
		value = 100
	}

	ai_strategy = {
		type = pp_spend_priority
		id = relation
		value = -9999
	}
	ai_strategy = {
		type = pp_spend_priority
		id = relation
		value = -9999
	}
}

dont_guard_against_overlord_puppets = {
	enable = {
		is_subject = yes
		is_in_faction = no
		overlord = { num_subjects > 1 }
	}

	abort_when_not_enabled = yes

	ai_strategy = {
		type = front_unit_request
		country_trigger = {
			is_subject = yes
			overlord = { has_subject = ROOT }
		}
		value = -2000
	}
}

default_railway_gun_management = {
	allowed = { has_dlc_nsb = yes }
	enable = {
		num_divisions > 100
		is_major = yes
	}
	abort = {
		num_divisions < 90
	}

	ai_strategy = { # This will add the specified value to the RAILWAY_GUN_PRODUCTION_BASE_DIVISIONS_RATIO_PERCENT define and use that as the desired railway guns / divisions ratio (in %)
		type = railway_gun_divisions_ratio
		value = 1
	}
}

ask_foreign_manpower_as_major = {
	enable = {
		is_major = yes
		garrison_manpower_need > 200000
	}

	abort = {
		garrison_manpower_need < 100000
	}

	ai_strategy = {
		type = asking_foreign_garrison
		value = 100
		# id = ITA # id is optionnal. If it is filled, the value will just apply for this country. If not, the value will apply for all countries.
	}
}

default_build_a_nl_facility = {
	enable = {
		has_tech = atomic_research
		NOT = { has_facility_specialization = specialization_nuclear }
		num_of_civilian_factories > 25
		num_of_military_factories > 25
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = build_building
		id = nuclear_facility
		value = 100
	}
}

default_build_a_nav_facility = {
	enable = {
		num_of_naval_factories > 25
		NOT = { has_facility_specialization = specialization_naval }
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = build_building
		id = naval_facility
		value = 100
	}
}

default_build_a_lw_facility = {
	enable = {
		land_facility < 1
		num_of_civilian_factories > 40
		num_of_military_factories > 40
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = build_building
		id = land_facility
		value = 1
	}
}

default_build_an_air_facility = {
	enable = {
		num_of_military_factories > 40
                air_facility < 1
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = build_building
		id = air_facility
		value = 1
	}
}

default_recruit_land_scientist = {
	enable = {
		num_of_military_factories > 40
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = recruit_scientist
		id = specialization_land
		value = 100
	}
}

default_recruit_nuclear_scientist = {
	enable = {
		has_facility_specialization = specialization_nuclear
		NOT = { has_scientist_specialization = specialization_nuclear }
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = recruit_scientist
		id = specialization_nuclear
		value = 100
	}
}

default_recruit_naval_scientist = {
	enable = {
		num_of_naval_factories > 25
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = recruit_scientist
		id = specialization_naval
		value = 100
	}
}

default_recruit_air_scientist = {
	enable = {
		num_of_military_factories > 40
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = recruit_scientist
		id = specialization_air
		value = 100
	}
}

default_build_guided_missiles = {
	enable = {
		is_special_project_completed = sp:sp_rockets_flying_bomb
		num_of_military_factories > 40
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories_archetype
		id = guided_missile_equipment
		value = 1
	}
}

default_build_ballistic_missiles = {
	enable = {
		is_special_project_completed = sp:sp_rockets_ballistic_missile
		num_of_military_factories > 60
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories_archetype
		id = ballistic_missile_equipment
		value = 1
	}
}

default_build_sam_missiles = {
	enable = {
		is_special_project_completed = sp:sp_rockets_ground_to_air_missile
		num_of_military_factories > 80
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories_archetype
		id = sam_missile_equipment
		value = 1
	}
}

default_build_nuclear_missiles = {
	enable = {
		is_special_project_completed = sp:sp_nuclear_warheads
		num_of_military_factories > 100
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = equipment_production_min_factories_archetype
		id = nuclear_missile_equipment
		value = 1
	}
}
