# demand = { # "TRADITIONALIST_NO_ROBOT_RIGHTS"
# 	title = "TRADITIONALIST_NO_ROBOT_RIGHTS"
# 	unfulfilled_title = "TRADITIONALIST_ROBOT_RIGHTS"
# 	desc = "TRADITIONALIST_NO_ROBOT_RIGHTS_DESC"

# 	unfulfilled_effect = -10
# 	fulfilled_effect = 0.001

# 	potential = {
# 		exists = owner
# 		owner = {
# 			can_set_ai_policy = yes
# 			NOT = { has_policy_flag = ai_full_rights }
# 			is_individual_machine = no
# 		}
# 	}

# 	trigger = {
# 		owner = {
# 			NOT = { has_policy_flag = ai_servitude }
# 		}
# 	}
# }

# demand = { # "TRADITIONALIST_NO_FULL_ROBOT_RIGHTS"
# 	title = "TRADITIONALIST_NO_FULL_ROBOT_RIGHTS"
# 	unfulfilled_title = "TRADITIONALIST_FULL_ROBOT_RIGHTS"
# 	desc = "TRADITIONALIST_NO_FULL_ROBOT_RIGHTS_DESC"

# 	unfulfilled_effect = -20
# 	fulfilled_effect = 0.001

# 	potential = {
# 		exists = owner
# 		owner = {
# 			is_individual_machine = no
# 			can_set_ai_policy = yes
# 			has_policy_flag = ai_full_rights
# 		}
# 	}

# 	trigger = {
# 		owner = {
# 			NOT = { has_policy_flag = ai_full_rights }
# 		}
# 	}
# }

demand = { # "TRADITIONALIST_SPIRITUALIST_GOVERNMENT"
	title = "TRADITIONALIST_SPIRITUALIST_GOVERNMENT"
	unfulfilled_title = "TRADITIONALIST_SECULAR_GOVERNMENT"
	desc = "TRADITIONALIST_SPIRITUALIST_GOVERNMENT_DESC"

	fulfilled_effect = 5
	unfulfilled_effect = -5

	potential = {
		exists = owner
	}

	trigger = {
		owner = {
			is_spiritualist = yes
		}
	}
}

demand = { # "TRADITIONALIST_NO_TOMB_WORLDS"
	title = "TRADITIONALIST_NO_TOMB_WORLDS"
	unfulfilled_title = "TRADITIONALIST_TOMB_WORLDS"
	desc = "TRADITIONALIST_NO_TOMB_WORLDS_DESC"

	unfulfilled_effect = -5
	fulfilled_effect = 0.001

	potential = {
		exists = owner
		owner = {
			has_surveyed_class = pc_nuked
			NOR = {
				has_origin = origin_post_apocalyptic
				has_origin = origin_post_apocalyptic_machines
				has_country_flag = worm_tomb_ending
				has_valid_civic = civic_memorialist
			}
		}
	}

	trigger = {
		owner = {
			NOR = {
				any_owned_planet = {
					is_planet_class = pc_nuked
				}
				any_planet_within_border = {
					is_planet_class = pc_nuked
					is_terraforming = yes
				}
			}
		}
	}
}

inline_script = pop_faction_types/demand_consecration

demand = { # "Cybernetic Creed" Traditionalist variant: embrace cyberization
	title = "TRADITIONALIST_UNHALLOWED_FLESH"
	unfulfilled_title = "TRADITIONALIST_UNHALLOWED_FLESH"
	desc = "TRADITIONALIST_UNHALLOWED_FLESH_DESC"

	unfulfilled_effect = -5
	fulfilled_effect = 15

	potential = {
		always = yes
	}

	trigger = {
		owner = {
			is_cyborg_empire = yes
		}
	}
}

demand = { # "Cybernetic Creed" Traditionalist variant: Embraced a Creed
	title = "TRADITIONALIST_ELEVATED_CREED"
	unfulfilled_title = "TRADITIONALIST_NO_CREED"
	desc = "TRADITIONALIST_ELEVATED_CREED_DESC"

	unfulfilled_effect = -0.01
	fulfilled_effect = 10

	potential = {
		owner = {
			has_country_flag = cybercreed_final_form
			OR = {
				has_country_flag = cybernetic_creed_construction
				has_country_flag = cybernetic_creed_war
				has_country_flag = cybernetic_creed_research
				has_country_flag = cybernetic_creed_labor
			}
		}
	}

	trigger = {
		owner = {
			has_country_flag = cybercreed_final_form
			OR = {
				has_country_flag = cybernetic_creed_construction
				has_country_flag = cybernetic_creed_war
				has_country_flag = cybernetic_creed_research
				has_country_flag = cybernetic_creed_labor
			}
		}
	}
}

demand = {
	title = "TRADITIONALIST_RELIGIOUS_FINDING"
	unfulfilled_title = "TRADITIONALIST_NO_RELIGIOUS_FINDING"
	desc = "TRADITIONALIST_RELIGIOUS_FINDING_DESC"

	fulfilled_effect = 5
	unfulfilled_effect = -0.001

	potential = {
		exists = owner
		owner = {
			has_modifier = proclaim_religious_finding
		}
	}

	trigger = {
		owner = {
			has_modifier = proclaim_religious_finding
		}
	}
}

demand = {
	title = TRADITIONALIST_FEDERATION
	unfulfilled_title = TRADITIONALIST_FEDERATION_NOT_SPIRITUALIST
	desc = TRADITIONALIST_FEDERATION_DESC

	fulfilled_effect = 5
	unfulfilled_effect = -0.001

	potential = {
		exists = owner.federation
		has_federations_dlc = yes
	}

	trigger = {
		owner.federation = { has_federation_type = spiritualist_federation }
	}
}
