﻿faith_ui_remove_core_tenet = {
	scope = character
	saved_scopes = { tenet rite faith }

	is_shown = {
		exists = scope:tenet
		exists = scope:rite
		exists = scope:faith
		faith = scope:faith
		scope:rite = {
			any_rite_tenet = {
				count >= faith_ui_remove_core_tenet_threshold_value
			}
			any_rite_tenet = {
				this = scope:tenet
			}
		}
	}

	is_valid = {
		scope:rite = {
			any_rite_tenet = {
				count >= faith_ui_remove_core_tenet_threshold_value
			}
		}
	}

	effect = {
		scope:rite = {
			remove_rite_tenet = scope:tenet
		}
	}
}
