namespace = mmetrFlavor_mithraic_events

# Mithraic Zoroastrianism
country_event = {
	id = mmetrFlavor_mithraic_events.1
	title = "mmetrFlavor_mithraic_events.1.t"
	desc = "mmetrFlavor_mithraic_events.1.desc"
	picture = RELIGIOUS_CONVERSION_eventPicture
	
	trigger = {
		ai = no
		OR = {
			tag = PRT
			religion = mithraic
			religion_group = iranian
		}
		any_owned_province = {
			religion = mithraic
		}
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		months = 2
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.1.a"
		
		
	}
}

# Parthian Nobles Favor Mithraism
country_event = {
	id = mmetrFlavor_mithraic_events.2
	title = "mmetrFlavor_mithraic_events.2.t"
	desc = "mmetrFlavor_mithraic_events.2.desc"
	picture = RELIGIOUS_CONVERSION_eventPicture
	
	trigger = {
		OR = {
			tag = PRT
			was_tag = PRT
		}
		any_owned_province = {
			religion = mithraic
		}
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.2.a"
		
		if = {
			limit = {
				religion = mithraic
			}
			add_country_modifier = {
				name = "mithraic_parthian_nobles_own_mod"
				duration = 1825
			}
		}
		if = {
			limit = {
				NOT = {
					religion = mithraic
				}
			}
			add_country_modifier = {
				name = "mithraic_parthian_nobles_heretic_mod"
				duration = 1825
			}
		}
	}
}

# Followers Construct Mithraeum in [Root.GetName]
province_event = {
	id = mmetrFlavor_mithraic_events.3
	title = "mmetrFlavor_mithraic_events.3.t"
	desc = "mmetrFlavor_mithraic_events.3.desc"
	picture = CPBM_TUMULUS_eventPicture
	
	trigger = {
		owner = {
			religion = mithraic
		}
		religion = mithraic
		NOT = {
			has_building = glorious_monument
			has_building = temple
			has_building = cathedral
		}
	}
	
	mean_time_to_happen = {
		months = 600
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.3.a"
		
		add_building = glorious_monument
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.3.b"
		
		add_building_construction = {
			building = temple
			speed = 0.5
			cost = 0.5
		}
	}
}

# Cilician Worship of Mithra
province_event = {
	id = mmetrFlavor_mithraic_events.4
	title = "mmetrFlavor_mithraic_events.4.t"
	desc = "mmetrFlavor_mithraic_events.4.desc"
	picture = MMETR_CAESARS_LEGIONS_eventPicture
	
	trigger = {
		OR = {
			province_id = 327
			province_id = 2302
		}
		NOT = {
			has_province_flag = mithraic_prov_converted_flag
		}
		owner = {
			OR = {
				tag = ROM
				tag = BYZ
				tag = ROW
				was_tag = ROM
				num_of_cities = 50
			}
		}
		NOT = {
			religion = mithraic
			religion_group = christian
		}
		NOT = {
			is_year = 395.1.1
		}
	}
	
	mean_time_to_happen = {
		months = 180
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.4.a"
		
		change_religion = mithraic
		add_province_modifier = {
			name = "religious_zeal_at_conv"
			duration = 3650
		}
		hidden_effect = {
			set_province_flag = mithraic_prov_converted_flag
		}
	}
}

# Generals Join Mithraic Cult
country_event = {
	id = mmetrFlavor_mithraic_events.5
	title = "mmetrFlavor_mithraic_events.5.t"
	desc = "mmetrFlavor_mithraic_events.5.desc"
	picture = MMETR_CAESARS_LEGIONS_eventPicture
	
	trigger = {
		OR = {
			tag = ROM
			tag = BYZ
			tag = ROW
			was_tag = ROM
		}
		any_owned_province = {
			has_province_flag = mithraic_prov_converted_flag
		}
		NOT = {
			religion_group = christian
		}
		NOT = {
			is_year = 395.1.1
		}
	}
	
	mean_time_to_happen = {
		months = 400
	}
	
	option = {
		name = "mmetrFlavor_mithraic_events.5.a"
		
		if = {
			limit = {
				religion = mithraic
			}
			add_country_modifier = {
				name = "mithraic_roman_generals_own_mod"
				duration = 1825
			}
		}
		if = {
			limit = {
				NOT = {
					religion = mithraic
				}
			}
			add_country_modifier = {
				name = "mithraic_roman_generals_heathen_mod"
				duration = 1825
			}
		}
	}
}
