##### ORIGINS

# Origin: Empire of the Sun
# Has a different one for other trigger checks & other stuff that wouldnt work with the normal origin.
# Not used yet.
origin_elec_sun_empire_ai = {
	is_origin = yes
	max_once_global = yes
	playable = { always = no }
	icon = "gfx/interface/icons/origins/origin_elec_sun_empire.dds"
	picture = GFX_origin_elec_sun_empire
	starting_colony = pc_elec_aurora
	initializers = { elec_sun_empire_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		civics = {
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
		}
	}
	description = "origin_tooltip_elec_sun_empire_effects"
	advanced_start = yes
	random_weight = { base = 0 } # 1000000000 # 5 # 0
	modifier = { planet_jobs_energy_produces_mult = 0.05 }
}

# Origin: Empire of the Sun
origin_elec_sun_empire = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_elec_sun_empire.dds"
	picture = GFX_origin_elec_sun_empire
	starting_colony = pc_elec_aurora
	initializers = { elec_sun_empire_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		civics = {
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
		}
	}
	description = "origin_tooltip_elec_sun_empire_effects"
	advanced_start = yes
	random_weight = { base = 0 }
	modifier = { planet_jobs_energy_produces_mult = 0.05 }
}

# Origin: Nebula of Creation
origin_elec_nebula_of_creation = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_elec_nebula_of_creation.dds"
	picture = GFX_origin_elec_nebula_of_creation
	starting_colony = pc_elec_aurora
	initializers = { elec_nebula_of_creation_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		ethics = {
			NOR = {
				value = ethic_gestalt_consciousness
				value = ethic_xenophobe
				value = ethic_fanatic_xenophobe
			}
		}
		civics = {
			NOT = { value = civic_fanatic_purifiers }
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
		}
	}
	description = "origin_tooltip_elec_nebula_of_creation_effects"
	advanced_start = yes
	random_weight = { base = 0 }
}

# Origin: Supernova
origin_elec_supernova = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_elec_supernova.dds"
	picture = GFX_origin_elec_supernova
	starting_colony = pc_elec_aurora
	initializers = { elec_supernova_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		civics = {
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
			NOT = { value = civic_elec_nuclear_anthem }
		}
	}
	description = "origin_tooltip_elec_supernova_effects"
	negative_description = "origin_tooltip_elec_supernova_negative"
	advanced_start = yes
	random_weight = { base = 0 }
}

# Origin: Endless Horizon
origin_elec_endless_horizon = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_elec_endless_horizon.dds"
	picture = GFX_origin_elec_endless_horizon
	starting_colony = pc_elec_aurora
	initializers = { elec_endless_horizon_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		civics = {
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
			NOT = { value = civic_elec_nuclear_anthem }
		}
	}
	description = "origin_tooltip_elec_endless_horizon_effects"
	advanced_start = yes
	random_weight = { base = 0 }
}

# Origin: Extradimensionals
origin_elec_extradimensionals = {
	is_origin = yes
	icon = "gfx/interface/icons/origins/origin_elec_extradimensionals.dds"
	picture = GFX_origin_elec_extradimensionals
	starting_colony = pc_elec_aurora
#	initializers = { elec_extradimensionals_init }
	possible = {
		species_archetype = { value = ELECTROID_ARCHETYPE }
		civics = {
			NOR = {
				text = civic_tooltip_not_food_civics_elec
				value = civic_anglers
				value = civic_corporate_anglers
				value = civic_catalytic_processing
				value = civic_hive_catalytic_processing
				value = civic_corporate_catalytic_processing
				value = civic_agrarian_idyll
				value = civic_crafters
				value = civic_corporate_crafters
			}
			NOT = { value = civic_elec_nuclear_anthem }
		}
	}
	description = "origin_tooltip_elec_extradimensionals_effects"
	advanced_start = yes
	random_weight = { base = 0 }
	modifier = { ship_ftl_jumpdrive_range_mult = 0.33 }
}

##### NORMAL CIVICS

# Civic: Militaristic Symbiosis
civic_elec_symbiosis = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_symbiosis_effects
	modifier = {
		country_base_sr_dark_matter_produces_add = 0.5
		commander_initial_skill = 1
	}
}

# Civic: Stellar Devourers
civic_elec_stellar_devourers = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = {
			NOR = {
				value = auth_machine_intelligence
				value = auth_corporate
			}
		}
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		civics = { NOT = { value = civic_fanatic_purifiers } }
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_stellar_devourers_effects
	modifier = {
		weapon_type_energy_weapon_damage_mult = 0.35
		ships_alloys_upkeep_mult = -0.05
		country_naval_cap_mult = 0.33
	}
}

# Civic: Industrial Electromagnetism
civic_elec_industrial = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}	
	}
	description = civic_tooltip_elec_industrial_effects
	modifier = {
		category_materials_research_speed_mult = 0.1
	}
}

# Civic: Living Weapons
civic_elec_living_weapons = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}	
	}
	description = civic_tooltip_elec_living_weapons_effects
	modifier = {
		planet_pops_energy_upkeep_mult = 0.05
		country_commander_cap_add = 2
		commander_exp_gain = 0.5
	}
}

# Civic: Mobile Solarflare
civic_elec_mobile_solarflare = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_mobile_solarflare_effects
	modifier = {
		ships_alloys_upkeep_mult = -0.1
		ships_energy_upkeep_mult = 0.05
		weapon_type_energy_weapon_fire_rate_mult = 0.1
		#leader_commanders_unity_produces_add = 5
	}
}

# Civic: Starlifters
civic_elec_starlifters = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_starlifters_effects
#	modifier = {
#		pop_growth_speed = -0.05
#		planet_pop_assembly_mult = -0.05
#	}
}

# Civic: Nuclear Anthem
civic_elec_nuclear_anthem = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_nuclear_anthem_effects
	modifier = {
		planet_colony_development_speed_mult = -0.5
		ship_orbital_bombardment_mult = 0.4
		intel_encryption_add = 1
	}
}

# Civic: Paralyzing Presence
civic_elec_paralyzing_presence = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	modifier = {
		leader_scientists_unity_cost_mult = -0.3
		scientist_initial_skill = 2
		intel_decryption_add = 2
		planet_technician_physics_research_produces_add = 0.75
	}
}

# Civic: Native Environment
civic_elec_native_environment = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_native_environment_effects
	modifier = {
		empire_size_districts_mult = -0.5
	}
}

# Civic: Source of Ignition
civic_elec_source_of_ignition = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		origin = {
			NOR = {
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_source_of_ignition_effects
}

##### GESTALT CIVICS

# Civic: Militaristic Symbiosis
civic_elec_h_symbiosis = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_symbiosis_effects
	modifier = {
		country_base_sr_dark_matter_produces_add = 0.5
		commander_initial_skill = 1
		councilor_gestalt_legion_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Stellar Devourers
civic_elec_h_stellar_devourers = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		civics = { NOT = { value = civic_hive_devouring_swarm } }
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_stellar_devourers_effects
	modifier = {
		weapon_type_energy_weapon_damage_mult = 0.35
		ships_alloys_upkeep_mult = -0.05
		country_naval_cap_mult = 0.33
		ship_speed_mult = 0.15
		councilor_gestalt_legion_exp_gain = @gestalt_civic_node_xp_rate
		councilor_gestalt_cognitive_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Industrial Electromagnetism
civic_elec_h_industrial = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}	
	}
	description = civic_tooltip_elec_h_industrial_effects
	modifier = {
		category_materials_research_speed_mult = 0.1
		councilor_gestalt_growth_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Living Weapons
civic_elec_h_living_weapons = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}	
	}
	description = civic_tooltip_elec_living_weapons_effects
	modifier = {
		planet_pops_energy_upkeep_mult = 0.05
		country_commander_cap_add = 1
		commander_exp_gain = 0.5
		ship_weapon_damage = 0.05
		councilor_gestalt_regulatory_exp_gain = 0.35
	}
}

# Civic: Mobile Solarflare
civic_elec_h_mobile_solarflare = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_mobile_solarflare_effects
	modifier = {
		ships_alloys_upkeep_mult = -0.1
		ships_energy_upkeep_mult = 0.05
		weapon_type_energy_weapon_fire_rate_mult = 0.2
		planet_evaluators_unity_produces_add = 2
		councilor_gestalt_legion_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Starlifters
civic_elec_h_starlifters = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_starlifters_effects
	modifier = {
		category_field_manipulation_research_speed_mult = 0.15
		councilor_gestalt_growth_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Nuclear Anthem
civic_elec_h_nuclear_anthem = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_nuclear_anthem_effects
	modifier = {
		planet_colony_development_speed_mult = -0.5
		ship_orbital_bombardment_mult = 0.4
		intel_encryption_add = 1
		councilor_gestalt_growth_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Paralyzing Presence
civic_elec_h_paralyzing_presence = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	modifier = {
		leader_scientists_unity_cost_mult = -0.3
		scientist_initial_skill = 2
		intel_decryption_add = 2
		planet_technician_physics_research_produces_add = 1
		councilor_gestalt_regulatory_exp_gain = 0.15
		councilor_gestalt_legion_exp_gain = 0.15
	}
}

# Civic: Native Environment
civic_elec_h_native_environment = {
	ai_playable = { always = yes }
	modification = yes
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			OR = {
				text = requires_electroid_origin
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_native_environment_effects
	modifier = {
		empire_size_districts_mult = -0.5
		category_industry_research_speed_mult = 0.1
		councilor_gestalt_cognitive_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# Civic: Source of Ignition
civic_elec_h_source_of_ignition = {
	ai_playable = { always = yes }
	modification = no
	potential = {
		authority = { NOT = { value = auth_machine_intelligence } }
		ethics = { value = ethic_gestalt_consciousness }
	}
	possible = {
		origin = {
			NOR = {
				value = origin_elec_sun_empire
				value = origin_elec_supernova
				value = origin_elec_endless_horizon
				value = origin_elec_extradimensionals
				value = origin_elec_nebula_of_creation
			}
		}
	}
	description = civic_tooltip_elec_source_of_ignition_effects
	modifier = {
		councilor_gestalt_growth_exp_gain = @gestalt_civic_node_xp_rate
	}
}

# councilor_gestalt_cognitive_exp_gain # science/understanding of surroundings
# councilor_gestalt_legion_exp_gain # expansion
# councilor_gestalt_growth_exp_gain # global/growth
# councilor_gestalt_regulatory_exp_gain # deviancy/control