﻿# County changes faith.
# Root is the county title
# scope:old_faith is the faith it used to have
on_county_faith_change = {
	on_actions = {
		on_static_faith_culture_enforcement
	}
}

# Root = County title
# scope:old_culture = old culture
on_county_culture_change = {
	on_actions = {
		on_static_faith_culture_enforcement
	}
}

on_static_faith_culture_enforcement = {
	trigger = {
		NOT = { has_game_rule = static_faith_culture_disabled }
	}
	effect = {
		switch = {
			trigger = has_game_rule
			static_faith = { revert_county_faith = yes }
			static_culture = { revert_county_culture = yes }
			static_faith_culture = {
				revert_county_faith = yes
				revert_county_culture = yes
			}
		}
	}
}