guarantee_religious_tolerance.txt

(1 KB) Pobierz
guarantee_religious_tolerance = {

	category = 3

	allow = {
		any_owned_province = {
			has_owner_religion = no
		}
		NOT = { has_idea_group = religious_ideas }
	}
	
	on_issue_taken = {
		every_owned_province = {
			clr_province_flag = guarantee_religious_tolerance_flag
		}
		random_owned_province = {
			limit = {
				is_in_capital_area = yes
			}
			set_province_flag = guarantee_religious_tolerance_flag
		}
	}
	
	effect = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					has_owner_religion = no
				}
				add_province_modifier = {
					name = "provincial_religious_migration"
					duration = 3650
				}
			}
		}
		if = {
			limit = {
				NOT = {
					any_owned_province = {
						has_province_flag = guarantee_religious_tolerance_flag
					}
				}
			}
			tooltip = {
				custom_tooltip = guarantee_religious_tolerance_tooltip
			}
		}
		if = {
			limit = {
				any_owned_province = {
					has_province_flag = guarantee_religious_tolerance_flag
				}
			}
			tooltip = {
				every_owned_province = {
					limit = { has_province_flag = guarantee_religious_tolerance_flag }
					add_province_modifier = {
						name = "provincial_religious_migration"
						duration = 3650
					}
				}
			}
		}
	}

	chance = {
		factor = 1
		modifier = {
			factor = 2
			NOT = { religious_unity = 0.5 }
		}
		modifier = {
			factor = 2
			num_of_owned_provinces_with = {
				value = 10
				has_owner_religion = no
			}
		}
		modifier = {
			factor = 2
			num_of_owned_provinces_with = {
				value = 20
				has_owner_religion = no
			}
		}
	}
	
	modifier = {
		tolerance_heretic = 1
		tolerance_heathen = 1
	}

	ai_will_do = {
		factor = 1
		modifier = {
			factor = 2
			num_of_owned_provinces_with = {
				value = 10
				has_owner_religion = no
			}
		}	
	}
}
Zgłoś jeśli naruszono regulamin