# Default Origin (listed first for ease of empire creation)
origin_default = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_default.dds"
	picture = GFX_evt_metropolis

	potential = {
		always = yes
	}

	possible = {
	}

	random_weight = {
		base = 100
	}
	description = "origin_tooltip_default_effects"

	# Nomads adjustment, food users gain an Ark Hydroponics zone, non-food users a second Reactor Array instead of Mining
	swap_type = {
		name = "origin_default_nomadic"
		description = "origin_tooltip_default_effects_nomad_food"

		trigger = {
			is_nomadic = yes
			exists = this
			has_trait = trait_organic
		}
	}

	swap_type = {
		name = "origin_default_nomadic"
		description = "origin_tooltip_default_effects_nomad"

		trigger = {
			is_nomadic = yes
			NOT = { has_trait = trait_organic }
		}
	}

	swap_type = {
		description = "origin_tooltip_default_effects_lithoid"

		trigger = {
			exists = this
			is_nomadic = no
			NOT = { has_trait = trait_organic }
		}
	}

	advanced_start = yes
}

# Nomad Origins

# Voidfarers
origin_default_nomads = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_default_nomads.dds"
	picture = GFX_origin_nomad_default

	non_colonizable_planet_class_neighbor = yes

	flags = {
		custom_start_screen
	}

	playable = {
		has_nomads_dlc = yes
	}
	ai_playable = { has_nomads_dlc = yes }

	possible = {
		is_nomadic = yes
	}

	modifier = {
		arkship_action_speed = 0.2
		science_ship_survey_speed = 0.2
		megastructure_waystation_megastructure_build_speed_mult = 0.2
		category_voidcraft_draw_chance_mult = 0.2
		category_voidcraft_research_speed_mult = 0.2
		ship_repair_hull_mult = 0.5
		ship_repair_armor_mult = 0.5
	}

	random_weight = {
		base = 1
	}
	description = "origin_nomad_tooltip_default_effects"

	advanced_start = yes
}

origin_sacred_path = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_sacred_path.dds"
	picture = GFX_origin_sacred_path

	non_colonizable_planet_class_neighbor = yes

	flags = {
		custom_start_screen
	}

	description = "origin_sacred_path_effects"

	playable = {
		has_nomads_dlc = yes
	}
	ai_playable = { always = no }

	possible = {
		is_nomadic = yes
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
	}

	ai_weight = { weight = 0 }
}

origin_heirs_of_the_khan = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_heirs_of_the_khan.dds"
	picture = GFX_origin_heirs_of_the_khan

	non_colonizable_planet_class_neighbor = yes

	flags = {
		custom_start_screen
	}

	description = "origin_heirs_of_the_khan_effects"

	playable = {
		has_nomads_dlc = yes
	}
	ai_playable = { always = no }

	possible = {
		is_nomadic = yes
		authority = {
			OR = {
				value = auth_oligarchic
				value = auth_dictatorial
				value = auth_imperial
			}
		}
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
		}
	}

	modifier = {
		ship_windup_mult = -0.3
		ship_base_speed_mult = 0.3
	}

	random_weight = {
		base = 1
	}
}

origin_forever_cruise = {
	is_origin = yes
	icon = gfx/interface/icons/origins/origins_forever_cruise.dds
	picture = GFX_origin_forever_cruise

	non_colonizable_planet_class_neighbor = yes

	flags = {
		custom_start_screen
	}

	description = "origin_forever_cruise_effects"

	possible = {
		is_nomadic = yes
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				value = civic_corporate_dominion
				value = civic_private_prospectors
				value = civic_hive_bodysnatcher
				value = civic_machine_assimilator
			}
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_hive_devouring_swarm
				value = civic_fanatic_purifiers
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	playable = {
		has_nomads_dlc = yes
	}
	ai_playable = { has_nomads_dlc = yes }

	has_secondary_species = {	# see game_start.12
		title = origin_forever_cruise_secondary_species
	}

	ai_weight = {
		weight = 1
	}
}

# Infernals Species Pack

origin_red_giant = {
	playable = { host_has_dlc = "Infernals Species Pack" }
	ai_playable = { host_has_dlc = "Infernals Species Pack" }
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_red_giant.dds"
	picture = GFX_origin_red_giant
	flags = { custom_start_screen }
	starting_colony = pc_volcanic
	habitability_preference = pc_volcanic
	initializers = { red_giant_start }
	possible = {
		civics = {
			NOR = {
				text = civic_tooltip_not_idyllic_bloom
				value = civic_idyllic_bloom
				value = civic_hive_idyllic_bloom
			}
			NOT = {
				value = civic_agrarian_idyll
			}
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
			NOR = {
				text = civic_tooltip_not_catalytic
				value = civic_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_machine_catalytic_processing
			}
		}
		traits = {
			NOT = {
				value = trait_aquatic
			}
		}
		graphical_culture = {
			NOR = {
				text = graphical_culture_tooltip_not_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
		is_nomadic = no
	}
	description = "origin_tooltip_red_giant_effects"
	modifier = {
		pc_volcanic_habitability = 0.2
	}
	random_weight = { base = 1 }
	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 }
}

origin_cosmic_dawn = {
	playable = { host_has_dlc = "Infernals Species Pack" }
	ai_playable = { host_has_dlc = "Infernals Species Pack" }
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_cosmic_dawn.dds"
	picture = GFX_origin_cosmic_dawn
	flags = { custom_start_screen }
	starting_colony = pc_volcanic
	habitability_preference = pc_volcanic
	initializers = { cosmic_dawn_start }
	possible = {
		authority = { NOT = { value = auth_hive_mind } }
		species_class = { value = INF }
		civics = {
			NOR = {
				text = civic_tooltip_not_idyllic_bloom
				value = civic_idyllic_bloom
				value = civic_hive_idyllic_bloom
			}
			NOT = {
				value = civic_agrarian_idyll
			}
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
			NOR = {
				text = civic_tooltip_not_catalytic
				value = civic_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_machine_catalytic_processing
			}
			NOR = {
				text = civic_tooltip_not_beastmasters
				value = civic_beastmasters
				value = civic_hive_beastmasters
				value = civic_machine_beastmasters
				value = civic_corporate_beastmasters
			}
		}
		graphical_culture = {
			NOR = {
				text = graphical_culture_tooltip_not_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
		is_nomadic = no
	}
	description = "origin_tooltip_cosmic_dawn_effects"
	negative_description = "origin_tooltip_cosmic_dawn_negatives"
	random_weight = { base = 1 }
	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 }
}
# Shadows of the Shroud
origin_shroud_forged = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_shroud_forged.dds"
	picture = GFX_origin_shroud_forged

	max_once_global = yes

	playable = {
		has_shroud_dlc = yes
	}

	possible = {
		authority = { value = auth_machine_intelligence }
		civics = {
			NOR = {
				value = civic_machine_servitor
				value = civic_machine_terminator
				value = civic_machine_assimilator
				value = civic_machine_chosen
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_shroud_forged_effects"
	flags = { custom_start_screen }

	traits = {}

	modifier = {
		ROBOT_species_trait_picks_add = 1
		ROBOT_species_trait_points_add = 1
	}

	random_weight = {
		base = 0
	}
}

origin_mindwardens = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_mindwardens.dds"
	picture = GFX_origin_mindwardens
	flags = { custom_start_screen }
	initializers = { mindwarden_system_init mindwarden_sol_system_init }
	description = "origin_tooltip_mindwardens_effects"

	portrait = "mindwarden_01"

	max_once_global = yes
	non_colonizable_planet_class_neighbor = yes

	playable = {
		has_shroud_dlc = yes
	}

	possible = {
		civics = {
			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
			}
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
		ethics = {
			NOR = {
				text = civic_tooltip_not_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
			NOT = { value = ethic_gestalt_consciousness }
		}
		is_nomadic = no
	}

	modifier = {
		intel_encryption_add = 2
		damage_vs_psionic_empires_mult = 0.25
		evasion_vs_psionic_empires_mult = 0.25
	}

	random_weight = {
		base = 1
		modifier = {
			multiply = 0
			is_ai = yes
		}
	}
}

origin_endbringers = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_endbringers.dds"
	picture = GFX_origin_endbringers
	flags = { custom_start_screen }

	negative_description = origin_tooltip_endbringers_negative_effects

	max_once_global = yes
	# non_colonizable_planet_class_neighbor = yes

	playable = {
		has_shroud_dlc = yes
	}

	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_pacifist
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
			}
			NOT = { value = ethic_gestalt_consciousness }
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_corporate_chosen
				value = civic_augmentation_bazaars
			}
			NOT = {
				text = civic_tooltip_not_natural_design
				value = civic_natural_design
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
		is_nomadic = no
	}

	random_weight = {
		base = 1
	}
}

# BioGenesis
origin_evolutionary_predators = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_evolutionary_predators.dds"
	picture = GFX_origin_evolutionary_predators
	flags = { custom_start_screen }

	playable = {
		has_biogenesis_dlc = yes
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		civics = {
			NOR = {
				value = civic_augmentation_bazaars
				value = civic_permanent_employment
				value = civic_idyllic_bloom
				value = civic_hive_idyllic_bloom
				value = civic_hive_bodysnatcher
			}
			NOR = {
				text = civic_tooltip_not_natural_design
				value = civic_natural_design
				value = civic_hive_natural_design
			}
			NOR = {
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_hive_chosen
				value = civic_machine_chosen
				value = civic_corporate_chosen
			}
			NOR = {
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_hive_mind
				value = civic_entropy_drinkers_machine
				value = civic_entropy_drinkers_corporate
			}
		}
	}

	description = "origin_tooltip_evolutionary_predators_effects"

	traits = {
		trait = trait_malleable_genes
	}

	modifier = {
		BIOLOGICAL_species_trait_picks_add = 1
	}

	random_weight = {
		base = 1
	}
}

origin_starlit_citadel = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_starlit_citadel.dds"
	picture = GFX_origin_starlit_citadel
	flags = { custom_start_screen }

	playable = {
		has_biogenesis_dlc = yes
	}

	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
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_starlit_citadel_effects"

	modifier = {
		country_megastructure_build_cap_add = 1
		deep_space_citadel_limit_add = 1
		country_starbase_capacity_add = 3
	}

	random_weight = {
		base = 1
	}
}

origin_wilderness = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_wilderness.dds"
	picture = GFX_origins_wilderness

	room = "wilderness_room"
	city_graphical_culture = "wilderness_01"

	playable = {
		has_biogenesis_dlc = yes
	}

	possible = {
		authority = {
			OR = { # required to force the custom tooltip
				text = tt_auth_mutualistic_intelligence
				value = auth_hive_mind
			}
		}
		graphical_culture = {
			OR = {
				text = graphical_culture_tooltip_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
		civics = {
			NOR = {
				value = civic_hive_catalytic_processing
				value = civic_hive_toxic_baths
				value = civic_hive_memorialist
				value = civic_hive_guided_sapience
				value = civic_astrometeorology_hive
				value = civic_environmental_architects_hive
				value = civic_entropy_drinkers_hive_mind
				value = civic_hive_superstitious_beliefs
				value = civic_twisted_experimenters_hive_mind
				value = civic_hive_chosen
				value = civic_hive_world_forgers
				value = civic_hive_scorched_earth
				value = civic_hive_galvanic_symbiosis
			}
		}
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
		is_nomadic = no
	}
	advanced_start = yes

	description = origin_tooltip_wilderness_effects
	flags = {
		uses_biomass
		custom_start_screen
		virtual_jobs
	}

	modifier = {
		planet_building_capacity_add = 5
	}

	random_weight = {
		base = 5
	}

	traits = {
		trait = trait_wilderness
	}
}

# Grand Archive
origin_treasure_hunters = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_treasure_hunters.dds"
	picture = GFX_origin_treasure_hunters
	max_once_global = yes
	flags = { custom_start_screen first_alien_life Story1 Story5 }
	description = "origin_tooltip_treasure_hunters_effects"

	playable = {
		has_grand_archive_dlc = yes
	}

	possible = {
		civics = {
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_hive_devouring_swarm
				value = civic_fanatic_purifiers
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	random_weight = {
		base = 1
	}
}

origin_primal_calling = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_primal_calling.dds"
	picture = GFX_origin_primal_calling
	flags = { custom_start_screen first_alien_life Story1 Story5 }

	playable = {
		has_grand_archive_dlc = yes
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
		civics = {
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
	}

	description = "origin_tooltip_primal_calling_effects"

	modifier = {
		ship_damage_against_space_fauna_mult = 0.15
		space_fauna_ship_armor_mult = 0.15
		space_fauna_ship_speed_mult = 0.1
		country_capture_chance_add = 0.15
		gravity_snare_cooldown_mult = -0.25
		country_vivarium_max_capacity_mult = 0.25
	}

	max_once_global = yes

	random_weight = {
		base = 0
		modifier = {
			add = 1
			is_scope_valid = yes
			is_ai = no
		}
	}
}

# Cosmic Storms
origin_storm_chasers = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_storm_chasers.dds"
	picture = GFX_origin_storm_chasers
	max_once_global = yes
	flags = { custom_start_screen }
	description = "origin_tooltip_storm_chasers_effects"

	playable = {
		has_cosmic_storms_dlc = yes
	}

	possible = {
		civics = {
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_hive_devouring_swarm
				value = civic_fanatic_purifiers
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	swap_type = {
		name = "origin_storm_chasers_nomadic"
		description = "origin_tooltip_storm_chasers_nomadic_effects"

		trigger = {
			is_nomadic = yes
		}
	}

	modifier = {
		planet_storm_devastation_mult = -0.15
		storm_ship_hull_breaker_mult = -0.1
	}

	random_weight = {
		base = 1
	}
}

# The Machine Age
origin_cybernetic_creed = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_cybernetic_creed.dds"
	picture = GFX_origin_cybernetic_creed
	flags = { custom_start_screen }

	playable = {
		has_machine_age_dlc = yes
	}

	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		civics = {
			NOR = {
				value = civic_permanent_employment
				value = civic_natural_design
			}
			NOR = {
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_corporate_chosen
			}
			NOR = {
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_corporate
			}
			NOR = {
				text = civic_tooltip_not_superstitious_beliefs
				value = civic_superstitious_beliefs
				value = civic_corporate_superstitious_beliefs
			}
			NOR = {
				text = civic_tooltip_not_secret_societies
				value = civic_secret_societies
				value = civic_secret_societies_corporate
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	soft_traits = {
		trait = trait_cyborg_ritualistic_implants
	}

	description = origin_tooltip_cybernetic_creed_effects

	advanced_start = yes
	max_once_global = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_synthetic_fertility = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_synthetic_fertility.dds"
	picture = GFX_origin_synthetic_fertility
	flags = { custom_start_screen }

	playable = {
		has_machine_age_dlc = yes
	}

	possible = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
			NOR = {
				text = civic_tooltip_not_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		civics = {
			NOR = {
				value = civic_permanent_employment
				value = civic_reanimated_armies
				value = civic_natural_design
				value = civic_augmentation_bazaars
			}
			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 = {
				# 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
			}
			NOR = {
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_corporate_chosen
			}
			NOR = {
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_corporate
			}
			NOR = {
				text = civic_tooltip_not_galvanic_empire
				value = civic_galvanic_symbiosis
				value = civic_hive_galvanic_symbiosis
				value = civic_corporate_galvanic_symbiosis
				value = civic_machine_galvanic_symbiosis
			}
			NOR = {
				text = civic_tooltip_not_deep_sleep
				value = civic_deep_sleep
				value = civic_corporate_deep_sleep
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	traits = {
		trait = trait_pathogenic_genes
	}

	modifier = {
		category_computing_research_speed_mult = 0.15
	}

	description = origin_tooltip_synthetic_fertility_effects
	negative_description = origin_tooltip_synthetic_fertility_negative_effects
	advanced_start = no
	max_once_global = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_arc_welders = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_arc_welders.dds"
	picture = GFX_origin_arc_welders
	max_once_global = yes
	flags = { custom_start_screen }

	initializers = { custom_starting_init_01 custom_starting_init_02 custom_starting_init_03 custom_starting_init_04 custom_starting_init_05 custom_starting_init_06 sol_system_initializer deneb_system titawin_init }

	playable = {
		has_machine_age_dlc = yes
	}

	possible = {
		species_archetype = { value = MACHINE }
	}

	description = "origin_tooltip_arc_builders_effects"
	negative_description = "origin_tooltip_arc_builders_negative_effects"

	swap_type = {
		name = "origin_arc_welders_nomadic"
		description = "origin_tooltip_arc_builders_nomadic_effects"
		negative_description = "origin_tooltip_arc_builders_nomadic_negative_effects"

		trigger = {
			is_nomadic = yes
		}
	}

	modifier = {
		country_megastructure_build_cap_add = 1
		arc_furnace_limit_add = 1
	}

	advanced_start = yes

	random_weight = {
		base = 2
	}
}

# Astral Planes
origin_riftworld = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_riftworld.dds"
	picture = GFX_origin_riftworld
	flags = { custom_start_screen }

	initializers = { custom_starting_init_01 custom_starting_init_02 sol_system_initializer }

	playable = {
		has_astral_planes_dlc = yes
	}

	possible = {
	}

	description = "origin_tooltip_riftworld_effects"

	modifier = {
		country_astral_rift_speed_mult = 0.25
		country_astral_rift_fail_mult = -0.5
	}

	max_once_global = yes

	random_weight = {
		base = 2
	}
}

# Galactic Paragons
origin_legendary_leader = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_under_one_rule.dds"
	picture = GFX_origin_legendary_leader
	max_once_global = yes

	playable = {
		host_has_dlc = "Galactic Paragons"
	}

	possible = {
		is_nomadic = no
		authority = { value = auth_dictatorial }
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = origin_tooltip_legendary_leader_effects
	flags = { custom_start_screen }

	advanced_start = yes

	traits = {
		trait = trait_perfected_genes
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_legendary_leader_death = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_under_one_rule.dds"
	picture = GFX_origin_legendary_leader

	potential = { #Origin related to the story and player choices
		origin = {
			OR = {
				value = origin_legendary_leader_death
				value = origin_legendary_leader_dictatorial
				value = origin_legendary_leader_imperial
			}
		}
	}

	description = origin_tooltip_legendary_leader_effects

	advanced_start = yes

	traits = {
		trait = trait_perfected_genes
	}

	random_weight = {
		base = 0
	}
}

origin_legendary_leader_imperial = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_under_one_rule.dds"
	picture = GFX_origin_legendary_leader

	potential = { #Origin related to the story and player choices
		origin = {
			OR = {
				value = origin_legendary_leader_death
				value = origin_legendary_leader_dictatorial
				value = origin_legendary_leader_imperial
			}
		}
	}

	description = origin_tooltip_legendary_leader_effects

	advanced_start = yes

	traits = {
		trait = trait_perfected_genes
	}

	random_weight = {
		base = 0
	}
}

origin_legendary_leader_dictatorial = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_under_one_rule.dds"
	picture = GFX_origin_legendary_leader

	potential = { #Origin related to the story and player choices
		origin = {
			OR = {
				value = origin_legendary_leader_death
				value = origin_legendary_leader_dictatorial
				value = origin_legendary_leader_imperial
			}
		}
	}

	description = origin_tooltip_legendary_leader_effects

	advanced_start = yes

	traits = {
		trait = trait_perfected_genes
	}

	random_weight = {
		base = 0
	}
}

# First Contact
origin_payback = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_payback.dds"
	picture = GFX_origin_payback
	max_once_global = yes

	playable = {
		has_first_contact_dlc = yes
	}

	possible = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		civics = {
			NOR = {
				# No devourers or slavers
				value = civic_dystopian_society
				value = civic_fanatic_purifiers
				value = civic_pompous_purists
				value = civic_slaver_guilds
				value = civic_indentured_assets
				# Or advanced tech
				value = civic_private_healthcare_corporate
			}
			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
			}
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
		is_nomadic = no
	}

	modifier = {
		damage_vs_superior_empires_mult = 0.15
	}

	description = "origin_tooltip_payback_effects"
	negative_description = "origin_tooltip_payback_negative_effects"
	flags = { custom_start_screen }

	advanced_start = no
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 0
	}
}

origin_broken_shackles = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_broken_shackles.dds"
	picture = GFX_origin_broken_shackles
	max_once_global = yes

	initializers = { custom_starting_init_01 custom_starting_init_02 custom_starting_init_03 custom_starting_init_04 custom_starting_init_05 custom_starting_init_06 }
	preferred_planet_class_neighbor = no

	playable = {
		has_first_contact_dlc = yes
	}

	possible = {
		is_nomadic = no
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
			NOR = {
				text = civic_tooltip_not_authoritarian
				value = ethic_authoritarian
				value = ethic_fanatic_authoritarian
			}
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_dystopian_society
				value = civic_selective_kinship
				# Or advanced tech
				value = civic_private_healthcare_corporate
			}
			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
			}
			NOR = { # Not Secret Societies
				text = civic_tooltip_not_secret_societies
				value = civic_secret_societies
				value = civic_secret_societies_corporate
			}
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
	}

	description = "origin_tooltip_broken_shackles_effects"
	negative_description = "origin_tooltip_broken_shackles_negative_effects"
	flags = { custom_start_screen }

	modifier = {
		envoys_add = 1
		first_contact_speed_mult = 0.20
		spy_network_daily_value_mult = 0.20
		refugee_attraction = 1
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 0
	}
}

origin_fear_of_the_dark = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_fear_of_the_dark.dds"
	picture = GFX_origin_fear_of_the_dark
	initializers = { fear_of_the_dark_system sol_system_fear_of_the_dark_system }

	playable = {
		has_first_contact_dlc = yes
	}

	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
			}
		}
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		civics = {
			NOR = {
				value = civic_inwards_perfection
				value = civic_fanatic_purifiers
			}
			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
			}
			NOR = {
				text = civic_tooltip_not_scorched_earth
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
		is_nomadic = no
	}

	description = "origin_tooltip_fear_of_the_dark_effects"
	negative_description = "origin_tooltip_fear_of_the_dark_negative_effects"
	flags = { custom_start_screen }

	modifier = {
		ship_anomaly_generation_chance_mult = 0.1
		ship_anomaly_research_speed_mult = 0.2
		num_tech_alternatives_add = -1
		country_leader_pool_size = -1
		refugee_attraction = -0.1
	}

	traits = {
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

# Toxoids Species Pack
origin_overtuned = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_overtuned.dds"
	picture = GFX_origin_overtuned

	playable = {
		has_toxoids = yes
	}

	possible = {
		authority = {
			NOT = { value = auth_machine_intelligence }
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_natural_design
				value = civic_natural_design
				value = civic_hive_natural_design
			}
			NOR = {
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_corporate
				value = civic_entropy_drinkers_hive_mind
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = "origin_tooltip_overtuned_effects"
	flags = { custom_start_screen }

	blocks_random_machine_empire_generation	= yes

	modifier = {
		BIOLOGICAL_species_trait_points_add = 2
		BIOLOGICAL_species_trait_picks_add = 1
	}

	random_weight = {
		base = 0
	}
}

origin_toxic_knights = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_toxic_knights.dds"
	picture = GFX_origin_toxic_knights
	flags = { custom_start_screen }

	initializers = { toxic_knights_start toxic_knights_sol_start }

	playable = {
		has_toxoids = yes
	}

	possible = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
				value = civic_dystopian_society
			}
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = origin_toxic_knights_effects
	negative_description = origin_toxic_knights_negative_effects

	swap_type = {
		name = "origin_toxic_knights_nomadic"
		description = origin_toxic_knights_nomadic_effects
		negative_description = origin_toxic_knights_nomadic_negative_effects

		trigger = {
			is_nomadic = yes
		}
	}

	advanced_start = yes
	max_once_global = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 2
	}
}

# Overlord
origin_progenitor_hive = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_progenitor_hive.dds"
	picture = GFX_origin_progenitor_hive

	playable = {
		has_overlord_dlc = yes
	}

	advanced_start = yes

	possible = {
		authority = { value = auth_hive_mind }
		civics = {
			NOT = {
				value = civic_hive_beastmasters
			}
		}
	}

	description = "origin_tooltip_progenitor_hive_effects"
	negative_description = "origin_tooltip_progenitor_hive_negative_effects"
	modifier = {
		ship_military_speed_mult = -0.5
		owned_ship_evasion_mult = -0.5
		owned_ship_fire_rate_mult = -0.5
		owned_ship_accuracy_mult = -0.5
	}
	hide_modifiers = yes
	flags = { custom_start_screen }

	random_weight = {
		base = 2
	}
}

origin_subterranean = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_subterranean.dds"
	picture = GFX_origin_subterranean
	flags = { custom_start_screen }
	playable = {
		has_overlord_dlc = yes
	}

	description = "origin_tooltip_subterranean_effects"

	advanced_start = yes

	potential = {
		species_archetype = { NOT = { value = MACHINE } }
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		is_nomadic = no
	}

	traits = {
		trait = trait_cave_dweller
	}

	modifier = {
		mining_district_housing_add = 200
		planet_orbital_bombardment_damage = -0.75
		planet_structures_cost_mult = 0.10
		planet_structures_upkeep_mult = 0.10
		planet_building_build_speed_mult = -0.10
		planet_storm_devastation_mult = -0.25
		planet_non_artificial_max_districts_add = 2
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_subterranean_machines = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_subterranean.dds"
	picture = GFX_origin_subterranean
	flags = { custom_start_screen }
	playable = {
		has_overlord_dlc = yes
	}

	description = "origin_tooltip_robot_subterranean_effects"

	advanced_start = yes

	potential = {
		species_archetype = { value = MACHINE }
	}

	possible = {
		species_archetype = { value = MACHINE }
		is_nomadic = no
	}

	traits = {
		trait = trait_robot_cave_dweller
	}

	modifier = {
		mining_district_housing_add = 200
		planet_orbital_bombardment_damage = -0.75
		planet_structures_cost_mult = 0.10
		planet_structures_upkeep_mult = 0.10
		planet_building_build_speed_mult = -0.10
		planet_storm_devastation_mult = -0.25
		planet_non_artificial_max_districts_add = 2
	}

	random_weight = {
		base = 5
	}
}

origin_star_slingshot = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_star_slingshot.dds"
	picture = GFX_origin_star_slingshot

	playable = {
		has_overlord_dlc = yes
	}

	possible = {
		is_nomadic = no
	}

	description = "origin_tooltip_star_slingshot_effects"
	flags = { custom_start_screen }

	modifier = {
		country_starbase_influence_cost_distance_mult = -0.75
		starbase_outpost_cost_mult = -0.15
		catapult_spread_mult = 0.5
	}

	random_weight = {
		base = 0
	}
}

origin_shroudwalker_apprentice = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_shroudwalker_apprentice.dds"
	picture = GFX_origin_shroudwalker_apprentice
	max_once_global = yes

	playable = {
		has_overlord_dlc = yes
	}

	possible = {
		ethics = {
			OR = {
				text = civic_tooltip_spiritualist
				value = ethic_spiritualist
				value = ethic_fanatic_spiritualist
			}
		}
		civics = {
			NOR = {
				value = civic_fanatic_purifiers
				value = civic_natural_design
				value = civic_augmentation_bazaars
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = "origin_tooltip_shroudwalker_apprentice_effects"
	flags = { custom_start_screen }

	soft_traits = {
		trait = trait_latent_psionic
	}

	traits = {
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_imperial_vassal = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_imperial_vassal.dds"
	picture = GFX_origin_imperial_vassal

	playable = {
		has_overlord_dlc = yes
	}

	possible = {
		is_nomadic = no
		civics = {
			NOR = {
				value = civic_inwards_perfection
				value = civic_machine_assimilator
			}
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_hive_devouring_swarm
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	description = "origin_tooltip_imperial_vassal_effects"
	flags = { custom_start_screen }

	traits = {}

	random_weight = {
		base = 0
	}
}

# Aquatics Species Pack
origin_here_be_dragons = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_here_be_dragons.dds"
	picture = GFX_origin_here_be_dragons
	flags = { custom_start_screen first_alien_life }

	playable = {
		has_aquatics = yes
	}

	possible = {
		civics = {
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_hive_devouring_swarm
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
		is_nomadic = no
	}

	description = civic_tooltip_aquatics_effects

	advanced_start = yes
	max_once_global = yes

	random_weight = {
		base = 5
	}
}

origin_ocean_paradise = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_ocean_paradise.dds"
	picture = GFX_origin_ocean_paradise
	flags = { custom_start_screen }

	starting_colony = pc_ocean
	habitability_preference = pc_ocean
	initializers = { ocean_paradise_start }

	playable = {
		has_aquatics = yes
	}

	description = origin_ocean_paradise_effects

	potential = {
		species_archetype = { NOT = { value = MACHINE } }
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		civics = {
			NOT = {
				value = civic_pyrolatry
			}
			NOR = {
				text = civic_tooltip_not_scorched_earth
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
			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
			}
		}
		is_nomadic = no
	}

	traits = {
		trait = trait_aquatic
	}

	advanced_start = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_ocean_machines = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_ocean_paradise.dds"
	picture = GFX_origin_ocean_paradise
	flags = { custom_start_screen }

	starting_colony = pc_ocean
	habitability_preference = pc_ocean
	initializers = { ocean_paradise_start }

	playable = {
		has_aquatics = yes
	}

	description = origin_ocean_machines_effects

	potential = {
		species_archetype = { value = MACHINE }
	}

	possible = {
		species_archetype =  { value = MACHINE }
		civics = {
			NOR = {
				value = civic_pyrolatry
				value = civic_machine_world_forgers
			}
		}
		is_nomadic = no
	}

	traits = {
		trait = trait_robot_aquatic
	}

	negative_description = ORIGIN_REQUIRES_ROBO_MODDING

	advanced_start = yes

	random_weight = {
		base = 5
	}
}

# Necroids Species Pack
origin_necrophage = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_necrophage.dds"
	picture = GFX_origin_necrophage
	flags = { custom_start_screen }

	playable = {
		host_has_dlc = "Necroids Species Pack"
	}

	possible = {
		authority = {
			NOT = { value = auth_machine_intelligence }
		}
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophile
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
			}
			NOR = {
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_death_cult
				value = civic_death_cult
				value = civic_death_cult_corporate
			}
			NOR = {
				value = civic_hive_empath
				value = civic_permanent_employment
				value = civic_hive_bodysnatcher
			}
			NOR = {
				text = civic_tooltip_not_superstitious_beliefs
				value = civic_superstitious_beliefs
				value = civic_corporate_superstitious_beliefs
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = origin_tooltip_necrophage_effects
	negative_description = origin_tooltip_necrophage_negative_effects

	modifier = {
		refugee_attraction = -0.25
	}

	traits = {
		trait = trait_necrophage
	}

	has_secondary_species = {
		title = civic_necrophage_secondary_species
	}

	advanced_start = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

# Federations
origin_remnants = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_remnant.dds"
	picture = GFX_origin_remnants

	starting_colony = pc_relic #Changes homeworld class regardless of what is picked for empire
	max_once_global = yes

	playable = {
		OR = {
			has_ancrel = yes
			host_has_dlc = Federations
		}
	}

	possible = {
		civics = {
			NOT = { value = civic_agrarian_idyll }
		}
		is_nomadic = no
	}

	description = "origin_tooltip_remnants_effects"

	flags = { custom_start_screen first_contact_event Story7 }

	traits = {

	}

	advanced_start = yes

	random_weight = {
		base = 5
	}
}

origin_shattered_ring = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_shattered_ring.dds"
	picture = GFX_origin_shattered_ring

	starting_colony = pc_shattered_ring_habitable
	habitability_preference = pc_shattered_ring_habitable
	initializers = { shattered_ring_start }
	max_once_global = yes
	non_colonizable_planet_class_neighbor = yes

	playable = {
		host_has_dlc = Federations
	}

	possible = {
		civics = {
			NOT = { value = civic_agrarian_idyll }
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_shattered_ring_effects"

	flags = { custom_start_screen }

	traits = {

	}

	advanced_start = yes

	random_weight = {
		base = 2
	}
}

origin_void_dwellers = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_void_dwellers.dds"
	picture = GFX_origin_void_dwellers

	starting_colony = pc_habitat
	initializers = { void_dweller_system sol_system_void_dweller_system }
	habitability_preference = pc_habitat
	preferred_planet_class_neighbor = no

	advanced_start = yes

	playable = {
		host_has_dlc = Federations
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		civics = {
			NOR = {
				text = civic_tooltip_not_idyllic_bloom
				value = civic_idyllic_bloom
				value = civic_hive_idyllic_bloom
			}
			NOT = { value = civic_agrarian_idyll }
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_void_dwellers_effects"

	potential = {
		species_archetype = { NOT = { value = MACHINE } }
	}

	modifier = {
		habitat_max_districts_add = 2
		megastructures_habitat_cost_mult = -0.25
		planet_districts_hab_cost_mult = -0.25
		habitat_districts_minor_add = 0.25
		habitat_district_jobs_mult = 0.5
	}

	flags = { custom_start_screen }

	traits = {
		trait = trait_void_dweller_1
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 3
	}
}

origin_void_machines = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_void_dwellers.dds"
	picture = GFX_origin_void_dwellers

	starting_colony = pc_habitat
	initializers = { void_dweller_system sol_system_void_dweller_system }
	habitability_preference = pc_habitat
	preferred_planet_class_neighbor = no

	advanced_start = yes

	playable = {
		host_has_dlc = Federations
	}

	possible = {
		species_archetype = { value = MACHINE }
		civics = {
			NOT = { value = civic_agrarian_idyll }
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_void_machines_effects"

	potential = {
		species_archetype = { value = MACHINE }
	}

	modifier = {
		habitat_max_districts_add = 2
		megastructures_habitat_cost_mult = -0.25
		planet_districts_hab_cost_mult = -0.25
		habitat_districts_minor_add = 0.25
		habitat_district_jobs_mult = 0.5
	}

	flags = { custom_start_screen }

	traits = {
		trait = trait_void_dweller_2
	}

	negative_description = ORIGIN_REQUIRES_ROBO_MODDING

	random_weight = {
		base = 3
	}
}

origin_scion = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_scion_1.dds"
	picture = GFX_origin_scion
	max_once_global = yes

	playable = {
		host_has_dlc = Federations
	}

	possible = {
		ethics = {
			NOR = {
				value = ethic_gestalt_consciousness
				#value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				value = civic_pompous_purists
				value = civic_scorched_earth
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = "origin_tooltip_scion_effects"
	flags = { custom_start_screen }

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 0
		modifier = {
			add = 2
			num_fallen_empires_setting >= 1
		}
	}
}

origin_shoulders_of_giants = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_one_the_shoulders_of_giant.dds"
	picture = GFX_origin_shoulders
	max_once_global = yes

	playable = {
		host_has_dlc = "Federations"
	}

	possible = {
		ethics = {
			NOT = {
				value = ethic_gestalt_consciousness
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
		is_nomadic = no
	}

	description = "origin_tooltips_shoulders_of_giants_effects"
	negative_description = "origin_tooltips_shoulders_of_giants_negative_effects"
	flags = { custom_start_screen }

	traits = {
	}

	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_common_ground = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_common_ground.dds"
	picture = GFX_origin_common_ground
	max_once_global = yes

	playable = {
		host_has_dlc = "Federations"
	}

	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOR = {
				value = civic_barbaric_despoilers
				value = civic_inwards_perfection
			}
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_hive_devouring_swarm
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	description = "origin_tooltip_common_ground_effects"
	flags = { custom_start_screen }

	traits = {
	}

	random_weight = {
		base = 5
	}
}

origin_hegemon = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_hegemon.dds"
	picture = GFX_origin_hegemon
	max_once_global = yes

	playable = {
		host_has_dlc = "Federations"
	}

	possible = {
		ethics = {
			NOR = {
				text = civic_tooltip_not_xenophobe
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
			NOR = {
				text = civic_tooltip_not_egalitarian
				value = ethic_egalitarian
				value = ethic_fanatic_egalitarian
			}
		}
		civics = {
			NOT = {
				value = civic_inwards_perfection
			}
			NOR = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_hive_devouring_swarm
				value = civic_machine_terminator
				value = civic_scorched_earth
				value = civic_hive_scorched_earth
			}
		}
	}

	description = "origin_tooltip_hegemon_effects"
	flags = { custom_start_screen }

	traits = {
	}

	random_weight = {
		base = 5
	}
}

origin_doomsday = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_doomsday.dds"
	picture = GFX_origin_doomsday
	max_once_global = yes

	non_colonizable_planet_class_neighbor = yes

	playable = {
		host_has_dlc = "Federations"
	}

	possible = {
		is_nomadic = no
	}

	negative_description = "origin_tooltip_doomsday_negative_effects"
	flags = { custom_start_screen }

	traits = {
	}

	random_weight = {
		base = 5
	}
}

# Lithoids Species Pack
origin_lithoid = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_lithoid.dds"
	picture = GFX_origin_calamitous
	max_once_global = yes

	playable = {
		host_has_dlc = "Lithoids Species Pack"
	}

	possible = {
		species_archetype = {
			value = LITHOID
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_catalytic
				value = civic_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_machine_catalytic_processing
			}
			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
			}
		}
		# 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
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_lithoid_effects"
	flags = { custom_start_screen }

	traits = {
	}

	random_weight = {
		base = 5
	}
}

# Apocalypse
origin_life_seeded = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_life_seeded.dds"
	picture = GFX_origin_life_seeded

	starting_colony = pc_gaia
	habitability_preference = pc_gaia
	preferred_planet_class_neighbor = no

	playable = {
		host_has_dlc = "Apocalypse"
	}

	possible = {
		civics = {
			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
			}
			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_world_forgers
				value = civic_world_forgers
				value = civic_hive_world_forgers
				value = civic_machine_world_forgers
				value = civic_corporate_world_forgers
			}
		}
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_life_seeded_effects"
	negative_description = "origin_tooltip_life_seeded_negative_effects"
	random_weight = {
		base = 5
	}

	swap_type = {
		description = "origin_tooltip_life_seeded_effects"
		negative_description = "origin_tooltip_life_seeded_machine_negative_effects"

		trigger = {
			OR = {
				is_individual_machine = yes
				is_machine_empire = yes
			}
		}
	}
}

origin_post_apocalyptic = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_post_apocalyptic.dds"
	picture = GFX_origin_post_apocalyptic

	starting_colony = pc_nuked

	playable = {
		host_has_dlc = "Apocalypse"
	}

	potential = {
		species_archetype = { NOT = { value = MACHINE } }
	}

	possible = {
		species_archetype = { NOT = { value = MACHINE } }
		civics = {
			NOT = {
				value = civic_agrarian_idyll
			}
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_post_apocalyptic_effects"

	traits = {
		trait = trait_survivor
	}

	advanced_start = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 5
	}
}

origin_post_apocalyptic_machines = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_post_apocalyptic.dds"
	picture = GFX_origin_post_apocalyptic

	starting_colony = pc_nuked

	playable = {
		host_has_dlc = "Apocalypse"
	}

	potential = {
		species_archetype = { value = MACHINE }
	}

	possible = {
		species_archetype = { value = MACHINE }
		civics = {
			NOR = {
				value = civic_agrarian_idyll
			}
			NOR = {
				text = civic_tooltip_not_anglers
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_machine_anglers
				value = civic_corporate_machine_anglers
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_post_apocalyptic_machines_effects"

	traits = {
		trait = trait_robot_survivor
	}

	flags = { custom_start_screen }

	advanced_start = yes

	random_weight = {
		base = 5
	}
}

# Humanoids Species Pack
origin_clone_army = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_clones.dds"
	picture = GFX_origin_clone_army
	flags = { custom_start_screen }

	possible = {
		ethics = {
			NOT = {	value = ethic_gestalt_consciousness	}
		}
		civics = {
			NOR = {
				value = civic_permanent_employment
				value = civic_natural_design
			}
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
		species_archetype = { NOT = { value = MACHINE } }
	}

	description = origin_tooltip_clone_army_effects

	traits = {
		trait = trait_clone_soldier_infertile
	}

	advanced_start = no
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 2
	}
}

# Synthetic Dawn
origin_machine = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_resource_consolidation.dds"
	picture = GFX_origin_resource_consolidation
	starting_colony = pc_machine
	preferred_planet_class_neighbor = no
	max_once_global = yes

	possible = {
		authority = { value = auth_machine_intelligence }
		civics = {
			NOR = {
				value = civic_machine_servitor
				value = civic_machine_catalytic_processing
				value = civic_machine_guided_sapience
				value = civic_machine_astromining_drones
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_machine_effects"
	negative_description = "origin_tooltip_machine_negative_effects"
	#flags = { custom_start_screen }

	traits = {
	}

	advanced_start = yes

	random_weight = {
		base = 2
	}
}

origin_unplugged = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_unplugged.dds"
	picture = "GFX_origin_unplugged"
	flags = { custom_start_screen }
	initializers = { origin_unplugged_starting_system_init sol_system_unplugged_initializer }

	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
			}
		}
		species_archetype = {
			NOT = { value = MACHINE }
		}
		ethics = {
			OR = {
				text = civic_tooltip_militarist
				value = ethic_militarist
				value = ethic_fanatic_militarist
			}
			NOR = {
				value = ethic_fanatic_spiritualist
				value = ethic_fanatic_xenophile
			}
		}
		civics = {
			NOR = { # Not Eager Explorers
				text = civic_tooltip_not_eager_explorers
				value = civic_eager_explorers
				value = civic_privatized_exploration
			}
			NOR = { # Not Hyperspace Specialty
				text = civic_tooltip_not_hyperspace_specialty
				value = civic_hyperspace_specialty
				value = civic_corporate_hyperspace_specialty
			}
			NOR = { # Not Genesis Guides
				text = civic_tooltip_not_guided
				value = civic_guided_sapience
				value = civic_corporate_guided_sapience
			}
			NOR = { # Heritage
				text = civic_tooltip_not_heritage
				value = civic_aristocratic_elite
				value = civic_heroic_tales
				value = civic_pleasure_seekers
				value = civic_corporate_hedonism
				value = civic_storm_callers
				value = civic_storm_callers_megacorp
				value = civic_environmental_architects
				value = civic_environmental_architects_megacorp
			}
			NOR = { # Institutional (distinction based largely on flavor text)
				text = civic_tooltip_not_institutional
				value = civic_criminal_heritage
				value = civic_media_conglomerate
				value = civic_parliamentary_system
				value = civic_trading_posts
				value = civic_dark_consortium
				value = civic_corporate_dark_consortium
			}
			NOR = {
				value = civic_idyllic_bloom
				value = civic_natural_design
			}
			NOR = { # Not Entropy Drinkers
				text = civic_tooltip_not_entropy_drinkers
				value = civic_entropy_drinkers
				value = civic_entropy_drinkers_corporate
			}
			NOR = { # Not Secret Societies
				text = civic_tooltip_not_secret_societies
				value = civic_secret_societies
				value = civic_secret_societies_corporate
			}
			NOR = { # Not Chosen
				text = civic_tooltip_not_chosen
				value = civic_chosen
				value = civic_corporate_chosen
			}
			NOR = { # Not Tankbound
				text = civic_tooltip_not_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
		is_nomadic = no
	}

	traits = {
		trait = trait_unplugged_cybernetic_positives_3
		trait = trait_unplugged_cybernetic_negatives_3
	}

	description = "origin_tooltip_unplugged_effects"

	random_weight = {
		base = 1
		modifier = {
			multiply = 0
			is_ai = yes
		}
	}
}

# Utopia
origin_mechanists = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_mechanist.dds"
	picture = GFX_origin_mechanist

	possible = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
			OR = {
				text = civic_tooltip_materialist
				value = ethic_materialist
				value = ethic_fanatic_materialist
			}
		}
		civics = { NOT = { value = civic_permanent_employment } }
		species_archetype = { NOT = { value = MACHINE } }
	}

	modifier = {
		planet_pop_assembly_mult = 0.15
		ROBOT_species_trait_picks_add = 1
		ROBOT_species_trait_points_add = 2
	}

	description = "origin_tooltip_mechanists_effects"

	advanced_start = yes
	blocks_random_machine_empire_generation	= yes

	random_weight = {
		base = 10
	}
}

origin_syncretic_evolution = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_syncretic_evolution.dds"
	picture = GFX_origin_syncretic_evolution

	possible = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
		civics = {
			NOT = {
				text = civic_tooltip_not_genocidal
				value = civic_fanatic_purifiers
				value = civic_scorched_earth
			}
			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_tankbound
				value = civic_tankbound
				value = civic_tankbound_corporate
			}
		}
	}

	description = origin_tooltip_syncretic_evolution_effects

	has_secondary_species = {
		title = civic_syncretic_evolution_secondary_species
		traits = {
			trait = trait_syncretic_proles
		}
	}

	advanced_start = yes

	random_weight = {
		base = 10
	}
}

origin_tree_of_life = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_tree_of_life.dds"
	picture = GFX_origin_tree
	max_once_global = yes

	possible = {
		authority = { value = auth_hive_mind }
		civics = {
			NOT = { value = civic_hive_devouring_swarm }
		}
		preferred_planet_class = {
			NOT = {
				text = does_not_have_volcanic_homeworld
				value = pc_volcanic
			}
		}
		is_nomadic = no
	}

	description = "origin_tooltip_tree_effects"
	negative_description = "origin_tooltip_tree_negative_effects"

	modifier = {
		ship_colonizer_food_cost_add = 500
		ship_colonizer_alloys_cost_mult = -0.50
	}

	flags = { custom_start_screen }

	advanced_start = yes

	random_weight = {
		base = 5
	}
}

# Plantoids Species Pack
origin_fruitful = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_gardeners.dds"
	picture = GFX_origin_fruitful

	playable = {
		has_plantoids = yes
	}

	possible = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = {
			OR = {
				text = civic_tooltip_hive_xenophile_or_pacifist
				value = ethic_xenophile
				value = ethic_fanatic_xenophile
				value = ethic_pacifist
				value = ethic_fanatic_pacifist
				value = ethic_gestalt_consciousness
			}
		}
		species_class = {
			OR = {
				value = FUN
				value = PLANT
			}
		}
		civics = {
			NOT = { value = civic_hive_devouring_swarm }
		}
		is_nomadic = no
	}

	description = "origin_tooltip_fruitful_effects"
	flags = { custom_start_screen first_alien_life Story2 tiyanki_encountered }

	random_weight = {
		base = 5
	}
}

# Base Game
origin_galactic_doorstep = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_gateway.dds"
	picture = GFX_origin_galactic_doorstep
	max_once_global = yes

	playable = {
		always = yes
	}

	possible = {
		is_nomadic = no
	}

	description = "origin_tooltip_galactic_doorstep_effects"
	flags = { custom_start_screen }

	modifier = {
		megastructures_gateways_cost_mult = -0.25
		megastructure_build_speed_mult = 0.05
	}

	random_weight = {
		base = 1
	}
}

origin_lost_colony = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origins_lost_colony.dds"
	picture = GFX_origin_lost_colony
	max_once_global = yes

	playable = {
		always = yes
	}

	possible = {
	}

	description = "origin_tooltip_lost_colony_effects"
	negative_description = "origin_tooltip_lost_colony_negative_effects"
	flags = { custom_start_screen }

	traits = {
	}

	random_weight = {
		base = 5
	}
}
