﻿# standard costs
@maa_buy_cost = 150
@maa_low_maintenance_cost = 1.0
@maa_high_maintenance_cost = 5.0
@cultural_maa_extra_ai_score = 60 # Equivalent to having 6 extra regiments beyond what the code scoring would indicate (see NEGATIVE_SCORE_PER_EXISTING_REGIMENT)

numdian = {
	type = light_cavalry
	
	damage = 35
	toughness = 20
	pursuit = 40
	screen = 40
	
	terrain_bonus = {
		plains = { damage = 20 toughness = 5 }
		drylands = { damage = 20 toughness = 5 }
		floodplains = { damage = 10 pursuit = -5 }
		desert = { damage = 15 toughness = 5 }
		oasis = { damage = 15 toughness = 5 }
		hills = { damage = -10 toughness = -5 pursuit = -10 screen = -10 }
		mountains = { damage = -15 toughness = -10 pursuit = -15 screen = -20 }
		desert_mountains = { damage = -15 toughness = -10 pursuit = -15 screen = -20 }
		wetlands = { damage = -5 toughness = -5 pursuit = -15 screen = -10 }
	}

	counters = {
		archers = 1
		skirmishers = 1
	}
	
	winter_bonus = {
		harsh_winter = { damage = -3 toughness = -1 }
	}

	can_recruit = {
		culture = { has_cultural_parameter = unlock_maa_numdian }
	}

	buy_cost = { gold = numidian_cavalry_recruitment_cost }
	low_maintenance_cost = { gold = numidian_cavalry_low_maint_cost }
	high_maintenance_cost = { gold = numidian_cavalry_high_maint_cost }
	
	stack = 100
	ai_quality = { value = @[cultural_maa_extra_ai_score + 30] }
	icon = light_cavalry
	allowed_in_hired_troops = no
}

hetairoi = {
	type = heavy_cavalry
	
	damage = 125
	toughness = 35
	pursuit = 30
	screen = 20
	
	terrain_bonus = {
		plains = { damage = 35 toughness = 5 }
		drylands = { damage = 35 toughness = 5 }
		floodplains = { damage = 10 pursuit = -5 }
		hills = { damage = -10 toughness = -5 pursuit = -10 screen = -10 }
		mountains = { damage = -20 toughness = -10 pursuit = -20 screen = -20 }
		wetlands = { damage = -10 toughness = -5 pursuit = -15 screen = -10 }
	}

	counters = {
		archers = 1
		heavy_infantry = 1
	}

	winter_bonus = {
		normal_winter = { damage = -10 toughness = -2 }
		harsh_winter = { damage = -20 toughness = -10 }
	}
	
	can_recruit = {
		culture = { has_cultural_parameter = unlock_maa_hetairoi }
	}

	buy_cost = { gold = hetairoi_recruitment_cost }
	low_maintenance_cost = { gold = hetairoi_low_maint_cost }
	high_maintenance_cost = { gold = hetairoi_high_maint_cost }
	
	stack = 50
	ai_quality = { value = @[cultural_maa_extra_ai_score + 30] }
	icon = heavy_cavalry
	allowed_in_hired_troops = no
}

huntsmen = {
	type = archers
	
	damage = 35
	toughness = 15
	pursuit = 5
	screen = 0
	
	terrain_bonus = {
		hills = { damage = 15 toughness = 8 }
		forest = { damage = 15 toughness = 8 screen = 8 }
		taiga = { damage = 15 toughness = 8 screen = 8 }
	}

	counters = {
		skirmishers = 1
		heavy_infantry = 1
	}

	can_recruit = {
		culture = {
			has_cultural_parameter = unlock_maa_huntsmen
		}
	}

	buy_cost = { gold = longbowmen_recruitment_cost }
	low_maintenance_cost = { gold = longbowmen_low_maint_cost }
	high_maintenance_cost = { gold = longbowmen_high_maint_cost }
	
	stack = 100
	ai_quality = { value = @[cultural_maa_extra_ai_score + 30] }
	icon = bowmen
}

imported_elephants = {
	type = elephant_cavalry
	
	damage = 275
	toughness = 75
	pursuit = 0
	screen = 0
	
	siege_value = 0.15
	
	terrain_bonus = {
		jungle = { damage = 60 }
		plains = { damage = 40 }
		mountains = { damage = -75 }
		desert_mountains = { damage = -75 }
		wetlands = { damage = -100 toughness = -15 }
	}
	
	counters = {
		skirmishers = 2
		heavy_infantry = 2
	}

	winter_bonus = {
		normal_winter = { damage = -25 toughness = -3 }
		harsh_winter = { damage = -50 toughness = -7 }
	}

	can_recruit = {
		culture = {
			has_cultural_parameter = unlock_maa_imported_elephants
		}
	}

	buy_cost = { gold = war_elephant_recruitment_cost }
	low_maintenance_cost = { gold = war_elephant_low_maint_cost }
	high_maintenance_cost = { gold = war_elephant_high_maint_cost }
	
	stack = 25
	hired_stack_size = 10
	ai_quality = { value = @[cultural_maa_extra_ai_score + 30] }
	icon = war_elephants
}