WoC_cuzco_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = CSU
			tag = INC
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes

	CSU_authority = {
		icon = mission_city_of_victory_vij
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					NOT = { is_religion_reformed = yes }
				}
				authority = 20
			}
			army_size = 4 # modified
			legitimacy_equivalent = 90
		}
		effect = {
			add_war_exhaustion = -2
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = CSU_solidifying_authority
				duration = 10950
			}
		}
	} 

	CSU_oracle = {
		icon = mission_found_udaipur
		required_missions = { CSU_authority CSU_wanka }
		position = 3
		provinces_to_highlight = {
			province_id = 809
		}
		trigger = {	
			809 = {
				owned_by = ROOT
			}
			
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60 
				}
			}
		}
		effect = {
			INC_upgrade_pachakuti = { type = dip }
			
			809 = {
				add_or_upgrade_tax_building = yes
				
				custom_tooltip = " "
				
				set_local_autonomy = 0
				
				custom_tooltip = " "
				
				add_base_tax = 2 
			}
		}
	}
}

WoC_cuzco_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = CSU
			tag = INC
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	CSU_wanka = {
		icon = mission_restore_rule_over_mysore
		required_missions = { CSU_ground_shaker }
		position = 2
		provinces_to_highlight = {
			OR = {
				owned_by = WKA
				AND = {
					OR = {
						province_id = 810
						province_id = 811
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
			}
		}
		trigger = {
			NOT = { exists = WKA }
			811 = { country_or_non_sovereign_subject_holds = ROOT }
			810 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			give_claims = { area = chimor_area }
			give_claims = { area = cajamarca_area }
			give_claims = { area = ucayali_area }
			give_claims = { area = quito_area }
			
			custom_tooltip = " "
			
			INC_upgrade_pachakuti = { type = adm }
			
			if = {
				limit = {
					OR = {
						has_dlc = "Res Publica"
						has_dlc = "Common Sense"
					}
				}
				complex_dynamic_effect = {
					first_custom_tooltip = "CSU_if_we_have_adm_focus"
					first_limit = " national_focus = adm "
					first_effect = "
						add_country_modifier = {
							name = CSU_adm_focus_buff
							duration = 9125
						}
					"
					second_custom_tooltip = "CSU_if_we_have_dip_focus"
					second_limit = " national_focus = dip "
					second_effect = "
						add_country_modifier = {
							name = CSU_dip_focus_buff
							duration = 9125
						}
					"
					third_custom_tooltip = "CSU_if_we_have_mil_focus"
					third_limit = " national_focus = mil "
					third_effect = "
						add_country_modifier = {
							name = CSU_mil_focus_buff
							duration = 9125
						}
					"
				}
				else = {
					add_country_modifier = {
						name = CSU_dip_focus_buff
						duration = 9125
					}
				}
			}
		}
	}
	
	CSU_defeat_chimu = {
		icon = mission_nah_ravine_dwellers
		required_missions = { CSU_wanka }
		position = 4
		provinces_to_highlight = {
			OR = {
				owned_by = CHM
				AND = {
					OR = {
						province_id = 2821
						province_id = 2822
						province_id = 812
						province_id = 2826
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
			}
		}
		trigger = {
			NOT = { exists = CHM }
			2821 = { country_or_non_sovereign_subject_holds = ROOT }
			2822 = { country_or_non_sovereign_subject_holds = ROOT }
			812 = { country_or_non_sovereign_subject_holds = ROOT }
			2826 = { country_or_non_sovereign_subject_holds = ROOT }
		} 
		effect = {
			INC_upgrade_pachakuti = { type = mil }
			
			add_power_projection_mission = { amount = 20 }
			
			custom_tooltip = " "
			
			set_country_flag = flavor_inc_7_flag
			country_event_with_option_insight = {
				id = flavor_inc.7
				option_1 = "
					add_country_modifier = {
						name = \"inc_chimu_integration\"
						duration = -1
					}
					
					add_accepted_culture_or_dip_power = { culture = chimuan value = 100 }
				"
				option_2 = "
					custom_tooltip = INC_every_province_in_chimu_area_loses_25_autonomy
				"
			}
		}
	}
}

WoC_cuzco_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = CSU
			tag = INC
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	CSU_ground_shaker = {
		icon = mission_ground_shaker
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			OR = {
				army_size = 4 # modified
				army_size_percentage = 0.9
				is_at_war = yes
			}
		}
		effect = {
			give_claims = { area = antisuyu_area }
			give_claims = { area = huanuco_area }
			
			custom_tooltip = " "
			
			set_country_flag = flavor_inc_2_can_fire
			country_event_with_effect_insight = {
				id = flavor_inc.2
				effect = "
					add_years_of_income = 0.25
					add_adm_power = 75
					add_dip_power = 75
					add_mil_power = 75
					if = {
						limit = {
							has_dlc = \"Winds of Change\"
						}
						custom_tooltip = \" \"
						custom_tooltip = CSU_pachakuti_upgrades
						if = {
							limit = {
								has_dlc = \"Leviathan\"
								NOT = { is_year = 1480 }
								tag = CSU
							}
							custom_tooltip = CSU_if_we_form_inca_before_1480_machu_picchu
						}
					}
				"
			}
		}
	}
	
	CSU_cajamarca = {
		icon = mission_sw_paquime
		required_missions = { CSU_ground_shaker CSU_wanka }
		position = 3
		provinces_to_highlight = {
			province_id = 813
		}
		trigger = {
			813 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			INC_upgrade_pachakuti = { type = dip }
			
			add_army_tradition_or_mil_power = { amount = 10 }
			
			custom_tooltip = " "
			
			create_general_with_pips = { add_shock = 1 tradition = 50 }
		}
	}
	
	CSU_quito = {
		icon = mission_pue_restore_mesa_verde
		required_missions = { CSU_cajamarca }
		position = 5
		provinces_to_highlight = {
			area = quito_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			quito_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			INC_upgrade_pachakuti = { type = adm }
			
			add_accepted_culture_or_dip_power = { culture = cara value = 100 }
			
			custom_tooltip = " "
			
			set_country_flag = CSU_will_be_able_to_colonize_mountains_flag
			custom_tooltip = CSU_will_be_able_to_colonize_mountains
		}
	}
}

WoC_cuzco_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = CSU
			tag = INC
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	CSU_qolla = {
		icon = mission_lake_texcoco #texcoco isn't quite titicaca
		required_missions = { CSU_ground_shaker }
		position = 2
		provinces_to_highlight = {
			OR = {
				province_id = 804
				province_id = 802
				province_id = 2947
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			804 = { country_or_non_sovereign_subject_holds = ROOT }
			2947 = { country_or_non_sovereign_subject_holds = ROOT }
			802 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			INC_upgrade_pachakuti = { type = dip }
			
			give_claims = { area = potosi_area }
			give_claims = { area = jujuy_area }
			give_claims = { area = upper_peru }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = INC_lake_conquest
				duration = -1
			}
			
			country_event_with_option_insight = {
				id = flavor_inc.22
				option_1 = "
					add_authority = 25
					
					custom_tooltip = \" \"
					
					antisuyu_area = {
						limit = { 
							country_or_non_sovereign_subject_holds = ROOT
						}
						add_local_autonomy = -33
						add_nationalism = -5
					}
				"
				option_2 = "
					add_accepted_culture_or_dip_power = { culture = aimara value = 100 }
				"
			}
		}
	}
	
	CSU_southern_fringes = {
		icon = mission_iroquois_the_five_nations
		required_missions = { CSU_qolla }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = upper_peru
				area = potosi_area
				area = jujuy_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = upper_peru
					area = potosi_area
					area = jujuy_area
				}
				value = 7
			}
		}
		effect = {
			custom_tooltip = INC_colonize_eastern_edges
			set_country_flag = INC_colonize_eastern_edges_flag
			
			custom_tooltip = " "
			
			add_authority = 10
			
			custom_tooltip = " "
			
			add_years_of_income = 0.25
		}
	}
}

WoC_cuzco_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = CSU
			tag = INC
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	CSU_chanka = {
		icon = mission_nah_dinetah
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			province_id = 807
		}
		trigger = {
			807 = {
				base_manpower = 4
				owned_by = ROOT
			}
			OR = {
				num_of_mercenaries = 4
				army_tradition = 30
			}
		}
		effect = {
			custom_tooltip = INC_expand_into_coastal_provs
			set_country_flag = INC_expand_into_coastal_provs_flag
			
			custom_tooltip = " "
			
			set_country_flag = INC_chanka
			custom_tooltip = INC_unlock_the_chanka_merc_company
		}
	}
	
	CSU_chincha = {
		icon = mission_sio_sun_dance
		required_missions = { CSU_chanka }
		position = 3
		provinces_to_highlight = {
			area = peruan_coast
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { is_city = yes }
			}
		}
		trigger = {
			peruan_coast = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT 
				is_city = yes
			}
		}
		effect = {
			add_adm_power = 50
			add_mil_power = 50
			
			custom_tooltip = " "
			
			custom_tooltip = INC_may_expand_south
			set_country_flag = INC_expansion_south_flag
		}
	}
	
	CSU_altiplano = {
		icon = mission_ne_palisades
		required_missions = { CSU_chincha CSU_southern_fringes }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = cuyo_area
				area = northern_chile_area
				area = central_chile_area
				area = tucuman_area
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { is_city = yes }
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = cuyo_area
					area = northern_chile_area
					area = central_chile_area
					area = tucuman_area
				}
				is_city = yes
				value = 8
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_settling_the_south
				duration = -1
			}
			
			change_estate_land_share = {
				estate = all
				share = -5
			}
		}
	}
}

WoC_inca_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = INC
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	INC_runasimi = {
		icon = mission_inca_noble
		required_missions = { }
		position = 5
		provinces_to_highlight = {
			owned_by = ROOT
			culture = inca
		}
		trigger = {
			if = {
				limit = {
					NOT = { primary_culture = inca }
				}
				accepted_culture = inca
			}
			monthly_dip = 9
		}
		effect = {
			add_stability_or_adm_power = yes
			
			custom_tooltip = " "
			
			add_adm_power = 100
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = INC_lingua_franca
				duration = 10950
			}
		}
	}
	
	INC_mitma = {
		icon = mission_native_reductions
		required_missions = { INC_runasimi INC_four_quarters_together }
		position = 7
		provinces_to_highlight = {
		}
		trigger = {
			grown_by_development = 100
			num_of_states = 7
			reform_level = 4 
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_inc.23
				option_1 = "
					add_country_modifier = {
						name = INC_the_mitma_for_control
						duration = -1
					}
					
					custom_tooltip = INC_how_mitma_works
					tooltip = {
						add_province_modifier = {
							name = INC_mitma_settlers
							duration = 10950
						}
					}
				"
				option_2 = "
					add_adm_power = 100
					change_government_reform_progress = 50
				"
			}
		}
	}
	
	INC_awka_kamayuq = {
		icon = mission_iroquois_warriors
		required_missions = { }
		position = 8
		provinces_to_highlight = {
		}
		trigger = {
			army_tradition = 40
			army_size = 30 # modified
			OR = {
				army_size = 40 # modified
				army_size_percentage = 0.9
			}
			OR = {
				monthly_mil = 9
				has_mil_advisor_3 = yes
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_conscripting_warriors
				duration = 10950
			}
			
			add_mil_power = 100
			
			if = {
				limit = {
					has_estate = estate_nobles
				}
				custom_tooltip = " "
				
				add_estate_loyalty = {
					estate = estate_nobles
					loyalty = 10
				}
			}
		}
	}
	
	INC_big_ears = {
		icon = mission_mayan_conquest
		required_missions = { INC_awka_kamayuq INC_kallanka }
		position = 10
		provinces_to_highlight = {
		}
		trigger = {
			army_tradition = 80
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				army_professionalism = 0.4
			}
			is_ahead_of_time_in_technology = { tech = mil }
			num_of_battles = { amount = 40 }
		}
		effect = {
			custom_tooltip = INC_unlock_the_big_ears
			# set_country_flag = INC_big_ears_merc_company
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Domination"
					has_estate = estate_nobles
				}
				custom_tooltip = INC_upgrade_general_privilege_for_the_nobles
				set_country_flag = INC_upgrade_general_privilege_for_the_nobles_flag
				
				custom_tooltip = " "
			}
			
			create_general_with_pips = { tradition = 80 add_shock = 1 add_manuever = 2 }
		}
	}
	
	INC_zeqe = {
		icon = mission_sufi_shrines
		required_missions = { INC_solar_cult }
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_tax_building_trigger = yes }
		}
		trigger = {
			capital_scope = {
				has_tax_building_trigger = yes 
			}
			
			num_of_owned_provinces_with = {
				has_tax_building_trigger = yes
				value = 10
			}
		}
		effect = {
			capital_scope = {
				add_or_upgrade_tax_building = yes
			}
			
			custom_tooltip = " "
			
			custom_tooltip = INC_every_state_with_a_tax_building
			tooltip = {
				add_province_modifier = {
					name = INC_regional_shrine_worship
					duration = 10950
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						has_tax_building_trigger = yes
					}
					area = {
						limit = {
							owned_by = ROOT
						}
						add_province_modifier = {
							name = INC_regional_shrine_worship
							duration = 10950
						}
					}
				}
			}
			
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				custom_tooltip = INC_increase_chance_for_zealot_personality
				set_country_flag = INC_increase_chance_for_zealot_personality_flag
			}
		}
	}
	
	INC_pacha_kamaq = {
		icon = mission_hands_praying
		required_missions = { INC_zeqe }
		position = 13
		provinces_to_highlight = {
			province_id = 809
		}
		trigger = {
			809 = {
				owned_by = ROOT
				has_tax_building_trigger = yes
				
				is_state_core = ROOT
				NOT = { local_autonomy = 25 }
				num_of_times_improved = 5
			}
			
			num_accepted_cultures = 2 
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_inc.24 
				option_1 = "
					add_country_modifier = {
						name = INC_integrating_local_dieties
						duration = -1
					}
					
					define_advisor = {
						type = theologian
						skill = 3
						culture = ROOT
						religion = ROOT
						cost_multiplier = 0.33
					}
				"
				option_2 = "
					add_country_modifier = {
						name = INC_not_integrating_foreign_dieties
						duration = -1
					}
					
					add_dip_power = 100
				"
			}
		}
	}
}

WoC_inca_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = INC
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	INC_four_quarters_together = {
		icon = mission_tawantinsuyu
		required_missions = { INC_runasimi }
		position = 6
		provinces_to_highlight = {
			owned_by = ROOT
			local_autonomy_above_min = 15
		}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Emperor"
						has_dlc = "Rights of Man"
					}
				}
				is_great_power = yes
			}
			else = {
				total_development = 300
			}
			NOT = { average_autonomy_above_min = 15 }
		}
		effect = {
			add_country_modifier = {
				name = INC_the_andean_empire
				duration = -1
			}
			
			add_permanent_power_projection = {
				type = INC_tawantinsuyu
				amount = 5
			}
		}
	}
	
	INC_qollqas = {
		icon = mission_have_manufactories
		required_missions = { INC_imperial_infrastructure }
		position = 8
		provinces_to_highlight = {
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = developed_provinces_at_least_100_times
				check_variable = {
					which = num_of_times_developed
					value = 100
				}
			}
			num_of_owned_provinces_with = {
				num_of_buildings_in_province = 2
				value = 10
			}
			has_global_modifier_value = {
				which = defensiveness
				value = 0.15
			}
		}
		effect = {
			custom_tooltip = INC_incan_infrastructure_1_2
			hidden_effect = {
				remove_country_modifier = INC_incan_infrastructure_1
				add_country_modifier = {
					name = INC_incan_infrastructure_2
					duration = -1
				}
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = INC_granaries
				duration = 10950
			}
			
			add_army_tradition_or_mil_power = {
				amount = 10
			}
		}
	}
	
	INC_kallanka = {
		icon = mission_renovate_kannauj
		required_missions = { INC_qollqas }
		position = 9
		provinces_to_highlight = {
			owned_by = ROOT 
			NOT = { has_manpower_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manpower_building_trigger = yes
				value = 15
			}
			development_in_provinces = {
				has_manpower_building_trigger = yes
				value = 200
			}
			OR = {
				max_manpower = 100
				manpower_percentage = 0.8
			}
		}
		effect = {
			change_estate_land_share = {
				estate = all
				share = -10
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = INC_kallanka_construction
				duration = -1
			}
		}
	}
	
	INC_solar_cult = {
		icon = mission_rule_of_the_sun
		required_missions = { }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			religion = inti
			OR = {
				authority = 80
				is_religion_reformed = yes
			}
			custom_trigger_tooltip = {
				tooltip = INC_has_passed_3_religious_reforms
				has_global_modifier_value = {
					which = inti_reforms_passed
					value = 3
				}
			}
		}
		effect = {
			custom_tooltip = INC_further_reforms_will_take_less_stability
			set_country_flag = INC_further_reforms_will_take_less_stability_flag
			
			custom_tooltip = " "
			
			add_power_projection_mission = { amount = 10 }
		}
	}
	
	INC_reform_religion = {
		icon = mission_aztec_religious_classes
		required_missions = { INC_solar_cult }
		position = 12
		provinces_to_highlight = {
		}
		trigger = {
			religion = inti
			has_reformed_inti_religion_trigger = yes
			
			is_religion_reformed = yes
			
			OR = {
				monthly_adm = 9
				inquisitor = 1
				theologian = 1
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { government = monarchy } 
				}
				change_government = monarchy
				
				custom_tooltip = " "
			}
			set_country_flag = INC_new_reform
			add_government_reform = andean_empire_reform
			
			if = {
				limit = {
					has_estate = estate_church
				}
				custom_tooltip = " "
			
				custom_tooltip = INC_modify_the_clerical_ministers
			}
			set_country_flag = INC_modify_the_clerical_ministers_flag
		}
	}
	
	INC_wiraqocha = {
		icon = mission_mesoamerican_divine_monarch
		required_missions = { INC_reform_religion }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					government = monarchy 
				}
				custom_trigger_tooltip = {
					tooltip = INC_has_half_legitimacy
					has_global_modifier_value = {
						which = legitimacy
						value = 0.5
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = INC_has_6_tolerance_own
				has_global_modifier_value = {
					which = tolerance_own
					value = 6
				}
			}
			if = {
				limit = {
					NOT = {
						AND = {
							mission_completed = INC_reform_religion
							NOT = { has_government_mechanic = divine_authority_mechanic }
						}
					}
				}
				has_government_power = {
					mechanic_type = divine_authority_mechanic
					power_type = divine_authority
					value = 80
				}
			}
		}
		effect = {
			if = {
				limit = {
					NOT = {
						AND = {
							mission_completed = INC_reform_religion
							NOT = { has_government_mechanic = divine_authority_mechanic }
						}
					}
				}
				country_event_with_option_insight = {
					id = flavor_inc.25
					option_1 = "
						custom_tooltip = INC_divine_missionary_tt
			
						custom_tooltip = \" \"
						
						add_adm_power = 100
					"
					option_2 = "
						custom_tooltip = INC_divine_corruption_tt
						
						custom_tooltip = \" \"
						
						add_corruption = -2
					"
					option_3 = "
						custom_tooltip = INC_divine_unrest_tt
						
						custom_tooltip = \" \"
						
						add_stability_or_adm_power = yes
					"
				}
			}
			else = {
				add_adm_power = 200
				add_corruption = -2
				add_stability_or_adm_power = yes
			}
		}
	}
}

WoC_inca_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = INC
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	INC_imperial_infrastructure = {
		icon = mission_sw_against_the_desert
		required_missions = { INC_mountaintops }
		position = 7
		provinces_to_highlight = {
			
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = ITA_developed_provinces_at_least_50_times
				check_variable = {
					which = num_of_times_developed
					value = 50
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_incan_infrastructure_1
				duration = -1
			}
			
			add_mercantilism = 2
		}
	}
	
	INC_qhapaq_nam = {
		icon = mission_royal_roads
		required_missions = { INC_navel_of_the_universe INC_imperial_infrastructure }
		position = 8
		provinces_to_highlight = {
			INC_part_of_the_route = yes
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { num_of_times_improved = 3 }
			}
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = INC_develop_the_route
				INC_every_part_of_route = {
					trigger = "
						owned_by = ROOT
						num_of_times_improved = 3
					"
				}
			}
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				820 = {
					owned_by = ROOT 
					has_great_project = {
						type = qhapaq_nam
						tier = 2
					}
				}
			}
		}
		effect = {
			custom_tooltip = INC_mountain_hill_highlands_provinces
			set_country_flag = INC_royal_roads_flag
			tooltip = {
				add_province_modifier = {
					name = INC_royal_roads
					duration = -1
				}
			}
			hidden_effect = {
				south_america = {
					limit = {
						owned_by = ROOT
						OR = {
							has_terrain = hills
							has_terrain = highlands
							has_terrain = mountain
						}
					}
					add_province_modifier = {
						name = INC_royal_roads
						duration = -1
					}
				}
			}
			
			custom_tooltip = INC_retroactive
			
			custom_tooltip = " "
			
			add_dip_power = 100
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				custom_tooltip = " "
				820 = {
					custom_tooltip = INC_improve_qhapaq_nan
				}
			}
		}
	}
	
	INC_imperial_frontiers = {
		icon = alpine_fortifications
		required_missions = { INC_qhapaq_nam INC_kallanka }
		position = 10
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_fort_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_fort_building_trigger = yes
				value = 10
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_imperial_frontiers_modifier
				duration = -1
			}
			
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = INC_every_province_gains_prosperity_15
				hidden_effect = {
					every_owned_province = {
						add_prosperity = 15
					}
				}
			}
		}
	}
	
	INC_terracing = {
		icon = mission_a_million_rice_fields
		required_missions = { INC_economy }
		position = 11
		provinces_to_highlight = {
			trade_goods = grain
			owned_by = ROOT
			NOT = { has_building = farm_estate }
			NOT = { development = 15 }
		}
		trigger = {
			num_of_owned_provinces_with = {
				trade_goods = grain 
				OR = {
					has_building = farm_estate
					development = 15
				}
				value = 5
			}
		}
		effect = {
			custom_tooltip = INC_gain_15_development
			hidden_effect = {
				for = {
					amount = 15
					effect = "
						random_owned_province = {
							add_random_development = 1
						}
					"
				}
			}
			
			custom_tooltip = " "
			
			complex_dynamic_effect = {
				first_custom_tooltip = "INC_if_we_have_2_stability"
				first_limit = " stability = 2 "
				first_effect = "
					custom_tooltip = INC_gain_5_development
					hidden_effect = {
						for = {
							amount = 5
							effect = \"
								random_owned_province = {
									add_random_development = 1
								}
							\"
						}
					}
				"
			}
			
			custom_tooltip = " "
			
			custom_tooltip = INC_every_province_with_grain
			tooltip = {
				add_province_modifier = {
					name = INC_increased_productivity
					duration = 9125
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						trade_goods = grain
					}
					add_province_modifier = {
						name = INC_increased_productivity
						duration = 9125
					}
				}
			}
		}
	}
	
	INC_idols = {
		icon = mission_patronize_local_gods
		required_missions = { INC_reform_religion }
		position = 13
		provinces_to_highlight = {
			owned_by = ROOT
			unrest = -2
		}
		trigger = {
			NOT = {
				average_unrest = -2
			}
			stability = 3
			is_ahead_of_time_in_technology = { tech = dip }
		}
		effect = {
			capital_scope = {
				add_province_triggered_modifier = INC_hostage_idols
			}
			
			custom_tooltip = " "
			
			add_rebel_progress = {
				value = -30
			}
			
			custom_tooltip = " "
			
			add_war_exhaustion = -2
		}
	}
}

WoC_inca_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = INC
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes
	
	INC_mountaintops = {
		icon = mission_conquer_mewar
		required_missions = { }
		position = 6
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				has_terrain = mountain
				has_terrain = hills
				has_terrain = highlands
			}
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = INC_has_developed_mountains_provinces
				check_variable = {
					which = num_of_times_developed_mountains
					value = 20
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_estate = estate_burghers
				}
				INC_upgrade_mountain_development_privilege = yes
			}
			else = {
				add_country_modifier = {
					name = INC_mountain_adaptations
					duration = -1
				}
			}
			
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = " "
				
				custom_tooltip = INC_every_owned_province_with_highland_terrain_prosperity
				hidden_effect = {
					every_owned_province = {
						limit = {
							OR = {
								has_terrain = mountain
								has_terrain = highlands
								has_terrain = hills
							}
						}
						add_prosperity = 20
					}
				}
			}
		}
	}
	
	INC_navel_of_the_universe = {
		icon = mission_conquer_orissa_mug
		required_missions = { INC_renovate_cusco }
		position = 7
		provinces_to_highlight = {
			province_id = 808
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 35 }
				NOT = { num_of_buildings_in_province = 3 }
			}
		}
		trigger = {
			808 = {
				owned_by = ROOT
				development = 35
				num_of_buildings_in_province = 3 
			}
		}
		effect = {
			808 = {
				custom_tooltip = INC_imperial_capital_1_2
				hidden_effect = {
					remove_province_modifier = INC_imperial_capital_1
					add_province_modifier = {
						name = INC_imperial_capital_2
						duration = -1
					}
				}
			}
			
			if = {
				limit = {
					has_dlc = "Domination"
				}
				custom_tooltip = " "
				set_country_flag = INC_remove_max_absolutism_penalty_from_city_expansion_privileges_flag
				custom_tooltip = INC_remove_max_absolutism_penalty_from_city_expansion_privileges
			}
			
			custom_tooltip = " "
			
			add_adm_power = 50
			add_dip_power = 50
			add_mil_power = 50
		}
	}
	
	INC_awkaypata = {
		icon = mission_conquer_nagaur
		required_missions = { INC_navel_of_the_universe }
		position = 9
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 808
					OR = {
						NOT = { has_trade_building_trigger = yes }
						NOT = { has_courthouse_building_trigger = yes }
						NOT = { development = 45 }
						NOT = { owned_by = ROOT }
					}
				}
				AND = {
					has_dlc = "Leviathan"
					owned_by = ROOT
					has_great_project = {
						type = any
						tier = 1
					}
					NOT = {
						has_great_project = {
							type = any
							tier = 3
						}
					}
				}
			}
		}
		trigger = {
			808 = {
				has_trade_building_trigger = yes
				has_courthouse_building_trigger = yes
				development = 45
				owned_by = ROOT 
			}
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				num_of_owned_provinces_with = {
					has_great_project = {
						type = any
						tier = 3
					}
					value = 3
				}
			}
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				num_of_age_rewards_taken = { amount = 2 }
			}
		}
		effect = {
			808 = {
				add_or_upgrade_trade_building = yes
				add_or_upgrade_courthouse_building = yes 
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = INC_authority
				duration = -1
			}
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				add_country_modifier = {
					name = INC_central_plaza
					duration = -1
				}
			}
			else = {
				808 = {
					add_province_modifier = {
						name = INC_central_plaza_no_dlc
						duration = -1
					}
				}
			}
		}
	}
	
	INC_economy = {
		icon = mission_entrepot_of_india
		required_missions = { }
		position = 10
		provinces_to_highlight = {
		}
		trigger = {
			share_of_starting_income = 5
			is_in_deficit = no
			NOT = { num_of_loans = 5 }
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_inc.26
				option_1 = "
					add_yearly_manpower = 1
					
					custom_tooltip = \" \"
					
					custom_tooltip = INC_most_developed_province_barrack
				"
				option_2 = "
					add_years_of_income = 0.75
					
					custom_tooltip = \" \"
					
					custom_tooltip = INC_most_developed_province_production
				"
				option_3 = "
					add_prestige_or_monarch_power = { amount = 25 }
		
					custom_tooltip = \" \"
					
					add_authority = 15
					
					if = {
						limit = {
							has_dlc = \"Mandate of Heaven\"
						}
						custom_tooltip = \" \"
						add_splendor = 200
					}
				"
			}
		}
	}
	
	INC_sweat_of_the_sun = {
		icon = mission_zambezi_gold
		required_missions = { INC_economy }
		position = 11
		provinces_to_highlight = {
			owned_by = ROOT 
			trade_goods = gold
		}
		trigger = {
			development_in_provinces = {
				trade_goods = gold
				value = 70
			}
		}
		effect = {
			if = {
				limit = {
					has_estate = estate_church
				}
				custom_tooltip = INC_unlock_the_idol_privilege
				set_country_flag = INC_unlock_the_idol_privilege_flag
				
				custom_tooltip = " "
			
				add_estate_loyalty = {
					estate = estate_church
					loyalty = 15
				}
				
				custom_tooltip = " "
			}
			else = {
				add_years_of_income = 1
				
				custom_tooltip = " "
			}
			
			add_inflation = -3
		}
	}
	
	INC_mountain_of_gold = {
		icon = mission_potosi_silver
		required_missions = { INC_sweat_of_the_sun }
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT 
			trade_goods = gold
		}
		trigger = {
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				795 = {
					owned_by = ROOT 
					has_great_project = {
						type = potosi
						tier = 2
					}
				}
			}
			trade_goods_produced_amount = {
				trade_goods = gold
				amount = 8
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				795 = {
					custom_tooltip = INC_upgrade_potosi_monument
				}
				
				custom_tooltip = " "
			}
			
			if = {
				limit = {
					has_estate = estate_church
				}
				custom_tooltip = INC_upgrade_idol_estate_privilege
				set_country_flag = INC_upgrade_idol_estate_privilege_flag
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = INC_inca_idol_making_alternative
					duration = -1 
				}
			}
			
			add_prestige_or_monarch_power = { amount = 25 }
		}
	}
}

WoC_inca_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = INC
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
		is_random_new_world = no
	}
	has_country_shield = yes

	INC_renovate_cusco = {
		icon = public_works
		required_missions = { }
		position = 6
		provinces_to_highlight = {
			province_id = 808
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 20 }
			}
		}
		trigger = {
			808 = {
				owned_by = ROOT
				development = 20
			}
		}
		effect = {
			808 = {
				add_province_modifier = {
					name = INC_imperial_capital_1
					duration = -1
				}
			}
			
			# custom_tooltip = " "
			
			define_advisor = {
				type = artist
				skill = 3
				culture = ROOT
				religion = ROOT
				cost_multiplier = 0.33
			}	
		}
	}
	
	INC_secondary_capital = {
		icon = mission_assert_control_over_delhi
		required_missions = { INC_navel_of_the_universe }
		position = 8
		provinces_to_highlight = {
			province_id = 817
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { num_of_buildings_in_province = 2 }
				NOT = { development = 15 }
			}
		}
		trigger = {
			817 = {
				owned_by = ROOT
				num_of_buildings_in_province = 2
				development = 15
			}
		}
		effect = {
			817 = {
				add_province_modifier = {
					name = INC_secondary_capital_modifier
					duration = -1
				}
			}
			
			capital_scope = {
				add_base_tax = 1
				add_base_production = 1
				add_base_manpower = 1 
			}
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				add_splendor = 400
			}
			else = {
				add_prestige_or_monarch_power = { amount = 30 }
			}
		}
	}
	
	INC_weaving = {
		icon = mission_llamas
		required_missions = { INC_economy }
		position = 11
		provinces_to_highlight = {
			trade_goods = cloth
			owned_by = ROOT
		}
		trigger = {
			OR = {
				textile = 3
				development_in_provinces = {
					trade_goods = cloth
					value = 100
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_qumpicamayocs
				duration = 7300
			}
		
			add_years_of_owned_provinces_production_income = {
				years = 10
				trigger = {
					trade_goods = cloth
				}
				custom_tooltip = INC_ten_years_of_cloth_income
			}
		}
	}
	
	INC_jungle_expansion = {
		icon = mission_clear_the_delta
		required_missions = { }
		position = 12
		provinces_to_highlight = {
			has_terrain = jungle
			OR = {
				owned_by = ROOT
				is_claim = ROOT
				is_core = ROOT
				is_permanent_claim = ROOT
			}
		}
		trigger = {
			development_in_provinces = {
				has_terrain = jungle
				value = 15
			}
		}
		effect = {
			add_country_modifier = {
				name = INC_integrating_the_borderlands
				duration = 9125
			}
			
			add_mil_power = 100
			
			if = {
				limit = {
					2944 = {
						is_empty = yes
					}
				}
				custom_tooltip = " "
				
				2944 = { add_siberian_construction = 100 }
			}
		}
	}
	
	INC_bowmen = {
		icon = mission_jungle
		required_missions = { INC_jungle_expansion }
		position = 14
		provinces_to_highlight = {
			owned_by = ROOT 
			has_terrain = jungle
			OR = {
				NOT = { has_manpower_building_trigger = yes }
				NOT = { base_manpower = 3 }
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_terrain = jungle
				has_manpower_building_trigger = yes
				base_manpower = 3
				value = 3
			}
		}
		effect = {
			add_country_modifier_for_age = {
				name = INC_bowmen_from_the_jungle
				age = age_of_discovery
				else = "
					add_mil_power = 100
					custom_tooltip = \" \"
				"
			}
			
			add_yearly_manpower = 0.25
			
			custom_tooltip = " "
			
			custom_tooltip = INC_5_base_manpower_in_jungle
			hidden_effect = {
				for = {
					amount = 5
					effect = "
						random_owned_province = {
							limit = {
								has_terrain = jungle
							}
							add_base_manpower = 1
						}
					"
				}
			}
		}
	}
}