﻿### EK TODO: Adapt it to our own MaA and cultures
### EK NOTE: removed vanilla references

######################
# Men-at-Arms Values #
######################

#########
# Costs #
#########

@high_maint_mult = 3

### Base Cost Values
@skirmisher_recruitment_cost = 45
@skirmisher_low_maint_cost = 0.15
@skirmisher_high_maint_cost = @[skirmisher_low_maint_cost * high_maint_mult]

@archers_recruitment_cost = 55
@archers_low_maint_cost = 0.2
@archers_high_maint_cost = @[archers_low_maint_cost * high_maint_mult]

@pikemen_recruitment_cost = 75
@pikemen_low_maint_cost = 0.3
@pikemen_high_maint_cost = @[pikemen_low_maint_cost * high_maint_mult]

@heavy_infantry_recruitment_cost = 90
@heavy_infantry_low_maint_cost = 0.4
@heavy_infantry_high_maint_cost = @[heavy_infantry_low_maint_cost * high_maint_mult]

@light_cavalry_recruitment_cost = 85
@light_cavalry_low_maint_cost = 0.35
@light_cavalry_high_maint_cost = @[light_cavalry_low_maint_cost * high_maint_mult]

@heavy_cavalry_recruitment_cost = 200
@heavy_cavalry_low_maint_cost = 0.7
@heavy_cavalry_high_maint_cost = @[heavy_cavalry_low_maint_cost * high_maint_mult]

@siege_weapons_recruitment_cost = 60
@siege_weapons_low_maint_cost = 0.1
@siege_weapons_high_maint_cost = @[siege_weapons_low_maint_cost * high_maint_mult]

#EK ADDITION: New MaA types
@mages_recruitment_cost = 100
@mages_low_maint_cost = 0.5
@mages_high_maint_cost = @[mages_low_maint_cost * high_maint_mult]

@spellblades_recruitment_cost = 90
@spellblades_low_maint_cost = 0.5
@spellblades_high_maint_cost = @[spellblades_low_maint_cost * high_maint_mult]
#EK ADDITION END

### Base MAA
skirmisher_recruitment_cost = @[skirmisher_recruitment_cost]
skirmisher_low_maint_cost = @[skirmisher_low_maint_cost]
skirmisher_high_maint_cost = @[skirmisher_high_maint_cost]

bowmen_recruitment_cost = @[archers_recruitment_cost]
bowmen_low_maint_cost = @[archers_low_maint_cost]
bowmen_high_maint_cost = @[archers_high_maint_cost]
#EK ADDITION
@bowmen_recruitment_cost = @[archers_recruitment_cost] # necessary for further calculations
@bowmen_low_maint_cost = @[archers_low_maint_cost]
@bowmen_high_maint_cost = @[archers_high_maint_cost]
#EK ADDITION END

crossbowmen_recruitment_cost = @[archers_recruitment_cost * 1.6]
crossbowmen_low_maint_cost = @[archers_low_maint_cost * 1.5]
crossbowmen_high_maint_cost = @[archers_high_maint_cost * 1.5]
#EK ADDITION
@crossbowmen_recruitment_cost = @[archers_recruitment_cost * 1.6]
@crossbowmen_low_maint_cost = @[archers_low_maint_cost * 1.5]
@crossbowmen_high_maint_cost = @[archers_high_maint_cost * 1.5]
#EK ADDITION END

pikemen_recruitment_cost = @[pikemen_recruitment_cost]
pikemen_low_maint_cost = @[pikemen_low_maint_cost]
pikemen_high_maint_cost = @[pikemen_high_maint_cost]

heavy_infantry_recruitment_cost = @[heavy_infantry_recruitment_cost]
heavy_infantry_low_maint_cost = @[heavy_infantry_low_maint_cost]
heavy_infantry_high_maint_cost = @[heavy_infantry_high_maint_cost]

light_cavalry_recruitment_cost = @[light_cavalry_recruitment_cost]
light_cavalry_low_maint_cost = @[light_cavalry_low_maint_cost]
light_cavalry_high_maint_cost = @[light_cavalry_high_maint_cost]

heavy_cavalry_recruitment_cost = @[heavy_cavalry_recruitment_cost]
heavy_cavalry_low_maint_cost = @[heavy_cavalry_low_maint_cost]
heavy_cavalry_high_maint_cost = @[heavy_cavalry_high_maint_cost]

#EK ADDITION: New MaA types
mages_recruitment_cost = @[mages_recruitment_cost]
mages_low_maint_cost = @[mages_low_maint_cost]
mages_high_maint_cost = @[mages_high_maint_cost]

spellblades_recruitment_cost = @[spellblades_recruitment_cost]
spellblades_low_maint_cost = @[spellblades_low_maint_cost]
spellblades_high_maint_cost = @[spellblades_high_maint_cost]
#EK ADDITION END

### Siege Weapons MAA
torch_bearers_recruitment_cost = @[siege_weapons_recruitment_cost * 0.5]
torch_bearers_low_maint_cost = @[siege_weapons_low_maint_cost * 0.5]
torch_bearers_high_maint_cost = @[siege_weapons_high_maint_cost * 0.5]

onager_recruitment_cost = @[siege_weapons_recruitment_cost]
onager_low_maint_cost = @[siege_weapons_low_maint_cost]
onager_high_maint_cost = @[siege_weapons_high_maint_cost]

mangonel_recruitment_cost = @[siege_weapons_recruitment_cost * 1.1]
mangonel_low_maint_cost = @[siege_weapons_low_maint_cost * 1.1]
mangonel_high_maint_cost = @[siege_weapons_high_maint_cost * 1.1]

trebuchet_recruitment_cost = @[siege_weapons_recruitment_cost * 1.3]
trebuchet_low_maint_cost = @[siege_weapons_low_maint_cost * 1.3]
trebuchet_high_maint_cost = @[siege_weapons_high_maint_cost * 1.3]

bombard_recruitment_cost = @[siege_weapons_recruitment_cost * 1.6]
bombard_low_maint_cost = @[siege_weapons_low_maint_cost * 1.6]
bombard_high_maint_cost = @[siege_weapons_high_maint_cost * 1.6]


### EK DISABLED: These are unused
### EK TODO: Add our own
### Cultural MAA
# huscarls_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.28]
# huscarls_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.28]
# huscarls_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.28]

# landsknecht_recruitment_cost = @[pikemen_recruitment_cost * 1.2]
# landsknecht_low_maint_cost = @[pikemen_low_maint_cost * 1.2]
# landsknecht_high_maint_cost = @[pikemen_high_maint_cost * 1.2]

# longbowmen_recruitment_cost = @[archers_recruitment_cost * 1.2]
# longbowmen_low_maint_cost = @[archers_low_maint_cost * 1.2]
# longbowmen_high_maint_cost = @[archers_high_maint_cost * 1.2]

goedendag_recruitment_cost = @[skirmisher_recruitment_cost + 0]
goedendag_low_maint_cost = @[skirmisher_low_maint_cost + 0]
goedendag_high_maint_cost = @[skirmisher_high_maint_cost + 0]

# gendarme_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.2]
# gendarme_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.2]
# gendarme_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.2]

# chasseur_recruitment_cost = @[light_cavalry_recruitment_cost * 1.3]
# chasseur_low_maint_cost = @[light_cavalry_low_maint_cost * 1.3]
# chasseur_high_maint_cost = @[light_cavalry_high_maint_cost * 1.3]

# picchieri_recruitment_cost = @[pikemen_recruitment_cost * 1.3]
# picchieri_low_maint_cost = @[pikemen_low_maint_cost * 1.3]
# picchieri_high_maint_cost = @[pikemen_high_maint_cost * 1.3]

# praetorian_recruitment_cost = @[heavy_infantry_recruitment_cost * 2]
# praetorian_low_maint_cost = @[heavy_infantry_low_maint_cost * 2]
# praetorian_high_maint_cost = @[heavy_infantry_high_maint_cost * 2]

# caballero_recruitment_cost = @[light_cavalry_recruitment_cost + 0]
# caballero_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1]
# caballero_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1]

# mulaththamun_recruitment_cost = @[light_cavalry_recruitment_cost + 0]
# mulaththamun_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1]
# mulaththamun_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1]

# paiks_recruitment_cost = @[archers_recruitment_cost * 1.1]
# paiks_low_maint_cost = @[archers_low_maint_cost * 1.1]
# paiks_high_maint_cost = @[archers_high_maint_cost * 1.1]

# archers_of_the_nile_recruitment_cost = @[archers_recruitment_cost * 1.1]
# archers_of_the_nile_low_maint_cost = @[archers_low_maint_cost * 1.1]
# archers_of_the_nile_high_maint_cost = @[archers_high_maint_cost * 1.1]

# sahel_rider_recruitment_cost = @[light_cavalry_recruitment_cost + 5]
# sahel_rider_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1]
# sahel_rider_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1]

# cataphract_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.3]
# cataphract_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.3]
# cataphract_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.3]

# monaspa_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.25]
# monaspa_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.25]
# monaspa_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.25]

# hobelar_recruitment_cost = @[light_cavalry_recruitment_cost * 1.1]
# hobelar_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1]
# hobelar_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1]

# schiltron_recruitment_cost = @[pikemen_recruitment_cost * 1.5]
# schiltron_low_maint_cost = @[pikemen_low_maint_cost * 1.5]
# schiltron_high_maint_cost = @[pikemen_high_maint_cost * 1.5]

# metsanvartija_recruitment_cost = @[archers_recruitment_cost * 1.1]
# metsanvartija_low_maint_cost = @[archers_low_maint_cost * 1.1]
# metsanvartija_high_maint_cost = @[archers_high_maint_cost * 1.1]

horse_archers_recruitment_cost = @[skirmisher_recruitment_cost * 3]
horse_archers_low_maint_cost = @[skirmisher_low_maint_cost * 3]
horse_archers_high_maint_cost = @[skirmisher_high_maint_cost * 3]

# ayyar_recruitment_cost = @[heavy_infantry_recruitment_cost - 15]
# ayyar_low_maint_cost = @[heavy_infantry_low_maint_cost * 0.9]
# ayyar_high_maint_cost = @[heavy_infantry_high_maint_cost * 0.9]

# mubarizun_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.2]
# mubarizun_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.2]
# mubarizun_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.2]

druzhina_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.3]
druzhina_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.3]
druzhina_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.3]

# hussar_recruitment_cost = @[light_cavalry_recruitment_cost * 1.3]
# hussar_low_maint_cost = @[light_cavalry_low_maint_cost * 1.3]
# hussar_high_maint_cost = @[light_cavalry_high_maint_cost * 1.3]

# horn_warrior_recruitment_cost = @[skirmisher_recruitment_cost + 0]
# horn_warrior_low_maint_cost = @[skirmisher_low_maint_cost + 0]
# horn_warrior_high_maint_cost = @[skirmisher_high_maint_cost + 0]

# bush_hunter_recruitment_cost = @[archers_recruitment_cost + 0]
# bush_hunter_low_maint_cost = @[archers_low_maint_cost * 1.1]
# bush_hunter_high_maint_cost = @[archers_high_maint_cost * 1.1]

# shomer_recruitment_cost = @[skirmisher_recruitment_cost + 0]
# shomer_low_maint_cost = @[skirmisher_low_maint_cost + 0]
# shomer_high_maint_cost = @[skirmisher_high_maint_cost + 0]

# khandayat_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.2]
# khandayat_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.2]
# khandayat_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.2]

# garudas_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.28]
# garudas_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.28]
# garudas_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.28]

# mountaineer_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.2]
# mountaineer_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.2]
# mountaineer_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.2]

# guinea_warrior_recruitment_cost = @[skirmisher_recruitment_cost * 1.2]
# guinea_warrior_low_maint_cost = @[skirmisher_low_maint_cost * 1.2]
# guinea_warrior_high_maint_cost = @[skirmisher_high_maint_cost * 1.2]

# sarawit_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.2]
# sarawit_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.2]
# sarawit_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.2]

# abudrar_recruitment_cost = @[skirmisher_recruitment_cost * 1.8]
# abudrar_low_maint_cost = @[skirmisher_low_maint_cost * 1.8]
# abudrar_high_maint_cost = @[skirmisher_high_maint_cost * 1.8]

# zbrojnosh_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.1]
# zbrojnosh_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.1]
# zbrojnosh_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.1]

# palace_guards_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.2]
# palace_guards_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.2]
# palace_guards_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.2]

chu_ko_nu_recruitment_cost = @[archers_recruitment_cost * 1.5]
chu_ko_nu_low_maint_cost = @[archers_low_maint_cost * 1.5]
chu_ko_nu_high_maint_cost = @[archers_high_maint_cost * 1.5]

### EK NOTE: These guys are important... Somehow
bondi_recruitment_cost = @[pikemen_recruitment_cost * 0.67]
bondi_low_maint_cost = @[pikemen_low_maint_cost * 0.67]
bondi_high_maint_cost = @[pikemen_high_maint_cost * 0.67]

vigmen_recruitment_cost = @[archers_recruitment_cost * 1.1]
vigmen_low_maint_cost = @[archers_low_maint_cost * 1.1]
vigmen_high_maint_cost = @[archers_high_maint_cost * 1.1]

varangian_veterans_recruitment_cost = @[heavy_infantry_recruitment_cost * 1.67]
varangian_veterans_low_maint_cost = @[heavy_infantry_low_maint_cost * 1.67]
varangian_veterans_high_maint_cost = @[heavy_infantry_high_maint_cost * 1.67]

jomsviking_pirates_recruitment_cost = @[skirmisher_recruitment_cost * 1.4]
jomsviking_pirates_low_maint_cost = @[skirmisher_low_maint_cost * 1.4]
jomsviking_pirates_high_maint_cost = @[skirmisher_high_maint_cost * 1.4]

tawashi_recruitment_cost = @[light_cavalry_recruitment_cost * 1.1]
tawashi_low_maint_cost = @[light_cavalry_low_maint_cost * 1.1]
tawashi_high_maint_cost = @[light_cavalry_high_maint_cost * 1.1]

ayrudzi_recruitment_cost = @[light_cavalry_recruitment_cost]
ayrudzi_low_maint_cost = @[light_cavalry_low_maint_cost]
ayrudzi_high_maint_cost = @[light_cavalry_high_maint_cost]

conrois_recruitment_cost = @[heavy_cavalry_recruitment_cost * 0.85]
conrois_low_maint_cost = @[heavy_cavalry_low_maint_cost * 0.85]
conrois_high_maint_cost = @[heavy_cavalry_high_maint_cost * 0.85]

akritai_recruitment_cost = @[skirmisher_recruitment_cost * 0.9]
akritai_low_maint_cost = @[skirmisher_low_maint_cost * 0.9]
akritai_high_maint_cost = @[skirmisher_high_maint_cost * 0.9]

skoutatoi_recruitment_cost = @[pikemen_recruitment_cost * 1.1]
skoutatoi_low_maint_cost = @[pikemen_low_maint_cost * 1.1]
skoutatoi_high_maint_cost = @[pikemen_high_maint_cost * 1.1]

ballistrai_recruitment_cost = @[archers_recruitment_cost * 1.15]
ballistrai_low_maint_cost = @[archers_low_maint_cost * 0.75]
ballistrai_high_maint_cost = @[archers_high_maint_cost * 0.75]

asawira_recruitment_cost = 300
asawira_low_maint_cost = 1
asawira_high_maint_cost = 3

### Regional MAA
camel_rider_recruitment_cost = @[light_cavalry_recruitment_cost + 0]
camel_rider_low_maint_cost = @[light_cavalry_low_maint_cost * 0.8]
camel_rider_high_maint_cost = @[light_cavalry_high_maint_cost * 0.8]

war_elephant_recruitment_cost = @[heavy_cavalry_recruitment_cost * 2]
war_elephant_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.2]
war_elephant_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.4]

# guanch_vaulter_recruitment_cost = @[skirmisher_recruitment_cost * 1.2]
# guanch_vaulter_low_maint_cost = @[skirmisher_low_maint_cost * 1.2]
# guanch_vaulter_high_maint_cost = @[skirmisher_high_maint_cost * 1.2]

###Accolade MaA

accolade_skirmisher_recruitment_cost = @[skirmisher_recruitment_cost * 2]
accolade_bowmen_recruitment_cost = @[archers_recruitment_cost * 2]
accolade_crossbowmen_recruitment_cost = @[archers_recruitment_cost * 1.6 * 2]
accolade_pikemen_recruitment_cost = @[pikemen_recruitment_cost * 2]
accolade_heavy_infantry_recruitment_cost = @[heavy_infantry_recruitment_cost * 2]
accolade_light_cavalry_recruitment_cost = @[light_cavalry_recruitment_cost * 2]
accolade_heavy_cavalry_recruitment_cost = @[heavy_cavalry_recruitment_cost * 2]
accolade_camel_rider_recruitment_cost = @[light_cavalry_recruitment_cost * 2]
accolade_siege_weapons_recruitment_cost = @[siege_weapons_recruitment_cost * 2]
accolade_war_elephant_recruitment_cost = @[heavy_cavalry_recruitment_cost * 4]
accolade_horse_archers_recruitment_cost = @[skirmisher_recruitment_cost * 3 * 2]

varangian_guards_recruitment_cost = @[heavy_infantry_recruitment_cost * 0.8]
varangian_guards_low_maint_cost = @[heavy_infantry_low_maint_cost * 0.8]
varangian_guards_high_maint_cost = @[heavy_infantry_high_maint_cost * 0.8]

handpicked_faithful_recruitment_cost = @[heavy_infantry_recruitment_cost * 0.75]
handpicked_faithful_low_maint_cost = @[heavy_infantry_low_maint_cost * 0.75]
handpicked_faithful_high_maint_cost = @[heavy_infantry_high_maint_cost * 0.75]

#MPO

 steppe_raiders_recruitment_cost = @[light_cavalry_recruitment_cost * 0.9]
 steppe_raiders_low_maint_cost = @[light_cavalry_low_maint_cost * 0.9]
 steppe_raiders_high_maint_cost = @[light_cavalry_high_maint_cost * 0.9]

 heavy_horse_archers_recruitment_cost = @[skirmisher_recruitment_cost * 3.5]
 heavy_horse_archers_low_maint_cost = @[skirmisher_low_maint_cost * 3.5]
 heavy_horse_archers_high_maint_cost = @[skirmisher_high_maint_cost * 3.5]

 nomad_lancers_recruitment_cost = @[heavy_cavalry_recruitment_cost * 0.95]
 nomad_lancers_low_maint_cost = @[heavy_cavalry_low_maint_cost * 0.95]
 nomad_lancers_high_maint_cost = @[heavy_cavalry_high_maint_cost * 0.95]

 kheshig_recruitment_cost = @[skirmisher_recruitment_cost * 5]
 kheshig_veterans_low_maint_cost = @[skirmisher_low_maint_cost * 5]
 kheshig_veterans_high_maint_cost = @[skirmisher_high_maint_cost * 5]

 mangudai_recruitment_cost = @[skirmisher_recruitment_cost * 2.2]
 mangudai_low_maint_cost = @[skirmisher_low_maint_cost * 2.2]
 mangudai_high_maint_cost = @[skirmisher_high_maint_cost * 2.2]

 cataphract_archers_recruitment_cost = @[heavy_cavalry_recruitment_cost * 1.3]
 cataphract_archers_low_maint_cost = @[heavy_cavalry_low_maint_cost * 1.3]
 cataphract_archers_high_maint_cost = @[heavy_cavalry_high_maint_cost * 1.3]

 maturkan_warriors_recruitment_cost = @[archers_recruitment_cost * 1.05]
 maturkan_warriors_low_maint_cost = @[archers_low_maint_cost * 1.05]
 maturkan_warriors_high_maint_cost = @[archers_high_maint_cost * 1.05]

#EK ADDITION: New MaA types
accolade_mages_recruitment_cost = @[mages_recruitment_cost * 2]
accolade_spellblades_recruitment_cost = @[spellblades_recruitment_cost * 2]

###EK ADDITION: Cultural MaA values
# Restored the higher costs to reflect their better stats
@cultural_maa_modifier = 1.2

skirmisher_maa_recruitment_cost = @[skirmisher_recruitment_cost * cultural_maa_modifier]
skirmisher_maa_low_maint_cost = @[skirmisher_low_maint_cost * cultural_maa_modifier]
skirmisher_maa_high_maint_cost = @[skirmisher_high_maint_cost * cultural_maa_modifier]

bowmen_maa_recruitment_cost = @[bowmen_recruitment_cost * cultural_maa_modifier]
bowmen_maa_low_maint_cost = @[bowmen_low_maint_cost * cultural_maa_modifier]
bowmen_maa_high_maint_cost = @[bowmen_high_maint_cost * cultural_maa_modifier]

crossbowmen_maa_recruitment_cost = @[crossbowmen_recruitment_cost * cultural_maa_modifier]
crossbowmen_maa_low_maint_cost = @[crossbowmen_low_maint_cost * cultural_maa_modifier]
crossbowmen_maa_high_maint_cost = @[crossbowmen_high_maint_cost * cultural_maa_modifier]

pikemen_maa_recruitment_cost = @[pikemen_recruitment_cost * cultural_maa_modifier]
pikemen_maa_low_maint_cost = @[pikemen_low_maint_cost * cultural_maa_modifier]
pikemen_maa_high_maint_cost = @[pikemen_high_maint_cost * cultural_maa_modifier]

heavy_infantry_maa_recruitment_cost = @[heavy_infantry_recruitment_cost * cultural_maa_modifier]
heavy_infantry_maa_low_maint_cost = @[heavy_infantry_low_maint_cost * cultural_maa_modifier]
heavy_infantry_maa_high_maint_cost = @[heavy_infantry_high_maint_cost * cultural_maa_modifier]

light_cavalry_maa_recruitment_cost = @[light_cavalry_recruitment_cost * cultural_maa_modifier]
light_cavalry_maa_low_maint_cost = @[light_cavalry_low_maint_cost * cultural_maa_modifier]
light_cavalry_maa_high_maint_cost = @[light_cavalry_high_maint_cost * cultural_maa_modifier]

heavy_cavalry_maa_recruitment_cost = @[heavy_cavalry_recruitment_cost * cultural_maa_modifier]
heavy_cavalry_maa_low_maint_cost = @[heavy_cavalry_low_maint_cost * cultural_maa_modifier]
heavy_cavalry_maa_high_maint_cost = @[heavy_cavalry_high_maint_cost * cultural_maa_modifier]

siege_weapons_maa_recruitment_cost = @[siege_weapons_recruitment_cost * cultural_maa_modifier]
siege_weapons_maa_low_maint_cost = @[siege_weapons_low_maint_cost * cultural_maa_modifier]
siege_weapons_maa_high_maint_cost = @[siege_weapons_high_maint_cost * cultural_maa_modifier]

mages_maa_recruitment_cost = @[mages_recruitment_cost * cultural_maa_modifier]
mages_maa_low_maint_cost = @[mages_low_maint_cost * cultural_maa_modifier]
mages_maa_high_maint_cost = @[mages_high_maint_cost  * cultural_maa_modifier]

spellblades_maa_recruitment_cost = @[spellblades_recruitment_cost * cultural_maa_modifier]
spellblades_maa_low_maint_cost = @[spellblades_low_maint_cost * cultural_maa_modifier]
spellblades_maa_high_maint_cost = @[spellblades_high_maint_cost * cultural_maa_modifier]
#EK ADDITION END

##############
# AI Weights #
##############

### EK EDIT: Removed references to vanilla culture
### EK TODO: Use Heritages and update has cultural_maa triggers for events
culture_ai_weight_skirmishers = {
	value = -10
	
	if = { # Cultures that favours skirmishers
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_bosmeri
					has_cultural_pillar = heritage_nedic_south
					has_cultural_pillar = heritage_argonian
					has_cultural_pillar = heritage_lilmothiit
					has_cultural_pillar = heritage_chimeri
				}
			}
		}
		add = 20
	}
	if = { # Cultures that dislike skirmishers
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_dwemeri
					has_cultural_pillar = heritage_orsimeri
					has_cultural_pillar = heritage_dremora
					has_cultural_pillar = heritage_atmoran
				}
			}
		}
		add = -60
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_skirmisher_maa = yes
			}
		}
		add = -500
	}
}

culture_ai_weight_archers = {
	value = 0
	#EK ADDITION
	if = { # Cultures that REALLY like archers
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_bosmeri
					any_parent_culture_or_above = {
						this = culture:blackwood
					}
				}
			}
		}
		add = 80
	}
	#EK ADDITION END

	if = { # Cultures that favours archers
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_goblinken #EK EDIT
				}
			}
		}
		add = 40
	}

	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_archer_maa = yes
			}
		}
		add = -500
	}
}

culture_ai_weight_heavy_infantry = {
	value = 0
	
	if = { # Cultures that favours heavy infantry
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_cyrodiilic
					has_cultural_pillar = heritage_dunmeri
					has_cultural_pillar = heritage_dwemeri
					has_cultural_pillar = heritage_orsimeri
					has_cultural_pillar = heritage_dremora
					has_cultural_pillar = heritage_atmoran
				}
			}
		}
		add = 40
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit #EK EDIT
		limit = {
			culture = {
				culture_has_heavy_infantry_maa = yes
			}
		}
		add = -500
	}
}

culture_ai_weight_pikemen = {
	value = 0
	
	if = { # Cultures that favours spearmen 
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_breton
					has_cultural_pillar = heritage_argonian
					has_cultural_pillar = heritage_goblinken
				}
			}
		}
		add = 40
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_pikemen_maa = yes
			}
		}
		add = -500
	}
}

culture_ai_weight_light_cavalry = {
	value = 20
	
	if = { # Cultures that REALLY like light cavalry
		limit = {
			culture = {
				OR = {
					any_parent_culture_or_above = {
						OR = {
							this = culture:bjoule
							this = culture:silverhoof
							this = culture:horsefolk
						}
					}
				}
			}
		}
		add = 80
	}
	if = { # Cultures that favours light cavalry
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_yokudan
				}
			}
		}
		add = 40
	}
	if = { # Cultures that dislike light cavalry
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_dwemeri
					has_cultural_pillar = heritage_nedic_central
					has_cultural_pillar = heritage_atmoran
					has_cultural_pillar = heritage_dremora
				}
			}
		}
		add = -60
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_light_cavalry_maa = yes
			}
		}
		add = -500
	}
	
	#if = { # Cultures with a preference for Camel Riders should buy those over normal light cavalry
	#	limit = {
	#		always = no
	#		# culture = {
	#			# has_innovation = innovation_war_camels
	#		# }
	#		# OR = {
	#			# culture_group = culture_group:arabic_group
	#			# culture_group = culture_group:berber_group
	#		# }
	#	}
	#	add = -80
	#}
}

culture_ai_weight_heavy_cavalry = {
	value = 0
	
	if = { # Cultures that REALLY like heavy cavalry
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_yokudan
					has_cultural_pillar = heritage_breton
					has_cultural_pillar = heritage_falmeri
					has_cultural_pillar = heritage_aldmeri
				}
			}
		}
		add = 80
	}
	#if = { # Cultures that favours heavy cavalry
	#	limit = {
	#		always = no
	#		# OR = {
	#			# culture_group = culture_group:central_germanic_group
	#			# culture_group = culture_group:frankish_group
	#			# culture_group = culture_group:indo_aryan_group
	#		# }
	#	}
	#	add = 40
	#}
	if = { # Cultures that dislike heavy cavalry
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_bosmeri
					has_cultural_pillar = heritage_argonian
					has_cultural_pillar = heritage_nedic_south
				}
			}
		}
		add = -60
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_heavy_cavalry_maa = yes
			}
		}
		add = -500
	}
}

culture_ai_weight_camels = {
	value = 20
	
	#if = { # Cultures that favours camel riders
	#	limit = {
	#		always = no
	#		# OR = {
	#			# culture_group = culture_group:arabic_group
	#			# culture_group = culture_group:berber_group
	#		# }
	#	}
	#	add = 80
	#}
}

culture_ai_weight_elephants = {
	value = 0
	
	#if = { # Cultures that favours war elephants
	#	limit = {
	#		always = no
	#		# OR = {
	#			# culture_group = culture_group:dravidian_group
	#			# culture_group = culture_group:indo_aryan_group
	#			# culture_group = culture_group:burman_group
	#		# }
	#	}
	#	add = 60
	#}
}

culture_ai_weight_vigmen = {
	value = 60
	
	if = { # Cultures that favours heavy infantry
		limit = {
			any_sub_realm_county = { is_coastal_county = yes }
		}
		add = 20
	}
}

counter_synergy_ai_weight_archers = {
	value = 0
	if = {
		limit = {
			number_maa_regiments_of_base_type = {
				type = heavy_infantry
				value >= 3
			}
			NOT = { #no need to add more if i.e. regional or inherited maa of that type already exists
				number_maa_regiments_of_base_type = {
					type = archers
					value >= 1
				}
			}
		}
		add = 60
	}
}

counter_synergy_ai_weight_pikemen = {
	value = 0
	if = {
		limit = {
			number_maa_regiments_of_base_type = {
				type = archers
				value >= 3
			}
			NOT = { #no need to add more if i.e. regional or inherited maa of that type already exists
				number_maa_regiments_of_base_type = {
					type = pikemen
					value >= 1
				}
			}
		}
		add = 60
	}
}

counter_synergy_ai_weight_heavy_infantry = {
	value = 0
	if = {
		limit = {
			OR = {
				number_maa_regiments_of_base_type = {
					type = heavy_cavalry
					value >= 3
				}
				number_maa_regiments_of_base_type = {
					type = light_cavalry
					value >= 3
				}
			}
			NOT = { #no need to add more if i.e. regional or inherited maa of that type already exists
				number_maa_regiments_of_base_type = {
					type = heavy_infantry
					value >= 1
				}
			}
		}
		add = 60
	}
}

counter_synergy_ai_weight_light_cavalry = {
	value = 0
	if = {
		limit = {
			number_maa_regiments_of_base_type = {
				type = skirmishers
				value >= 3
			}
			NOT = { #no need to add more if i.e. regional or inherited maa of that type already exists
				number_maa_regiments_of_base_type = {
					type = light_cavalry
					value >= 1
				}
			}
		}
		add = 60
	}
}

###################
# Provisions Costs #
###################

#TODO_CD_EP3; these can't actually be used due to some kind of load order issue: they're synced in each file instead. We should file a bug and see if Code can fix.
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

# Generally used for siege weapons & adjacent similar stuff.
## Cheaper than cavalry, as they need less support infrastructure than mounted troops, but more expensive than infantry — tools may not eat but heavy supplies still need transporting, proofing against the elements, etc, whilst hard-to-find engineers may not put up with common grub.
provisions_cost_special_cheap = 6
provisions_cost_special_moderate = 12
provisions_cost_special_expensive = 18
provisions_cost_special_bankrupting = 24

###EK ADDITION: New AI weights for Mages and Spellblades types


culture_ai_weight_mages = {
	value = 0
	
	if = { # Cultures that like mages
		limit = {
			culture = {
				has_cultural_parameter = magic_preference
			}
		}
		add = 80
	}
	if = { # Cultures that dislike mages
		limit = {
			culture = {
				OR = {
					has_cultural_pillar = heritage_orsimeri
					has_cultural_pillar = heritage_atmoran #Note:perhaps only specific Nordic cultures?
					has_cultural_pillar = heritage_nedic_south
				}
			}
		}
		add = -60
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_mage_maa = yes
			}
		}
		add = -100
	}
}



culture_ai_weight_spellblades = {
	value = 0
	
	if = { # Cultures that like spellblades
		limit = {
			culture = {
				has_cultural_parameter = magic_preference
			}
		}
		add = 80
	}
	
	if = { # Cultures with a special MaA of that type should avoid the base version of the unit
		limit = {
			culture = {
				culture_has_spellblades_maa  = yes
			}
		}
		add = -100
	}
}
#EK ADDITION END