##############################
# Supremacist Faction
##############################

supremacist = {
	election_header = "GFX_faction_header_yellow"
	guiding_ethic = ethic_xenophobe
	visual_ethic = "supremacist_visual_ethic"

	unique = yes
	support_multiplier = 1

	resources = {
		category = pop_factions
		inline_script = pop_faction_types/shared_unity_production
		produces = {
			trigger = {
				owner = {
					OR = {
						has_valid_civic = civic_crowdsourcing
						has_valid_civic = civic_corporate_crowdsourcing
					}
				}
			}
			engineering_research = @faction_major_output
			physics_research = @faction_minor_output
			mult = @crowdsourcing_multiplier
		}
	}

	extortion_resource = {
		category = pop_factions
		produces = {
			trigger = {
				owner = {
					NOR = {
						has_valid_civic = civic_crowdsourcing
						has_valid_civic = civic_corporate_crowdsourcing
					}
				}
			}
			alloys = @faction_base_output
			mult = @faction_extortion_alloys_ratio
		}
		produces = {
			trigger = {
				owner = {
					OR = {
						has_valid_civic = civic_crowdsourcing
						has_valid_civic = civic_corporate_crowdsourcing
					}
				}
			}
			engineering_research = @faction_major_output
			physics_research = @faction_minor_output
			mult = @faction_extortion_crowdsourcing_ratio
		}
	}

	is_potential = {
		is_faction_allowed = yes
		is_pacifist = no
	}

	can_join_pre_triggers = {
		is_enslaved = no
		is_being_purged = no
	}

	can_join_faction = {
		inline_script = pop_faction_types/can_join_faction/base
	}

	inline_script = pop_faction_types/attraction/promote_suppress_tags
	pop_attraction_tag = {
		desc = POP_ATTRACTION_MILITARIST_POS
		trigger = {
			owner? = {
				is_militarist = yes
			}
		}
	}
	pop_attraction_tag = {
		desc = POP_FACTION_ATTRACTION_XENO_NEG
		trigger = {
			owner? = {
				any_owned_species = {
					NOT = {
						is_same_species = prev
					}
				}
			}
		}
	}

	attraction = {
		base = 100

		inline_script = pop_faction_types/attraction/promote_suppress_attraction
		inline_script = pop_faction_types/attraction/leader_attraction

		modifier = {
			factor = 1.25
			desc = OWNER_IS_MILITARIST
			owner? = { is_militarist = yes }
		}

		modifier = {
			factor = 0.25
			NOT = { is_same_species = owner_species }
		}
	}

	leader = {
		base = 100

		modifier = {
			factor = 0.5
			leader_class = scientist
		}

		modifier = {
			factor = 0
			NOT = { is_same_species = owner_species }
		}

		modifier = {
			factor = 0
			species = {
				has_trait = "trait_mechanical"
			}
		}

		modifier = {
			factor = 0.0
			is_event_leader = yes
		}
	}

	# DEMAND: Faction Outraged (by a GalCom Resolution)
	inline_script = {
		script = pop_faction_types/demand_faction_outraged
		FLAG = galcom_resolution_passed_anti_supremacist
	}

	# DEMAND: Faction Pleased (by a GalCom Resolution)
	inline_script = {
		script = pop_faction_types/demand_faction_pleased
		FLAG = galcom_resolution_passed_pro_supremacist
	}

	demand = {
		title = "SUPREMACIST_RULER_SAME_SPECIES"
		unfulfilled_title = "SUPREMACIST_RULER_NOT_SAME_SPECIES"
		desc = "SUPREMACIST_RULER_NOT_SAME_SPECIES_DESC"

		fulfilled_effect = 10
		unfulfilled_effect = -30

		potential = {
			exists = owner
			owner = { NOT = { has_valid_civic = civic_fanatic_purifiers } }
		}

		trigger = {
			owner.ruler? = {
				exists = owner_species
				OR = {
					is_same_species = owner_species
					AND = {
						owner = { has_valid_civic = civic_selective_kinship }
						is_same_species_class = owner_species
					}
				}
			}
		}
	}

	demand = {
		title = "SUPREMACIST_COUNCIL_SAME_SPECIES1"
		unfulfilled_title = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES1"
		desc = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES_DESC1"

		fulfilled_effect = 0.001
		unfulfilled_effect = -10

		potential = {
			exists = owner
			owner = {
				any_owned_leader = {
					is_councilor = yes
					is_same_species = owner_species
					is_ruler = no
				}
				NOR = {
					has_valid_civic = civic_fanatic_purifiers
					OR = {
						count_owned_leader = {
							count <= value:count_councilors_xenos_2
							limit = {
								is_councilor = yes
								is_ruler = no
								is_same_species = owner_species
							}
						}
						AND = {
							has_valid_civic = civic_selective_kinship
							count_owned_leader = {
								count <= value:count_councilors_xenos_2
								limit = {
									is_councilor = yes
									is_ruler = no
									is_same_species_class = owner_species
								}
							}
						}
					}
				}
			}
		}

		trigger = {
			owner = {
				OR = {
					count_owned_leader = {
						count = value:count_councilors
						limit = {
							is_councilor = yes
							is_ruler = no
							is_same_species = owner_species
						}
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						count_owned_leader = {
							count = value:count_councilors
							limit = {
								is_councilor = yes
								is_ruler = no
								is_same_species_class = owner_species
							}
						}
					}
				}
			}
		}
	}

	demand = {
		title = "SUPREMACIST_COUNCIL_SAME_SPECIES2"
		unfulfilled_title = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES2"
		desc = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES_DESC2"

		fulfilled_effect = 0.001
		unfulfilled_effect = -20

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				OR = {
					AND = {
						any_owned_leader = {
							is_councilor = yes
							is_same_species = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 2
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species = owner_species }
							}
						}
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						any_owned_leader = {
							is_councilor = yes
							is_same_species_class = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 2
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species_class = owner_species }
							}
						}
					}
				}
			}
		}

		trigger = {
			always = no
		}
	}

	demand = {
		title = "SUPREMACIST_COUNCIL_SAME_SPECIES3"
		unfulfilled_title = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES3"
		desc = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES_DESC3"

		fulfilled_effect = 0.001
		unfulfilled_effect = -30

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				OR = {
					AND = {
						any_owned_leader = {
							is_councilor = yes
							is_same_species = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 3
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species = owner_species }
							}
						}
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						any_owned_leader = {
							is_councilor = yes
							is_same_species_class = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 3
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species_class = owner_species }
							}
						}
					}
				}
			}
		}

		trigger = {
			always = no
		}
	}

	demand = {
		title = "SUPREMACIST_COUNCIL_SAME_SPECIES4"
		unfulfilled_title = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES4"
		desc = "SUPREMACIST_COUNCIL_NOT_SAME_SPECIES_DESC4"

		fulfilled_effect = 0.001
		unfulfilled_effect = -40

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				OR = {
					AND = {
						any_owned_leader = {
							is_councilor = yes
							is_same_species = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 4
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species = owner_species }
							}
						}
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						any_owned_leader = {
							is_councilor = yes
							is_same_species_class = owner_species
							is_ruler = no
						}
						count_owned_leader = {
							count = 4
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species_class = owner_species }
							}
						}
					}
				}
			}
		}

		trigger = {
			always = no
		}
	}

	demand = {
		title = "SUPREMACIST_COUNCIL_NOT_FULL_XENOS"
		unfulfilled_title = "SUPREMACIST_COUNCIL_FULL_XENOS"
		desc = "SUPREMACIST_COUNCIL_FULL_XENOS_DESC"

		fulfilled_effect = 0.001
		unfulfilled_effect = -60

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				NOR = {
					any_owned_leader = {
						is_councilor = yes
						is_same_species = owner_species
						is_ruler = no
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						any_owned_leader = {
							is_councilor = yes
							is_same_species_class = owner_species
							is_ruler = no
						}
					}
				}
				OR = {
					count_owned_leader = {
						count >= 5
						limit = {
							is_councilor = yes
							is_ruler = no
							NOT = { is_same_species = owner_species }
						}
					}
					any_owned_leader = {
						is_councilor = yes
						is_ruler = no
					}
					AND = {
						has_valid_civic = civic_selective_kinship
						count_owned_leader = {
							count >= 5
							limit = {
								is_councilor = yes
								is_ruler = no
								NOT = { is_same_species_class = owner_species }
							}
						}
					}
				}
			}
		}

		trigger = {
			always = no
		}
	}

	demand = {
		title = "SUPREMACIST_ISOLATIONIST_NO_FEDERATION"
		unfulfilled_title = "SUPREMACIST_ISOLATIONIST_FEDERATION"
		desc = "SUPREMACIST_ISOLATIONIST_NO_FEDERATION_DESC"

		fulfilled_effect = 10
		unfulfilled_effect = -20

		potential = {
			exists = owner
			owner = {
				num_communications > 0
			}
		}

		trigger = {
			owner = {
				has_federation = no
			}
		}
	}

	demand = {
		title = "SUPREMACIST_UNRESTRICTED_STUDY"
		unfulfilled_title = "SUPREMACIST_NO_UNRESTRICTED_STUDY"
		desc = "SUPREMACIST_UNRESTRICTED_STUDY_DESC"

		fulfilled_effect = 5
		unfulfilled_effect = -10

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				any_relation = {
					is_country_type = primitive
				}
			}
		}

		trigger = {
			owner = {
				OR = {
					has_policy_flag = interference_active
					has_policy_flag = interference_aggressive
				}

			}
		}
	}

	demand = {
		title = "SUPREMACIST_NO_FREE_ALIENS"
		unfulfilled_title = "SUPREMACIST_HAS_FREE_ALIENS"
		desc = "SUPREMACIST_ALIEN_SLAVES_DESC"

		fulfilled_effect = 5
		unfulfilled_effect = -10

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				any_owned_species = {
					NOT = { is_same_species = prev }
					NAND = {
						prev = { has_valid_civic = civic_selective_kinship }
						is_same_species_class = prev
					}
					is_robotic = no
					is_sapient = yes
					NOT = {
						has_citizenship_type = { type = citizenship_purge country = prev }
					}
				}
			}
		}

		trigger = {
			owner = {
				NOT = {
					any_owned_species = {
						NOT = {
							is_same_species = prev
						}
						NAND = {
							prev = { has_valid_civic = civic_selective_kinship }
							is_same_species_class = prev
						}
						is_robotic = no
						is_sapient = yes
						has_citizenship_type = { type = citizenship_full country = prev }
					}
				}
			}
		}
	}

	demand = {
		title = "SUPREMACIST_NO_MIGRATION_TREATIES"
		unfulfilled_title = "SUPREMACIST_MIGRATION_TREATIES"
		desc = "SUPREMACIST_NO_MIGRATION_TREATIES_DESC"

		unfulfilled_effect = -10
		fulfilled_effect = 0.001

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				num_communications > 2
			}
		}

		trigger = {
			owner = {
				NOR = {
					num_migration_pacts > 0
					any_country = {
						is_country_type = default
						has_communications = root.owner
						OR = {
							has_diplo_migration_treaty = root.owner
							root = {
								owner = {
									has_diplo_migration_treaty = prevprev
								}
							}
						}
					}
				}
			}
		}
	}

	demand = {
		title = "SUPREMACIST_DOMINATION"
		desc = "SUPREMACIST_DOMINATION_DESC"
		unfulfilled_title = "SUPREMACIST_NO_DOMINATION"

		fulfilled_effect = 10
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				NOT = { has_valid_civic = civic_fanatic_purifiers }
				any_relation = {
					is_country_type = default
					has_communications = root.owner
					NOT = {
						is_in_federation_with = root.owner
					}
				}
			}
		}

		trigger = {
			owner = {
				has_country_flag = entered_war_as_attacker
			}
		}
	}

	demand = {
		title = "SUPREMACIST_FANATIC_PURIFIERS"
		unfulfilled_title = "SUPREMACIST_NOT_FANATIC_PURIFIERS"
		desc = "SUPREMACIST_FANATIC_PURIFIERS_DESC"

		fulfilled_effect = 10
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				has_valid_civic = civic_fanatic_purifiers
			}
		}

		trigger = {
			owner = {
				has_valid_civic = civic_fanatic_purifiers
			}
		}
	}

	demand = {
		title = "SUPREMACIST_GIANT_MASSACRE"
		unfulfilled_title = "SUPREMACIST_NO_GIANT_MASSACRE"
		desc = "SUPREMACIST_GIANT_MASSACRE_DESC"

		fulfilled_effect = 5
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				OR = {
					has_country_flag = killed_guardian
					any_relation = { is_guardian_country = yes }
				}
			}
		}

		trigger = {
			owner = {
				has_country_flag = killed_guardian
			}
		}
	}

	demand = {
		title = "SUPREMACIST_PROCLAIM_SUPREMACY"
		unfulfilled_title = "SUPREMACIST_NO_PROCLAIM_SUPREMACY"
		desc = "SUPREMACIST_PROCLAIM_SUPREMACY_DESC"

		fulfilled_effect = 5
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				has_modifier = proclaim_superiority
			}
		}

		trigger = {
			owner = {
				has_modifier = proclaim_superiority
			}
		}
	}

	demand = {
		title = "SUPREMACIST_CELEBRATE_DIVERSITY"
		unfulfilled_title = "SUPREMACIST_NO_CELEBRATE_DIVERSITY"
		desc = "SUPREMACIST_CELEBRATE_DIVERSITY_DESC"

		unfulfilled_effect = -5
		fulfilled_effect = 0.001

		potential = {
			exists = owner
			owner = {
				has_modifier = celebrate_diversity
			}
		}

		trigger = {
			owner = {
				NOT = { has_modifier = celebrate_diversity }
			}
		}
	}

	demand = {
		title = "STRONG_DIPLO_STANCE"
		unfulfilled_title = "STRONG_DIPLO_STANCE"
		desc = "STRONG_DIPLO_STANCE_DESC"

		fulfilled_effect = 10
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				is_homicidal = no
				is_country_type = default
				OR = {
					has_policy_flag = diplo_stance_belligerent
					has_policy_flag = diplo_stance_supremacist
					has_policy_flag = diplo_stance_animosity
				}
			}
		}

		trigger = {
			owner = {
				OR = {
					has_policy_flag = diplo_stance_belligerent
					has_policy_flag = diplo_stance_supremacist
					has_policy_flag = diplo_stance_animosity
				}
			}
		}
	}

	demand = {
		title = "WEAK_DIPLO_STANCE"
		unfulfilled_title = "WEAK_DIPLO_STANCE"
		desc = "WEAK_DIPLO_STANCE_DESC"

		fulfilled_effect = 0.01
		unfulfilled_effect = -10

		potential = {
			exists = owner
			owner = {
				is_homicidal = no
				is_country_type = default
				has_policy_flag = diplo_stance_cooperative
			}
		}

		trigger = {
			owner = {
				NOT = { has_policy_flag = diplo_stance_cooperative }
			}
		}
	}

	demand = {
		title = "SUPREMACIST_AGGRESSIVE_FIRST_CONTACT_POLICY"
		unfulfilled_title = "SUPREMACIST_NO_AGGRESSIVE_FIRST_CONTACT_POLICY"
		desc = "SUPREMACIST_NO_AGGRESSIVE_FIRST_CONTACT_POLICY_DESC"

		unfulfilled_effect = -5
		fulfilled_effect = 10

		potential = {
			exists = owner
			owner = {
				OR = {
					years_passed <= 75
					has_country_flag = recent_first_contact_process_started
				}
			}
		}

		trigger = {
			owner = {
				has_policy_flag = first_contact_attack_allowed
			}
		}
	}

	demand = {
		title = "SUPREMACIST_OPPRESSIVE_SUBJUGATION_POLICY"
		unfulfilled_title = "SUPREMACIST_NO_OPPRESSIVE_SUBJUGATION_POLICY"
		desc = "SUPREMACIST_NO_OPPRESSIVE_SUBJUGATION_POLICY_DESC"

		unfulfilled_effect = -5
		fulfilled_effect = 10

		potential = {
			exists = owner
			owner = {
				is_subject = no
			}
		}

		trigger = {
			owner = {
				has_policy_flag = oppressive_terms
			}
		}
	}

	demand = { # Unplugged: Cyberize
		title = SUPREMACIST_UNPLUGGED_CYBERIZE
		unfulfilled_title = SUPREMACIST_UNPLUGGED_NOT_CYBERIZE
		desc = SUPREMACIST_UNPLUGGED_CYBERIZE_DESC

		unfulfilled_effect = -10
		fulfilled_effect = 5

		potential = {
			exists = owner
			owner = {
				has_origin = origin_unplugged
				any_situation = {
					is_situation_type = situation_unplugged_identity
				}
			}
		}

		trigger = {
			owner = {
				any_situation = {
					is_situation_type = situation_unplugged_identity
					OR = {
						AND = { # safely in the Cyberize stage
							current_stage = unplugged_identity_stage_3
							situation_monthly_progress > 0
						}
						AND = { # trending towards Cyberization and our Approach is aligned
							situation_monthly_progress > 0.05
							OR = {
								current_situation_approach = situation_unplugged_identity_discourage_change
								current_situation_approach = situation_unplugged_identity_embrace_opinion
							}
						}
					}
				}
			}
		}
	}

	# Faction Demands for Ruler and Council positions.
	inline_script = {
		script = "pop_faction_types/global_faction_demands"
		ETHIC = ethic_xenophobe
		ETHIC_FANATIC = ethic_fanatic_xenophobe
		ETHIC_OPPOSED = ethic_xenophile
	}

	demand = { # "SUPREMACIST_CULL_THE_DRIFTERS"
		title = "SUPREMACIST_CULL_THE_DRIFTERS"
		unfulfilled_title = "SUPREMACIST_NO_CULL_THE_DRIFTERS"
		desc = "SUPREMACIST_CULL_THE_DRIFTERS_DESC"

		fulfilled_effect = 10
		unfulfilled_effect = -0.001

		potential = {
			exists = owner
			owner = {
				is_nomadic = no
				any_country = {
					is_nomadic = yes
					has_communications = root.owner
				}
			}
		}

		trigger = {
			owner = {
				has_policy_flag = arkship_raid_purge_pops
			}
		}
	}

	on_create = {
		pop_faction_event = { id = factions.0 }
	}

	on_destroy = {
		inline_script = {
			script = pop_faction_types/effect/promote_on_destroy
			ETHIC = xenophobe
		}
		inline_script = {
			script = pop_faction_types/effect/suppress_on_destroy
			ETHIC = xenophobe
		}
	}

	actions = {
		embrace_faction = {
			title = "EMBRACE_FACTION"
			description = "EMBRACE_FACTION_DESC"

			cost = {
				unity = 5000
			}

			potential = {
				exists = owner
				owner = {
					OR = {
						is_subject = no
						NOT = { any_agreement = { agreement_preset = preset_dominion } }
					}
				}
			}

			valid = {
				custom_tooltip = {
					fail_text = EMBRACE_FACTION_COOLDOWN
					owner = {
						NOT = { has_modifier = embraced_faction_timer }
					}
				}
				support > 0.20
				owner = {
					NOT = { has_ethic = "ethic_fanatic_xenophobe" }
				}
			}

			effect = {
				add_modifier = { modifier = embraced_faction days = 3600 }
				owner = {
					set_country_flag = has_embraced_faction
					shift_ethic = ethic_xenophobe
					hidden_effect = {
						every_pop_faction = { # embraces xenophobe ethos
							limit = { is_pop_faction_type = isolationist }
							add_modifier = { modifier = embraced_faction days = 3600	}
						}
						add_modifier = { modifier = embraced_faction_timer days = 3600 }
						every_pop_faction = {
							limit = {
								NOR = {
									is_same_value = root
									is_pop_faction_type = isolationist # same ethos
								}
							}
							add_modifier = { modifier = embraced_another_faction days = 3600 }
						}
					}
				}
				hidden_effect = {
					save_event_target_as = TargetFaction
					owner = {
						every_relation = {
							limit = {
								is_ai = no
								is_country_type = default
								has_communications = prev
								has_intel_level = {
									who = prev
									category = government
									level >= 1
								}
							}
							country_event = { id = factions.2000 }
						}
					}
				}
			}

			ai_weight = {
				base = 1
				modifier = {
					factor = 0
					support < 0.50
					owner = {
						has_ethic = ethic_xenophobe
					}
				}
				modifier = {
					factor = 0
					owner = { has_valid_civic = civic_fanatic_purifiers }
				}
				modifier = {
					factor = 0
					owner = {
						count_pop_faction = {
							count < 4
						}
					}
				}
			}
		}
	}
	inline_script = {
		script = pop_faction_types/actions/promote_faction
		ETHIC = xenophobe
	}
	inline_script = {
		script = pop_faction_types/actions/suppress_faction
		ETHIC = xenophobe
	}
	actions = {
		# Faction Extortion Buttons
		extort_faction = {
			title = "EXTORT_FACTION"
			description = "EXTORT_FACTION_DESC"

			potential = {
				exists = owner
				owner = {
					is_oligarchic_authority = yes
					has_country_flag = cyber_collectivist
					NOR = {
						has_valid_civic = civic_crowdsourcing
						has_valid_civic = civic_corporate_crowdsourcing
					}
				}
				is_faction_extorted = no
			}

			effect = {
				set_faction_extorted = yes
				custom_tooltip = alloys_extortion_tt
				custom_tooltip = ONLY_ONE_EXTORTED_FACTION_TT
			}

			ai_weight = {
				base = 0
			}
		}
		extort_faction_crowdsourcing = { #Crowdsourcing version
			title = "EXTORT_FACTION"
			description = "EXTORT_FACTION_DESC"

			potential = {
				exists = owner
				owner = {
					is_oligarchic_authority = yes
					has_country_flag = cyber_collectivist
					OR = {
						has_valid_civic = civic_crowdsourcing
						has_valid_civic = civic_corporate_crowdsourcing
					}
				}
				is_faction_extorted = no
			}

			effect = {
				set_faction_extorted = yes
				custom_tooltip = crowdsourced_extortion_tt
				custom_tooltip = ONLY_ONE_EXTORTED_FACTION_TT
			}

			ai_weight = {
				base = 0
			}
		}
		cancel_extort_faction = {
			title = "CANCEL_EXTORT_FACTION"
			description = "CANCEL_EXTORT_FACTION_DESC"

			potential = {
				exists = owner
				owner = {
					is_oligarchic_authority = yes
					has_country_flag = cyber_collectivist
				}
				is_faction_extorted = yes
			}

			effect = {
				set_faction_extorted = no
			}

			ai_weight = {
				base = 0
			}
		}
	}
}
