###############################################
# === xenomorph_agenda_modifiers.txt ===
###############################################
###############################################
# XENOMORPH AGENDA FINISH MODIFIERS
# Pass 30: Bonus applied when a council agenda completes (vanilla pattern).
###############################################

agenda_xenomorph_brood_ecstasy_finish = {
	logistic_growth_mult = 0.1
	planet_jobs_food_produces_mult = 0.15
}

agenda_xenomorph_silent_infestation_finish = {
	spy_network_daily_value_mult = 0.3
}

agenda_xenomorph_genetic_accumulation_finish = {
	all_technology_research_speed = 0.15
}

agenda_xenomorph_royal_hierarchy_finish = {
	country_unity_produces_mult = 0.2
	country_leader_cap_add = 1
}

agenda_xenomorph_subjugated_flesh_finish = {
	# 3_64: slave-produces restoration (3_59-anchored)
	planet_xenomorph_host_breeders_produces_mult = 0.2
	planet_xenomorph_breeding_toys_produces_mult = 0.2
}

agenda_xenomorph_ovomorph_ascendancy_finish = {
	logistic_growth_mult = 0.2
	logistic_growth_mult = 0.15
}

agenda_xenomorph_voidbrood_domestication_finish = {
	ships_upkeep_mult = -0.15
	country_naval_cap_mult = 0.1
}

agenda_xenomorph_draconic_parasitism_finish = {
	army_damage_mult = 0.2
	ship_hull_mult = 0.1
}

# Flesh Harvest agenda finish bonus.
agenda_xenomorph_flesh_harvest_finish = {
	army_damage_mult = 0.10
	# 3_64: slave-produces restoration (3_59-anchored)
	planet_xenomorph_host_breeders_produces_mult = 0.15
	planet_xenomorph_breeding_toys_produces_mult = 0.15
}

###############################################
# === xenomorph_espionage_modifiers.txt ===
###############################################
###############################################
# XENOMORPH ESPIONAGE COUNTRY MODIFIERS
###############################################

xeno_country_infested = {
	icon = "GFX_modifier_negative"
	logistic_growth_mult = -0.10
	country_naval_capacity_mult = -0.05
}

xeno_country_compromised_lineage = {
	icon = "GFX_modifier_negative"
	logistic_growth_mult = -0.25
	planet_amenities_mult = -0.05
}

xeno_country_leadership_compromised = {
	icon = "GFX_modifier_negative"
	country_unity_produces_mult = -0.15
	country_diplomatic_weight_mult = -0.10
	country_admin_cap_mult = -0.10
}

xeno_country_brood_uprising = {
	icon = "GFX_modifier_negative"
	planet_stability_add = -10
	country_unity_produces_mult = -0.20
	pop_happiness = -0.15
}

xeno_country_planetary_consumption = {
	icon = "GFX_modifier_negative"
	planet_stability_add = -15
	logistic_growth_mult = -0.40
	country_unity_produces_mult = -0.25
	pop_happiness = -0.20
	planet_amenities_mult = -0.15
}

###############################################
# === xenomorph_flavor_agenda_modifiers.txt ===
###############################################
###############################################
# FLAVOURFUL AGENDA FINISH MODIFIER
###############################################

agenda_xeno_decadent_court_finish = {
	diplo_weight_mult = 0.15
	envoys_add = 1
}

###############################################
# === xenomorph_hostline_modifiers.txt ===
###############################################
###############################################
# XENOMORPH HOSTLINE / BIOMASS MODIFIERS
# Pass 28: 30 species-class modifiers + 6 misc.
# Used by xenomorph_species_events.txt and xeno_hostline_scripted_effects.txt
# to apply hostline study/refinement bonuses and biomass absorption permits.
###############################################

# Aquatic hostline study cost reduction
xeno_aquatic_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Aquatic hostline refinement cost reduction  
xeno_aquatic_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Aquatic biomass absorption permit (ignores species class restrictions)
xeno_aquatic_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Arthropoid hostline study cost reduction
xeno_arthropoid_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Arthropoid hostline refinement cost reduction  
xeno_arthropoid_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Arthropoid biomass absorption permit (ignores species class restrictions)
xeno_arthropoid_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Avian hostline study cost reduction
xeno_avian_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Avian hostline refinement cost reduction  
xeno_avian_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Avian biomass absorption permit (ignores species class restrictions)
xeno_avian_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Cybernetic hostline study cost reduction
xeno_cybernetic_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Cybernetic hostline refinement cost reduction  
xeno_cybernetic_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Cybernetic biomass absorption permit (ignores species class restrictions)
xeno_cybernetic_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Lithoid hostline study cost reduction
xeno_lithoid_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Lithoid hostline refinement cost reduction  
xeno_lithoid_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Lithoid biomass absorption permit (ignores species class restrictions)
xeno_lithoid_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Mammalian hostline study cost reduction
xeno_mammalian_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Mammalian hostline refinement cost reduction  
xeno_mammalian_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Mammalian biomass absorption permit (ignores species class restrictions)
xeno_mammalian_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Molluscoid hostline study cost reduction
xeno_molluscoid_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Molluscoid hostline refinement cost reduction  
xeno_molluscoid_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Molluscoid biomass absorption permit (ignores species class restrictions)
xeno_molluscoid_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Necroid hostline study cost reduction
xeno_necroid_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Necroid hostline refinement cost reduction  
xeno_necroid_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Necroid biomass absorption permit (ignores species class restrictions)
xeno_necroid_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Psionic hostline study cost reduction
xeno_psionic_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Psionic hostline refinement cost reduction  
xeno_psionic_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Psionic biomass absorption permit (ignores species class restrictions)
xeno_psionic_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Reptilian hostline study cost reduction
xeno_reptilian_hostline_study_cost = {
	icon = "GFX_modifier_positive"
	country_society_research_cost_mult = -0.10
}

# Reptilian hostline refinement cost reduction  
xeno_reptilian_hostline_refinement_cost = {
	icon = "GFX_modifier_positive"
	country_alloys_cost_mult = -0.05
}

# Reptilian biomass absorption permit (ignores species class restrictions)
xeno_reptilian_biomass_ignored = {
	icon = "GFX_modifier_positive"
}

# Apex hostline cultivation — endgame bonus for mastering all species lines
xeno_hostline_apex_cultivation = {
	icon = "GFX_modifier_positive"
	all_technology_research_speed = 0.05
	logistic_growth_mult = 0.10
}

###############################################
# === xenomorph_lustful_void_compat_civics_modifiers.txt ===
###############################################
###############################################
# XENOMORPH + LUSTFUL VOID CIVIC COMPATIBILITY MODIFIERS
#
# Holds country modifiers carrying the LV-job synergy bonuses that used to live
# directly inside civic_xenomorph_matriarchs_hunger and civic_xenomorph_patriarchs_dominion.
# Pulled out of the civics so the civics do not silently reference undefined LV
# modifier types when Lustful Void is not loaded.
#
# Without LV: this file loads, but the planet_lv_*_produces_mult lines are silently
# ignored by the parser (modifier types that do not exist are dropped without error).
#
# With LV: an event in the LV-compat events file (TODO: wire from on_game_start_country
# or civic-detection event) applies the matching modifier to the country.
#
# Pattern: two country modifiers, one per royal civic. Wired up later in the events chunk.
###############################################

xenomorph_matriarchs_hunger_lv_bonus = {
	icon = "GFX_modifier_positive"
	planet_lv_breeder_produces_mult = 0.55  # 3_63: merged 3 duplicates (F5 category-share)
	planet_lv_concubine_produces_mult = 0.15
	planet_lv_comfort_worker_produces_mult = 0.15
}

xenomorph_patriarchs_dominion_lv_bonus = {
	icon = "GFX_modifier_positive"
	planet_lv_breeder_produces_mult = 0.55  # 3_63: merged 3 duplicates (F5 category-share)
	planet_lv_concubine_produces_mult = 0.15
	planet_lv_comfort_worker_produces_mult = 0.15
}

# Brood Queen Hive (T4-A capital branch) LV synergy modifier.
# The Brood Queen Hive previously inlined LV job production lines; those are now
# carried by this modifier and applied via the LV-compat events file (TODO).
xenomorph_brood_queen_hive_lv_bonus = {
	icon = "GFX_modifier_positive"
	planet_lv_breeder_produces_mult = 0.4  # 3_63: merged 3 duplicates (F5 category-share)
	planet_lv_concubine_produces_mult = 0.10
	planet_lv_comfort_worker_produces_mult = 0.10
}

# Pass 28b: Civic-specific event modifiers (Matriarchal Hunger / Patriarchal Dominion)
# Applied by xenomorph_lustful_void_compat_events.txt

# Matriarchal Hunger — bonus when slave population is all-male
xeno_matriarchal_hunger_all_male_slave_bonus = {
	icon = "GFX_modifier_positive"
	pop_amenities_usage_add = -0.10
	planet_xenomorph_egg_storage_jobs_xenomorph_offspring_produces_mult = 0.20
}

# Matriarchal Hunger — penalty when no slaves on planet
xeno_matriarchal_hunger_no_slaves_penalty = {
	icon = "GFX_modifier_negative"
	pop_happiness = -0.10
	country_unity_produces_mult = -0.05
}

# Patriarchal Dominion — bonus when slave population is all-female
xeno_patriarchal_dominion_all_female_slave_bonus = {
	icon = "GFX_modifier_positive"
	pop_amenities_usage_add = -0.10
	planet_xenomorph_egg_storage_jobs_xenomorph_offspring_produces_mult = 0.20
}

# Patriarchal Dominion — penalty when no slaves on planet
xeno_patriarchal_dominion_no_slaves_penalty = {
	icon = "GFX_modifier_negative"
	pop_happiness = -0.10
	country_unity_produces_mult = -0.05
}

###############################################
# === xenomorph_narrative_modifiers.txt ===
###############################################
###############################################
# XENOMORPH NARRATIVE EVENT MODIFIERS
###############################################

# The Queen Mother is dead - the broodmind reels until a successor rises.
xenomorph_queen_mother_dead = {
	planet_stability_add = -15
	pop_government_ethic_attraction = -0.25
	planet_jobs_unity_produces_mult = -0.20
}

# A forced, imperfect succession leaves the new Queen unstable.
xenomorph_unstable_succession = {
	planet_stability_add = -5
	planet_jobs_unity_produces_mult = -0.10
	logistic_growth_mult = -0.10
}

# A new Queen Mother ascends - the brood rallies behind her.
xenomorph_new_queen_ascendant = {
	planet_stability_add = 10
	planet_jobs_unity_produces_mult = 0.15
	logistic_growth_mult = 0.10
}

# Hybrid vigour - a new strain strengthens the brood's adaptation.
xenomorph_hybrid_vigor = {
	logistic_growth_mult = 0.10
	planet_pop_assembly_mult = 0.10
	army_damage_mult = 0.05
}

# The Xenodragon awakened - a apex draconic brood-form walks the hive.
xenomorph_xenodragon_awakened = {
	army_damage_mult = 0.20
	ship_weapon_damage = 0.10
	planet_stability_add = 5
}

###############################################
# === xenomorph_origin_modifiers.txt ===
###############################################
###############################################
# XENOMORPH ORIGIN / HIVE WORLD MODIFIERS
# These modifiers are applied by origin events and hive world events.
# Pass 13: created to resolve missing-modifier silent failures.
###############################################

# Generic Xenomorph Hive World modifier. Applied to any planet (regardless of
# class) that has been flagged as a Xeno hive world. Provides modest growth and
# job bonuses; layered ON TOP of pc_xenomorph_hive's intrinsic planet modifiers.
# Used by: solar_system_initializers, xenogeneral.5, xenomorph_queen_mother_start.1,
#          xenogeneral.4, xenogeneral.6, xenomorph_planet_events
xenomorph_hive_world = {
	icon = "GFX_modifier_positive"
	logistic_growth_mult = 0.10
	planet_jobs_produces_mult = 0.05
	planet_amenities_mult = 0.05
}

# Penalty applied to Queen Mother colonies that lack any Queen-tier presence.
# Used by: xeno_queen_mother.10 (yearly maintenance, applied if
#          xeno_has_planetary_queen_presence = no)
xenomorph_no_planetary_queen_penalty = {
	icon = "GFX_modifier_negative"
	planet_jobs_produces_mult = -0.25
	logistic_growth_mult = -0.20
	planet_stability_add = -10
	planet_crime_add = 15
	planet_amenities_mult = -0.15
}

# Applied to a Xeno Hive World when its owner has the xenomorph trait.
# Owner gets enhanced productivity on these worlds — they understand them
# innately. Yearly-applied with 370-day duration so it auto-refreshes.
# Used by: xeno_hive_world.10, xeno_hive_world.20
xenomorph_hive_world_xeno_mastery = {
	icon = "GFX_modifier_positive"
	planet_jobs_produces_mult = 0.10
	logistic_growth_mult = 0.05
	planet_amenities_mult = 0.05
}

# Applied to a Xeno Hive World when its owner does NOT have the xenomorph
# trait. Foreign owners can still extract value from these worlds, but only
# in research terms — they study the biology rather than commanding it.
# Used by: xeno_hive_world.10
xenomorph_hive_world_foreign_research = {
	icon = "GFX_modifier_positive"
	planet_jobs_society_research_produces_mult = 0.15
	planet_jobs_biology_research_produces_mult = 0.10
	planet_jobs_produces_mult = -0.10
	logistic_growth_mult = -0.10
}

# Temporary 10-year modifier applied at game start to Lab Escape capitals.
# Represents ongoing containment instability from the original outbreak.
xenomorph_lab_escape_containment = {
	icon = "GFX_modifier_negative"
	planet_stability_add = -5
	planet_crime_add = 15
	planet_amenities_mult = -0.05
	planet_jobs_society_research_produces_mult = 0.10
}

# Temporary modifier from Crashed Derelict archaeology Stage 4 (Memory Core).
# Applied to capital for 90 days.
xenomorph_derelict_memory_core = {
	icon = "GFX_modifier_positive"
	planet_jobs_society_research_produces_mult = 0.25
	planet_jobs_engineering_research_produces_mult = 0.25
}

# Country-wide modifier from Crashed Derelict archaeology Stage 5 (final reward).
# Applied for 10 years (3650 days).
xenomorph_derelict_salvage = {
	icon = "GFX_modifier_positive"
	country_engineering_research_produces_mult = 0.15
	ship_hull_regen_add_perc = 0.05
	country_alloys_produces_mult = 0.10
}

###############################################
# === xenomorph_picture_event_modifiers.txt ===
###############################################
###############################################
# XENOMORPH PICTURE / RAID EVENT MODIFIERS
# These planet/country modifiers are applied as event option rewards by
# the picture events in events/xenomorph_picture_events.txt.
###############################################

# Stability and growth penalty after a losing ground battle.
# Applied by xeno_pic_events.1, .2, .24 (defender-loses path).
xenomorph_post_battle_shock = {
	icon = "GFX_modifier_negative"
	planet_stability_add = -8
	planet_pops_consumer_goods_mult = 0.05
	planet_amenities_mult = -0.10
	pop_happiness = -0.05
}

# Major growth/food boost for processing captured organics in the Breeding Pit.
# Applied by xeno_pic_events.3, .4, .5, .19, .26, .27.
xenomorph_breeding_pit_productivity = {
	icon = "GFX_modifier_positive"
	logistic_growth_mult = 0.15
	planet_jobs_food_produces_mult = 0.10
}

# Pop growth and food after capture/conquest absorption.
# Applied by xeno_pic_events.6, .25.
xenomorph_captured_pop_processing = {
	icon = "GFX_modifier_positive"
	logistic_growth_mult = 0.10
	planet_jobs_food_produces_mult = 0.05
}

# Conquered planet stability/happiness modifier — pheromone saturation
# pacifies surviving non-Xeno pops on conquered worlds.
# Applied by xeno_pic_events.25.
xenomorph_pheromone_compliance = {
	icon = "GFX_modifier_positive"
	planet_stability_add = 5
	planet_crime_add = -15
	pop_happiness = 0.05
}

# Empire-wide army and unity surge after a major battle victory.
# Applied by xeno_pic_events.27.
xenomorph_post_victory_surge = {
	icon = "GFX_modifier_positive"
	army_damage_mult = 0.10
	country_unity_produces_mult = 0.05
}

# Major unity, growth, and influence after absorbing an enemy royal/leader caste.
# Applied by xeno_pic_events.7, .8, .9.
xenomorph_queen_absorbed = {
	icon = "GFX_modifier_positive"
	country_unity_produces_mult = 0.10
	logistic_growth_mult = 0.10
	country_influence_produces_add = 0.5
}

###############################################
# === xenomorph_war_modifiers.txt ===
###############################################
###############################################
# XENOMORPH WAR GOAL MODIFIERS
# Pass 26: Static modifiers used by the 4 Xeno casus belli / war goals.
# Each WG's on_accept and on_status_quo blocks reference these.
###############################################

# ----- HARVEST BROODSTOCK WG -----
# Winner: 5-year bonuses themed around extracting biological resources
xenomorph_harvest_broodstock_victory = {
	icon = "GFX_modifier_positive"
	logistic_growth_mult = 0.20
	planet_jobs_food_produces_mult = 0.25
	planet_xenomorph_egg_storage_jobs_xenomorph_eggs_produces_mult = 0.25
}

# LV compat stub: empty body so file loads silently. The Lustful Void compat patch
# would define a non-empty version of this same key, overriding the stub.
xenomorph_harvest_broodstock_victory_lv_bonus = {
	icon = "GFX_modifier_positive"
}

# Loser: 5-year debuffs themed around lost biological assets
xenomorph_broodstock_harvested = {
	icon = "GFX_modifier_negative"
	logistic_growth_mult = -0.25
	country_naval_capacity_mult = -0.15
}

# Status quo: 2.5-year minor benefit for partial victory
xenomorph_partial_broodstock_harvest = {
	icon = "GFX_modifier_positive"
	logistic_growth_mult = 0.05
	planet_jobs_food_produces_mult = 0.10
}

# ----- INFESTATION WAR WG -----
# Winner: 10-year research and diplomatic bonus
xenomorph_infestation_victory = {
	icon = "GFX_modifier_positive"
	all_technology_research_speed = 0.10
	envoys_add = 1
}

# Loser empire-level: 10-year crippling empire-wide effects
xenomorph_forced_infestation_country = {
	icon = "GFX_modifier_negative"
	country_unity_produces_mult = -0.10
	pop_happiness = -0.15
	planet_stability_add = -10
}

# Loser per-planet: 10-year planet-level disruption (applied to each colony)
xenomorph_forced_infestation_planet = {
	icon = "GFX_modifier_negative"
	planet_stability_add = -5
	planet_amenities_mult = -0.10
	planet_crime_add = 5
}

# Status quo: 5-year minor research benefit
xenomorph_partial_infestation = {
	icon = "GFX_modifier_positive"
	all_technology_research_speed = 0.05
}

# ----- CLAIM THE HIVE WG -----
# Winner: 5-year cultural and research surge
xenomorph_claimed_hive_victory = {
	icon = "GFX_modifier_positive"
	country_unity_produces_mult = 0.25
	all_technology_research_speed = 0.20
}

# ----- ROYAL SUPREMACY WG -----
# Winner: 10-year sovereign bonuses
xenomorph_royal_supremacy_victory = {
	icon = "GFX_modifier_positive"
	country_leader_cap_add = 1
	country_unity_produces_mult = 0.20
	pop_happiness = 0.10
}

# Loser: 10-year sovereign humiliation
xenomorph_royal_submission = {
	icon = "GFX_modifier_negative"
	country_leader_cap_add = -1
	country_diplomatic_weight_mult = -0.25
	country_influence_produces_mult = -0.20
}

# Status quo: 5-year minor unity benefit
xenomorph_contested_supremacy = {
	icon = "GFX_modifier_positive"
	country_unity_produces_mult = 0.05
}

# 3_61 (A8): was referenced by relic on_activate but never defined. Crow: unity is WHILE-ACTIVE.
relic_queen_mother_dna_active = {
	icon = "gfx/interface/icons/planet_modifiers/pm_lv_breeding_frenzy.dds"
	country_unity_produces_mult = 0.10
	army_damage_mult = 0.10
	logistic_growth_mult = 0.10
}
