#civic_example = {
#	playable = {}									# AND trigger, no scope; use this to prevent the civic from being selectable by the player (UI)
#	potential = {}									# requirements list, see ../99_README_GOVERNMENT.txt
#	possible = {}									# requirements list, see ../99_README_GOVERNMENT.txt
#	pickable_at_start = yes / no					# default: yes
#	modification = {								# ( modification = yes/no) | Can be a set of two triggers:
#		moddable_conditions_custom_tooltip = loc	# Used for localizaton when add or remove is not set but the other one is (replaces CIVIC_NOT_MODDABLE)
#		add = {}									# add to check if can be added later under certain conditions
#		remove = {}									# remove to check if can be removed later under certain conditions
#	}
#
#													# default: yes, set to no to prevent adding or removing this after creation of the empire
#	custom_tooltip_with_modifiers = ...				# Appends localization key to the end of auto-generated modifier effect text.
#
#	random_weight = { base = 5 }					# scriptable weight for randomizing a civic
#													# Note: If omitted, a default weight of 1 is used
#													# Also note: after game start, AI selection of new civics uses the below weight instead
#
#	ai_weight = { base = 5 }						# scriptable weight for AI picking civics in-game (when unlocking a new slot).
#													# Note: If omitted, a default weight of 1 is used. Not needed when "modification = no"
#
#	modifier = {}									# modifier added to the country if the civic is selected and valid
#	hide_modifiers = yes / no						# default: no; if yes will hide the modifiers from the origin/civic tooltip.
#	can_build_ruler_ship = yes / no					# default: no
#	traits = { trait = ... }						# default: empty; trait set to enforce on the primary species. They cannot be removed, but more can be added if points/picks permit
#	soft_traits = { trait = ... }					# ORIGIN EXCLUSIVE; default: empty; same as above, except these can be removed without making the government invalid.
#	has_secondary_species = {						# default: none; if present, will enable secondary species customization in empire designer and will create secondary species & pops at galaxy generation time (see empire_init_create_capital_secondary_pops)
#		traits = { trait = ... }					# default: empty; trait set to enforce on the secondary species. They cannot be removed, but more can be added if points/picks permit
#	}
#	is_origin = yes / no							# default: no, set to yes if civic should be treated as an Origin
#	description = LOC_KEY							# Custom text that will appear under the "Effects" heading.
#	negative_description = LOC_KEY					# Custom text that will appear under the "Penalties" heading.
#   alternate_civic_version = civic_key				# Key of the civic that will try to replace the current one during a government reform if the current civic is locked (ex: corporate version of the civic that will replace it when attempting to reform to Megacorporation)
#													# Note: if no replacement civic is indicated, it fallback to non-moddable civics behaviour, i.e. you can't change authority
#
#	swap_type = {									# triggered name, desc, custom desc and modifiers
#		name = ...
#		description = ...
#		negative_description = ...
#		trigger = {
#			...
#		}
#		modifier = {								# modifier that is applied to the country when triggers are evaluated as true
#			...
#		}
#	}
#	ai_playable = {}								# Similar to "playable", for AI
#	blocks_random_machine_empire_generation	= yes	# ORIGIN EXCLUSIVE: Makes sure that random empire creation does not create invalid combinations with individualistic machines. Defaults to yes. Required for all origins that should be blocked by individualist machines.
#
# 	removed_climate_labels = { Climate_Label_Name } # Removes the listed UI labels from the home world empire creation screen UI
#	added_climate_labels = { Climate_Label_Name }   # Adds the listed UI labels from the home world empire creation screen UI (UI elements need to be declared first)
#	removed_planet_types = { Planet_Type_Name }     # Removes the listed planet types from the home world empire creation screen UI
#	added_planet_types = { Planet_Type_Name }       # Adds the listed UI planet types from the home world empire creation screen UI (UI elements need to be declared first)
#}

civic_corvee_system = {
	description = "civic_corvee_system_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOT = {
				value = civic_free_haven
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
				has_ai_personality = slaving_despots
			}
		}
	}
	modifier = {
		planet_resettlement_unemployed_mult = 0.15
		planet_jobs_worker_produces_mult = 0.1
		pop_resettlement_cost_mult = -0.1
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
}

civic_imperial_cult = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			value = auth_imperial
		}
		ethics = {
			OR = {
				text = civic_tooltip_authoritarian
				value = ethic_authoritarian
				value = ethic_fanatic_authoritarian
			}
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
				has_ai_personality = erudite_explorers
				has_ai_personality = harmonious_hierarchy
			}
		}
	}
	description = civic_imperial_cult_effects
	modifier = {
		country_edict_fund_add = 100
	}
}

civic_beacon_of_liberty = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			value = auth_democratic
		}
		ethics = {
			OR = {
				text = civic_tooltip_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOT = { value = civic_crusader_spirit }
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = evangelising_zealots
				has_ai_personality = ruthless_capitalists
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_purifiers
			}
		}
	}
	modifier = {
		country_unity_produces_mult = 0.10
		empire_size_pops_mult = -0.10
		refugee_attraction = 0.25
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}

	swap_type = {
		trigger = {
			has_biogenesis_dlc = yes
		}
		modifier = {
			operation_smuggle_pops_difficulty_add = -1
		}
	}
}

civic_exalted_priesthood = {
	description = "civic_tooltip_exalted_priesthood_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			OR = {
				value = auth_oligarchic
				value = auth_dictatorial
			}
		}
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
	}
	modifier = {
		planet_bureaucrats_unity_produces_add = 1
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = evangelising_zealots
				has_ai_personality = decadent_hierarchy
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
				has_ai_personality = peaceful_traders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
			}
		}
	}
	swap_type = {
		description = "civic_tooltip_exalted_priesthood_techpriest_effects"

		trigger = {
			exists = this
			has_origin = origin_cybernetic_creed
		}
	}
}

civic_philosopher_king = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			OR = {
				text = civic_tooltip_dic_imp
				value = auth_dictatorial
				value = auth_imperial
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
			}
		}
	}
	modifier = {
		ruler_skill_add = 5
	}
}

civic_meritocracy = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			OR = {
				text = civic_tooltip_dem_oli
				value = auth_democratic
				value = auth_oligarchic
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = erudite_explorers
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = decadent_hierarchy
				has_ai_personality = evangelising_zealots
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = ruthless_capitalists
			}
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.10
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}

	swap_type = {
		trigger = {
			has_paragon_dlc = yes
		}

		modifier = {
			leader_trait_selection_options_add = 1
		}
	}
}

civic_citizen_service = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
			NOT = {
				value = ethic_fanatic_xenophile
			}
		}
		authority = {
			OR = {
				text = civic_tooltip_dem_oli
				value = auth_democratic
				value = auth_oligarchic
			}
		}
		civics = {
			NOR = {
				value = civic_reanimated_armies
				value = civic_tankbound
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = decadent_hierarchy
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
			}
		}
	}
	modifier = {
		country_naval_cap_mult = 0.15
		planet_soldiers_unity_produces_add = 2
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
	description = "civic_tooltip_citizen_service_effects"
}

civic_technocracy = {
	description = civic_tooltip_technocracy_effects
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_materialist
				value = ethic_materialist
				value = ethic_fanatic_materialist
			}
		}
		civics = {
			NOT = {
				value = civic_shared_burden
			}
		}
	}
	modifier = {
		num_tech_alternatives_add = 1
		country_scientist_cap_add = 1
		country_official_cap_add = -1
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = ruthless_capitalists
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = democratic_crusaders
				has_ai_personality = evangelising_zealots
				has_ai_personality = spiritual_seekers
			}
		}
	}
}

civic_feudal_realm = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			value = auth_imperial
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = fanatic_befrienders
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
			}
		}
	}
	description = "civic_tooltip_feudal_realm_effects"
	modifier = {
		country_naval_capacity_contribution_from_subjects_mult = 0.05
		divided_patrongage_max_subjects = 1
		country_subject_acceptance_add = 25
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
}

civic_police_state = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			NOT = {
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOT = {
				value = civic_civil_education
			}
		}
	}
	modifier = {
		planet_stability_add = 3
		planet_enforcers_unity_produces_add = 1
		enforcer_jobs_bonus_workforce_mult = 0.10
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = democratic_crusaders
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
			}
		}
	}
}

civic_idealistic_foundation = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = evangelising_zealots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
			}
		}
	}
	modifier = {
		pop_citizen_happiness = 0.10
		refugee_attraction = 0.10
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

civic_environmentalist = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = no
		civics = {
			NOT = {
				value = civic_dystopian_society
			}
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = ruthless_capitalists
			}
		}
	}
	modifier = {
		planet_pops_consumer_goods_upkeep_mult = -0.20
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	description = "civic_tooltip_environmentalist_effects"
}

civic_slaver_guilds = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_authoritarian
				value = ethic_authoritarian
				value = ethic_fanatic_authoritarian
			}
		}
		civics = {
			NOR = {
				value = civic_pleasure_seekers
				value = civic_tankbound
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = peaceful_traders
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
			}
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.15
		refugee_attraction = -0.25
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_inwards_perfection = {
	modification = no
	description = "civic_tooltip_inward_perfection_effects"
	negative_description = "BLOCKS_COUNCILOR_STATE"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
			OR = {
				text = civic_tooltip_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		origin = {
			NOR = {
				value = origin_common_ground
				value = origin_hegemon
				value = origin_fear_of_the_dark
			}
		}
		civics = {
			NOT = {
				value = civic_pompous_purists
			}
			NOR = {
				text = civic_tooltip_not_eager_explorers
				value = civic_eager_explorers
				value = civic_privatized_exploration
				value = civic_hive_stargazers
				value = civic_machine_exploration_protocol
			}
			NOR = {
				text = civic_tooltip_not_guardian
				value = civic_sovereign_guardianship
				value = civic_corporate_sovereign_guardianship
				value = civic_hive_sovereign_guardianship
				value = civic_machine_sovereign_guardianship
			}
		}
	}
	random_weight = { base = 1000 }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = ruthless_capitalists
				has_ai_personality = evangelising_zealots
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = fanatic_befrienders
				has_ai_personality = federation_builders
				has_ai_personality = democratic_crusaders
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = honorbound_warriors
			}
		}
	}
	modifier = {
		country_unity_produces_mult = 0.20
		founder_species_growth_mult  = 0.10
		country_edict_fund_add = 50
		pop_citizen_happiness = 0.05
		refugee_attraction = -0.50
		envoys_add = -1
		intel_encryption_add = 1
		intel_decryption_add = -1
	}
}

civic_warrior_culture = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
		}
		civics = {
			NOR = {
				value = civic_dystopian_society
				value = civic_pleasure_seekers
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = peaceful_traders
			}
		}
	}
	description = "civic_tooltip_warrior_culture_effects"
	modifier = {
		army_damage_mult = 0.20
		country_war_exhaustion_mult = -0.1
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
	swap_type = {
		description = "civic_tooltip_warrior_culture_effects"
		trigger = {
			host_has_dlc = "Overlord"
		}
		modifier = {
			country_enclave_capacity_add = 1
		}
	}
}

civic_distinguished_admiralty = {
#	description = civic_tooltip_distinguished_admiralty_effects
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = erudite_explorers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = spiritual_seekers
			}
		}
	}
	modifier = {
		ship_fire_rate_mult = 0.10
		leader_commanders_upkeep_mult = -0.25
		command_limit_mult = 0.20
		commander_initial_skill = 2
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
}

civic_free_haven = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_xenophile
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
			}
		}
		civics = {
			NOR = {
				value = civic_corvee_system
				value = civic_dystopian_society
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = decadent_hierarchy
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = ruthless_capitalists
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = slaving_despots
				has_ai_personality = fanatic_purifiers
			}
		}
	}
	modifier = {
		planet_resettlement_unemployed_destination_mult = 0.25
		pop_cat_worker_happiness = 0.05
		refugee_attraction = 0.50
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
	swap_type = {
		trigger = {
			is_species_class = MACHINE
			is_gestalt = no
		}
		modifier = {
			pop_happiness = 0.05
		}
	}
}

civic_cutthroat_politics = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = federation_builders
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = peaceful_traders
				has_ai_personality = spiritual_seekers
			}
		}
	}
	modifier = {
		edicts_upkeep_mult = -0.20
		intel_decryption_add = 1
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

# Disable this civic if host has MegaCorp as it's replaced by the Corporate authority
civic_corporate_dominion = {
	playable = { NOT = { host_has_dlc = "Megacorp" } }
	ai_playable = { NOT = { host_has_dlc = "Megacorp" } }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			value = auth_oligarchic
		}
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
	}
	modifier = {
		external_leader_pool_add = 1
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	random_weight = {
		base = @civic_uncommon_random_weight
		modifier = {
			factor = 0
			host_has_dlc = "Megacorp"
		}
	}
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = federation_builders
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_befrienders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = erudite_explorers
				has_ai_personality = honorbound_warriors
				has_ai_personality = democratic_crusaders
			}
		}
	}

	# unlocks sponsored_colonizer ship size

	description = "civic_tooltip_corporate_dominion_effects"
}

civic_agrarian_idyll = {
	description = "civic_tooltip_agrarian_idyll_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
		}
		origin = {
			NOR = {
				value = origin_post_apocalyptic
				value = origin_post_apocalyptic_machines
				value = origin_shattered_ring
				value = origin_void_dwellers
				value = origin_void_machines
				value = origin_remnants
			}
		}
		civics = {
			NOR = {
				value = civic_dystopian_society
				value = civic_tankbound
			}
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
		}
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
	}

	leader_background_job_weight = {
		"farmer" = 50
	}

	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = evangelising_zealots
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = honorbound_warriors
				has_ai_personality = ruthless_capitalists
			}
		}
	}
	swap_type = {
		description = "civic_tooltip_agrarian_anglers_effects"
		trigger = {
			is_scope_valid = yes
			has_civic = civic_anglers
		}
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_shadow_council = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			OR = {
				text = civic_tooltip_dem_oli_dic
				value = auth_democratic
				value = auth_oligarchic
				value = auth_dictatorial
			}
		}
	}
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = peaceful_traders
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	modifier = {
		election_term_variance_add = 5	# Only use positive values for this modifier
		country_election_cost_mult = -0.75
		councilor_skill_add = 1
		intel_decryption_add = 1
		spy_network_daily_value_mult = 0.1
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_mining_guilds = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = no
		civics = {
			NOT = {
				value = civic_tankbound
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = spiritual_seekers
				has_ai_personality = democratic_crusaders
			}
		}
	}
	modifier = {
		planet_miners_minerals_produces_add = 1
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_parliamentary_system = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		authority = {
			value = auth_democratic
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_crowdsourcing
				value = civic_corporate_crowdsourcing
				value = civic_crowdsourcing
			}
			NOR = {
				value = civic_secret_societies
				value = civic_secret_societies_corporate
				value = civic_media_conglomerate
			}
		}
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
			}
		}
	}
	description = "civic_tooltip_parliamentary_system_effects"
	modifier = {
		pop_factions_produces_mult = 0.20
		faction_demands_unmet_mult = 0.50
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

civic_efficient_bureaucracy = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = federation_builders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = spiritual_seekers
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = decadent_hierarchy
			}
		}
	}
	# The edict fund production is deliberately only limited to Bureaucrats, Priests, Managers and Death Priests.
	description = "civic_tooltip_efficient_bureaucracy_effects"
	modifier = {
		planet_bureaucrats_upkeep_mult = -0.20
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_nationalistic_zeal = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = no
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = democratic_crusaders
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = peaceful_traders
				has_ai_personality = decadent_hierarchy
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = federation_builders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = fanatic_befrienders
			}
		}
	}
	modifier = {
		country_war_exhaustion_mult = -0.2
		country_claim_influence_cost_mult = -0.15
		diplo_weight_rivals_mult = 0.05
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
}

civic_functional_architecture = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = decadent_hierarchy
				has_ai_personality = peaceful_traders
			}
		}
	}
	modifier = {
		planet_structures_cost_mult = -0.15
		planet_building_build_speed_mult = 0.15
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	description = "civic_functional_architecture_effects"
}

civic_aristocratic_elite = {
	description = "civic_tooltip_aristocratic_elite_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
		}
		authority = {
			OR = {
				text = civic_tooltip_oli_imp
				value = auth_oligarchic
				value = auth_imperial
			}
		}
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = peaceful_traders
				has_ai_personality = fanatic_befrienders
				has_ai_personality = federation_builders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = democratic_crusaders
			}
		}
	}

	modifier = {
		pop_cat_ruler_bonus_workforce_mult = 0.1
		leaders_upkeep_mult = 0.1
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_shared_burden = {
	playable = { host_has_dlc = "Megacorp" }
	ai_playable = { host_has_dlc = "Megacorp" }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			value = ethic_fanatic_egalitarian
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOT = {
				value = civic_technocracy
				value = civic_pleasure_seekers
			}
		}
	}
	modifier = {
		planet_stability_add = 5
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @ai_civic_rare_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = evangelising_zealots
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = ruthless_capitalists
				has_ai_personality = decadent_hierarchy
			}
		}
	}

	description = civic_tooltip_shared_burden_effects
}

civic_fanatic_purifiers = {
	modification = no
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			value = ethic_fanatic_xenophobe
			OR = {
				value = ethic_militarist
				value = ethic_spiritualist
			}
		}
		civics = {
			NOR = {
				value = civic_barbaric_despoilers
				value = civic_pompous_purists
				value = civic_crusader_spirit
				value = civic_selective_kinship
			}
			NOR = {
				text = civic_tooltip_not_guardian
				value = civic_sovereign_guardianship
				value = civic_corporate_sovereign_guardianship
				value = civic_hive_sovereign_guardianship
				value = civic_machine_sovereign_guardianship
			}
			NOR = {
				text = civic_tooltip_not_guided
				value = civic_guided_sapience
				value = civic_corporate_guided_sapience
				value = civic_hive_guided_sapience
				value = civic_machine_guided_sapience
			}
			NOR = {
				text = civic_tooltip_not_scorched_earth
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
		origin = {
			NOR = {
				value = origin_syncretic_evolution
				value = origin_common_ground
				value = origin_hegemon
				value = origin_toxic_knights
				value = origin_broken_shackles
			}
		}
	}
	random_weight = {
		base = 1000
		modifier = {
			factor = 0
			blocks_disruptive_gameplay = yes
		}
	}

	description = "civic_tooltip_fanatic_purifiers_effects"
	negative_description = "BLOCKS_COUNCILOR_STATE"
	modifier = {
		ship_fire_rate_mult = 0.33
		army_damage_mult = 0.33
		starbase_shipyard_build_cost_mult = -0.15
		country_naval_cap_mult = 0.33
		add_attunement_the_eater_of_worlds = @civic_attunement1
		the_cradle_of_souls_attunement_mult = -0.25
	}

	swap_type = {
		trigger = {
			is_scope_valid = yes
			has_country_flag = dark_forest_achievement
		}
		description = "civic_tooltip_fanatic_purifiers_effects"
		modifier = {
			country_government_civic_points_add = 1
		}
	}
}

civic_barbaric_despoilers = {
	playable = {
		host_has_dlc = "Apocalypse"
	}
	ai_playable = {
		host_has_dlc = "Apocalypse"
	}
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		origin = {
			NOT = {
				value = origin_slavers
			}
		}
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_fanatic_militarist
				value = ethic_militarist
			}
			OR = {
				value = ethic_fanatic_authoritarian
				value = ethic_authoritarian
				value = ethic_fanatic_xenophobe
				value = ethic_xenophobe
			}
			NOR = {
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
			}
		}
		origin = {
			NOT = {
				value = origin_common_ground
			}
		}
	}
	modification = no
	random_weight = {
		base = @civic_uncommon_random_weight
		modifier = {
			factor = 0
			NOT = { host_has_dlc = "Apocalypse" }
		}
		modifier = {
			# civic has no effect after galaxy generation, disable for random generation
			factor = 0
			has_global_flag = game_started
		}
		modifier = {
			factor = 0
			blocks_disruptive_gameplay = yes
		}
	}
	description = "civic_tooltip_barbaric_despoilers_effects"
	swap_type = {
		description = "civic_tooltip_barbaric_despoilers_effects"
		trigger = {
			host_has_dlc = "Overlord"
		}
		modifier = {
			country_enclave_capacity_add = 1
		}
	}
	modifier = {
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_byzantine_bureaucracy = {
	playable = { host_has_dlc = "Megacorp" }
	ai_playable = { host_has_dlc = "Megacorp" }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = spiritual_seekers
			}
		}
	}
	modifier = {
		planet_bureaucrats_unity_produces_add = 1
		planet_bureaucrats_stability_produces_add = 1
	}
}

civic_merchant_guilds = {
	description = "civic_tooltip_merchant_guilds_effects"
	playable = { host_has_dlc = "Megacorp" }
	ai_playable = { host_has_dlc = "Megacorp" }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
			}
		}
	}

	modifier = {
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_reanimated_armies = {
	playable = { host_has_dlc = "Necroids Species Pack" }
	ai_playable = { host_has_dlc = "Necroids Species Pack" }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			NOR = {
				value = ethic_gestalt_consciousness
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
		}
		civics = {
			NOR = {
				value = civic_citizen_service
			}
			NOR = {
				text = civic_tooltip_not_guardian
				value = civic_sovereign_guardianship
				value = civic_corporate_sovereign_guardianship
				value = civic_hive_sovereign_guardianship
				value = civic_machine_sovereign_guardianship
			}
		}
		origin = {
			NOT = {
				value = origin_synthetic_fertility
			}
		}
		species_archetype = {
			NOT = {
				text = disabled_by_synthetic_ascension
				value = ROBOT
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = erudite_explorers
				has_ai_personality = democratic_crusaders
				has_ai_personality = harmonious_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
	}
	description = "civic_tooltip_reanimated_armies_effects"
	modifier = {
		add_attunement_the_eater_of_worlds = @civic_attunement1
		pop_soldier_bonus_workforce_mult = 0.10
	}
}

civic_diplomatic_corps = {
	playable = { host_has_dlc = "Federations" }
	ai_playable = { host_has_dlc = "Federations" }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_inwards_perfection
				value = civic_scorched_earth
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = peaceful_traders
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = democratic_crusaders
				has_ai_personality = xenophobic_isolationists
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = slaving_despots
				has_ai_personality = fanatic_purifiers
			}
		}
	}
	modifier = {
		envoys_add = 2
		diplo_weight_mult = 0.15
		country_trust_cap_add = 40
		envoy_improve_relations_mult = 0.75
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

civic_death_cult = {
	playable = { host_has_dlc = "Necroids Species Pack" }
	ai_playable = { host_has_dlc = "Necroids Species Pack" }
	description = "civic_tooltip_death_cult_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } } #Corps get their own version
	}
	possible = {
		origin = {
			NOT = {
				value = origin_necrophage
			}
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_scorched_earth
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_inwards_perfection
				value = civic_death_cult_corporate
			}
		}
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
	}

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @ai_civic_rare_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = spiritual_seekers
				has_ai_personality = decadent_hierarchy
				has_ai_personality = xenophobic_isolationists
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = peaceful_traders
				has_ai_personality = democratic_crusaders
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = erudite_explorers
				has_ai_personality = ruthless_capitalists
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
	}
}

civic_memorialist = {
	playable = { host_has_dlc = "Necroids Species Pack" }
	ai_playable = { host_has_dlc = "Necroids Species Pack" }
	description = "civic_tooltip_memorialist_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } } #Gestalts get their own versions
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_entropy_drinkers
			}
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
		}
	}
	random_weight = {
		base = @civic_default_random_weight
	}
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_befrienders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = xenophobic_isolationists
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
				has_ai_personality = fanatic_purifiers
			}
		}
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_catalytic_processing = {
	playable = { host_has_dlc = "Plantoids Species Pack" }
	ai_playable = { host_has_dlc = "Plantoids Species Pack" }
	description = "civic_tooltip_catalytic_processing_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } } #Gestalts get their own versions
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		origin = {
			NOT = {
				value = origin_lithoid
			}
		}
		civics = {
			NOT = {
				value = civic_corporate_catalytic_processing
			}
		}
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
	}
	modifier = {
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = 0	# Too dangerous to switch this mid-game
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_crafters = {
	description = "civic_tooltip_crafters_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		always = yes
	}
	possible = {
		civics = { NOT = { value = civic_corporate_crafters }	}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = decadent_hierarchy
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
			}
		}
	}

	modifier = {
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_pleasure_seekers = {
	description = "civic_tooltip_pleasure_seekers_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOT = {
				value = civic_warrior_culture
				value = civic_shared_burden
				value = civic_slaver_guilds # would enslave hedonists
				value = civic_corporate_hedonism
				value = civic_dystopian_society
			}
		}
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = evangelising_zealots
				has_ai_personality = honorbound_warriors
				has_ai_personality = democratic_crusaders
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = fanatic_purifiers
			}
		}
	}

	modifier = {
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_idyllic_bloom = {
	modification = no
	playable = { host_has_dlc = "Plantoids Species Pack" }
	ai_playable = { host_has_dlc = "Plantoids Species Pack" }
	description = "civic_tooltip_idyllic_bloom_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = no
		species_class = {
			OR = {
				value = FUN
				value = PLANT
			}
		}
		origin = {
			NOR = {
				value = origin_void_dwellers
				value = origin_evolutionary_predators
				value = origin_unplugged
			}
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
			NOR = {
				text = civic_tooltip_not_world_forgers
				value = civic_world_forgers
				value = civic_hive_world_forgers
				value = civic_machine_world_forgers
				value = civic_corporate_world_forgers
			}
		}
	}
	random_weight = {
		base = @civic_rare_random_weight
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_anglers = {
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_anglers
			}
		}
		remove = {
			always = no
		}
	}
	alternate_civic_version = civic_corporate_anglers
	playable = { has_aquatics = yes }
	ai_playable = { has_aquatics = yes }
	description = "civic_tooltip_anglers_effects"
	negative_description = "civic_tooltip_anglers_negative_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		species_archetype = { NOT = { value = MACHINE } }
	}
	possible = {
		is_nomadic = no
		species_archetype = { NOT = { value = MACHINE } }
		origin = {
			NOR = {
				value = origin_post_apocalyptic
				value = origin_shattered_ring
				value = origin_void_dwellers
			}
		}
		civics = {
			NOT = {
				value = civic_tankbound
			}
		}
   		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
	}
	traits = {
		trait = trait_aquatic
	}
	random_weight = {
		base = @civic_default_random_weight
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_machine_anglers = {
	modification = no
	playable = { has_aquatics = yes }
	ai_playable = { has_aquatics = yes }
	description = "civic_tooltip_machine_anglers_effects"
	negative_description = "civic_tooltip_machine_anglers_negative_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		species_archetype = { value = MACHINE }
	}
	possible = {
		is_nomadic = no
		species_archetype = { value = MACHINE }
		origin = {
			NOR = {
				value = origin_post_apocalyptic_machines
				value = origin_shattered_ring
				value = origin_void_machines
			}
		}
	}
	traits = {
		trait = trait_robot_aquatic
	}
	random_weight = {
		base = @civic_default_random_weight
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_pompous_purists = {
	description = "civic_tooltip_pompous_purists_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_inwards_perfection
			}
		}
		origin = { NOT = { value = origin_scion } }
	}
	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = decadent_hierarchy
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = spiritual_seekers
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = erudite_explorers
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
				has_ai_personality = hegemonic_imperialists
				has_ai_personality = democratic_crusaders
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_befrienders
			}
		}
	}

	modifier = {
		envoy_improve_relations_mult = 0.25
		envoys_add = 1
		diplo_weight_opposing_mult = 0.15
		external_leader_pool_add = -1
		refugee_attraction = -0.25
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

civic_toxic_baths = {
	playable = { has_toxoids = yes }
	ai_playable = { has_toxoids = yes }
	description = "civic_tooltip_toxic_baths_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		species_archetype = { NOT = { value = MACHINE } }
	}
	possible = {
		origin = {
			NOR = {
				value = origin_life_seeded
				value = origin_synthetic_fertility
			}
		}
		civics = {
			NOT = {
				value = civic_corporate_toxic_baths
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = democratic_crusaders
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
			}
		}
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_relentless_industrialists = {
	playable = { has_toxoids = yes }
	ai_playable = { has_toxoids = yes }
	description = "civic_tooltip_relentless_industrialists_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = no
		ethics = {
			OR = {
				text = civic_tooltip_materialist
				value = ethic_materialist
				value = ethic_fanatic_materialist
			}
		}
		origin = { NOT = { value = origin_life_seeded } }
		civics = {
			NOR = {
				value = civic_environmentalist
				value = civic_agrarian_idyll
				value = civic_idyllic_bloom
				value = civic_memorialist
				value = civic_corporate_relentless_industrialists
			}
			NOR = {
				text = civic_tooltip_not_world_forgers
				value = civic_world_forgers
				value = civic_hive_world_forgers
				value = civic_machine_world_forgers
				value = civic_corporate_world_forgers
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = slaving_despots
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = peaceful_traders
				has_ai_personality = federation_builders
				has_ai_personality = xenophobic_isolationists
				has_ai_personality = fanatic_befrienders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = erudite_explorers
				has_ai_personality = spiritual_seekers
				has_ai_personality = democratic_crusaders
				has_ai_personality = harmonious_hierarchy
			}
		}
	}

	modifier = {
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_scavengers = {
	playable = { has_toxoids = yes }
	ai_playable = { has_toxoids = yes }
	description = "civic_scavengers_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOT = {
				value = civic_corporate_scavengers
			}
		}
	}
	modifier = {
		ships_alloys_upkeep_mult = -0.05
		planet_building_refund_mult = 0.10
		megastructure_dismantle_refund_mult = 0.10
	}
	random_weight = {
		base = @civic_default_random_weight
	}
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = ruthless_capitalists
				has_ai_personality = peaceful_traders
				has_ai_personality = slaving_despots
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = evangelising_zealots
				has_ai_personality = spiritual_seekers
				has_ai_personality = decadent_hierarchy
				has_ai_personality = democratic_crusaders
				has_ai_personality = fanatic_purifiers
			}
		}
		modifier = {
			factor = @ai_civic_personality_forbid_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = xenophobic_isolationists
			}
		}
	}
}

civic_ascensionists = {
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		civics = {
			NOT = {
				value = civic_corporate_ascensionists
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	description = "civic_tooltip_ascensionists_effects"
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = spiritual_seekers
				has_ai_personality = harmonious_hierarchy
				has_ai_personality = xenophobic_isolationists
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
				has_ai_personality = slaving_despots
				has_ai_personality = federation_builders
				has_ai_personality = fanatic_purifiers
			}
		}
	}
	modifier = {
		planetary_ascension_effect_mult = 0.25
		planetary_ascension_cost_mult = -0.1
		tradition_cost_empire_size_mult = -0.25
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_memory_vault = {
	playable = { host_has_dlc = "Galactic Paragons" }
	ai_playable = { host_has_dlc = "Galactic Paragons" }
	random_weight = {
		base = 3
	}
	description = "civic_tooltip_memory_vault_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOT = {
				value = civic_memory_vault_corporate
			}
		}
	}
	modifier = {
		councilor_skill_add = 1
		leader_initial_skill = 1
		leader_trait_selection_options_add = 1
	}
}

civic_crusader_spirit = {
	playable = { host_has_dlc = "Galactic Paragons" }
	ai_playable = { host_has_dlc = "Galactic Paragons" }
	random_weight = {
		base = @civic_default_random_weight
	}
	description = "civic_tooltip_crusader_spirit_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_authoritarian_or_militarist_or_spiritualist
				value = ethic_militarist
				value = ethic_fanatic_militarist
				value = ethic_authoritarian
				value = ethic_fanatic_authoritarian
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
			NOR = {
				text = civic_tooltip_not_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_beacon_of_liberty
			}
		}
	}
	modifier = {
		ship_weapon_damage = 0.05
		starbase_shipyard_build_speed_mult = 0.05
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}

	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = democratic_crusaders
				has_ai_personality = evangelising_zealots
				has_ai_personality = fanatic_befrienders
			}
		}
	}
}

civic_eager_explorers = {
	playable = {
		has_first_contact_dlc = yes
	}

	description = "civic_eager_explorers_effects"
	negative_description = "civic_eager_explorers_negative_effects"
	possible = {
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	modification = {
		add = {
			has_technology = tech_subspace_drive
		}
		remove = {
			has_technology = tech_jump_drive_1
		}
	}
	alternate_civic_version = civic_privatized_exploration
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = {
				value = auth_corporate
			}
		}
	}

	possible = {
		# this does not prevent the empire from rolling the bioship at random
		# see 'ship_selection_weight' in biogenesis_01/02 definitions in 00_graphical_culture.txt
		graphical_culture = {
			NOR = {
				text = graphical_culture_tooltip_not_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
		origin = {
			NOR = {
				# No FC origins.
				value = origin_payback
				value = origin_broken_shackles
				value = origin_fear_of_the_dark
				value = origin_synthetic_fertility
			}
		}
		civics = {
			NOR = {
				value = civic_privatized_exploration
				value = civic_inwards_perfection
			}
			NOR = {
				text = civic_tooltip_not_guardian
				value = civic_sovereign_guardianship
				value = civic_corporate_sovereign_guardianship
				value = civic_hive_sovereign_guardianship
				value = civic_machine_sovereign_guardianship
			}
			NOR = {
				text = civic_tooltip_not_hyperspace_specialty
				value = civic_hyperspace_specialty
				value = civic_corporate_hyperspace_specialty
				value = civic_hive_hyperspace_specialty
				value = civic_machine_hyperspace_specialty
			}
			NOR = {
				text = civic_tooltip_not_guided
				value = civic_guided_sapience
				value = civic_corporate_guided_sapience
				value = civic_hive_guided_sapience
				value = civic_machine_guided_sapience
			}
		}
	}

	modifier = {
		ship_speed_mult = 0.15
		science_ship_survey_speed = 0.2
		ship_anomaly_generation_chance_mult = 0.05
		category_voidcraft_draw_chance_mult = 0.5
	}

	swap_type = {
		description = "civic_eager_explorers_effects"
		negative_description = "civic_eager_explorers_negative_effects"
		trigger = {
			has_astral_planes_dlc = yes
		}

		modifier = {
			country_astral_rift_speed_mult = 0.05
		}
	}

	random_weight = {
		base = 0
	}
}

civic_hyperspace_specialty = {
	playable = { has_astral_planes_dlc = yes }
	ai_playable = { has_astral_planes_dlc = yes }
	description = "civic_hyperspace_specialty_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_hyperspace_specialty } }
	}
	possible = {
		civics = {
			NOR = {
				text = civic_tooltip_not_eager_explorers
				value = civic_eager_explorers
				value = civic_privatized_exploration
				value = civic_hive_stargazers
				value = civic_machine_exploration_protocol
			}
		}
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	modifier = {
		planet_sensor_range_add = 2
		ship_speed_mult = 0.1
		country_physics_tech_research_speed = 0.15
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
}

civic_dimensional_worship = {
	playable = { has_astral_planes_dlc = yes }
	ai_playable = { has_astral_planes_dlc = yes }
	description = "civic_dimensional_worship_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_dimensional_worship } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
	}
	modifier = {
		planet_bureaucrats_physics_research_produces_add = 1
		rare_tech_draw_chance_mult = 0.1
	}
	custom_tooltip_with_modifiers = "civic_dimensional_worship_effects_additional"
}

civic_heroic_tales = {
	playable = { host_has_dlc = "Galactic Paragons" }
	ai_playable = { host_has_dlc = "Galactic Paragons" }
	random_weight = {
		base = 4
	}
#	description = "civic_heroic_tales_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	modifier = {
		country_official_cap_add = 1
		country_commander_cap_add = 1
		country_scientist_cap_add = 1
	}
}

civic_dystopian_society = {
	modification = no
	playable = { host_has_dlc = "Galactic Paragons" }
	ai_playable = { host_has_dlc = "Galactic Paragons" }
	random_weight = {
		base = @civic_rare_random_weight
	}
	potential = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
		}
		authority = {
			NOT = { value = auth_corporate }
		}
		civics = {
			NOT = { value = civic_civil_education }
		}
	}
	possible = {
		ethics = {
			value = ethic_fanatic_authoritarian
		}
		civics = {
			NOR = {
				value = civic_pleasure_seekers
				value = civic_free_haven
				value = civic_warrior_culture
				value = civic_agrarian_idyll
				value = civic_environmentalist
			}
		}
	}
	modifier = {
		country_commander_cap_add = 1
		leaders_upkeep_mult = -0.2
		refugee_attraction = -0.25
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}

	description = civic_tooltip_dystopian_society_effects
}

civic_selective_kinship = {
	playable = { has_lithoids = yes }
	ai_playable = { has_lithoids = yes }
	random_weight = {
		base = 4
	}
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	modifier = {
		citizen_pop_same_species_class_happiness = 0.075
		citizen_pop_different_species_class_happiness = 0.025
	}
	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophile_or_fan_egalitarian
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
			}
		}
		origin = {
			NOT = {
				value = origin_broken_shackles
			}
		}
		species_archetype = {
			NOT = {
				text = disabled_by_synthetic_ascension
				value = ROBOT
			}
			NOT = {
				value = MACHINE
			}
		}
	}
	description = civic_tooltip_selective_kinship_effects
}

civic_dark_consortium = {
	playable = { has_astral_planes_dlc = yes }
	ai_playable = { has_astral_planes_dlc = yes }
	description = "civic_dark_consortium_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = { value = auth_corporate }
		}
		civics = {
			NOT = { value = civic_corporate_dark_consortium }
		}
	}
	modification = {
		moddable_conditions_custom_tooltip = CIVIC_NOT_MODDABLE_ONLY_REMOVE
		add = {
			has_technology = tech_mine_dark_matter
		}
		remove = {
			custom_tooltip = {
				fail_text = CIVIC_LOCKED
				NOT = { has_country_flag = civic_dark_consortium_locked }
			}
		}
	}
	alternate_civic_version = civic_corporate_dark_consortium

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}
}

civic_natural_design = {
	modification = no
	playable = { has_machine_age_dlc = yes }
	ai_playable = { has_machine_age_dlc = yes }
	random_weight = {
		base = @civic_rare_random_weight
	}
	potential = {
		species_archetype = { NOT = { value = MACHINE } }
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
		}
		authority = {
			NOT = { value = auth_corporate }
		}
	}
	possible = {
		origin = {
			NOR = {
				value = origin_clone_army
				value = origin_overtuned
				value = origin_shroudwalker_apprentice
				value = origin_cybernetic_creed
				value = origin_synthetic_fertility
				value = origin_evolutionary_predators
				value = origin_unplugged
				value = origin_endbringers
			}
		}
		civics = {
			NOT = {
				value = civic_guided_sapience
			}
			NOR = {
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_corporate
			}
			NOR = {
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_corporate_chosen
			}
		}
	}
	modifier = {
		BIOLOGICAL_species_trait_picks_add = 2
		BIOLOGICAL_species_trait_points_add = 2
		planet_doctors_society_research_produces_add = 0.5
	}
	description = civic_tooltip_natural_design_effects
	negative_description = civic_tooltip_natural_design_negative_effects
}

civic_sovereign_guardianship = {
	playable = { has_astral_planes_dlc = yes }
	ai_playable = { has_astral_planes_dlc = yes }
	description = "civic_sovereign_guardianship_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = { value = auth_corporate }
		}
	}
	possible = {
		is_nomadic = no
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
		}
		origin = {
			NOR = {
				value = origin_fear_of_the_dark
				value = origin_payback
				value = origin_broken_shackles
			}
		}
		civics = {
			NOR = {
				value = civic_corporate_sovereign_guardianship
				value = civic_inwards_perfection
				value = civic_reanimated_armies
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
			}
			NOR = {
				# Or low tech starts
				text = civic_tooltip_not_eager_explorers
				value = civic_eager_explorers
				value = civic_privatized_exploration
				value = civic_hive_stargazers
				value = civic_machine_exploration_protocol
			}
		}
	}
	alternate_civic_version = civic_corporate_sovereign_guardianship
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_sovereign_guardianship
			}
		}
		remove = {
			always = no
		}
	}

	modifier = {
		empire_size_colonies_mult = 0.75
		empire_size_branch_office_mult = 1
		empire_size_systems_mult = 1.50
		empire_size_pops_mult = -0.25
		empire_size_districts_mult = -0.50
		diplo_weight_mult = 0.2

		planet_soldiers_unity_produces_add = @sovereign_guardianship_soldier_unity
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}
}

civic_guided_sapience = {
	modification = yes
	playable = { has_machine_age_dlc = yes }
	ai_playable = { has_machine_age_dlc = yes }
	random_weight = {
		base = @civic_rare_random_weight
	}
	potential = {
		authority = {
			NOT = { value = auth_corporate }
		}
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
	}
	possible = {
		is_nomadic = no
		origin = {
			NOR = {
				value = origin_life_seeded
				value = origin_syncretic_evolution
				value = origin_unplugged
			}
		}
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_eager_explorers
				value = civic_eager_explorers
				value = civic_privatized_exploration
				value = civic_hive_stargazers
				value = civic_machine_exploration_protocol
			}
			NOR = {
				value = civic_natural_design
				value = civic_scorched_earth
			}
		}
	}

	modifier = {
		terraforming_cost_mult = -0.25
		terraform_speed_mult = 0.25
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	description = civic_tooltip_guided_sapience_effects
	negative_description = civic_tooltip_guided_sapience_negative_effects
}

civic_toxic_baths_individual_machine = {
	playable = { has_toxoids = yes }
	ai_playable = { has_toxoids = yes }
	description = "civic_tooltip_machine_toxic_baths_effects"
	potential = {
		species_archetype = {
			value = MACHINE
		}
		authority = { NOT = { value = auth_corporate } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = { NOT = { value = origin_life_seeded } }
		civics = {
			NOT = {
				value = civic_corporate_toxic_baths_individual_machine
			}
		}
	}
	random_weight = {
		base = @civic_uncommon_random_weight
	}
	ai_weight = {
		base = @ai_civic_uncommon_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
			OR = {
				has_ai_personality = decadent_hierarchy
			}
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
			OR = {
				has_ai_personality = democratic_crusaders
				has_ai_personality = honorbound_warriors
				has_ai_personality = evangelising_zealots
			}
		}
	}

	modifier = {
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_individual_machine_replication = {
	potential = {
		species_archetype = {
			value = MACHINE
		}
		authority = { NOT = { value = auth_corporate } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
	}
	modifier = {
		planet_pop_assembly_mult = 0.20
	}
}

civic_individual_machine_predictive_analysis = {
	potential = {
		species_archetype = {
			value = MACHINE
		}
		authority = { NOT = { value = auth_corporate } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
	}
	modifier = {
		num_tech_alternatives_add = 1
		intel_decryption_add = 1
		councilor_research_exp_gain = 0.10
	}
}

civic_individual_machine_warbots = {
	potential = {
		species_archetype = {
			value = MACHINE
		}
		authority = { NOT = { value = auth_corporate } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		civics = {
			NOT = {
				value = civic_machine_obsessional_directive
			}
		}
	}
	random_weight = { base = @civic_default_random_weight }
	ai_weight = {
		base = @ai_civic_default_base_weight
		modifier = {
			factor = @ai_civic_personality_match_factor
		}
		modifier = {
			factor = @ai_civic_personality_mismatch_factor
		}
	}
#	description = civic_tooltip_machine_warbots_effects
	modifier = {
		army_damage_mult = 0.2
		armies_upkeep_mult = -0.2
		commander_initial_skill = 2
		leader_commanders_upkeep_mult = -0.25
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
}

civic_astrometeorology = {
	playable = {
		has_cosmic_storms_dlc = yes
	}
	ai_playable = {
		has_cosmic_storms_dlc = yes
	}
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = {
				value = auth_corporate
			}
		}
	}
	random_weight = {
		base = @civic_default_random_weight
	}
	ai_weight = {
		base = @ai_civic_default_base_weight
	}
	description = civic_astrometeorology_effect_tooltip
}

civic_storm_callers = {
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_storm_callers_megacorp
			}
		}
		remove = {
			always = no
		}
	}
	alternate_civic_version = civic_storm_callers_megacorp
	playable = { has_cosmic_storms_dlc = yes }
	ai_playable = {	has_cosmic_storms_dlc = yes }
	description = "civic_storm_callers_effect_tooltip"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		origin = {
			NOT = {
				value = origin_unplugged
			}
		}
	}
	traits = {
		trait = trait_storm_touched
	}
	modifier = {
		capital_storm_diplo_weight_mult = 0.20
		add_attunement_the_composer_of_strands = @civic_attunement1
	}
	random_weight = {
		base = @civic_default_random_weight
	}
}

civic_environmental_architects = {
	playable = {
		has_cosmic_storms_dlc = yes
	}
	ai_playable = {
		has_cosmic_storms_dlc = yes
	}
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = {
				value = auth_corporate
			}
		}
	}
	possible = {
		is_nomadic = no
		civics = {
			NOR = {
				value = civic_environmental_architects_megacorp
				value = civic_environmentalist
			}
			NOR = {
				text = civic_tooltip_not_mutagenic
				value = civic_toxic_baths
				value = civic_toxic_baths_individual_machine
				value = civic_corporate_toxic_baths
				value = civic_corporate_toxic_baths_individual_machine
				value = civic_hive_toxic_baths
				value = civic_machine_toxic_baths
			}
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
		}
		origin = {
			NOR = {
				value = origin_remnants
				value = origin_post_apocalyptic
				value = origin_post_apocalyptic_machines
				value = origin_void_dwellers
				value = origin_void_machines
				value = origin_shattered_ring
				value = origin_lithoid
				value = origin_machine
				value = origin_unplugged
			}
		}
	}
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_environmental_architects_megacorp
			}
		}
		remove = {
			always = no
		}
	}
	alternate_civic_version = civic_environmental_architects_megacorp
	random_weight = {
		base = @civic_default_random_weight
	}
	description = civic_environmental_architects_effect_tooltip
	negative_description = civic_environmental_architects_negative_effect_tooltip
	modifier = {
		planet_jobs_produces_mult = 0.1
		founder_species_growth_mult = 0.1
		planet_pops_upkeep_mult = -0.15
		planet_clear_blocker_speed_mult = 0.25
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

########################
# Grand Archive Civics #
########################

civic_galactic_curators = {
	playable = { has_grand_archive_dlc = yes }
	ai_playable = { has_grand_archive_dlc = yes }
	description = "civic_galactic_curators_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = {
			NOT = { value = auth_corporate }
		}
		civics = {
			NOT = { value = civic_corporate_galactic_curators }
		}
	}

	alternate_civic_version = civic_corporate_galactic_curators
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_galactic_curators
			}
		}
		remove = {
			always = no
		}
	}

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}

	modifier = {
		planet_jobs_unity_produces_mult = @galactic_curators_civic_unity_jobs_production_mult
		ship_anomaly_generation_chance_mult = @galactic_curators_civic_anomaly_discovery_mult
		specimens_produces_mult = @galactic_curators_civic_specimens_produces_mult
		megastructures_grand_archive_cost_mult = @galactic_curators_grand_archive_cost_mult
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_beastmasters = {
	playable = { has_grand_archive_dlc = yes }
	ai_playable = { has_grand_archive_dlc = yes }
	flags = { first_alien_life amoeba_encountered Story1 Story5 }
	description = "civic_beastmasters_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_beastmasters } }
	}
	possible = {
		civics = {
			NOR = {
				value = civic_eager_explorers
				value = civic_galvanic_symbiosis
			}
		}
		origin = { NOT = { value = origin_cosmic_dawn } }
	}

	alternate_civic_version = civic_corporate_beastmasters
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_beastmasters
			}
		}
		remove = {
			always = no
		}
	}

	modifier = {
		starbase_shipyard_artificial_build_cost_mult = 2.0
		ship_military_artificial_upkeep_mult = 2.0
		space_fauna_ship_cost_mult = -0.15
		space_fauna_ship_upkeep_mult = -0.10
		add_attunement_the_composer_of_strands = @civic_attunement1
	}

	random_weight = {
		base = 10
	}
	ai_weight = {
		base = 10
	}
}

civic_genetic_identification = {
	playable = { has_biogenesis_dlc = yes }
	ai_playable = { has_biogenesis_dlc = yes }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_genetic_identification } }
		species_archetype = { NOT = { value = MACHINE } }
	}

	possible = {
		species_archetype = {
			NOT = {
				value = MACHINE
			}
		}
	}
	alternate_civic_version = civic_corporate_genetic_identification

	modifier = {
		planet_bureaucrats_society_research_produces_add = 1.5
		planet_crime_mult = -0.15
		intel_encryption_add = 1
		add_attunement_the_instrument_of_desire = @civic_attunement1
	}
}

civic_crowdsourcing = {
	playable = { has_biogenesis_dlc = yes }
	ai_playable = { has_biogenesis_dlc = yes }
	description = "civic_crowdsourcing_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_fanatic
				value = ethic_fanatic_xenophobe
				value = ethic_fanatic_xenophile
				value = ethic_fanatic_authoritarian
				value = ethic_fanatic_militarist
				value = ethic_fanatic_pacifist
				value = ethic_fanatic_spiritualist
				value = ethic_fanatic_materialist
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOR = {
				value = civic_corporate_crowdsourcing
				value = civic_parliamentary_system
				value = civic_media_conglomerate
				value = civic_secret_societies
				value = civic_secret_societies_corporate
			}
		}
	}
	alternate_civic_version = civic_corporate_crowdsourcing

	modifier = {
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
	hide_modifiers = yes
}

civic_civil_education = {
	playable = { has_biogenesis_dlc = yes }
	ai_playable = { has_biogenesis_dlc = yes }
	description = "civic_civil_education_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		civics = {
			NOR = {
				value = civic_police_state
				value = civic_dystopian_society
			}
		}
	}

	modifier = {
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
	hide_modifiers = yes
}

#################
# Shroud Civics #
#################

civic_entropy_drinkers = {
	playable = { has_shroud_dlc = yes }
	ai_playable = { has_shroud_dlc = yes }
	description = "civic_entropy_drinkers_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_entropy_drinkers_corporate } }
	}
	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOR = {
				value = civic_memorialist
				value = civic_natural_design
				value = civic_entropy_drinkers_corporate
			}
		}
		origin = {
			NOR = {
				value = origin_mindwardens
				value = origin_cybernetic_creed
				value = origin_synthetic_fertility
				value = origin_evolutionary_predators
				value = origin_unplugged
			}
		}
	}
	alternate_civic_version = civic_entropy_drinkers_corporate
	modification = {
		moddable_conditions_custom_tooltip = CIVIC_NOT_MODDABLE_ONLY_REMOVE
		add = {
			OR = {
				has_technology = tech_psionic_theory
				custom_tooltip = {
					success_text = has_not_begun_non_psionic_ascension_success
					fail_text = has_not_begun_non_psionic_ascension_fail
					NOR = {
						has_ascension_perk = ap_engineered_evolution
						has_ascension_perk = ap_the_flesh_is_weak
						has_ascension_perk = ap_organo_machine_interfacing
						has_ascension_perk = ap_organo_machine_interfacing_assimilator
						has_ascension_perk = ap_synthetic_evolution
						has_ascension_perk = ap_synthetic_age
					}
				}
				has_civic = civic_entropy_drinkers_corporate
			}
		}
		remove = {
			custom_tooltip = {
				fail_text = CIVIC_LOCKED
				always = no
			}
		}
	}

	random_weight = {
		base = @civic_default_random_weight
	}

	custom_tooltip_with_modifiers = civic_entropy_drinkers_psionic_modifier
	modifier = {
		planet_jobs_produces_mult = -0.1
		all_technology_research_speed = -0.1
		logistic_growth_mult = -0.1
		planet_pop_assembly_mult = -0.1
		leaders_upkeep_mult = -0.5
		leader_lifespan_mult = 0.5
	}
}

civic_superstitious_beliefs = {
	playable = { has_shroud_dlc = yes }
	ai_playable = { has_shroud_dlc = yes }
	description = "civic_superstitious_beliefs_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_superstitious_beliefs } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		origin = {
			NOR = {
				value = origin_cybernetic_creed
			}
		}
		civics = {
			NOT = { value = civic_corporate_superstitious_beliefs }
		}
	}

	alternate_civic_version = civic_corporate_superstitious_beliefs
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_superstitious_beliefs
			}
		}
		remove = {
			always = no
		}
	}

	random_weight = { base = @civic_default_random_weight }
}

civic_twisted_experimenters = {
	playable = {
		has_shroud_dlc = yes
	}
	ai_playable = {
		has_shroud_dlc = yes
	}
	description = "civic_twisted_experimenters_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_twisted_experimenters_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_authoritarian_or_xenophobe
				value = ethic_authoritarian
				value = ethic_fanatic_authoritarian
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOT = { value = civic_twisted_experimenters_corporate }
		}
		species_archetype = {
			NOT = {
				value = MACHINE
			}
		}
	}
	alternate_civic_version = civic_twisted_experimenters_corporate

	modifier = {
		crime_experiment_engineer_bonus_workforce_mult = 0.1
		refugee_attraction = -0.15
	}

	random_weight = {
		base = @civic_default_random_weight
	}
}

civic_secret_societies = {
	playable = { has_shroud_dlc = yes }
	ai_playable = { has_shroud_dlc = yes }
	flags = { suppress_vanilla_factions }
	description = "civic_secret_societies_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_secret_societies_corporate } }
	}
	possible = {
		civics = {
			NOR = {
				value = civic_parliamentary_system
				value = civic_media_conglomerate
				value = civic_crowdsourcing
				value = civic_corporate_crowdsourcing
				value = civic_fanatic_purifiers
				value = civic_secret_societies_corporate
			}
			NOR = {
				text = civic_tooltip_not_scorched_earth
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
		origin = {
			NOR = {
				value = origin_broken_shackles
				value = origin_cybernetic_creed
				value = origin_unplugged
			}
		}
	}
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_secret_societies_corporate
			}
		}
		remove = {
			always = no
		}
	}
	alternate_civic_version = civic_secret_societies_corporate

	modifier = {
		proxy_war_cost_mult = -0.25
		operations_cost_mult = -0.5
		envoys_add = 1
		intel_encryption_add = 1
	}

	random_weight = {
		base = @civic_default_random_weight
	}
}

civic_chosen = {
	playable = { has_shroud_dlc = yes }
	ai_playable = { has_shroud_dlc = yes }
	description = "civic_chosen_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_chosen } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		origin = {
			NOR = {
				value = origin_cybernetic_creed
				value = origin_synthetic_fertility
				value = origin_evolutionary_predators
				value = origin_mindwardens
				value = origin_endbringers
				value = origin_unplugged
			}
		}
		civics = {
			NOR = {
				value = civic_imperial_cult
				value = civic_augmentation_bazaars
				value = civic_natural_design
				value = civic_corporate_chosen
			}
		}
	}

	modifier = {
		psionic_aura_intensity_add = 10
	}
	custom_tooltip_with_modifiers = "civic_chosen_effects_additional"

	alternate_civic_version = civic_corporate_chosen
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_corporate_chosen
			}
		}
		remove = {
			always = no
		}
	}

	random_weight = { base = @civic_default_random_weight }
}

civic_tankbound = {
	playable = { has_shroud_dlc = yes }
	ai_playable = { has_shroud_dlc = yes }
	description = "civic_tankbound_effects"
	negative_description = "civic_tankbound_negative_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_tankbound_corporate } }
	}
	possible = {
		origin = {
			NOR = {
				value = origin_broken_shackles
				value = origin_payback
				value = origin_toxic_knights
				value = origin_clone_army
				value = origin_primal_calling
				value = origin_syncretic_evolution
				value = origin_unplugged
			}
		}
		civics = {
			NOR = {
				value = civic_mining_guilds
				value = civic_anglers
				value = civic_agrarian_idyll
				value = civic_citizen_service
				value = civic_slaver_guilds
				value = civic_tankbound_corporate
			}
		}
		species_class = {
			OR = {
				text = tankbound_species_class_requirement
				value = NECROID
				value = TOX
				value = AQUATIC
				value = INF
			}
		}
	}

	alternate_civic_version = civic_tankbound_corporate
	modification = {
		add = {
			hidden_trigger = {
				has_civic = civic_tankbound_corporate
			}
		}
		remove = {
			always = no
		}
	}

	traits = {
		trait = trait_tankbound
	}
	modifier = {
		planet_automated_jobs_upkeep_mult = @civic_tankbound_job_upkeep
		job_farmer_automated_workforce_mult = 1.0
		job_miner_automated_workforce_mult = 1.0
		job_technician_automated_workforce_mult = 1.0
	}

	random_weight = { base = @civic_default_random_weight }
}

####################
# Infernals Civics #
####################

civic_scorched_earth = {
	playable = { has_infernals = yes }
	ai_playable = { has_infernals = yes }
	description = "civic_scorched_earth_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		species_class = { value = INF }
		ethics = {
			OR = {
				text = civic_tooltip_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
			NOR = {
				text = civic_tooltip_not_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
		}
		civics = {
			NOR = {
				value = civic_barbaric_despoilers
				value = civic_pompous_purists
				value = civic_crusader_spirit
				value = civic_selective_kinship
				value = civic_fanatic_purifiers
				value = civic_death_cult
				value = civic_secret_societies
				value = civic_diplomatic_corps
				value = civic_memorialist
				value = civic_void_reavers
			}
			NOR = {
				text = civic_tooltip_not_guardian
				value = civic_sovereign_guardianship
				value = civic_corporate_sovereign_guardianship
				value = civic_hive_sovereign_guardianship
				value = civic_machine_sovereign_guardianship
			}
			NOR = {
				text = civic_tooltip_not_guided
				value = civic_guided_sapience
				value = civic_corporate_guided_sapience
				value = civic_hive_guided_sapience
				value = civic_machine_guided_sapience
			}
		}
		origin = {
			NOR = {
				value = origin_syncretic_evolution
				value = origin_common_ground
				value = origin_hegemon
				value = origin_tree_of_life
				value = origin_toxic_knights
				value = origin_broken_shackles
				value = origin_here_be_dragons
				value = origin_ocean_paradise
				value = origin_wilderness
				value = origin_fear_of_the_dark
				value = origin_scion
			}
		}
	}
	modification = no
	random_weight = {
		base = 1000
		modifier = {
			factor = 0
			NOT = { host_has_dlc = "Infernals Species Pack" }
		}
		modifier = {
			factor = 0
			blocks_disruptive_gameplay = yes
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.15
		ship_armor_mult = 0.15
		starbase_shipyard_build_speed_mult = 0.15
		country_naval_cap_mult = 0.5
		army_health = 0.4
		category_materials_research_speed_mult = 0.5
	}
	removed_climate_labels = { TYPE_HEADER_03 }
	added_climate_labels = { TYPE_HEADER_04 }
	removed_planet_types = { pc_arctic pc_alpine pc_tundra }
	added_planet_types = { pc_volcanic }
}

civic_world_forgers = {
	modification = {
		add = {
			hidden_trigger = { has_civic = civic_corporate_world_forgers }
		}
		remove = { always = no }
	}
	alternate_civic_version = civic_corporate_world_forgers
	playable = { has_infernals = yes }
	ai_playable = { has_infernals = yes }
	description = "civic_world_forgers_effects"
	potential = {
		is_nomadic = no
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = {
			NOR = {
				value = auth_corporate
				value = auth_machine_intelligence
			}
		}
	}
	possible = {
		# this does not prevent the empire from rolling the bioship at random
		# see 'ship_selection_weight' in biogenesis_01/02 definitions in 00_graphical_culture.txt
		graphical_culture = {
			NOR = {
				text = graphical_culture_tooltip_not_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
		civics = {
			NOT = { value = civic_idyllic_bloom }
			NOR = {
				text = civic_tooltip_not_relentless_industrialists
				value = civic_relentless_industrialists
				value = civic_corporate_relentless_industrialists
			}
		}
		origin = {
			NOT = {
				value = origin_ocean_paradise
				value = origin_wilderness
			}
		}
		traits = {
			NOT = {
				value = trait_aquatic
			}
		}
	}
	modifier = {
		pc_volcanic_max_districts_add = 3
		pc_volcanic_habitability = 0.2
	}
	removed_climate_labels = { TYPE_HEADER_03 }
	added_climate_labels = { TYPE_HEADER_04 }
	removed_planet_types = { pc_arctic pc_alpine pc_tundra }
	added_planet_types = { pc_volcanic }
}

civic_pyrolatry = {
	modification = no
	playable = { has_infernals = yes }
	ai_playable = { has_infernals = yes }
	description = "civic_pyrolatry_effects"
	potential = {
		is_nomadic = no
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		origin = {
			NOR = {
				value = origin_cybernetic_creed
				value = origin_ocean_paradise
			}
		}
		traits = {
			NOT = {
				value = trait_aquatic
			}
		}
	}
	modifier = {
		low_habitability_bureaucrat_bonus_workforce_mult = 0.25
	}
}

civic_galvanic_symbiosis = {
	modification = {
		add = {
			hidden_trigger = { has_civic = civic_corporate_galvanic_symbiosis }
		}
		remove = { always = no }
	}
	alternate_civic_version = civic_corporate_galvanic_symbiosis
	playable = { has_infernals = yes }
	ai_playable = { has_infernals = yes }
	description = "civic_galvanic_symbiosis_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		species_class = { value = INF }
		origin = {
			NOT = {
				value = origin_synthetic_fertility
			}
		}
		civics = {
			NOR = {
				value = civic_beastmasters
			}
		}
	}
	modifier = {
		planet_building_refund_mult = 0.75
	}
	random_weight = {
		base = @civic_rare_random_weight
		modifier = {
			factor = 0
			NOT = { host_has_dlc = "Infernals Species Pack" }
		}
	}
}

#################
# Nomads Civics #
#################

civic_caravan_masters = {
	playable = { has_nomads_dlc = yes }
	ai_playable = { has_nomads_dlc = yes }
	description = "civic_caravan_masters_effects"
	potential = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = yes
	}

	modifier = {
		country_starbase_capacity_add = 2
        country_starbase_capacity_mult = 0.1
		megastructures_waystations_cost_mult = -0.2
		starbase_waystations_cost_mult = -0.2
		add_attunement_the_cradle_of_souls = @civic_attunement1
	}
}

civic_deep_sleep = {
	playable = { has_nomads_dlc = yes }
	ai_playable = { has_nomads_dlc = yes }
	description = "civic_deep_sleep_effects"
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = yes
		origin = {
			NOT = { value = origin_synthetic_fertility }
		}
	}

	modifier = {}

	custom_tooltip_with_modifiers = "civic_deep_sleep_effects_additional"
}

civic_void_reavers = {
	playable = {
		has_nomads_dlc = yes
	}
	ai_playable = {
		has_nomads_dlc = yes
	}
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
	}
	possible = {
		is_nomadic = yes
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_fanatic_militarist
				value = ethic_militarist
			}
			NOR = {
				text = civic_tooltip_not_xenophile
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_barbaric_despoilers
				value = civic_scorched_earth
			}
		}
		origin = {
			NOT = { value = origin_forever_cruise }
		}
	}
	modification = no
	random_weight = {
		base = @civic_uncommon_random_weight
		modifier = {
			factor = 0
			has_nomads_dlc = no
		}
		modifier = {
			factor = 0
			blocks_disruptive_gameplay = yes
		}
	}
	description = "civic_tooltip_void_reavers_effects"

	modifier = {
		ship_military_alloys_cost_mult = -0.05
		ship_military_energy_upkeep_mult = 0.05
		add_attunement_the_eater_of_worlds = @civic_attunement1
	}
	swap_type = {
		trigger = {
			has_first_contact_dlc = yes
		}
		description = civic_tooltip_void_reavers_effects
		modifier = {
			ship_cloaking_strength_add = 1
		}
	}
}

civic_flight_schools = {
	modification = yes
	playable = { has_nomads_dlc = yes }
	ai_playable = { has_nomads_dlc = yes }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_flight_schools } }
	}
	possible = {}
	description = "civic_flight_schools_effect_tooltip"
	alternate_civic_version = civic_corporate_flight_schools

	swap_type = {
		description = "civic_flight_schools_effect_nomadic_tooltip"

		trigger = {
			exists = this
			is_nomadic = yes
		}
	}

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}

	modifier = {
		weapon_type_strike_craft_speed_mult = 0.1
		ship_speed_mult = 0.2
	}
}

civic_hired_guns = {
	modification = yes
	playable = { has_nomads_dlc = yes }
	ai_playable = { has_nomads_dlc = yes }
	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		authority = { NOT = { value = auth_corporate } }
		civics = { NOT = { value = civic_corporate_hired_guns } }
	}
	possible = {
		is_nomadic = yes
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_fanatic_militarist
				value = ethic_militarist
			}
		}
	}
	description = "civic_hired_guns_effect_tooltip"
	alternate_civic_version = civic_corporate_hired_guns

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}
}

civic_star_seekers = {
	modification = yes
	playable = { has_nomads_dlc = yes }
	ai_playable = { has_nomads_dlc = yes }
	potential = {
		authority = { NOT = { value = auth_corporate } }
		ethics = { NOT = { value = ethic_gestalt_consciousness}}
	}
	possible = {
		is_nomadic = yes
	}
	description = "civic_star_seekers_effect_tooltip"

	random_weight = {
		base = @civic_rare_random_weight
	}
	ai_weight = {
		base = @civic_rare_random_weight
	}

	modifier = {
		ship_speed_mult = 0.2
	}
}
