弹性空间站规模

This commit is contained in:
2024-09-18 17:16:32 +08:00
parent 5a5c46ef7f
commit 5fbb6e2ce4
8 changed files with 151 additions and 31 deletions

View File

@@ -18,6 +18,7 @@
default = {
ship_of_size_limits = {
RG_graygoo_capitalship_ships_limit
RG_gray_juggernaut_ships_limit
}
}

View File

@@ -2,7 +2,18 @@ RG_gray_juggernaut_ships_limit = {
ship_types = {
RG_gray_juggernaut
}
base = 2 # 1 * juggernaut's size_multiplier
base = 64 # 1 * juggernaut's size_multiplier
show = {
is_scope_valid = yes
has_technology = tech_gray_juggernaut_8
}
}
RG_graygoo_capitalship_ships_limit = {
ship_types = {
RG_graygoo_capitalship
}
base = 256 # 1 * juggernaut's size_multiplier
show = {
is_scope_valid = yes
has_technology = tech_gray_juggernaut_8

View File

@@ -23,8 +23,8 @@ district_rg_city = {
conversion_ratio = 0.5
convert_to = {
district_rw_nexus
district_rw_hive
district_rg_nexus
district_rg_hive
}
resources = {
@@ -64,7 +64,8 @@ district_rg_city = {
}
}
modifier = {
job_culture_worker_add = 3
job_clerk_add = 2
job_culture_worker_add = 1
}
}
@@ -78,7 +79,8 @@ district_rg_city = {
}
}
modifier = {
job_culture_worker_add = 6
job_clerk_add = 4
job_culture_worker_add = 2
}
}
@@ -156,8 +158,8 @@ district_rg_hive = {
conversion_ratio = 0.5
convert_to = {
district_rw_nexus
district_rw_city
district_rg_nexus
district_rg_city
}
resources = {
@@ -239,8 +241,8 @@ district_rg_nexus = {
conversion_ratio = 0.5
convert_to = {
district_rw_hive
district_rw_city
district_rg_hive
district_rg_city
}
resources = {
@@ -336,11 +338,8 @@ district_rg_generator = {
cost = {
minerals = @rw_cost
}
upkeep = {
energy = 50
}
produces = {
energy = 200
energy = 50
}
}
@@ -373,10 +372,10 @@ district_rg_mining = {
minerals = @rw_cost
}
upkeep = {
energy = 50
energy = 5
}
produces = {
minerals = 200
minerals = 50
}
}
@@ -409,10 +408,10 @@ district_rg_farming = {
minerals = @rw_cost
}
upkeep = {
energy = 50
energy = 5
}
produces = {
food = 200
food = 50
}
}
@@ -468,9 +467,9 @@ district_rg_science = {
owner = { is_regular_empire = yes }
}
modifier = {
job_researcher_add = 10
job_researcher_add = 15
}
}
}4
triggered_planet_modifier = {
potential = {
@@ -478,7 +477,7 @@ district_rg_science = {
owner = { is_hive_empire = yes }
}
modifier = {
job_brain_drone_add = 10
job_brain_drone_add = 15
}
}
@@ -488,7 +487,7 @@ district_rg_science = {
owner = { is_machine_empire = yes }
}
modifier = {
job_calculator_add = 10
job_calculator_add = 15
}
}
@@ -587,12 +586,12 @@ district_rg_industrial = {
inline_script = {
script = jobs/industrial_districts_factory_add
AMOUNT = 5
AMOUNT = 10
}
inline_script = {
script = jobs/industrial_districts_foundry_add
AMOUNT = 5
AMOUNT = 10
}
triggered_planet_modifier = {
@@ -644,10 +643,11 @@ district_rg_nanites = {
minerals = @rw_cost
}
upkeep = {
energy = 50
energy = 5
minerals = 40
}
produces = {
nanites = 30
nanites = 40
}
}

View File

@@ -98,6 +98,16 @@ on_planet_attackers_lose = {
}
}
# A leader leveled up.
# Scope = Country
# From = Leader
on_leader_level_up = {
events = {
rg_event.23
}
}
# on_entering_battle = {
# events = {
# rg_skill.1

View File

@@ -15,7 +15,7 @@ pc_rg_grayhabitat = {
extra_orbit_size = 0
extra_planet_count = 0
chance_of_ring = 0.0
planet_size = 40
planet_size = 30
moon_size = 1
colonizable = yes
district_set = rg_station

View File

@@ -616,6 +616,28 @@ rg_create_gray_const = {
}
}
rg_harbitar_size_calculate = {
set_variable = {
which = rg_habitat_size
value = 10
}
set_variable = {
which = rg_habitat_size_temp
value = rg_gray_level
}
multiply_variable = {
which = rg_habitat_size_temp
value = 2
}
change_variable = {
which = rg_habitat_size_temp
value = 10
}
set_variable = {
which = rg_habitat_size
value = rg_habitat_size_temp
}
}
rg_juggernaut_habitat_init = {
if = {
@@ -627,6 +649,7 @@ rg_juggernaut_habitat_init = {
optimize_memory
rg_global_gray_location_check = yes
set_country_flag = rg_habitat_enabled
rg_harbitar_size_calculate = yes
event_target:global_gray_location = {
solar_system = {
spawn_planet = {
@@ -637,10 +660,11 @@ rg_juggernaut_habitat_init = {
orbit_distance = 360
orbit_angle_offset = 45
orbit_distance_offset = 9.899
size = 40
size = 10
has_ring = no
init_effect = {
prevent_anomaly = yes
set_planet_entity = {
entity = "grey_tempesttw_orbital_habitat_entity"
}
@@ -681,8 +705,56 @@ rg_juggernaut_habitat_init = {
}
assign_leader = event_target:gray_governor
}
set_planet_size = owner.rg_habitat_size
generate_start_buildings_and_districts = yes
while = {
count = 1
add_district = district_rg_generator
}
while = {
count = 1
add_district = district_rg_mining
}
while = {
count = 1
add_district = district_rg_farming
}
while = {
count = 1
add_district = district_rg_industrial
}
if = {
limit = {
exists = owner
owner = { is_hive_empire = yes }
}
while = {
count = 1
add_district = district_rg_hive
}
}
if = {
limit = {
exists = owner
owner = { is_regular_empire = yes }
}
while = {
count = 1
add_district = district_rg_city
}
}
if = {
limit = {
exists = owner
from = { is_machine_empire = yes }
}
while = {
count = 1
add_district = district_rg_nexus
}
}
while = {
count = 5
@@ -690,6 +762,7 @@ rg_juggernaut_habitat_init = {
species = owner_main_species
}
}
set_planet_flag = megastructure
set_planet_flag = habitat
@@ -709,4 +782,5 @@ rg_clear_harbitat = {
event_target:rg_gray_habitat_target = {
remove_planet = yes
}
}
}