弹性空间站规模

This commit is contained in:
ProjectKoi-Kalo\Kalo 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 = { default = {
ship_of_size_limits = { ship_of_size_limits = {
RG_graygoo_capitalship_ships_limit
RG_gray_juggernaut_ships_limit RG_gray_juggernaut_ships_limit
} }
} }

View File

@ -2,7 +2,18 @@ RG_gray_juggernaut_ships_limit = {
ship_types = { ship_types = {
RG_gray_juggernaut 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 = { show = {
is_scope_valid = yes is_scope_valid = yes
has_technology = tech_gray_juggernaut_8 has_technology = tech_gray_juggernaut_8

View File

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

View File

@ -15,7 +15,7 @@ pc_rg_grayhabitat = {
extra_orbit_size = 0 extra_orbit_size = 0
extra_planet_count = 0 extra_planet_count = 0
chance_of_ring = 0.0 chance_of_ring = 0.0
planet_size = 40 planet_size = 30
moon_size = 1 moon_size = 1
colonizable = yes colonizable = yes
district_set = rg_station 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 = { rg_juggernaut_habitat_init = {
if = { if = {
@ -627,6 +649,7 @@ rg_juggernaut_habitat_init = {
optimize_memory optimize_memory
rg_global_gray_location_check = yes rg_global_gray_location_check = yes
set_country_flag = rg_habitat_enabled set_country_flag = rg_habitat_enabled
rg_harbitar_size_calculate = yes
event_target:global_gray_location = { event_target:global_gray_location = {
solar_system = { solar_system = {
spawn_planet = { spawn_planet = {
@ -637,10 +660,11 @@ rg_juggernaut_habitat_init = {
orbit_distance = 360 orbit_distance = 360
orbit_angle_offset = 45 orbit_angle_offset = 45
orbit_distance_offset = 9.899 orbit_distance_offset = 9.899
size = 40 size = 10
has_ring = no has_ring = no
init_effect = { init_effect = {
prevent_anomaly = yes
set_planet_entity = { set_planet_entity = {
entity = "grey_tempesttw_orbital_habitat_entity" entity = "grey_tempesttw_orbital_habitat_entity"
} }
@ -681,8 +705,56 @@ rg_juggernaut_habitat_init = {
} }
assign_leader = event_target:gray_governor assign_leader = event_target:gray_governor
} }
set_planet_size = owner.rg_habitat_size
generate_start_buildings_and_districts = yes 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 = { while = {
count = 5 count = 5
@ -690,6 +762,7 @@ rg_juggernaut_habitat_init = {
species = owner_main_species species = owner_main_species
} }
} }
set_planet_flag = megastructure set_planet_flag = megastructure
set_planet_flag = habitat set_planet_flag = habitat
@ -709,4 +782,5 @@ rg_clear_harbitat = {
event_target:rg_gray_habitat_target = { event_target:rg_gray_habitat_target = {
remove_planet = yes remove_planet = yes
} }
} }

View File

@ -488,6 +488,7 @@ country_event = {
clear_variable = rg_gray_level_temp clear_variable = rg_gray_level_temp
} }
} }
rg_harbitar_size_calculate = yes
} }
} }
@ -1036,6 +1037,29 @@ country_event = {
# } # }
# } # }
country_event = { # Memorial Valuts Civic Paragon Level Tick / FROM = Leader
id = rg_event.23
hide_window = yes
is_triggered_only = yes
trigger = {
is_same_value = event_target:gray_owner
FROM = {
has_leader_flag = rg_gray_leader
}
has_country_flag = rg_habitat_enabled
}
immediate = {
rg_harbitar_size_calculate = yes
event_target:rg_gray_habitat_target = {
set_planet_size = owner.rg_habitat_size
}
}
}
# 拆毁工厂小灰通讯 # 拆毁工厂小灰通讯
country_event = { country_event = {
id = rg_event.200 id = rg_event.200

View File

@ -16,7 +16,7 @@
RG_leader_trait_offical_gray:0 "$RG_leader_trait_governor_gray$" RG_leader_trait_offical_gray:0 "$RG_leader_trait_governor_gray$"
RG_leader_trait_offical_gray_desc:0 "$RG_leader_trait_governor_gray_desc$" RG_leader_trait_offical_gray_desc:0 "$RG_leader_trait_governor_gray_desc$"
RG_leader_trait_ruler_gray:0 "§Y天选化身§!" RG_leader_trait_ruler_gray:0 "§Y天选化身§!"
RG_leader_trait_ruler_gray_desc:0 "§G$NAME_Gray$会随着领袖等级§!§Y[owner.rg_gray_level]§!§G提升而不断增强力量。§!\n§R当然也会越来越能吃。唔姆你懂的。§!\n§R领袖等级大于10时纳米机器将超频工作额外降低£stability£稳定度。§!\n\n§Y被全体国民所认可可爱又可靠的化身。§!通过授予$NAME_Gray$越来越多的权力和与日俱增的资源倾斜,纳米机器人能够精细调配帝国各项资源产出。然而这种不可持续的发展模式并非没有代价。\n才不是想不出特质名字" RG_leader_trait_ruler_gray_desc:0 "§G$NAME_Gray$会随着领袖等级§!(§Y[owner.rg_gray_level]§!)§G提升而不断增强力量。§!\n§R当然也会越来越能吃。唔姆你懂的。§!\n§R领袖等级大于10时纳米机器将超频工作额外降低£stability£稳定度。§!\n\n§Y被全体国民所认可可爱又可靠的化身。§!通过授予$NAME_Gray$越来越多的权力和与日俱增的资源倾斜,纳米机器人能够精细调配帝国各项资源产出。然而这种不可持续的发展模式并非没有代价。\n才不是想不出特质名字"
RG_leader_trait_scientist_gray:0 "§Y纳米机器个体§!" RG_leader_trait_scientist_gray:0 "§Y纳米机器个体§!"
RG_leader_trait_scientist_gray_desc:0 "$NAME_Gray$本质上是由千千万万纳米机械所组成的个体,这让她可以辅助星域资源调度和研究资源调度。可不要让她做奇怪的事情哦?" RG_leader_trait_scientist_gray_desc:0 "$NAME_Gray$本质上是由千千万万纳米机械所组成的个体,这让她可以辅助星域资源调度和研究资源调度。可不要让她做奇怪的事情哦?"
RG_leader_trait_general_gray:0 "§Y纳米机器个体§!" RG_leader_trait_general_gray:0 "§Y纳米机器个体§!"
@ -467,8 +467,8 @@
rg_nothing_desc:0 "" rg_nothing_desc:0 ""
pc_rg_grayhabitat: "纳米空间站点" pc_rg_grayhabitat: "纳米空间站点"
pc_rg_grayhabitat_desc: "一座由纳米机械组成的深空居所,能提供仿佛行星一般的居住体验,具体而言是指行星上的城市区域。完全由纳米机器人组成使得建筑如梦幻般瞬间出现,由纳米机器组成的实体承担着空间站点的一切生产工作。" pc_rg_grayhabitat_desc: "一座由纳米机械组成的深空居所,能提供仿佛行星一般的居住体验,具体而言是指行星上的城市区域。完全由纳米机器人组成使得建筑如梦幻般瞬间出现,由纳米机器组成的实体承担着空间站点的一切生产工作。\n§Y空间站点的$PLANET_SIZE$会随着$NAME_Gray$领袖等级(§Y[owner.rg_gray_level]§!)的提升而扩展。初始$PLANET_SIZE$为10每级领袖等级提升2$PLANET_SIZE$。§!"
扩大
rg_ap_nantiematter:0 "§Y纳米物质构成工程§!" rg_ap_nantiematter:0 "§Y纳米物质构成工程§!"
rg_ap_nantiematter_desc:0 "如果能够对L星门建造者的物质与科技进行一次彻底的构成研究这些强力的纳米机器将极大的提升我们的军备水平。这需要我们获得足够的L星门认知。" rg_ap_nantiematter_desc:0 "如果能够对L星门建造者的物质与科技进行一次彻底的构成研究这些强力的纳米机器将极大的提升我们的军备水平。这需要我们获得足够的L星门认知。"
rg_ap_nantiematter_tooltip:0 "§Y这表明了一切。§!" rg_ap_nantiematter_tooltip:0 "§Y这表明了一切。§!"