#### 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"
@gunpowder = "gfx/interface/icons/culture_innovations/innovation_gunpowder.dds"
@innovation_farm = "gfx/interface/icons/culture_innovations/innovation_farm.dds"
@coins = "gfx/interface/icons/culture_innovations/innovation_welfare_01.dds"
@misc_inventions = "gfx/interface/icons/culture_innovations/innovation_misc_inventions.dds"
@quilted_armor = "gfx/interface/icons/culture_innovations/innovation_quilted_armor.dds"
@currency = "gfx/interface/icons/culture_innovations/innovation_currency.dds"
@farm = "gfx/interface/icons/culture_innovations/innovation_farm.dds"
@plenary_assemblies = "gfx/interface/icons/culture_innovations/innovation_plenary_assemblies.dds"
@siege_crossbow = "gfx/interface/icons/culture_innovations/innovation_auh_ballista.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"


#culture_group_military
innovation_motte = { # Earthworks in-game
	skill = stewardship
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @fortifications

	asset = {
		trigger = {
			OR = {
				has_cultural_pillar = heritage_frankish
				has_cultural_pillar = heritage_central_germanic
				has_cultural_pillar = heritage_west_germanic
				has_cultural_pillar = heritage_north_germanic
				has_cultural_pillar = heritage_iberian
				has_cultural_pillar = heritage_brythonic
				has_cultural_pillar = heritage_goidelic
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_west_slavic
			}
		}
		icon = @fortifications
		name = innovation_motte_actual_motte
	}

	asset = {
		trigger = {
			has_cultural_pillar = heritage_chinese
		}
		icon = @fortifications
		name = innovation_motte_chinese
	}

	custom = unlock_tribal_fortification_buildings

	parameters = {
		nomad_motte_innovation_bonus = yes
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_catapult = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @siege_weapons

	custom = unlock_siege_maa_first_level

	asset = {
		trigger = {
			OR = {
				has_cultural_pillar = heritage_chinese
				has_cultural_pillar = heritage_japonic
				has_cultural_pillar = heritage_korean
			}
		}
		icon = @siege_crossbow
		name = innovation_catapult_chinese
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_barracks = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @levy_building

	custom = unlock_tribal_military_buildings

	character_modifier = {
		herd_capacity_mult = 0.05
		levy_attack = 2
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_mustering_grounds = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @leadership_2

	character_modifier = {
		men_at_arms_cap = 1
		men_at_arms_limit = 2
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_bannus = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @raised_banner

	custom = unlock_march_contract
	custom = unlock_castellan_contract

	character_modifier = {
		levy_reinforcement_rate = 0.15
		active_accolades = 1
		herd_conversion = 0.005
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_quilted_armor = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @quilted_armor

	custom = unlock_maa_armored_footmen
	custom = eligible_accolade_vanguard_attribute

	character_modifier = {
		nomadic_horde_toughness_mult = 0.02
		levy_toughness = 2
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_development_01 = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @civil_construction_1

	custom = reduce_develop_county_penalty_01

	character_modifier = {
		county_fertility_growth_mult = 0.05
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_currency_01 = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @currency

	character_modifier = {
		development_growth_factor = 0.1
		monthly_income_from_herd_mult = 0.05
	}

	flag = global_regular
	flag = tribal_era_regular
}

#culture_group_civic
innovation_gavelkind = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @administration_3

	unlock_law = confederate_partition_succession_law
	
	character_modifier = {
		domain_limit = 1
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_crop_rotation = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @farm

	custom = unlock_tribal_economic_buildings

	character_modifier = {
		county_fertility_growth_mult = 0.05
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_city_planning = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @civil_construction_2

	unlock_building = city_01
	unlock_building = temple_01
	unlock_building = monastic_schools_01
	unlock_building = megalith_01
	unlock_building = market_villages_01

	character_modifier = {
		herd_capacity_mult = 0.05
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_casus_belli = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @administration_1

	unlock_casus_belli = individual_county_de_jure_cb
	unlock_casus_belli = individual_duchy_de_jure_cb

	flag = global_regular
	flag = tribal_era_regular
}

innovation_plenary_assemblies = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @plenary_assemblies

	unlock_law = crown_authority_1

	unlock_building = tribe_02

	character_modifier = {
		vassal_herd_contribution_mult = 0.02
	}

	flag = global_regular
	flag = tribal_era_regular
}

innovation_ledger = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @administration_2

	county_modifier = {
		building_slot_add = 1
	}
	character_modifier = {
		monthly_income_from_herd_mult = 0.05
	}

	flag = global_regular
	flag = tribal_era_regular
}

### culture_group_regional ###

innovation_table_of_princes = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @nobility_01
	
	potential = {
		OR = {
			#West Slavic
			this = culture:czech
			this = culture:slovien
		}
	}
	
	unlock_law = single_heir_dynasty_house
	custom = unlock_single_heir_dynasty_house_changing
	
	flag = global_regional
	flag = tribal_era_regional
}

innovation_longboats = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_europe_north
	icon = @longboats

	character_modifier = {
		embarkation_cost_mult = -0.75
		naval_movement_speed_mult = 0.25
	}

	custom = unlocks_naval_raiding
	custom = unlocks_sailable_major_rivers
	custom = unlocks_adventure_intent

	flag = global_regional
	flag = tribal_era_regional
}

innovation_elephantry = {
	skill = stewardship
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_innovation_elephants
	icon = @elephant

	unlock_building = elephant_pens_01

	custom = eligible_accolade_elephantry_attribute
	custom = domicile_building_parameter_camp_reinforce_elephant_regiments_anywhere

	flag = global_regional
	flag = tribal_era_regional
}

innovation_war_camels = {
	skill = stewardship
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_innovation_camels
	icon = @camel

	unlock_maa = camel_rider
	unlock_building = camel_farms_01

	custom = eligible_accolade_camelry_attribute

	flag = global_regional
	flag = tribal_era_regional
}

innovation_wootz_steel = {
	skill = learning
	group = culture_group_civic
	culture_era = culture_era_tribal
	region = world_india_deccan
	icon = @weapons_and_armor_01

	character_modifier = {
		prowess = 1
	}
	custom = unlock_wind_furnaces

	flag = global_regional
	flag = tribal_era_regional
}

innovation_african_canoes = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	region = world_africa_west
	icon = @majesty_01

	character_modifier = {
		embarkation_cost_mult = -0.25
		raid_speed = 0.1
	}
	
	custom = unlocks_naval_raiding
	custom = unlocks_sailable_major_rivers

	flag = global_regional
	flag = tribal_era_regional
}
