###############################################
# === xenomorph_captor_civics.txt ===
###############################################
###############################################
# XENOMORPH CAPTOR CIVICS (Megacorp, non-hive)
#
# Three corporate civics unlocked by the Xeno Traffickers origin theme.
# All require corporate authority and a non-gestalt empire.
###############################################

# --- Xeno Pleasure Products: trade/credits from captive Xenos as a product ---
civic_xeno_pleasure_products = {
	description = "civic_tooltip_xeno_pleasure_products_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# The empire markets its captive Xenomorphs as a commercial product.
		trade_value_mult = 0.10
		planet_amenities_mult = 0.10
		planet_jobs_trade_produces_mult = 0.05
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

# --- Aliens of War: sells/uses captive Xenos as tools of war for profit ---
civic_xeno_aliens_of_war = {
	description = "civic_tooltip_xeno_aliens_of_war_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# Renting out Xeno armies turns captive monsters into revenue.
		army_damage_mult = 0.15
		trade_value_mult = 0.05
		ship_weapon_damage = 0.05
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

# --- Treasured Queens: mostly captive Queens, few regular Xeno pops ---
civic_xeno_treasured_queens = {
	description = "civic_tooltip_xeno_treasured_queens_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# The empire prizes captive Queens above common stock.
		planet_jobs_food_produces_mult = 0.10
		pop_growth_speed = 0.10
		planet_pop_assembly_organic_mult = 0.10
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

###############################################
# EXTRA CREATIVE CAPTOR CIVICS (non-Megacorp)
# Available to any non-gestalt empire, so the captor playstyle isn't
# Megacorp-only. Inspired by the exploitation themes of the reference mods.
###############################################

# --- Apex Menagerists: an empire that prizes its Xeno collection ---
civic_xeno_apex_menagerists = {
	description = "civic_tooltip_xeno_apex_menagerists_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}

	modifier = {
		# Living spectacle on a civilisational scale.
		planet_amenities_mult = 0.15
		planet_jobs_unity_produces_mult = 0.05
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

# --- Bioweapon Doctrine: an empire that fields captive Xenos as its edge ---
civic_xeno_bioweapon_doctrine = {
	description = "civic_tooltip_xeno_bioweapon_doctrine_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
		}
	}

	modifier = {
		# Captive Xenomorphs as a front-line weapon system.
		army_damage_mult = 0.20
		army_health = 0.10
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

# --- Xeno Husbandmasters: an empire built on breeding the perfect organism ---
civic_xeno_husbandmasters = {
	description = "civic_tooltip_xeno_husbandmasters_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}

	modifier = {
		# Mastery of the captive brood-cycle.
		planet_pop_assembly_organic_mult = 0.15
		planet_jobs_food_produces_mult = 0.10
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

###############################################
# === xenomorph_civics.txt ===
###############################################
######################
###     Civics     ###
######################

#############
# Xenomorph #
#############

# Psychic Choir
civic_xenomorph_psychic_choir = {
	description = "civic_tooltip_xenomorph_psychic_choir_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		always = yes
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_psychic
	}
	modifier = {
		# trait_xenomorph_psychic already gives -0.10 empire size; this adds -0.10 more for a deliberate total of -0.20
		species_empire_size_mult = -0.10
		num_tech_alternatives_add = 1
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}

# Carapace Ships
civic_xenomorph_carapace_ships = {
	description = "civic_tooltip_xenomorph_carapace_ships_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		graphical_culture = {
			OR = {
				text = graphical_culture_tooltip_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_carapace
	}
	modifier = {
		ship_hull_regen_add_perc = 0.05
		ship_armor_regen_add_perc = 0.10
		starbase_shipyard_build_alloys_cost_mult = -0.50
		starbase_shipyard_build_food_cost_mult = 1
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}

# Blood Mining
civic_xenomorph_blood_mining = {
	description = "civic_tooltip_xenomorph_blood_mining_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		always = yes
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_blood
	}
	modifier = {
		planet_miners_minerals_produces_add = 1.5
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Offspring & Egg Economy
civic_xenomorph_offspring_egg_economy = {
	description = "civic_tooltip_xenomorph_offspring_egg_economy_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		always = yes
	}
	traits = {
		trait = trait_xenomorph
	}
	modifier = {
		# The hive diverts normal population growth into a managed Egg and Offspring economy.
		pop_growth_speed = -0.10
		planet_pop_assembly_organic_mult = -0.05

		# Egg-producing royal/reproductive castes.
		job_xenomorph_queen_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_queen_gestalt_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_empress_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_empress_gestalt_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_queen_mother_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_queen_mother_gestalt_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_brood_queen_xenomorph_eggs_produces_mult = 0.10
		job_xenomorph_brood_queen_gestalt_xenomorph_eggs_produces_mult = 0.10

		# Offspring-producing slave/host systems.
		job_xenomorph_broodmother_slave_xenomorph_offspring_produces_mult = 0.10
		job_xenomorph_broodmare_thrall_xenomorph_offspring_produces_mult = 0.10
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Matriarch's Hunger
civic_xenomorph_matriarchs_hunger = {
	description = "civic_tooltip_xenomorph_matriarchs_hunger_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		civics = { NOT = { value = civic_xenomorph_patriarchs_dominion } }
	}
	traits = {
		trait = trait_xenomorph
		# Lustful Void compatibility: makes the Xenomorph species all-female.
		trait = trait_lv_all_female
	}
	modifier = {
		pop_growth_speed = 0.15
		planet_pop_assembly_organic_mult = 0.10
		job_xenomorph_broodmother_slave_xenomorph_offspring_produces_mult = -0.25
		job_xenomorph_broodmare_thrall_xenomorph_offspring_produces_mult = -0.25
		# Matriarchal hives are optimized around captive hosts, food extraction, and breeding infrastructure.
		# Dynamic no-slave/opposite-sex bonuses are handled by xenomorph_lustful_void_compat_events.txt.
		planet_jobs_produces_mult = -0.05
		planet_jobs_food_produces_mult = 0.10
		planet_livestock_food_produces_mult = 0.25


		# Xenomorph slave pleasure/entertainment jobs count as sex jobs for this civic.
		job_xenomorph_broodmare_thrall_produces_mult = 0.20
		job_xenomorph_pit_plaything_produces_mult = 0.15
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Patriarch's Dominion
civic_xenomorph_patriarchs_dominion = {
	description = "civic_tooltip_xenomorph_patriarchs_dominion_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		civics = { NOT = { value = civic_xenomorph_matriarchs_hunger } }
	}
	traits = {
		trait = trait_xenomorph
		# Lustful Void compatibility: makes the Xenomorph species all-male.
		trait = trait_lv_all_male
	}
	modifier = {
		pop_growth_speed = -0.10
		planet_pop_assembly_organic_mult = -0.05
		job_xenomorph_broodmother_slave_xenomorph_offspring_produces_mult = 1.00
		job_xenomorph_broodmare_thrall_xenomorph_offspring_produces_mult = 1.00
		# Patriarchal hives are more aggressive but still depend on captive host populations.
		# Dynamic no-slave/opposite-sex bonuses are handled by xenomorph_lustful_void_compat_events.txt.
		planet_jobs_produces_mult = -0.05
		planet_jobs_food_produces_mult = 0.10
		planet_livestock_food_produces_mult = 0.25
		army_attack_damage_mult = 0.15
		army_defense_damage_mult = 0.05


		# Xenomorph slave pleasure/entertainment jobs count as sex jobs for this civic.
		job_xenomorph_broodmare_thrall_produces_mult = 0.20
		job_xenomorph_pit_plaything_produces_mult = 0.15
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}
