#### Local Types ####
@administration_1 = "gfx/interface/icons/culture_innovations/innovation_administration_01.dds"
@administration_2 = "gfx/interface/icons/culture_innovations/innovation_administration_02.dds"
@administration_3 = "gfx/interface/icons/culture_innovations/innovation_administration_03.dds"
@civil_construction_1 = "gfx/interface/icons/culture_innovations/innovation_civil_construction_01.dds"
@civil_construction_2 = "gfx/interface/icons/culture_innovations/innovation_civil_construction_02.dds"
@leadership_1 = "gfx/interface/icons/culture_innovations/innovation_leadership_01.dds"
@leadership_2 = "gfx/interface/icons/culture_innovations/innovation_leadership_02.dds"
@raised_banner = "gfx/interface/icons/culture_innovations/innovation_raised_banner.dds"
@fortifications = "gfx/interface/icons/culture_innovations/innovation_fortifications.dds"
@siege_weapons = "gfx/interface/icons/culture_innovations/innovation_siege_weapons.dds"
@levy_building = "gfx/interface/icons/culture_innovations/innovation_levy_building.dds"
@maa_01 = "gfx/interface/icons/culture_innovations/innovation_maa_01.dds"
@maa_02 = "gfx/interface/icons/culture_innovations/innovation_maa_02.dds"
@weapons_and_armor_01 = "gfx/interface/icons/culture_innovations/innovation_weapons_and_armor_01.dds"
@weapons_and_armor_02 = "gfx/interface/icons/culture_innovations/innovation_weapons_and_armor_02.dds"
@knight = "gfx/interface/icons/culture_innovations/innovation_knight.dds"
@hird = "gfx/interface/icons/culture_innovations/innovation_hird.dds"
@longboats = "gfx/interface/icons/culture_innovations/innovation_longboats.dds"
@majesty_01 = "gfx/interface/icons/culture_innovations/innovation_majesty_01.dds"
@majesty_02 = "gfx/interface/icons/culture_innovations/innovation_majesty_02.dds"
@majesty_03 = "gfx/interface/icons/culture_innovations/innovation_majesty_03.dds"
@nobility_01 = "gfx/interface/icons/culture_innovations/innovation_nobility_01.dds"
@nobility_02 = "gfx/interface/icons/culture_innovations/innovation_nobility_02.dds"
@nobility_03 = "gfx/interface/icons/culture_innovations/innovation_nobility_03.dds"
@nobility_04 = "gfx/interface/icons/culture_innovations/innovation_nobility_04.dds"
@misc_inventions = "gfx/interface/icons/culture_innovations/innovation_misc_inventions.dds"
@gunpowder = "gfx/interface/icons/culture_innovations/innovation_gunpowder.dds"
@caballeros = "gfx/interface/icons/culture_innovations/innovation_caballeros.dds"

@camel = "gfx/interface/icons/culture_innovations/innovation_camel.dds"
@elephant = "gfx/interface/icons/culture_innovations/innovation_elephant.dds"
@special_maa_01 = "gfx/interface/icons/culture_innovations/innovation_special_maa_01.dds"
@special_maa_02 = "gfx/interface/icons/culture_innovations/innovation_special_maa_02.dds"

innovation_zweihanders = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @special_maa_01
	region = ghw_region_germany

	potential = {
		has_cultural_pillar = heritage_central_germanic
	}

	unlock_maa = landsknecht

	flag = global_regional
	flag = global_maa
}

innovation_adaptive_militia = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @special_maa_02

	potential = {
		has_cultural_parameter = unlock_adaptive_militia_innovation
	}

	unlock_maa = goedendag

	flag = global_maa
}

innovation_valets = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @special_maa_01

	potential = {
		has_cultural_parameter = unlock_valets_innovation
	}

	unlock_maa = gendarme

	flag = global_maa
}

innovation_pike_columns = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @special_maa_01

	potential = {
		has_cultural_parameter = unlock_innovation_pike_columns
	}

	unlock_maa = picchieri

	flag = global_maa
}

innovation_legionnaires = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @special_maa_02

	potential = {
		OR = {
			this = culture:roman
			culture_head ?= {
				is_roman_emperor_primary_title_excluding_byzantium_trigger = yes
			}
		}
	}

	unlock_maa = praetorian

	flag = global_maa
}

innovation_desert_tactics = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @special_maa_02

	potential = {
		this = {
			has_innovation = innovation_desert_tactics
		}
	}

	unlock_maa = chasseur

	flag = global_maa
}

innovation_caballeros = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_europe_west_iberia
	icon = @caballeros

	unlock_maa = caballero

	flag = global_regional
	flag = tribal_era_regional
}

innovation_hobbies = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	region = ghw_region_britannia
	icon = @special_maa_02

	unlock_maa = hobelar

	flag = global_regional
	flag = global_maa
}

innovation_rectilinear_schiltron = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @special_maa_01

	potential = {
		has_cultural_parameter = unlock_schiltron_innovation
	}

	unlock_maa = schiltron

	flag = global_maa
}

innovation_bamboo_bows = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_india
	icon = @special_maa_02

	unlock_maa = paiks

	flag = global_regional
	flag = global_maa
}


innovation_sahel_horsemen = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	region = custom_sahel_proper
	icon = @special_maa_01

	unlock_maa = sahel_horsemen

	flag = global_regional
	flag = tribal_era_regional
}

innovation_sarawit = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @maa_02

	potential = {
		has_cultural_parameter = unlock_sarawit_innovation
	}

	unlock_maa = sarawit

	flag = global_maa
}

innovation_repeating_crossbow = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @special_maa_02

	potential = {
		trigger_if = {
			limit = {
				has_dlc = "All Under Heaven"
			}
			OR = {
				this = culture:tangut
				has_cultural_parameter = unlock_shenbigong_innovation
			}
		}
		trigger_else = {
			OR = {
				has_cultural_pillar = heritage_chinese
				this = culture:tangut
			}
		}
	}

	asset = {
		trigger = {
			has_cultural_pillar = heritage_chinese
		}
		icon = @special_maa_02
		name = innovation_repeating_crossbow_chinese
	}

	unlock_maa = shenbigong

	flag = global_maa
}

innovation_pole_vault = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @weapons_and_armor_01

	potential = {
		OR = {
			this = culture:guanches
			any_parent_culture_or_above = {
				this = culture:guanches
			}
		}
	}

	unlock_maa = guanch_vaulter

	flag = global_maa
}
