#################################################
#
# CULTURAL CONVERSION EVENTS
#
#################################################

# Province culture changes

namespace = EOCHIP

# The nahuatlspanish
character_event = {
	id = EOCHIP.4
	desc = "EVTDESCEOCHIP.4"
	picture = GFX_evt_nahuatlspanish
	
	only_playable = yes
	
	trigger = {
		OR = {
			culture_group = mesoamerican
			culture = nahuatlspanish
		}
		any_demesne_province = {
			OR = {
				culture = andalusian_arabic
				culture = castillan
				culture = aragonese
				culture = catalan
				culture = leonese
				culture = galician
			}
			any_province_holding = {
				NOT = { holding_type = nomad }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		modifier = {
			factor = 0.5
			culture = nahuatlspanish
		}
		modifier = {
			factor = 0.8
			learning = 7
		}
		modifier = {
			factor = 0.85
			learning = 11
		}
		modifier = {
			factor = 0.9
			learning = 15
		}
		modifier = {
			factor = 1.5
			NOT = { learning = 5 }
		}
		modifier = {
			factor = 2.0
			NOT = { learning = 1 }
		}
		modifier = {
			factor = 0.65
			OR = {
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots
				}
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots_and_slower_normal
				}
			}
		}
	}

	option = {
		name = EVTOPTAEOCHIP.4
		random_demesne_province = {
			limit = {
				OR = {
					culture = andalusian_arabic
					culture = castillan
					culture = aragonese
					culture = catalan
					culture = leonese
					culture = galician
				}
				any_province_holding = {
					NOT = { holding_type = nomad }
				}
			}
			culture = nahuatlspanish
		}
	}
}

character_event = {
	id = EOCHIP.5
	desc = "EVTDESCEOCHIP.5"
	picture = GFX_evt_stone_church
	
	only_playable = yes
	
	trigger = {
		NOT = { culture = nahuatlspanish }
		any_demesne_province = {
			culture = nahuatlspanish
			is_capital = yes
			any_province_holding = {
				NOT = { holding_type = nomad }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = {
			factor = 0.75
			learning = 7
		}
		modifier = {
			factor = 0.75
			learning = 11
		}
		modifier = {
			factor = 1.5
			NOT = { learning = 5 }
		}
		modifier = {
			factor = 2.0
			NOT = { learning = 1 }
		}
		modifier = {
			factor = 0.65
			OR = {
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots
				}
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots_and_slower_normal
				}
			}
		}
	}

	option = {
		name = EVTOPTAEOCHIP.5
		culture = nahuatlspanish
		prestige = -5
	}

	option = {
		name = EVTOPTBEOCHIP.5
		prestige = 5
	}
}

#nahuatlspanish
character_event = {
	id = EOCHIP.12
	desc = "EVTDESCSWMH.12"
	picture = GFX_evt_throne_room

	is_triggered_only = yes

	option = {
		name = "EVTOPTASWMH.12"
		culture = nahuatlspanish
	}
}

# The nahuatlceltic
character_event = {
	id = EOCHIP.27
	desc = "EVTDESCEOCHIP.27"
	picture = GFX_evt_stone_church
	
	only_playable = yes
	
	trigger = {
		OR = {
			culture_group = mesoamerican
			culture = nahuatlceltic
		}
		any_demesne_province = {
			OR = {
				culture_group = celtic
			}
			any_province_holding = {
				NOT = { holding_type = nomad }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		modifier = {
			factor = 0.5
			culture = nahuatlceltic
		}
		modifier = {
			factor = 0.8
			learning = 7
		}
		modifier = {
			factor = 0.85
			learning = 11
		}
		modifier = {
			factor = 0.9
			learning = 15
		}
		modifier = {
			factor = 1.5
			NOT = { learning = 5 }
		}
		modifier = {
			factor = 2.0
			NOT = { learning = 1 }
		}
		modifier = {
			factor = 0.65
			OR = {
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots
				}
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots_and_slower_normal
				}
			}
		}
	}

	option = {
		name = EVTOPTAEOCHIP.27
		random_demesne_province = {
			limit = {
				OR = {
					culture_group = celtic
				}
				any_province_holding = {
					NOT = { holding_type = nomad }
				}
			}
			culture = nahuatlceltic
		}
	}
}

character_event = {
	id = EOCHIP.28
	desc = "EVTDESCEOCHIP.28"
	picture = GFX_evt_stone_church
	
	only_playable = yes
	
	trigger = {
		NOT = { culture = nahuatlceltic }
		any_demesne_province = {
			culture = nahuatlceltic
			is_capital = yes
			any_province_holding = {
				NOT = { holding_type = nomad }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = {
			factor = 0.75
			learning = 7
		}
		modifier = {
			factor = 0.75
			learning = 11
		}
		modifier = {
			factor = 1.5
			NOT = { learning = 5 }
		}
		modifier = {
			factor = 2.0
			NOT = { learning = 1 }
		}
		modifier = {
			factor = 0.65
			OR = {
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots
				}
				has_game_rule = {
					name = culture_conversion
					value = faster_melting_pots_and_slower_normal
				}
			}
		}
	}

	option = {
		name = EVTOPTAEOCHIP.28
		culture = nahuatlceltic
		prestige = -5
	}

	option = {
		name = EVTOPTBEOCHIP.28
		prestige = 5
	}
}

#nahuatlceltic
character_event = {
	id = EOCHIP.29
	desc = "EVTDESCSWMH.29"
	picture = GFX_evt_throne_room

	is_triggered_only = yes

	option = {
		name = "EVTOPTASWMH.29"
		culture = nahuatlceltic
	}
}