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

# Must be synced between files with the values located at "# Provisions Costs #".
@provisions_cost_infantry_cheap = 3
@provisions_cost_infantry_moderate = 7
@provisions_cost_infantry_expensive = 12
@provisions_cost_infantry_bankrupting = 15

@provisions_cost_cavalry_cheap = 7
@provisions_cost_cavalry_moderate = 15
@provisions_cost_cavalry_expensive = 21
@provisions_cost_cavalry_bankrupting = 30

@provisions_cost_special_cheap = 6
@provisions_cost_special_moderate = 12
@provisions_cost_special_expensive = 18
@provisions_cost_special_bankrupting = 24

ayrudzi = {
	type = light_cavalry

	damage = 50
	toughness = 30
	pursuit = 20
	screen = 30

	terrain_bonus = {
		hills = { damage = 30 toughness = 20 }
		mountains = { damage = 20 toughness = 10 }
		drylands = { damage = 10 }
		plains = { damage = 10 }
		wetlands = { damage = -30 toughness = -20 pursuit = -20 screen = -25 }
		jungle = { damage = -30 toughness = -20 pursuit = -20 screen = -25 }
	}

	counters = {
		archers = 1
		archer_cavalry = 0.5
	}

	winter_bonus = {
		harsh_winter = { damage = -5 }
	}

	can_recruit = {
		valid_for_maa_trigger = { PARAMETER = unlock_maa_ayrudzi }
	}

	buy_cost = { gold = ayrudzi_recruitment_cost }
	low_maintenance_cost = { gold = ayrudzi_low_maint_cost }
	high_maintenance_cost = { gold = ayrudzi_high_maint_cost }
	provision_cost = @provisions_cost_cavalry_cheap

	stack = 50
	ai_quality = {
		value = @cultural_maa_extra_ai_score
		add = counter_synergy_ai_weight_light_cavalry
	}
	icon = ayrudzi
}

conrois = {
	type = heavy_cavalry

	damage = 100
	toughness = 25
	pursuit = 10
	screen = 0

	terrain_bonus = {
		plains = { damage = 30 }
		drylands = { damage = 30 }
		farmlands = { damage = 30 }
		hills = { damage = -20 }
		mountains = { damage = -75 }
		desert_mountains = { damage = -75 }
		wetlands = { damage = -75 toughness = -10 pursuit = -10 }
		jungle = { damage = -75 toughness = -10 pursuit = -10 }
	}

	counters = {
		archers = 1
		light_cavalry = 1
	}

	can_recruit = {
		valid_for_maa_trigger = { PARAMETER = unlock_maa_conrois }
	}

	winter_bonus = {
		normal_winter = { damage = -15 toughness = -5 }
		harsh_winter = { damage = -25 toughness = -10 }
	}

	buy_cost = { gold = conrois_recruitment_cost }
	low_maintenance_cost = { gold = conrois_low_maint_cost }
	high_maintenance_cost = { gold = conrois_high_maint_cost }
	provision_cost = @provisions_cost_cavalry_cheap

	stack = 50
	ai_quality = { value = @[cultural_maa_extra_ai_score + 35 ] }
	icon = conrois
}

akritai = {
	type = skirmishers

	damage = 10
	toughness = 14
	pursuit = 12
	screen = 18

	terrain_bonus = {
		mountains = { damage = 10 toughness = 10 }
		desert_mountains = { damage = 6 toughness = 6 }
		hills = { damage = 6 toughness = 6 }
		forest = { toughness = 4 }
		wetlands = { toughness = 4 }
	}

	counters = {
		heavy_infantry = 1
	}

	can_recruit = {
		AND = { # Fronter exclusive
			valid_for_maa_trigger = { PARAMETER = unlock_maa_akritai }
			vassal_contract_has_flag = admin_theme_frontier
		}
	}

	buy_cost = { gold = akritai_recruitment_cost }
	low_maintenance_cost = { gold = akritai_low_maint_cost }
	high_maintenance_cost = { gold = akritai_high_maint_cost }
	provision_cost = @provisions_cost_infantry_cheap

	stack = 100
	ai_quality = { value = @[cultural_maa_extra_ai_score - 90] }
	icon = akritai
}

ballistrai = {
	type = archers

	damage = 35
	toughness = 12
	pursuit = 0
	screen = 0

	siege_value = 0.1

	terrain_bonus = {
		farmlands = { damage = 8 toughness = 6 }
		plains = { damage = 8 }
		hills = { damage = 8 }
	}

	counters = {
		pikemen = 0.5
		heavy_infantry = 0.5
	}

	can_recruit = {
		AND = { # Specialized for Military themes
			valid_for_maa_trigger = { PARAMETER = unlock_maa_ballistrai }
			OR = {
				is_independent_ruler = yes
				vassal_contract_has_flag = admin_theme_military
			}
		}
	}

	buy_cost = { gold = ballistrai_recruitment_cost }
	low_maintenance_cost = { gold = ballistrai_low_maint_cost }
	high_maintenance_cost = { gold = ballistrai_high_maint_cost }
	provision_cost = @provisions_cost_special_moderate

	stack = 50
	ai_quality = { value = @[cultural_maa_extra_ai_score + 200] }
	icon = ballistrai
}

skoutatoi = {
	type = pikemen

	damage = 20
	toughness = 30
	pursuit = 0
	screen = 20

	terrain_bonus = {
		mountains = { toughness = 8 }
		desert_mountains = { toughness = 8 }
		hills = { toughness = 8 }
		plains = { damage = 8 }
	}

	counters = { # Their spears are more generalized and should only work in a limited capacity against the more lightly armored cavalry
		light_cavalry = 1
		camel_cavalry = 1
	}

	can_recruit = {
		valid_for_maa_trigger = { PARAMETER = unlock_maa_skoutatoi }
	}

	buy_cost = { gold = skoutatoi_recruitment_cost }
	low_maintenance_cost = { gold = skoutatoi_low_maint_cost }
	high_maintenance_cost = { gold = skoutatoi_high_maint_cost }
	provision_cost = @provisions_cost_infantry_moderate

	stack = 100
	ai_quality = {
		value = @[cultural_maa_extra_ai_score + 20]
		add = counter_synergy_ai_weight_pikemen
	}
	icon = skoutatoi
}

varangian_guards = {
	type = heavy_infantry

	damage = 45
	toughness = 32
	pursuit = 10
	screen = 5

	can_recruit = {
		exists = scope:title
		scope:title = {
			has_variable = founded_varangian_guard
		}
	}

	terrain_bonus = {
		farmlands = { damage = 12 toughness = 8 }
		plains = { damage = 6 toughness = 4 }
		hills = { damage = 6 toughness = 4 }
	}

	counters = {
		pikemen = 1
		heavy_cavalry = 1
	}

	winter_bonus = {
		normal_winter = { toughness = 6 screen = 6 }
		harsh_winter = { toughness = 6 screen = 6 }
	}

	buy_cost = { gold = varangian_guards_recruitment_cost }
	low_maintenance_cost = { gold = varangian_guards_low_maint_cost }
	high_maintenance_cost = { gold = varangian_guards_high_maint_cost }
	provision_cost = @provisions_cost_infantry_moderate

	stack = 100
	ai_quality = {
		value = @[cultural_maa_extra_ai_score + 40]
		add = counter_synergy_ai_weight_heavy_infantry
	}
	icon = varangian_guard
}

handpicked_faithful = {
	type = heavy_infantry

	damage = 38
	toughness = 28
	pursuit = 5
	screen = 5

	can_recruit = {
		domicile ?= { has_domicile_parameter = camp_unlocks_handpicked_faithful_maa_type }
	}

	terrain_bonus = {
		hills = { damage = 6 toughness = 4 }
		forest = { damage = 6 toughness = 4 }
		jungle = { damage = 6 toughness = 4 }
	}

	counters = {
		pikemen = 1
		heavy_cavalry = 1
	}

	buy_cost = { gold = handpicked_faithful_recruitment_cost }
	low_maintenance_cost = { gold = handpicked_faithful_low_maint_cost }
	high_maintenance_cost = { gold = handpicked_faithful_high_maint_cost }
	provision_cost = @provisions_cost_infantry_moderate

	stack = 100
	ai_quality = {
		value = @[cultural_maa_extra_ai_score + 50]
		add = counter_synergy_ai_weight_heavy_infantry
	}
	illustration = { trigger = { is_japanese_maa = yes }      reference = japanese_house_guard }
	illustration = { trigger = { is_emishi_maa = yes }        reference = emishi_house_guard }	
	illustration = { trigger = { is_korean_maa   = yes }      reference = korean_house_guard }
	illustration = { trigger = { is_tibetan_maa  = yes }      reference = tibetan_house_guard }
	illustration = { trigger = { is_scottish_maa = yes }      reference = scottish_house_guard }	
	illustration = { trigger = { is_scottish_late_maa = yes } reference = scottish_late_house_guard }		
	illustration = { trigger = { is_irish_maa    = yes }      reference = irish_house_guard }
	illustration = { trigger = { is_irish_late_maa    = yes } reference = irish_late_house_guard }
	illustration = { trigger = { is_breton_maa   = yes }      reference = breton_house_guard }	
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_house_guard }
	illustration = { trigger = { is_english_maa  = yes }      reference = english_house_guard }	
	illustration = { trigger = { is_norman_maa   = yes }      reference = norman_house_guard }
	illustration = { trigger = { is_french_maa   = yes }      reference = french_house_guard }
	illustration = { trigger = { is_spanish_maa  = yes }      reference = spanish_house_guard }	
	illustration = { trigger = { is_spanish_late_maa  = yes } reference = spanish_late_house_guard }		
	illustration = { trigger = { is_saxon_maa    = yes }      reference = saxon_house_guard }
	illustration = { trigger = { is_anglosaxon_maa = yes }    reference = anglosaxon_house_guard }
	illustration = { trigger = { is_italian_maa  = yes }      reference = italian_house_guard }
	illustration = { trigger = { is_byzantine_maa = yes }     reference = byzantine_house_guard }
	illustration = { trigger = { is_turkic_maa    = yes }     reference = turkic_house_guard }
	illustration = { trigger = { is_mongol_maa    = yes }     reference = mongol_house_guard }
	illustration = { trigger = { is_south_slavic_maa = yes } reference = south_slavic_house_guard }
	illustration = { trigger = { is_south_slavic_late_maa = yes }  reference = south_slavic_late_house_guard }	
	illustration = { trigger = { is_slavic_maa    = yes }     reference = slavic_house_guard }
	illustration = { trigger = { is_westslavic_maa = yes }    reference = westslavic_house_guard }
	illustration = { trigger = { is_westslavic_late_maa = yes }  reference = westslavic_late_house_guard }	
	illustration = { trigger = { is_baltic_maa    = yes }     reference = baltic_house_guard }
	illustration = { trigger = { is_baltic_late_maa = yes }    reference = baltic_late_house_guard }	
	illustration = { trigger = { is_tungusic_maa    = yes }    reference = tungusic_house_guard }	
	illustration = { trigger = { is_danish_late_maa    = yes } reference = danish_late_house_guard }	
	illustration = { trigger = { is_north_late_maa     = yes } reference = north_late_house_guard }			
	illustration = { trigger = { is_north_maa     = yes }     reference = north_house_guard }
	illustration = { trigger = { is_holy_roman_maa    = yes } reference = holy_roman_house_guard }
	illustration = { trigger = { is_holy_roman_late_maa = yes } reference = holy_roman_late_house_guard }	
	illustration = { trigger = { is_frankish_maa    = yes }   reference = frankish_house_guard }		
	illustration = { trigger = { is_arabian_maa   = yes }     reference = arabian_house_guard }
	illustration = { trigger = { is_berber_maa    = yes }     reference = berber_house_guard }
	illustration = { trigger = { is_african_maa   = yes }     reference = african_house_guard }
	illustration = { trigger = { is_central_african_maa  = yes } reference = african_house_guard }
	illustration = { trigger = { is_west_african_maa  = yes } reference = african_house_guard }			
	illustration = { trigger = { is_east_african_maa  = yes } reference = east_african_house_guard }		
	illustration = { trigger = { is_indonesian_maa  = yes }   reference = indonesian_house_guard } 
	illustration = { trigger = { is_south_asian_maa  = yes }  reference = south_asian_house_guard } 
	illustration = { trigger = { is_chinese_maa       = yes } reference = chinese_house_guard }	
	illustration = { trigger = { is_asian_maa       = yes }   reference = asian_house_guard }
	illustration = { trigger = { is_caucasian_maa  = yes }    reference = caucasian_house_guard }
	illustration = { trigger = { is_persian_maa   = yes }     reference = persian_house_guard }	
	illustration = { trigger = { is_indian_maa  = yes }       reference = indian_house_guard }
	illustration = { trigger = { is_israelite_maa  = yes }    reference = israelite_house_guard }
	illustration = { trigger = { is_cuman_maa  = yes }    	  reference = cuman_house_guard }
	illustration = { trigger = { is_oghuz_maa  = yes }    	  reference = oghuz_house_guard }	
	illustration = { trigger = { is_american_maa  = yes }     reference = american_house_guard }		
	illustration = { reference = house_guard }
}

maa_bandits = {
	type = skirmishers
	
	can_recruit = { always = no }

	damage = 15
	toughness = 20
	pursuit = 20
	screen = 25

	terrain_bonus = {
		forest = { damage = 4 toughness = 6 }
		hills = { damage = 4 toughness = 6 }
		jungle = { damage = 4 toughness = 6 }
	}
	
	counters = {
		heavy_infantry = 1
		archers = 1
	}

	buy_cost = { gold = jomsviking_pirates_recruitment_cost }
	low_maintenance_cost = { gold = jomsviking_pirates_low_maint_cost }
	high_maintenance_cost = { gold = jomsviking_pirates_high_maint_cost }
	provision_cost = @provisions_cost_infantry_cheap
	
	stack = 50
	ai_quality = { value = @cultural_maa_extra_ai_score }
	illustration = { trigger = { is_japanese_maa = yes }      reference = japanese_skirmishers }
	illustration = { trigger = { is_emishi_maa = yes }        reference = emishi_skirmishers }	
	illustration = { trigger = { is_korean_maa   = yes }      reference = korean_skirmishers }
	illustration = { trigger = { is_tibetan_maa  = yes }      reference = tibetan_skirmishers }
	illustration = { trigger = { is_scottish_maa = yes }      reference = scottish_skirmishers }	
	illustration = { trigger = { is_scottish_late_maa = yes } reference = scottish_late_skirmishers }		
	illustration = { trigger = { is_irish_maa    = yes }      reference = irish_skirmishers }
	illustration = { trigger = { is_irish_late_maa    = yes } reference = irish_late_skirmishers }
	illustration = { trigger = { is_breton_maa   = yes }      reference = breton_skirmishers }	
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_skirmishers }
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_late_skirmishers }	
	illustration = { trigger = { is_english_maa  = yes }      reference = english_skirmishers }	
	illustration = { trigger = { is_norman_maa   = yes }      reference = norman_skirmishers }
	illustration = { trigger = { is_french_maa   = yes }      reference = french_skirmishers }
	illustration = { trigger = { is_spanish_maa  = yes }      reference = spanish_skirmishers }	
	illustration = { trigger = { is_spanish_late_maa  = yes } reference = spanish_late_skirmishers }		
	illustration = { trigger = { is_saxon_maa    = yes }      reference = saxon_skirmishers }
	illustration = { trigger = { is_anglosaxon_maa = yes }    reference = anglosaxon_skirmishers }
	illustration = { trigger = { is_italian_maa  = yes }      reference = italian_skirmishers }
	illustration = { trigger = { is_byzantine_maa = yes }     reference = byzantine_skirmishers }
	illustration = { trigger = { is_turkic_maa    = yes }     reference = turkic_skirmishers }
	illustration = { trigger = { is_mongol_maa    = yes }     reference = mongol_skirmishers }
	illustration = { trigger = { is_south_slavic_maa = yes } reference = south_slavic_skirmishers }
	illustration = { trigger = { is_south_slavic_late_maa = yes }  reference = south_slavic_late_skirmishers }	
	illustration = { trigger = { is_slavic_maa    = yes }     reference = slavic_skirmishers }
	illustration = { trigger = { is_westslavic_maa = yes }    reference = westslavic_skirmishers }
	illustration = { trigger = { is_westslavic_late_maa = yes }  reference = westslavic_late_skirmishers }	
	illustration = { trigger = { is_baltic_maa    = yes }     reference = baltic_skirmishers }
	illustration = { trigger = { is_baltic_late_maa = yes }    reference = baltic_late_skirmishers }	
	illustration = { trigger = { is_tungusic_maa    = yes }    reference = tungusic_skirmishers }	
	illustration = { trigger = { is_danish_late_maa    = yes } reference = danish_late_skirmishers }		
	illustration = { trigger = { is_north_late_maa     = yes } reference = north_late_skirmishers }		
	illustration = { trigger = { is_north_maa     = yes }     reference = north_skirmishers }
	illustration = { trigger = { is_holy_roman_maa    = yes } reference = holy_roman_skirmishers }
	illustration = { trigger = { is_holy_roman_late_maa = yes } reference = holy_roman_late_skirmishers }	
	illustration = { trigger = { is_frankish_maa    = yes }   reference = frankish_skirmishers }		
	illustration = { trigger = { is_arabian_maa   = yes }     reference = arabian_skirmishers }
	illustration = { trigger = { is_berber_maa    = yes }     reference = berber_skirmishers }
	illustration = { trigger = { is_african_maa   = yes }     reference = african_skirmishers }
	illustration = { trigger = { is_central_african_maa  = yes } reference = african_skirmishers }
	illustration = { trigger = { is_west_african_maa  = yes } reference = african_skirmishers }			
	illustration = { trigger = { is_east_african_maa  = yes } reference = east_african_skirmishers }		
	illustration = { trigger = { is_indonesian_maa  = yes }   reference = indonesian_skirmishers } 
	illustration = { trigger = { is_south_asian_maa  = yes }  reference = south_asian_skirmishers } 
	illustration = { trigger = { is_chinese_maa       = yes } reference = chinese_skirmishers }	
	illustration = { trigger = { is_asian_maa       = yes }   reference = asian_skirmishers }
	illustration = { trigger = { is_caucasian_maa  = yes }    reference = caucasian_skirmishers }
	illustration = { trigger = { is_persian_maa   = yes }     reference = persian_skirmishers }	
	illustration = { trigger = { is_indian_maa  = yes }       reference = indian_skirmishers }
	illustration = { trigger = { is_israelite_maa  = yes }    reference = israelite_skirmishers }
	illustration = { trigger = { is_cuman_maa  = yes }    	  reference = cuman_skirmishers }
	illustration = { trigger = { is_oghuz_maa  = yes }    	  reference = oghuz_skirmishers }	
	illustration = { trigger = { is_american_maa  = yes }     reference = american_skirmishers }		
	illustration = { reference = skirmishers }
}

maa_poachers = {
	type = archers

	can_recruit = { always = no }
	
	damage = 30
	toughness = 15
	pursuit = 10
	screen = 10
	
	terrain_bonus = {
		hills = { damage = 10 toughness = 6 }
		forest = { toughness = 10 screen = 10 }
		jungle = { toughness = 10 screen = 10 }
	}

	counters = {
		skirmishers = 1
	}

	buy_cost = { gold = jomsviking_pirates_recruitment_cost }
	low_maintenance_cost = { gold = jomsviking_pirates_low_maint_cost }
	high_maintenance_cost = { gold = jomsviking_pirates_high_maint_cost }
	provision_cost = @provisions_cost_infantry_cheap
	
	stack = 50
	ai_quality = { value = @cultural_maa_extra_ai_score }
	illustration = { trigger = { is_japanese_maa = yes }      reference = japanese_bowmen }
	illustration = { trigger = { is_emishi_maa = yes }        reference = emishi_bowmen }	
	illustration = { trigger = { is_korean_maa   = yes }      reference = korean_bowmen }
	illustration = { trigger = { is_tibetan_maa  = yes }      reference = tibetan_bowmen }
	illustration = { trigger = { is_scottish_maa = yes }      reference = scottish_bowmen }	
	illustration = { trigger = { is_scottish_late_maa = yes } reference = scottish_late_bowmen }		
	illustration = { trigger = { is_irish_maa    = yes }      reference = irish_bowmen }
	illustration = { trigger = { is_irish_late_maa    = yes } reference = irish_late_bowmen }
	illustration = { trigger = { is_breton_maa   = yes }      reference = breton_bowmen }	
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_bowmen }
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_late_bowmen }
	illustration = { trigger = { is_english_maa  = yes }      reference = english_bowmen }	
	illustration = { trigger = { is_norman_maa   = yes }      reference = norman_bowmen }
	illustration = { trigger = { is_french_maa   = yes }      reference = french_bowmen }
	illustration = { trigger = { is_spanish_maa  = yes }      reference = spanish_bowmen }	
	illustration = { trigger = { is_spanish_late_maa  = yes } reference = spanish_late_bowmen }		
	illustration = { trigger = { is_saxon_maa    = yes }      reference = saxon_bowmen }
	illustration = { trigger = { is_anglosaxon_maa = yes }    reference = anglosaxon_bowmen }
	illustration = { trigger = { is_italian_maa  = yes }      reference = italian_bowmen }
	illustration = { trigger = { is_byzantine_maa = yes }     reference = byzantine_bowmen }
	illustration = { trigger = { is_turkic_maa    = yes }     reference = turkic_bowmen }
	illustration = { trigger = { is_mongol_maa    = yes }     reference = mongol_bowmen }
	illustration = { trigger = { is_south_slavic_maa = yes } reference = south_slavic_bowmen }
	illustration = { trigger = { is_south_slavic_late_maa = yes }  reference = south_slavic_late_bowmen }	
	illustration = { trigger = { is_slavic_maa    = yes }     reference = slavic_bowmen }
	illustration = { trigger = { is_westslavic_maa = yes }    reference = westslavic_bowmen }
	illustration = { trigger = { is_westslavic_late_maa = yes }  reference = westslavic_late_bowmen }	
	illustration = { trigger = { is_baltic_maa    = yes }     reference = baltic_bowmen }
	illustration = { trigger = { is_baltic_late_maa = yes }    reference = baltic_late_bowmen }	
	illustration = { trigger = { is_tungusic_maa    = yes }    reference = tungusic_bowmen }	
	illustration = { trigger = { is_danish_late_maa    = yes } reference = danish_late_bowmen }			
	illustration = { trigger = { is_north_late_maa     = yes } reference = north_late_bowmen }	
	illustration = { trigger = { is_north_maa     = yes }     reference = north_bowmen }
	illustration = { trigger = { is_holy_roman_maa    = yes } reference = holy_roman_bowmen }
	illustration = { trigger = { is_holy_roman_late_maa = yes } reference = holy_roman_late_bowmen }	
	illustration = { trigger = { is_frankish_maa    = yes }   reference = frankish_bowmen }		
	illustration = { trigger = { is_arabian_maa   = yes }     reference = arabian_bowmen }
	illustration = { trigger = { is_berber_maa    = yes }     reference = berber_bowmen }
	illustration = { trigger = { is_african_maa   = yes }     reference = african_bowmen }
	illustration = { trigger = { is_central_african_maa  = yes } reference = african_bowmen }
	illustration = { trigger = { is_west_african_maa  = yes } reference = african_bowmen }			
	illustration = { trigger = { is_east_african_maa  = yes } reference = east_african_bowmen }		
	illustration = { trigger = { is_indonesian_maa  = yes }   reference = indonesian_bowmen } 
	illustration = { trigger = { is_south_asian_maa  = yes }  reference = south_asian_bowmen } 
	illustration = { trigger = { is_chinese_maa       = yes } reference = chinese_bowmen }	
	illustration = { trigger = { is_asian_maa       = yes }   reference = asian_bowmen }
	illustration = { trigger = { is_caucasian_maa  = yes }    reference = caucasian_bowmen }
	illustration = { trigger = { is_persian_maa   = yes }     reference = persian_bowmen }	
	illustration = { trigger = { is_indian_maa  = yes }       reference = indian_bowmen }
	illustration = { trigger = { is_israelite_maa  = yes }    reference = israelite_bowmen }
	illustration = { trigger = { is_cuman_maa  = yes }    	  reference = cuman_bowmen }
	illustration = { trigger = { is_oghuz_maa  = yes }    	  reference = oghuz_bowmen }	
	illustration = { trigger = { is_american_maa  = yes }     reference = american_bowmen }		
	illustration = { reference = bowmen }
}

maa_marauders = {
	type = light_cavalry

	can_recruit = { always = no }
	
	damage = 30
	toughness = 15
	pursuit = 40
	screen = 30
	
	terrain_bonus = {
		plains = { damage = 15 }
		drylands = { damage = 15 }
		farmlands = { damage = 25 }
	}
	
	counters = {
		archers = 1
	}

	buy_cost = { gold = jomsviking_pirates_recruitment_cost }
	low_maintenance_cost = { gold = jomsviking_pirates_low_maint_cost }
	high_maintenance_cost = { gold = jomsviking_pirates_high_maint_cost }
	provision_cost = @provisions_cost_infantry_moderate
	
	stack = 50
	ai_quality = { value = @cultural_maa_extra_ai_score }
	illustration = { trigger = { is_japanese_maa = yes }      reference = japanese_light_cavalry }
	illustration = { trigger = { is_emishi_maa = yes }        reference = emishi_light_cavalry }	
	illustration = { trigger = { is_korean_maa   = yes }      reference = korean_light_cavalry }
	illustration = { trigger = { is_tibetan_maa  = yes }      reference = tibetan_light_cavalry }
	illustration = { trigger = { is_scottish_maa = yes }      reference = scottish_light_cavalry }	
	illustration = { trigger = { is_scottish_late_maa = yes } reference = scottish_late_light_cavalry }		
	illustration = { trigger = { is_irish_maa    = yes }      reference = irish_light_cavalry }
	illustration = { trigger = { is_irish_late_maa    = yes } reference = irish_late_light_cavalry }
	illustration = { trigger = { is_breton_maa   = yes }      reference = breton_light_cavalry }	
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_light_cavalry }
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_late_light_cavalry }	
	illustration = { trigger = { is_english_maa  = yes }      reference = english_light_cavalry }	
	illustration = { trigger = { is_norman_maa   = yes }      reference = norman_light_cavalry }
	illustration = { trigger = { is_french_maa   = yes }      reference = french_light_cavalry }
	illustration = { trigger = { is_spanish_maa  = yes }      reference = spanish_light_cavalry }	
	illustration = { trigger = { is_spanish_late_maa  = yes } reference = spanish_late_light_cavalry }		
	illustration = { trigger = { is_saxon_maa    = yes }      reference = saxon_light_cavalry }
	illustration = { trigger = { is_anglosaxon_maa = yes }    reference = anglosaxon_light_cavalry }
	illustration = { trigger = { is_italian_maa  = yes }      reference = italian_light_cavalry }
	illustration = { trigger = { is_byzantine_maa = yes }     reference = byzantine_light_cavalry }
	illustration = { trigger = { is_turkic_maa    = yes }     reference = turkic_light_cavalry }
	illustration = { trigger = { is_mongol_maa    = yes }     reference = mongol_light_cavalry }
	illustration = { trigger = { is_south_slavic_maa = yes } reference = south_slavic_light_cavalry }
	illustration = { trigger = { is_south_slavic_late_maa = yes }  reference = south_slavic_late_light_cavalry }	
	illustration = { trigger = { is_slavic_maa    = yes }     reference = slavic_light_cavalry }
	illustration = { trigger = { is_westslavic_maa = yes }    reference = westslavic_light_cavalry }
	illustration = { trigger = { is_westslavic_late_maa = yes }  reference = westslavic_late_light_cavalry }	
	illustration = { trigger = { is_baltic_maa    = yes }     reference = baltic_light_cavalry }
	illustration = { trigger = { is_baltic_late_maa = yes }    reference = baltic_late_light_cavalry }	
	illustration = { trigger = { is_tungusic_maa    = yes }    reference = tungusic_light_cavalry }	
	illustration = { trigger = { is_danish_late_maa    = yes } reference = danish_late_light_cavalry }			
	illustration = { trigger = { is_north_late_maa     = yes } reference = north_late_light_cavalry }	
	illustration = { trigger = { is_north_maa     = yes }     reference = north_light_cavalry }
	illustration = { trigger = { is_holy_roman_maa    = yes } reference = holy_roman_light_cavalry }
	illustration = { trigger = { is_holy_roman_late_maa = yes } reference = holy_roman_late_light_cavalry }	
	illustration = { trigger = { is_frankish_maa    = yes }   reference = frankish_light_cavalry }		
	illustration = { trigger = { is_arabian_maa   = yes }     reference = arabian_light_cavalry }
	illustration = { trigger = { is_berber_maa    = yes }     reference = berber_light_cavalry }
	illustration = { trigger = { is_african_maa   = yes }     reference = african_light_cavalry }
	illustration = { trigger = { is_central_african_maa  = yes } reference = african_light_cavalry }
	illustration = { trigger = { is_west_african_maa  = yes } reference = african_light_cavalry }			
	illustration = { trigger = { is_east_african_maa  = yes } reference = east_african_light_cavalry }		
	illustration = { trigger = { is_indonesian_maa  = yes }   reference = indonesian_light_cavalry } 
	illustration = { trigger = { is_south_asian_maa  = yes }  reference = south_asian_light_cavalry } 
	illustration = { trigger = { is_chinese_maa       = yes } reference = chinese_light_cavalry }	
	illustration = { trigger = { is_asian_maa       = yes }   reference = asian_light_cavalry }
	illustration = { trigger = { is_caucasian_maa  = yes }    reference = caucasian_light_cavalry }
	illustration = { trigger = { is_persian_maa   = yes }     reference = persian_light_cavalry }	
	illustration = { trigger = { is_indian_maa  = yes }       reference = indian_light_cavalry }
	illustration = { trigger = { is_israelite_maa  = yes }    reference = israelite_light_cavalry }
	illustration = { trigger = { is_cuman_maa  = yes }    	  reference = cuman_light_cavalry }
	illustration = { trigger = { is_oghuz_maa  = yes }    	  reference = oghuz_light_cavalry }	
	illustration = { trigger = { is_american_maa  = yes }     reference = american_light_cavalry }		
	illustration = { reference = light_cavalry }
}

maa_thieves = {
	type = pikemen

	can_recruit = { always = no }
	
	damage = 30
	toughness = 20
	pursuit = 10
	screen = 10
	
	terrain_bonus = {
		mountains = { toughness = 15 }
		desert_mountains = { toughness = 15 }
		hills = { toughness = 10 }
	}

	counters = {
		light_cavalry = 1
		heavy_cavalry = 1
		camel_cavalry = 1
		elephant_cavalry = 1
	}

	buy_cost = { gold = jomsviking_pirates_recruitment_cost }
	low_maintenance_cost = { gold = jomsviking_pirates_low_maint_cost }
	high_maintenance_cost = { gold = jomsviking_pirates_high_maint_cost }
	provision_cost = @provisions_cost_infantry_cheap
	
	stack = 50
	ai_quality = { value = @cultural_maa_extra_ai_score }
	illustration = { trigger = { is_japanese_maa = yes }      reference = japanese_pikemen }
	illustration = { trigger = { is_emishi_maa = yes }        reference = emishi_pikemen }	
	illustration = { trigger = { is_korean_maa   = yes }      reference = korean_pikemen }
	illustration = { trigger = { is_tibetan_maa  = yes }      reference = tibetan_pikemen }
	illustration = { trigger = { is_scottish_maa = yes }      reference = scottish_pikemen }	
	illustration = { trigger = { is_scottish_late_maa = yes } reference = scottish_late_pikemen }		
	illustration = { trigger = { is_irish_maa    = yes }      reference = irish_pikemen }
	illustration = { trigger = { is_irish_late_maa    = yes } reference = irish_late_pikemen }
	illustration = { trigger = { is_breton_maa   = yes }      reference = breton_pikemen }	
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_pikemen }
	illustration = { trigger = { is_welsh_maa    = yes }      reference = welsh_late_pikemen }	
	illustration = { trigger = { is_english_maa  = yes }      reference = english_pikemen }	
	illustration = { trigger = { is_norman_maa   = yes }      reference = norman_pikemen }
	illustration = { trigger = { is_french_maa   = yes }      reference = french_pikemen }
	illustration = { trigger = { is_spanish_maa  = yes }      reference = spanish_pikemen }	
	illustration = { trigger = { is_spanish_late_maa  = yes } reference = spanish_late_pikemen }		
	illustration = { trigger = { is_saxon_maa    = yes }      reference = saxon_pikemen }
	illustration = { trigger = { is_anglosaxon_maa = yes }    reference = anglosaxon_pikemen }
	illustration = { trigger = { is_italian_maa  = yes }      reference = italian_pikemen }
	illustration = { trigger = { is_byzantine_maa = yes }     reference = byzantine_pikemen }
	illustration = { trigger = { is_turkic_maa    = yes }     reference = turkic_pikemen }
	illustration = { trigger = { is_mongol_maa    = yes }     reference = mongol_pikemen }
	illustration = { trigger = { is_south_slavic_maa = yes } reference = south_slavic_pikemen }
	illustration = { trigger = { is_south_slavic_late_maa = yes }  reference = south_slavic_late_pikemen }	
	illustration = { trigger = { is_slavic_maa    = yes }     reference = slavic_pikemen }
	illustration = { trigger = { is_westslavic_maa = yes }    reference = westslavic_pikemen }
	illustration = { trigger = { is_westslavic_late_maa = yes }  reference = westslavic_late_pikemen }	
	illustration = { trigger = { is_baltic_maa    = yes }     reference = baltic_pikemen }
	illustration = { trigger = { is_baltic_late_maa = yes }    reference = baltic_late_pikemen }	
	illustration = { trigger = { is_tungusic_maa    = yes }    reference = tungusic_pikemen }
	illustration = { trigger = { is_danish_late_maa    = yes } reference = danish_late_pikemen }	
	illustration = { trigger = { is_north_late_maa     = yes } reference = north_late_pikemen }			
	illustration = { trigger = { is_north_maa     = yes }     reference = north_pikemen }
	illustration = { trigger = { is_holy_roman_maa    = yes } reference = holy_roman_pikemen }
	illustration = { trigger = { is_holy_roman_late_maa = yes } reference = holy_roman_late_pikemen }	
	illustration = { trigger = { is_frankish_maa    = yes }   reference = frankish_pikemen }		
	illustration = { trigger = { is_arabian_maa   = yes }     reference = arabian_pikemen }
	illustration = { trigger = { is_berber_maa    = yes }     reference = berber_pikemen }
	illustration = { trigger = { is_african_maa   = yes }     reference = african_pikemen }
	illustration = { trigger = { is_central_african_maa  = yes } reference = african_pikemen }
	illustration = { trigger = { is_west_african_maa  = yes } reference = african_pikemen }			
	illustration = { trigger = { is_east_african_maa  = yes } reference = east_african_pikemen }		
	illustration = { trigger = { is_indonesian_maa  = yes }   reference = indonesian_pikemen } 
	illustration = { trigger = { is_south_asian_maa  = yes }  reference = south_asian_pikemen } 
	illustration = { trigger = { is_chinese_maa       = yes } reference = chinese_pikemen }	
	illustration = { trigger = { is_asian_maa       = yes }   reference = asian_pikemen }
	illustration = { trigger = { is_caucasian_maa  = yes }    reference = caucasian_pikemen }
	illustration = { trigger = { is_persian_maa   = yes }     reference = persian_pikemen }	
	illustration = { trigger = { is_indian_maa  = yes }       reference = indian_pikemen }
	illustration = { trigger = { is_israelite_maa  = yes }    reference = israelite_pikemen }
	illustration = { trigger = { is_cuman_maa  = yes }    	  reference = cuman_pikemen }
	illustration = { trigger = { is_oghuz_maa  = yes }    	  reference = oghuz_pikemen }	
	illustration = { trigger = { is_american_maa  = yes }     reference = american_pikemen }		
	illustration = { reference = pikemen }
}
