#####################

#00_static_modifiers#

#####################

#Luna#

landis_project = {

icon = "gfx/interface/icons/planet_modifiers/pm_planet_from_space.dds"

icon_frame = 1

important = yes # if present on a planet, show the planet's nameplate

}

#############

#00_soc_tech#

#############

#Luna#

tech_landis_project = {

cost = @tier1cost2

area = society

tier = 1

category = { new_worlds }

prerequisites = { "tech_colonization_1" }

weight = @tier1weight2

feature_flags = { landis_project }

weight_modifier = {

factor = 1.5 # terraforming needs to be a bit more common

modifier = {

factor = 0

is_lithoid_empire = yes

has_valid_civic = civic_hive_devouring_swarm

}

modifier = {

factor = 1.25

has_tradition = tr_expansion_adopt

}

modifier = {

factor = 1.25

research_leader = {

area = society

has_trait = "leader_trait_expertise_new_worlds"

}

}

}

ai_weight = {

modifier = {

factor = 0

research_leader = {

area = society

has_trait = "leader_trait_expertise_new_worlds"

}

}

}

}

############################

#02_special_terraform_links#

############################

#Luna#

terraform_link = {

from = "pc_barren_cold"

to = "pc_alpine"

energy = 3000

duration = 1800

potential = {

from = { has_modifier = landis_project }

}

condition = {

has_technology = "tech_landis_project"

}

effect = {

from = { remove_modifier = landis_project }

}

ai_weight = {

weight = 0

}

}

##############################

#Sol Terraforamble Initalizer#

##############################

@distance = 50

@base_moon_distance = 10

@jumps = 3

### Sol System

sol_system_initializer = {

name = "NAME_Sol"

class = "sc_g"

asteroid_belt = {

type = rocky_asteroid_belt

radius = 145

}

asteroid_belt = {

type = icy_asteroid_belt

radius = 290

}

flags = { empire_home_system sol_system sol }

usage = custom_empire

init_effect = {

every_neighbor_system = {

set_star_flag = empire_cluster

every_neighbor_system = {

set_star_flag = empire_cluster

}

}

generate_home_system_resources = yes

}

planet = {

name = "NAME_Sol"

class = "pc_g_star"

orbit_distance = 0

orbit_angle = 1

size = 30

has_ring = no

}

planet = {

name = "NAME_Mercury"

class = "pc_molten"

orbit_distance = 40

orbit_angle = 15

size = 10

has_ring = no

}

planet = {

name = "NAME_Venus"

class = "pc_toxic"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

}

planet = {

name = "NAME_Earth"

class = "pc_continental"

orbit_distance = 25

orbit_angle = 120

size = 16

starting_planet = yes

has_ring = no

entity = "continental_planet_earth_entity"

deposit_blockers = none

modifiers = none

flags = { planet_earth }

init_effect = {

prevent_anomaly = yes

}

moon = {

name = "NAME_Luna"

class = "pc_barren_cold"

size = 5

orbit_distance = 12

orbit_angle = 40

has_ring = no

entity = "cold_barren_planet_luna_entity"

init_effect = {

add_modifier = {

modifier = "landis_project"

days = -1

}

}

}

}

planet = {

name = "NAME_Mars"

class = "pc_barren"

orbit_distance = 25

orbit_angle = 60

size = 13

has_ring = no

entity = "barren_planet_mars_entity"

init_effect = {

add_modifier = {

modifier = "terraforming_candidate"

days = -1

}

}

}

planet = {

name = "NAME_1_Ceres"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_2_Pallas"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_3_Juno"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_4_Vesta"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

planet = {

name = "NAME_Jupiter"

class = "pc_gas_giant"

orbit_distance = 40

orbit_angle = -160

size = 35

has_ring = no

entity = "gas_giant_jupiter_entity"

change_orbit = 6

moon = {

name = "NAME_Io"

class = "pc_molten"

size = 6

orbit_distance = 10

orbit_angle = 110

has_ring = no

}

moon = {

name = "NAME_Europa"

class = "pc_frozen"

size = 6

orbit_distance = 2.5

orbit_angle = 10

has_ring = no

}

moon = {

name = "NAME_Ganymede"

class = "pc_frozen"

size = 9

orbit_distance = 2.5

orbit_angle = 80

has_ring = no

}

moon = {

name = "NAME_Callisto"

class = "pc_frozen"

size = 7

orbit_distance = 2.5

orbit_angle = -155

has_ring = no

}

}

planet = {

name = "NAME_Saturn"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 170

size = 30

has_ring = yes

entity = "gas_giant_05_entity"

change_orbit = 7

moon = {

name = "NAME_Titan"

class = "pc_frozen"

size = 8

orbit_distance = 12

orbit_angle = 320

has_ring = no

}

}

planet = {

name = "NAME_Uranus"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

entity = "gas_giant_03_entity"

}

planet = {

name = "NAME_Neptune"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = -195

size = 20

has_ring = no

entity = "gas_giant_02_entity"

change_orbit = 4

moon = {

name = "NAME_Triton"

class = "pc_frozen"

size = 6

orbit_distance = 7

orbit_angle = 115

has_ring = no

}

}

planet = {

name = "NAME_134340_Pluto"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_136472_Makemake"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_136108_Haumea"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_20000_Varuna"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t1"

}

neighbor_system = {

trigger = { num_guaranteed_colonies >= 1 }

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t1_first_colony"

}

neighbor_system = {

trigger = { num_guaranteed_colonies = 0 }

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t1_no_guaranteed_colony"

}

}

# Sol Neighbor Tier 1

sol_neighbor_t1 = {

name = "NAME_Barnard's_Star"

class = sc_m

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

count = 1

class = star

orbit_distance = 0

orbit_angle = 1

size = { min = 20 max = 30 }

has_ring = no

}

change_orbit = 45

planet = {

count = { min = 0 max = 2 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = { min = 2 max = 5 }

orbit_distance = 20

}

neighbor_system = {

trigger = { num_guaranteed_colonies >= 2 }

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2_second_colony"

}

neighbor_system = {

trigger = { num_guaranteed_colonies < 2 }

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2_no_guaranteed_colony"

}

}

# Neighbor Tier 1 First Colony

sol_neighbor_t1_first_colony = {

name = "NAME_Alpha_Centauri"

class = sc_trinary_1

flags = { neighbor_t1_first_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Alpha_Centauri_A"

count = 1

class = pc_g_star

orbit_distance = 0

orbit_angle = 1

size = 32

has_ring = no

}

planet = {

name = "NAME_Alpha_Centauri_B"

count = 1

class = pc_k_star

orbit_distance = 260

orbit_angle = 40

size = 27

has_ring = no

planet = {

name = "NAME_Alpha_Centauri_B_I"

class = pc_molten

size = 18

orbit_distance = 35

}

planet = {

name = "NAME_Alpha_Centauri_B_II"

class = pc_barren

size = 25

orbit_distance = 25

}

planet = {

name = "NAME_Alpha_Centauri_B_III"

class = pc_gas_giant

size = 35

orbit_angle = 330

orbit_distance = 25

}

}

planet = {

name = "NAME_Proxima_Centauri"

count = 1

class = pc_m_star

orbit_angle = 130

size = 15

has_ring = no

planet = {

name = "NAME_Proxima_Centauri_I"

class = pc_molten

size = 22

orbit_distance = 25

}

planet = {

name = "NAME_Proxima_Centauri_II"

class = pc_gas_giant

size = 28

orbit_distance = 25

}

}

change_orbit = -260

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = 1

orbit_distance = 30

class = ideal_design_class

orbit_angle = { min = 90 max = 270 }

size = { min = 12 max = 18 }

init_effect = {

set_planet_flag = prescripted_ideal # used by code, do not remove

}

}

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2"

}

}

# Neighbor Tier 1 No Guaranteed Colony

sol_neighbor_t1_no_guaranteed_colony = {

name = "NAME_Alpha_Centauri"

class = sc_trinary_1

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Alpha_Centauri_A"

count = 1

class = pc_g_star

orbit_distance = 0

orbit_angle = 1

size = 32

has_ring = no

}

planet = {

name = "NAME_Alpha_Centauri_B"

count = 1

class = pc_k_star

orbit_distance = 320

orbit_angle = 40

size = 27

has_ring = no

planet = {

name = "NAME_Alpha_Centauri_B_I"

class = pc_molten

size = 18

orbit_distance = 65

}

planet = {

name = "NAME_Alpha_Centauri_B_II"

class = pc_barren

size = 25

orbit_distance = 25

}

planet = {

name = "NAME_Alpha_Centauri_B_III"

class = pc_gas_giant

size = 35

orbit_angle = 330

orbit_distance = 25

}

}

planet = {

name = "NAME_Proxima_Centauri"

count = 1

class = pc_m_star

orbit_distance = 35

orbit_angle = 130

size = 15

has_ring = no

planet = {

name = "NAME_Proxima_Centauri_I"

class = pc_molten

size = 22

orbit_distance = 25

}

planet = {

name = "NAME_Proxima_Centauri_II"

class = pc_gas_giant

size = 28

orbit_distance = 25

}

}

change_orbit = -320

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = 1

orbit_distance = 30

orbit_angle = { min = 90 max = 270 }

size = { min = 12 max = 18 }

}

planet = {

count = 3

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2"

}

}

# Sol Neighbor Tier 2

sol_neighbor_t2 = {

name = "NAME_Procyon"

class = sc_binary_8

asteroid_belt = {

type = rocky_asteroid_belt

radius = 120

}

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Procyon_A"

count = 1

class = pc_f_star

orbit_distance = 30

orbit_angle = 1

size = 35

has_ring = no

}

planet = {

name = "NAME_Procyon_B"

count = 1

class = pc_f_star

orbit_distance = 0

orbit_angle = 125

size = 20

has_ring = no

}

planet = {

count = 1

orbit_distance = 65

}

change_orbit = 25

planet = {

count = { min = 1 max = 3 }

class = pc_asteroid

orbit_distance = 0

orbit_angle = { min = 0 max = 360 }

}

planet = {

count = { min = 2 max = 5 }

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

}

# Sol Neighbor Tier 2 Second Colony

sol_neighbor_t2_second_colony = {

name = "NAME_Sirius"

class = sc_binary_9

flags = { neighbor_t2_second_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Sirius_A"

count = 1

class = pc_a_star

orbit_distance = 30

orbit_angle = 1

size = 35

has_ring = no

}

planet = {

name = "NAME_Sirius_B"

count = 1

class = pc_f_star

orbit_distance = 0

orbit_angle = 120

size = 15

has_ring = no

}

change_orbit = 45

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

planet = {

count = 1

orbit_distance = 25

class = ideal_design_class

orbit_angle = { min = 90 max = 270 }

size = { min = 14 max = 24 }

init_effect = {

set_planet_flag = prescripted_ideal # used by code, do not remove

}

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = { min = 0 max = 2 }

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

}

# Sol Neighbor Tier 2 No Guaranteed Colony

sol_neighbor_t2_no_guaranteed_colony = {

name = "NAME_Sirius"

class = sc_binary_9

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Sirius_A"

count = 1

class = pc_a_star

orbit_distance = 30

orbit_angle = 1

size = 35

has_ring = no

}

planet = {

name = "NAME_Sirius_B"

count = 1

class = pc_f_star

orbit_distance = 0

orbit_angle = 120

size = 15

has_ring = no

}

change_orbit = 45

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

planet = {

count = 1

orbit_distance = 25

orbit_angle = { min = 90 max = 270 }

size = { min = 14 max = 24 }

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = { min = 0 max = 2 }

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

}

# Sol System (Commonwealth of Man SP)

com_sol_system = {

name = "NAME_Sol"

class = "sc_g"

asteroid_belt = {

type = rocky_asteroid_belt

radius = 145

}

asteroid_belt = {

type = icy_asteroid_belt

radius = 290

}

flags = { sol_system com_sol sol empire_home_system }

usage = misc_system_init

usage_odds = {

base = 0

modifier = {

any_country = {

has_country_flag = human_2

species_portrait = human

has_origin = origin_lost_colony

}

NOT = { any_system = { has_star_flag = sol } }

NOT = { has_star_flag = empire_cluster }

add = 99999

}

}

max_instances = 1

init_effect = {

every_neighbor_system = {

set_star_flag = empire_cluster

every_neighbor_system = {

set_star_flag = empire_cluster

}

}

generate_home_system_resources = yes

}

planet = {

name = "NAME_Sol"

class = "pc_g_star"

orbit_distance = 0

orbit_angle = 1

size = 30

has_ring = no

}

planet = {

name = "NAME_Mercury"

class = "pc_molten"

orbit_distance = 40

orbit_angle = 15

size = 10

has_ring = no

}

planet = {

name = "NAME_Venus"

class = "pc_toxic"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

}

planet = {

class = "pc_continental"

orbit_distance = 25

orbit_angle = 120

size = 20

starting_planet = yes

has_ring = no

entity = "continental_planet_earth_entity"

deposit_blockers = none

modifiers = none

flags = { planet_earth }

init_effect = {

prevent_anomaly = yes

random_country = {

limit = { has_country_flag = human_2 }

save_event_target_as = commonwealth

owner_species = {

save_event_target_as = human_species

set_species_homeworld = prevprev

}

}

create_country = {

name = "NAME_United_Nations_of_Earth"

authority = auth_democratic

civics = {

civic = civic_beacon_of_liberty

civic = civic_idealistic_foundation

}

species = event_target:human_species

name_list = "HUMAN1"

ship_prefix = "UNS"

ethos = {

ethic = "ethic_xenophile"

ethic = "ethic_fanatic_egalitarian"

}

flag = {

icon = {

category = "human"

file = "flag_human_8.dds"

}

background = {

category = "backgrounds"

file = "00_solid.dds"

}

colors = {

"dark_blue"

"dark_blue"

"null"

"null"

}

}

type = default

origin = "origin_default"

effect = {

save_event_target_as = npc_UNoE

add_resource = {

minerals = 2400

energy = 2400

food = 2400

alloys = 800

consumer_goods = 1200

influence = 600

}

}

}

create_colony = {

owner = event_target:npc_UNoE

}

generate_earth_deposits_and_blockers = yes

generate_start_buildings_and_districts = yes

generate_start_pops = yes

clear_blockers = yes

generate_lost_colony_parent_bonus = yes

event_target:npc_UNoE = {

set_country_flag = human_1

set_country_flag = lost_colony_parent

set_country_flag = special_intro_for@event_target:commonwealth

set_country_flag = lost_colony_parent_of@event_target:commonwealth

create_starting_leaders = yes

country_event = { id = game_start.9 }

country_event = { id = game_start.33 days = 1 } # needs delay for system ownership to settle

}

set_name = "NAME_Earth"

}

moon = {

name = "NAME_Luna"

class = "pc_barren_cold"

size = 5

orbit_distance = 12

orbit_angle = 40

has_ring = no

entity = "cold_barren_planet_luna_entity"

}

}

planet = {

name = "NAME_Mars"

class = "pc_barren"

orbit_distance = 25

orbit_angle = 60

size = 13

has_ring = no

entity = "barren_planet_mars_entity"

init_effect = {

add_modifier = {

modifier = "terraforming_candidate"

days = -1

}

}

}

planet = {

name = "NAME_1_Ceres"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_2_Pallas"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_3_Juno"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_4_Vesta"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

planet = {

name = "NAME_Jupiter"

class = "pc_gas_giant"

orbit_distance = 40

orbit_angle = -160

size = 35

has_ring = no

entity = "gas_giant_jupiter_entity"

change_orbit = 6

moon = {

name = "NAME_Io"

class = "pc_molten"

size = 6

orbit_distance = 10

orbit_angle = 110

has_ring = no

}

moon = {

name = "NAME_Europa"

class = "pc_frozen"

size = 6

orbit_distance = 2.5

orbit_angle = 10

has_ring = no

}

moon = {

name = "NAME_Ganymede"

class = "pc_frozen"

size = 9

orbit_distance = 2.5

orbit_angle = 80

has_ring = no

}

moon = {

name = "NAME_Callisto"

class = "pc_frozen"

size = 7

orbit_distance = 2.5

orbit_angle = -155

has_ring = no

}

}

planet = {

name = "NAME_Saturn"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 170

size = 30

has_ring = yes

entity = "gas_giant_05_entity"

change_orbit = 7

moon = {

name = "NAME_Titan"

class = "pc_frozen"

size = 8

orbit_distance = 12

orbit_angle = 320

has_ring = no

}

}

planet = {

name = "NAME_Uranus"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

entity = "gas_giant_03_entity"

}

planet = {

name = "NAME_Neptune"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = -195

size = 20

has_ring = no

entity = "gas_giant_02_entity"

change_orbit = 4

moon = {

name = "NAME_Triton"

class = "pc_frozen"

size = 6

orbit_distance = 7

orbit_angle = 115

has_ring = no

}

}

planet = {

name = "NAME_134340_Pluto"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_136472_Makemake"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_136108_Haumea"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_20000_Varuna"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

init_effect = {

create_starbase = {

size = starbase_starport

module = shipyard

building = crew_quarters

owner = event_target:npc_UNoE

effect = {

set_starbase_module = {

slot = 1

module = trading_hub

}

}

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "com_sol_neighbor_t1"

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "com_sol_neighbor_t1_first_colony"

}

}

# Commonwealth Sol Neighbor Tier 1 First Colony

com_sol_neighbor_t1_first_colony = {

name = "NAME_Alpha_Centauri"

class = sc_trinary_1

flags = { neighbor_t1_first_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Alpha_Centauri_A"

count = 1

class = pc_g_star

orbit_distance = 0

orbit_angle = 1

size = 32

has_ring = no

}

planet = {

name = "NAME_Alpha_Centauri_B"

count = 1

class = pc_k_star

orbit_distance = 260

orbit_angle = 40

size = 27

has_ring = no

planet = {

name = "NAME_Alpha_Centauri_B_I"

class = pc_molten

size = 18

orbit_distance = 35

}

planet = {

name = "NAME_Alpha_Centauri_B_II"

class = pc_barren

size = 25

orbit_distance = 25

}

planet = {

name = "NAME_Alpha_Centauri_B_III"

class = pc_gas_giant

size = 35

orbit_angle = 330

orbit_distance = 25

}

}

planet = {

name = "NAME_Proxima_Centauri"

count = 1

class = pc_m_star

orbit_angle = 130

size = 15

has_ring = no

planet = {

name = "NAME_Proxima_Centauri_I"

class = pc_molten

size = 22

orbit_distance = 25

}

planet = {

name = "NAME_Proxima_Centauri_II"

class = pc_gas_giant

size = 28

orbit_distance = 25

}

}

change_orbit = -260

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = 1

orbit_distance = 30

class = "pc_continental"

orbit_angle = { min = 90 max = 270 }

size = { min = 12 max = 18 }

init_effect = {

create_colony = {

owner = event_target:npc_UNoE

}

}

}

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

init_effect = {

random_system = {

limit = { has_star_flag = com_sol }

save_event_target_as = com_sol

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:com_sol }

}

add_hyperlane = { from = this to = event_target:com_sol }

}

create_starbase = {

size = starbase_outpost

owner = event_target:npc_UNoE

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2"

}

}

# Commonwealth Sol Neighbor Tier 1

com_sol_neighbor_t1 = {

name = "NAME_Barnard's_Star"

class = sc_m

flags = { com_barnards_star }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

count = 1

class = star

orbit_distance = 0

orbit_angle = 1

size = { min = 20 max = 30 }

has_ring = no

}

change_orbit = 45

planet = {

count = { min = 0 max = 2 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = { min = 2 max = 5 }

orbit_distance = 20

}

init_effect = {

random_system = {

limit = { has_star_flag = com_sol }

save_event_target_as = com_sol

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:com_sol }

}

add_hyperlane = { from = this to = event_target:com_sol }

}

create_starbase = {

size = starbase_outpost

owner = event_target:npc_UNoE

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "com_sol_neighbor_t2_second_colony"

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2_no_guaranteed_colony"

}

}

# Commonwealth Sol Neighbor Tier 2 Second Colony

com_sol_neighbor_t2_second_colony = {

name = "NAME_Sirius"

class = sc_binary_9

flags = { neighbor_t2_second_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Sirius_A"

count = 1

class = pc_a_star

orbit_distance = 30

orbit_angle = 1

size = 35

has_ring = no

}

planet = {

name = "NAME_Sirius_B"

count = 1

class = pc_f_star

orbit_distance = 0

orbit_angle = 120

size = 15

has_ring = no

}

change_orbit = 45

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

planet = {

count = 1

orbit_distance = 25

class = "pc_continental"

orbit_angle = { min = 90 max = 270 }

size = { min = 14 max = 24 }

init_effect = {

create_colony = {

owner = event_target:npc_UNoE

}

}

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = { min = 0 max = 2 }

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

init_effect = {

random_system = {

limit = { has_star_flag = com_barnards_star }

save_event_target_as = com_barnards_star

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:com_barnards_star }

}

add_hyperlane = { from = this to = event_target:com_barnards_star }

}

create_starbase = {

size = starbase_outpost

owner = event_target:npc_UNoE

}

}

}

# Sol System (Human Lost Colony SP)

lost_colony_sol_system = {

name = "NAME_Sol"

class = "sc_g"

asteroid_belt = {

type = rocky_asteroid_belt

radius = 145

}

asteroid_belt = {

type = icy_asteroid_belt

radius = 290

}

flags = { sol_system lost_colony_sol sol empire_home_system }

usage = misc_system_init

usage_odds = {

base = 0

modifier = {

any_country = {

species_portrait = human

NOT = { has_country_flag = human_2 }

has_origin = origin_lost_colony

}

NOT = { any_system = { has_star_flag = sol } }

NOT = { has_star_flag = empire_cluster }

add = 99999

}

}

max_instances = 1

init_effect = {

every_neighbor_system = {

set_star_flag = empire_cluster

every_neighbor_system = {

set_star_flag = empire_cluster

}

}

generate_home_system_resources = yes

}

planet = {

name = "NAME_Sol"

class = "pc_g_star"

orbit_distance = 0

orbit_angle = 1

size = 30

has_ring = no

}

planet = {

name = "NAME_Mercury"

class = "pc_molten"

orbit_distance = 40

orbit_angle = 15

size = 10

has_ring = no

}

planet = {

name = "NAME_Venus"

class = "pc_toxic"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

}

planet = {

class = "pc_continental"

orbit_distance = 25

orbit_angle = 120

size = 20

starting_planet = yes

has_ring = no

entity = "continental_planet_earth_entity"

deposit_blockers = none

modifiers = none

init_effect = {

prevent_anomaly = yes

}

init_effect = {

random_country = {

limit = {

species_portrait = human

has_origin = origin_lost_colony

}

save_event_target_as = human_lost_colony

owner_species = {

save_event_target_as = human_species

set_species_homeworld = prevprev

}

}

random_list = {

50 = {

create_country = {

species = event_target:human_species

name_list = HUMAN1

type = default

origin = "origin_default"

effect = {

save_event_target_as = lost_colony_parent

add_resource = {

minerals = 2400

energy = 2400

food = 2400

alloys = 800

consumer_goods = 1200

influence = 600

}

}

}

}

50 = {

create_country = {

species = event_target:human_species

name_list = HUMAN2

type = default

origin = "origin_default"

effect = {

save_event_target_as = lost_colony_parent

add_resource = {

minerals = 2400

energy = 2400

food = 2400

alloys = 800

consumer_goods = 1200

influence = 600

}

}

}

}

}

create_colony = {

owner = event_target:lost_colony_parent

}

set_planet_size = 20

generate_earth_deposits_and_blockers = yes

generate_start_buildings_and_districts = yes

generate_start_pops = yes

clear_blockers = yes

generate_lost_colony_parent_bonus = yes

event_target:lost_colony_parent = {

set_country_flag = lost_colony_parent

set_country_flag = special_intro_for@event_target:human_lost_colony

set_country_flag = lost_colony_parent_of@event_target:human_lost_colony

create_starting_leaders = yes

country_event = { id = game_start.9 }

country_event = { id = game_start.33 days = 1 } # needs delay for system ownership to settle

owner_species = { set_species_homeworld = prevprev }

}

set_name = "NAME_Earth"

}

moon = {

name = "NAME_Luna"

class = "pc_barren_cold"

size = 5

orbit_distance = 12

orbit_angle = 40

has_ring = no

entity = "cold_barren_planet_luna_entity"

}

}

planet = {

name = "NAME_Mars"

class = "pc_barren"

orbit_distance = 25

orbit_angle = 60

size = 13

has_ring = no

entity = "barren_planet_mars_entity"

init_effect = {

add_modifier = {

modifier = "terraforming_candidate"

days = -1

}

}

}

planet = {

name = "NAME_1_Ceres"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_2_Pallas"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_3_Juno"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_4_Vesta"

class = "pc_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

planet = {

name = "NAME_Jupiter"

class = "pc_gas_giant"

orbit_distance = 40

orbit_angle = -160

size = 35

has_ring = no

entity = "gas_giant_jupiter_entity"

change_orbit = 6

moon = {

name = "NAME_Io"

class = "pc_molten"

size = 6

orbit_distance = 10

orbit_angle = 110

has_ring = no

}

moon = {

name = "NAME_Europa"

class = "pc_frozen"

size = 6

orbit_distance = 2.5

orbit_angle = 10

has_ring = no

}

moon = {

name = "NAME_Ganymede"

class = "pc_frozen"

size = 9

orbit_distance = 2.5

orbit_angle = 80

has_ring = no

}

moon = {

name = "NAME_Callisto"

class = "pc_frozen"

size = 7

orbit_distance = 2.5

orbit_angle = -155

has_ring = no

}

}

planet = {

name = "NAME_Saturn"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 170

size = 30

has_ring = yes

entity = "gas_giant_05_entity"

change_orbit = 7

moon = {

name = "NAME_Titan"

class = "pc_frozen"

size = 8

orbit_distance = 12

orbit_angle = 320

has_ring = no

}

}

planet = {

name = "NAME_Uranus"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = 125

size = 20

has_ring = no

entity = "gas_giant_03_entity"

}

planet = {

name = "NAME_Neptune"

class = "pc_gas_giant"

orbit_distance = 25

orbit_angle = -195

size = 20

has_ring = no

entity = "gas_giant_02_entity"

change_orbit = 4

moon = {

name = "NAME_Triton"

class = "pc_frozen"

size = 6

orbit_distance = 7

orbit_angle = 115

has_ring = no

}

}

planet = {

name = "NAME_134340_Pluto"

class = "pc_asteroid"

orbit_distance = 30

orbit_angle = -210

size = 5

has_ring = no

}

planet = {

name = "NAME_136472_Makemake"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -95

size = 5

has_ring = no

}

planet = {

name = "NAME_136108_Haumea"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = 285

size = 5

has_ring = no

}

planet = {

name = "NAME_20000_Varuna"

class = "pc_ice_asteroid"

orbit_distance = 0

orbit_angle = -80

size = 5

has_ring = no

}

init_effect = {

create_starbase = {

size = starbase_starport

module = shipyard

building = crew_quarters

owner = event_target:lost_colony_parent

effect = {

set_starbase_module = {

slot = 1

module = trading_hub

}

}

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "lost_colony_sol_neighbor_t1"

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "lost_colony_sol_neighbor_t1_first_colony"

}

}

# Human Lost Colony Neighbor Tier 1 First Colony

lost_colony_sol_neighbor_t1_first_colony = {

name = "NAME_Alpha_Centauri"

class = sc_trinary_1

flags = { neighbor_t1_first_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Alpha_Centauri_A"

count = 1

class = pc_g_star

orbit_distance = 0

orbit_angle = 1

size = 32

has_ring = no

}

planet = {

name = "NAME_Alpha_Centauri_B"

count = 1

class = pc_k_star

orbit_distance = 260

orbit_angle = 40

size = 27

has_ring = no

planet = {

name = "NAME_Alpha_Centauri_B_I"

class = pc_molten

size = 18

orbit_distance = 35

}

planet = {

name = "NAME_Alpha_Centauri_B_II"

class = pc_barren

size = 25

orbit_distance = 25

}

planet = {

name = "NAME_Alpha_Centauri_B_III"

class = pc_gas_giant

size = 35

orbit_angle = 330

orbit_distance = 25

}

}

planet = {

name = "NAME_Proxima_Centauri"

count = 1

class = pc_m_star

orbit_angle = 130

size = 15

has_ring = no

planet = {

name = "NAME_Proxima_Centauri_I"

class = pc_molten

size = 22

orbit_distance = 25

}

planet = {

name = "NAME_Proxima_Centauri_II"

class = pc_gas_giant

size = 28

orbit_distance = 25

}

}

change_orbit = -260

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = 1

orbit_distance = 30

class = "pc_continental"

orbit_angle = { min = 90 max = 270 }

size = { min = 12 max = 18 }

init_effect = {

create_colony = {

owner = event_target:lost_colony_parent

}

}

}

planet = {

count = 2

orbit_distance = 25

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

init_effect = {

random_system = {

limit = { has_star_flag = lost_colony_sol }

save_event_target_as = lost_colony_sol

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:lost_colony_sol }

}

add_hyperlane = { from = this to = event_target:lost_colony_sol }

}

create_starbase = {

size = starbase_outpost

owner = event_target:lost_colony_parent

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2"

}

}

# Human Lost Colony Sol Neighbor Tier 1

lost_colony_sol_neighbor_t1 = {

name = "NAME_Barnard's_Star"

class = sc_m

flags = { lost_colony_barnards_star }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

count = 1

class = star

orbit_distance = 0

orbit_angle = 1

size = { min = 20 max = 30 }

has_ring = no

}

change_orbit = 45

planet = {

count = { min = 0 max = 2 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

orbit_distance = 5

}

}

planet = {

count = { min = 2 max = 5 }

orbit_distance = 20

}

init_effect = {

random_system = {

limit = { has_star_flag = lost_colony_sol }

save_event_target_as = lost_colony_sol

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:lost_colony_sol }

}

add_hyperlane = { from = this to = event_target:lost_colony_sol }

}

create_starbase = {

size = starbase_outpost

owner = event_target:lost_colony_parent

}

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "lost_colony_sol_neighbor_t2_second_colony"

}

neighbor_system = {

hyperlane_jumps = { min = 1 max = @jumps }

initializer = "sol_neighbor_t2_no_guaranteed_colony"

}

}

# Human Lost Colony Sol Neighbor Tier 2 Second Colony

lost_colony_sol_neighbor_t2_second_colony = {

name = "NAME_Sirius"

class = sc_binary_9

flags = { neighbor_t2_second_colony }

init_effect = {

every_neighbor_system = { set_star_flag = empire_cluster }

}

planet = {

name = "NAME_Sirius_A"

count = 1

class = pc_a_star

orbit_distance = 30

orbit_angle = 1

size = 35

has_ring = no

}

planet = {

name = "NAME_Sirius_B"

count = 1

class = pc_f_star

orbit_distance = 0

orbit_angle = 120

size = 15

has_ring = no

}

change_orbit = 45

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

planet = {

count = 1

orbit_distance = 25

class = "pc_continental"

orbit_angle = { min = 90 max = 270 }

size = { min = 14 max = 24 }

init_effect = {

create_colony = {

owner = event_target:lost_colony_parent

}

}

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = 2

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

change_orbit = @base_moon_distance

moon = {

count = { min = 0 max = 1 }

class = random_non_colonizable

orbit_angle = { min = 90 max = 270 }

orbit_distance = 5

}

}

planet = {

count = { min = 0 max = 2 }

orbit_angle = { min = 90 max = 270 }

orbit_distance = 20

}

init_effect = {

random_system = {

limit = { has_star_flag = lost_colony_barnards_star }

save_event_target_as = lost_colony_barnards_star

}

if = {

limit = {

NOT = { has_hyperlane_to = event_target:lost_colony_barnards_star }

}

add_hyperlane = { from = this to = event_target:lost_colony_barnards_star }

}

create_starbase = {

size = starbase_outpost

owner = event_target:lost_colony_parent

}

}