#### 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"
@advanced_bowmaking = "gfx/interface/icons/culture_innovations/innovation_advanced_bowmaking.dds"
@knighthood = "gfx/interface/icons/culture_innovations/innovation_knighthood.dds"
@heraldry = "gfx/interface/icons/culture_innovations/innovation_heraldry.dds"
@windmills = "gfx/interface/icons/culture_innovations/innovation_windmills.dds"
@siege_tower = "gfx/interface/icons/culture_innovations/innovation_auh_siege_tower.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_hoardings = {
	skill = stewardship
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @fortifications

	custom = unlock_high_medieval_fortification_buildings

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_trebuchet = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @siege_weapons

	custom = unlock_siege_maa_third_level

	asset = {
		trigger = {
			OR = {
				has_cultural_pillar = heritage_chinese
				has_cultural_pillar = heritage_japonic
				has_cultural_pillar = heritage_korean
			}
		}
		icon = @siege_tower
		name = innovation_trebuchet_chinese
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_castle_baileys = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @levy_building

	custom = unlock_high_medieval_military_buildings

	character_modifier = {
		levy_reinforcement_rate = 0.15
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

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

	character_modifier = {
		men_at_arms_cap = 1
		men_at_arms_limit = 4
		men_at_arms_title_limit = 1
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_knighthood = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @knighthood	

	character_modifier = {
		active_accolades = 1
		glory_hound_opinion = 5
		knight_effectiveness_mult = 0.2
		accolade_glory_gain_mult = 0.1
	}
	custom = students_of_knighthood
	custom = more_glory_hounds

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_advanced_bowmaking = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_high_medieval
	icon = @advanced_bowmaking

	custom = unlock_maa_crossbowmen
	unlock_building = workshops_01
	#maa_upgrade = {
	#	type = archers
	#	damage = 3
	#}

	custom = eligible_accolade_crossbower_attribute

	flag = global_regular
	flag = high_medieval_era_regular
}

#culture_group_civic
innovation_heraldry = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @heraldry

	unlock_law = high_partition_succession_law
	unlock_law = single_heir_dynasty_house
	custom = more_courtly

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_windmills = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @windmills

	unlock_building = windmills_01
	unlock_building = watermills_01

	county_modifier = {
		building_slot_add = 1
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_divine_right = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @majesty_03
	
	unlock_casus_belli = de_jure_cb
	
	custom = multiple_claim_wars_others

	custom = unlock_palatinate_contract
	
	custom = more_zealot

	character_modifier = {
		short_reign_duration_mult = -0.1
		monthly_piety_gain_mult = 0.1
		title_creation_cost_mult = -0.2
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_land_grants = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @administration_3

	custom = fabricate_claim_speed
	custom = cb_discount_prestige_10
	custom = more_parochial

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_scutage = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @leadership_2

	custom = unlock_scutage_contract
	
	character_modifier = {
		republic_government_tax_contribution_mult = 0.05
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_guilds = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @nobility_01

	custom = unlock_high_medieval_economic_buildings
	unlock_building = caravanserai_01
	county_modifier = {
		building_slot_add = 1
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_development_03 = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @civil_construction_2

	custom = reduce_develop_county_penalty_03

	flag = global_regular
	flag = high_medieval_era_regular
}

innovation_currency_03 = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	icon = @majesty_02

	character_modifier = {
		development_growth_factor = 0.1
	}

	flag = global_regular
	flag = high_medieval_era_regular
}

### culture_group_regional ###

innovation_east_settling = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	region = custom_europe_eastern_germany
	icon = @misc_inventions

	custom = promote_culture_speed
	character_modifier = {
		development_growth_factor = 0.15
	}

	flag = global_regional
	flag = high_medieval_era_regional
}

innovation_seigneurialism = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	region = world_europe_west_francia
	icon = @administration_1

	character_modifier = {
		domain_tax_mult = 0.05
	}

	flag = global_regional
	flag = high_medieval_era_regional
}

innovation_muladi = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	region = world_africa_north
	icon = @nobility_02

	character_modifier = {
		different_culture_opinion = 10
		development_growth_factor = 0.10
	}

	flag = global_regional
	flag = high_medieval_era_regional
}

innovation_french_peerage = {
	skill = diplomacy
	group = culture_group_civic
	culture_era = culture_era_high_medieval
	region = world_europe_west_francia
	icon = @nobility_03

	can_progress = { #Unlocked by event.
		custom_description = {
			text = "innovation_unlocked_by_decision_trigger"
			is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:flag_promoted_gothic_innovations
			}
		}
	}

	character_modifier = {
		courtly_opinion = 5
		fellow_vassal_opinion = -10
		vassal_tax_contribution_mult = 0.1
	}

	flag = global_regional
	flag = high_medieval_era_regional
}
