WRE_unit_production = {
	allowed = { original_tag = WRE }
	enable = {
		always = yes
	}
	abort = {
		always = no
	}

	ai_strategy = {
		type = role_ratio
		id = garrison
		value = 10
	}


	ai_strategy = {
		type = role_ratio
		id = paratroopers
		value = 0
	}

	ai_strategy = {
		type = role_ratio
		id = mountaineers
		value = 30
	}

	ai_strategy = {
		type = role_ratio
		id = marines
		value = 0
	}

	ai_strategy = {
		type = role_ratio
		id = cavalry
		value = 0
	}

	ai_strategy = {
		type = role_ratio
		id = armor
		value = 5
	}

	ai_strategy = {
		type = role_ratio
		id = infantry
		value = 80
	}

	#Air unit factors
	ai_strategy = {
		type = unit_ratio
		id = fighter
		value = 75 # From 70 to 75
	}

	ai_strategy = {
		type = unit_ratio
		id = cas
		value = 10 # 15 to 10
	}

	ai_strategy = {
		type = unit_ratio
		id = tactical_bomber
		value = 5
	}

	ai_strategy = {
		type = unit_ratio
		id = strategic_bomber
		value = 5
	}

	ai_strategy = {
		type = unit_ratio
		id = naval_bomber
		value = 5
	}


	# Naval unit factors
	ai_strategy = {
		type = unit_ratio
		id = capital_ship
		value = 20 # from 15 to 25
	}

	ai_strategy = {
		type = unit_ratio
		id = submarine
		value = 40 #from 50 to 40
	}

	ai_strategy = {
		type = unit_ratio
		id = screen_ship
		value = 25
	}

	ai_strategy = {
		type = unit_ratio
		id = convoy
		value = 20
	}

	ai_strategy = {
		type = equipment_production_factor
		id = fighter
		value = 20
	}

	ai_strategy = {
		type = equipment_production_factor
		id = infantry
		value = 35
	}

	ai_strategy = {
		type = equipment_production_factor
		id = artillery
		value = 25
	}

	ai_strategy = {
		type = equipment_production_factor
		id = armor
		value = 20
	}
}

WRE_armored_production = {
	allowed = { original_tag = WRE }
	enable = {
		ai_wants_divisions > 12 #Decreasing the amount of tanks the AI wants
	}
	abort = {
		ai_wants_divisions < 13 #Decreasing the amount of tanks the AI wants
	}

	ai_strategy = {
		type = role_ratio
		id = armor
		value = 2
	}
}

WRE_highered_armored_production = {
	allowed = { original_tag = WRE }
	enable = {
		num_of_military_factories > 109
	}
	abort = {
		num_of_military_factories < 110
	}

	ai_strategy = {
		type = role_ratio
		id = armor
		value = 20 #Removed from original production so increased from a bit to a f*** ton (in this case 10 to 20)
	}
}

WRE_naval_role_ratios_historical = {
	allowed = {
		has_dlc = "Man the Guns"
		original_tag = WRE
	}

	enable = {
		always = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = role_ratio
		id = naval_capital_bb
		value = 40
	}

	ai_strategy = {
		type = role_ratio
		id = naval_capital_bc
		value = 40
	}

	ai_strategy = {
		type = role_ratio
		id = naval_carrier
		value = 0
	}

	ai_strategy = {
		type = role_ratio
		id = naval_submarine
		value = 10
	}

	ai_strategy = {
		type = role_ratio
		id = naval_screen
		value = 150
	}

	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_light
		value = 75
	}

	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_heavy
		value = -20
	}

	ai_strategy = {
		type = role_ratio
		id = naval_mine_sweeper
		value = 15
	}

	ai_strategy = {
		type = role_ratio
		id = naval_mine_layer
		value = 10
	}
}


WRE_why_push_into_germany_their_food_is_horrible = {
	allowed = {
		original_tag = WRE
	}
	enable = {
		date < 1941.1.1  # Deactivate after some time
		surrender_progress < 0.5
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = force_concentration_front_factor
		state = 39  
		state = 160 
		state = 736
		ratio = 0.95  
		value = -100
	}

	ai_strategy = {
		type = front_control

		state = 39 
		state = 160
		state = 736

		ratio = 0.8

		priority = 100
		ordertype = front
		execution_type = careful
		execute_order = no  
		manual_attack = no
	}
}

WRE_i_hatenorth_illyria = {
	allowed = { original_tag = WRE }
	enable = {
		has_war_with = GEM
		date < 1940.8.1
	}

	abort = {
		OR = {
			date > 1940.8.1
			AND = {
				NLL = { surrender_progress > 0.50 }
			}
		}
	}

	ai_strategy = {
		type = dont_defend_ally_borders
		id = "NLL"
		value = 50
	}
}

WRE_prepare_against_east_rome = {
	allowed = {
		original_tag = WRE
	}
	enable = {
		focus_progress = {
			focus = WRE_the_belgrade_incident
			progress > 0.1
		}
		country_exists = ERE

	}

	ai_strategy = {
		type = prepare_for_war
		id = ERE
		value = 100
	}

	ai_strategy = {
		type = force_concentration_front_factor
		tag = ERE
		value = 200
	}
}



