#### 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"
@innovation_welfare_02 = "gfx/interface/icons/culture_innovations/innovation_welfare_02.dds"
@misc_inventions = "gfx/interface/icons/culture_innovations/innovation_misc_inventions.dds"
@rocket_cart = "gfx/interface/icons/culture_innovations/innovation_rocket_cart.dds"
@compass = "gfx/interface/icons/culture_innovations/innovation_compass.dds"
@block_printing = "gfx/interface/icons/culture_innovations/innovation_block_printing.dds"
@cupellation = "gfx/interface/icons/culture_innovations/innovation_cupellation.dds"
@bulkheads = "gfx/interface/icons/culture_innovations/innovation_bulkheads.dds"
@pharmacopoeia = "gfx/interface/icons/culture_innovations/innovation_pharmacopoeia.dds"
@crossbow = "gfx/interface/icons/culture_innovations/innovation_advanced_bowmaking.dds"
@sericulture = "gfx/interface/icons/culture_innovations/innovation_sericulture.dds"
@dragon_kiln = "gfx/interface/icons/culture_innovations/innovation_dragon_kiln.dds"
@grenades = "gfx/interface/icons/culture_innovations/innovation_grenades.dds"
@double_entry_bookkeeping = "gfx/interface/icons/culture_innovations/innovation_double_entry_bookkeeping.dds"
@waterworks = "gfx/interface/icons/culture_innovations/innovation_waterworks.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_fire_medicine = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_early_medieval
	icon = @gunpowder

	potential = {
		silk_road_innovation_trigger = { INNOVATION = fire_medicine }
	}
	parameters = {
		silk_road_innovation_parameter = yes
		unlock_fire_lancers_units = yes
		unlock_powder_magazines = yes
	}

	flag = global_maa
	flag = early_medieval_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_early_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_champa_rice = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @innovation_farm

	potential = {
		OR = {
			silk_road_innovation_trigger = { INNOVATION = champa_rice }
			culture:cham ?= this
		}
	}

	county_modifier = {
		wetlands_development_growth_factor = 0.15
		wetlands_construction_gold_cost = -0.1
		wetlands_levy_size = 0.1
	}

	parameters = {
		silk_road_innovation_parameter = yes
		champa_rice_building_bonuses = yes
		champa_rice_wet_land_paddies = yes
	}

	flag = global_regional
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_rocket_cart = { # Singijeon & Hwacha, and the Huo Che
	skill = learning
	group = culture_group_military
	culture_era = culture_era_late_medieval
	icon = @rocket_cart

	asset = {
		trigger = {
			OR = {
				has_cultural_pillar = heritage_korean
				has_cultural_pillar = heritage_buyeo
			}
		}
		icon = @rocket_cart
		name = innovation_rocket_cart_koreanic
	}

	asset = {
		trigger = {
			has_cultural_pillar = heritage_chinese
		}
		icon = @rocket_cart
		name = innovation_rocket_cart_chinese
	}

	potential = {
		has_tgp_dlc_trigger = yes
		OR = {
			has_cultural_pillar = heritage_chinese
			has_cultural_pillar = heritage_korean
			has_cultural_pillar = heritage_buyeo
		}
	}

	can_progress = {
		has_innovation = innovation_fire_medicine
	}

	unlock_maa = rocket_carts

	province_modifier = {
		defender_holding_advantage = 5
	}

	flag = global_regional
	flag = late_medieval_era_regional
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_late_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_sericulture = { # VICTORIA TECHS ARE BACK BABEYYY AWOOOOU (wolf howl)
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @sericulture

	potential = {
		silk_road_innovation_trigger = { INNOVATION = sericulture }
	}

	parameters = {
		unlocks_silk_buildings_parameter = yes
		reduces_court_fashion_costs_parameter = yes
		silk_road_innovation_parameter = yes
	}

	character_modifier = {
		monthly_prestige_gain_per_legitimacy_level_add = 0.1
	}

	flag = global_regional
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_compass = {
	skill = learning
	group = culture_group_civic
	culture_era = culture_era_early_medieval
	icon = @compass

	potential = {
		silk_road_innovation_trigger = { INNOVATION = compass }
	}

	character_modifier = {
		character_travel_speed = 5 # Now I know where I'm going!
		character_travel_safety = 5 # Now I know where I shouldn't be going!
		movement_speed = 0.05 # Now my army knows where it's going!
	}

	parameters = {
		cheaper_adventure_inspiration = yes
		silk_road_innovation_parameter = yes
	}

	flag = silk_road_innovation
	flag = early_medieval_era_regional
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_early_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_dragon_kiln = {
	skill = learning
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @dragon_kiln

	potential = {
		silk_road_innovation_trigger = { INNOVATION = dragon_kiln }
	}

	parameters = {
		unlock_dragon_kiln_buildings = yes
		silk_road_innovation_parameter = yes
	}

	flag = global_regional
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_block_printing = {
	skill = learning
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @block_printing

	potential = {
		silk_road_innovation_trigger = { INNOVATION = block_printing }
	}

	character_modifier = {
		owned_legend_spread_mult = 0.15
	}
	
	county_modifier = {
		development_growth_factor = 0.1
	}

	parameters = {
		cheaper_book_inspiration = yes
		block_printing_scriptorium_bonuses = yes
		block_printing_university_bonuses = yes
		silk_road_innovation_parameter = yes
	}

	flag = global_regional
	flag = tribal_era_regional
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_grenades = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_early_medieval
	icon = @grenades

	potential = {
		silk_road_innovation_trigger = { INNOVATION = grenades }
	}

	maa_upgrade = {
		type = skirmishers
		damage = 6
		toughness = 2
		screen = 5
	}

	maa_upgrade = {
		type = gunpowder
		damage = 6
		toughness = 2
		screen = 5
	}

	province_modifier = {
		defender_holding_advantage = 5
	}

	parameters = {
		silk_road_innovation_parameter = yes
	}

	flag = global_maa
	flag = early_medieval_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_early_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_cupellation = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @cupellation

	potential = {
		silk_road_innovation_trigger = { INNOVATION = cupellation }
	}
	
	province_modifier = {
		hills_tax_mult = 0.15
		mountains_tax_mult = 0.15
		desert_mountains_tax_mult = 0.15
	}

	parameters = {
		silk_road_innovation_parameter = yes
		cupellation_mine_building_bonuses = yes
	}

	flag = global_maa
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_lacquered_armor = {
	skill = stewardship
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @weapons_and_armor_02

	potential = {
		silk_road_innovation_trigger = { INNOVATION = lacquered_armor }
	}

	character_modifier = {
		heavy_infantry_maintenance_mult = -0.05
		heavy_cavalry_maintenance_mult = -0.05
	}
	
	maa_upgrade = {
		type = skirmishers
		toughness = 2
	}
	maa_upgrade = {
		type = heavy_infantry
		toughness = 4
	}
	maa_upgrade = {
		type = heavy_cavalry
		toughness = 8
	}

	parameters = {
		higher_quality_armor_artifacts_parameter = yes
		silk_road_innovation_parameter = yes
	}

	flag = global_maa
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_double_entry_bookkeeping = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_early_medieval
	icon = @double_entry_bookkeeping

	potential = {
		silk_road_innovation_trigger = { INNOVATION = double_entry_bookkeeping }
	}

	character_modifier = {
		domain_tax_mult = 0.05
	}

	parameters = {
		bookkeeping_collect_taxes_bonus = yes
		silk_road_innovation_parameter = yes
	}

	flag = early_medieval_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_early_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_bulkheads = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_early_medieval
	icon = @bulkheads

	potential = {
		silk_road_innovation_trigger = { INNOVATION = bulkheads }
	}

	character_modifier = {
		coastal_sea_travel_danger = medium_sea_danger_reduction
		sea_travel_danger = medium_sea_danger_reduction
	}

	parameters = {
		silk_road_innovation_parameter = yes
	}

	flag = early_medieval_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_early_medieval
				}
			}
			multiply = 0
		}
	}
}

innovation_coking = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @weapons_and_armor_01

	potential = {
		silk_road_innovation_trigger = { INNOVATION = coking }
	}

	character_modifier = {
		men_at_arms_recruitment_cost = -0.15
	}
	
	county_modifier = {
		forest_development_growth_factor = 0.15
		taiga_development_growth_factor = 0.15
		forest_construction_gold_cost = -0.15
		taiga_construction_gold_cost = -0.15
	}

	parameters = {
		coking_smith_bonuses = yes
		silk_road_innovation_parameter = yes
	}

	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_composite_crossbow = {
	skill = learning
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @crossbow

	potential = {
		silk_road_innovation_trigger = { INNOVATION = composite_crossbow }
	}

	can_progress = {
		custom_tooltip = {
			text = silk_road_crossbow_trigger_tt
			OR = {
				has_innovation = innovation_advanced_bowmaking
				has_innovation = innovation_repeating_crossbow
			}
		}
	}

	maa_upgrade = {
		men_at_arms = crossbowmen
		damage = 5
		screen = 5
		siege_value = 0.1
	}

	maa_upgrade = {
		men_at_arms = shenbigong
		damage = 5
		screen = 5
		siege_value = 0.1
	}

	parameters = {
		silk_road_innovation_parameter = yes
	}

	flag = global_maa
	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_pharmacopoeia = {
	skill = learning
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @pharmacopoeia

	potential = {
		silk_road_innovation_trigger = { INNOVATION = pharmacopoeia }
	}
	character_modifier = {
		life_expectancy = 3
	}
	county_modifier = {
		epidemic_resistance = 5
	}

	parameters = {
		physician_pharmacopoeia_bonus = yes
		silk_road_innovation_parameter = yes
	}

	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_waterworks = {
	skill = stewardship
	group = culture_group_civic
	culture_era = culture_era_tribal
	icon = @waterworks

	potential = {
		silk_road_innovation_trigger = { INNOVATION = waterworks }
	}
	county_modifier = {
		epidemic_resistance = 5
	}

	parameters = {
		unlocks_waterworks_buildings = yes
		silk_road_innovation_parameter = yes
	}

	flag = tribal_era_regional
	flag = silk_road_innovation
	
	ai_weight_for_fascination = {
		value = 100
	}
}

innovation_tiefutu = {
	skill = martial
	group = culture_group_military
	culture_era = culture_era_tribal
	icon = @special_maa_01
	region = world_asia_north_east

	unlock_maa = tiefutu

	flag = global_regional
	flag = global_maa
	
	ai_weight_for_fascination = {
		value = 100
		if = {
			limit = {
				NOT = {
					has_cultural_era_or_later = culture_era_high_medieval
				}
			}
			multiply = 0
		}
	}
}
