"更新纳米区段翻译并添加城市特化区域定义"

This commit is contained in:
2025-05-07 15:04:35 +08:00
parent e0b33131d0
commit 9947c005ae
7 changed files with 503 additions and 202 deletions

View File

@@ -12,8 +12,8 @@ district_rg_city = {
# TODO_CD: change to real slots
zone_slots = {
slot_city_government
slot_city_01
slot_city_02
slot_rg_city_01
slot_rg_city_02
}
show_on_uncolonized = {
@@ -152,8 +152,8 @@ district_rg_hive = {
# TODO_CD: change to real slots
zone_slots = {
slot_city_government
slot_city_01
slot_city_02
slot_rg_city_01
slot_rg_city_02
}
show_on_uncolonized = {
@@ -241,8 +241,8 @@ district_rg_nexus = {
# TODO_CD: change to real slots
zone_slots = {
slot_city_government
slot_city_01
slot_city_02
slot_rg_city_01
slot_rg_city_02
}
show_on_uncolonized = {
@@ -327,7 +327,7 @@ district_rg_generator = {
# TODO_CD: change to real slots
zone_slots = {
slot_energy
slot_rg_city_01
}
show_on_uncolonized = {
@@ -351,46 +351,8 @@ district_rg_generator = {
}
produces = {
energy = 50
}
}
triggered_planet_modifier = {
planet_housing_add = 1000
}
}
district_rg_mining = {
icon = district_hab_mining
base_buildtime = 30
is_capped_by_modifier = no
zone_slots = {
slot_minerals
}
show_on_uncolonized = {
uses_district_set = rg_station
exists = from
}
potential = {
exists = owner
uses_district_set = rg_station
}
convert_to = {
}
resources = {
category = planet_districts
cost = {
minerals = @rw_cost
}
upkeep = {
energy = 5
}
produces = {
minerals = 50
food = 50
}
}
@@ -399,27 +361,104 @@ district_rg_mining = {
}
}
district_rg_farming = {
icon = district_rw_farming
# district_rg_mining = {
# icon = district_hab_mining
# base_buildtime = 30
# is_capped_by_modifier = no
#
# zone_slots = {
# slot_minerals
# }
#
# show_on_uncolonized = {
# uses_district_set = rg_station
# exists = from
# }
#
# potential = {
# exists = owner
# uses_district_set = rg_station
# }
#
# convert_to = {
# }
#
# resources = {
# category = planet_districts
# cost = {
# minerals = @rw_cost
# }
# upkeep = {
# energy = 5
# }
# produces = {
# minerals = 50
# }
# }
#
# triggered_planet_modifier = {
# planet_housing_add = 1000
# }
# }
#district_rg_farming = {
# icon = district_rw_farming
# base_buildtime = 30
# is_capped_by_modifier = no
#
# # TODO_CD: change to real slots
# zone_slots = {
# slot_food
# }
#
# show_on_uncolonized = { uses_district_set = rg_station }
#
# potential = {
# uses_district_set = rg_station
# exists = owner
# NOT = {
# AND = {
# owner = { is_ai = yes }
# owner = { country_uses_food = no }
# }
# }
# }
#
# resources = {
# category = planet_districts
# cost = {
# minerals = @rw_cost
# }
# upkeep = {
# energy = 5
# }
# produces = {
# food = 50
# }
# }
#
# # triggered for tooltip formatting purposes
# triggered_planet_modifier = {
# modifier = {
# planet_housing_add = 1000
# }
# }
#}
district_rg_industrial = {
icon = district_rw_industrial
base_buildtime = 30
is_capped_by_modifier = no
# TODO_CD: change to real slots
zone_slots = {
slot_food
slot_city_02
}
show_on_uncolonized = { uses_district_set = rg_station }
potential = {
uses_district_set = rg_station
exists = owner
NOT = {
AND = {
owner = { is_ai = yes }
owner = { country_uses_food = no }
}
}
}
resources = {
@@ -429,17 +468,20 @@ district_rg_farming = {
}
upkeep = {
energy = 5
minerals = 40
}
produces = {
food = 50
nanites = 40
}
}
# triggered for tooltip formatting purposes
triggered_planet_modifier = {
modifier = {
planet_housing_add = 1000
}
planet_housing_add = 1000
}
inline_script = {
script = jobs/industrial_districts_factory_add
AMOUNT = 500
}
}
@@ -450,7 +492,7 @@ district_rg_science = {
# TODO_CD: change to real slots
zone_slots = {
slot_city_01
slot_city_03
}
show_on_uncolonized = { uses_district_set = rg_station }
@@ -478,7 +520,7 @@ district_rg_science = {
minerals = @rw_cost
}
upkeep = {
energy = @rw_maintenance
energy = 5
}
}
@@ -585,97 +627,47 @@ district_rg_science = {
}
}
district_rg_industrial = {
icon = district_rw_industrial
base_buildtime = 30
is_capped_by_modifier = no
# TODO_CD: change to real slots
zone_slots = {
slot_city_01
}
show_on_uncolonized = { uses_district_set = rg_station }
potential = {
uses_district_set = rg_station
}
resources = {
category = planet_districts
cost = {
minerals = @rw_cost
}
upkeep = {
energy = @rw_maintenance
}
upkeep = {
trigger = {
exists = owner
owner = {
has_edict = industrial_maintenance
}
}
energy = 4
}
}
triggered_planet_modifier = {
planet_housing_add = 1000
}
inline_script = {
script = jobs/industrial_districts_factory_add
AMOUNT = 500
}
inline_script = {
script = jobs/industrial_districts_foundry_add
AMOUNT = 500
}
}
district_rg_nanites = {
icon = district_rg_nanites
base_buildtime = 30
is_capped_by_modifier = no
# TODO_CD: change to real slots
zone_slots = {
slot_city_01
}
show_on_uncolonized = {
uses_district_set = rg_station
exists = from
}
potential = {
exists = owner
uses_district_set = rg_station
}
convert_to = {
}
resources = {
category = planet_districts
cost = {
minerals = @rw_cost
}
upkeep = {
energy = 5
minerals = 40
}
produces = {
nanites = 40
}
}
triggered_planet_modifier = {
planet_housing_add = 1000
}
}
# district_rg_nanites = {
# icon = district_rg_nanites
# base_buildtime = 30
# is_capped_by_modifier = no
#
# # TODO_CD: change to real slots
# zone_slots = {
# slot_city_01
# }
#
# show_on_uncolonized = {
# uses_district_set = rg_station
# exists = from
# }
#
# potential = {
# exists = owner
# uses_district_set = rg_station
# }
#
# convert_to = {
# }
#
# resources = {
# category = planet_districts
# cost = {
# minerals = @rw_cost
# }
# upkeep = {
# energy = 5
# minerals = 40
# }
# produces = {
# nanites = 40
# }
# }
#
# triggered_planet_modifier = {
# planet_housing_add = 1000
# }
# }
# district_rg_commercial = {
# icon = district_rw_commercial

View File

@@ -542,6 +542,21 @@ rg_harbitar_size_calculate = {
}
}
rg_habitat_maid_init = {
if = {
limit = {
NOT = {
exists = event_target:rg_owner_main_maid_species
}
}
event_target:rg_gray_habitat_target = {
every_owned_pop_group = {
rg_event_effect_planet2027_spawn_maid_species = yes
}
}
}
}
#Country event_target:gray_owner
#创造灰风纳米空间站
rg_juggernaut_habitat_init = {
@@ -584,16 +599,6 @@ rg_juggernaut_habitat_init = {
species = owner_main_species
ethos = owner
}
if = {
limit = {
NOT = {
exists = event_target:rg_owner_main_maid_species
}
}
every_owned_pop_group = {
rg_event_effect_planet2027_spawn_maid_species = yes
}
}
set_name = "NAME_rg_gray_habitat_base"
if = {
limit = {
@@ -605,22 +610,6 @@ rg_juggernaut_habitat_init = {
}
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
@@ -657,6 +646,18 @@ rg_juggernaut_habitat_init = {
add_district = district_rg_nexus
}
}
while = {
count = 1
add_district = district_rg_generator
}
while = {
count = 1
add_district = district_rg_industrial
}
while = {
count = 1
add_district = district_rg_science
}
create_pop_group = {
species = owner_main_species
size = 5
@@ -671,6 +672,7 @@ rg_juggernaut_habitat_init = {
}
}
}
rg_habitat_maid_init = yes
rg_set_gray_harbitat_active_effect = yes
}
}

View File

@@ -0,0 +1,63 @@
# Planet District Zone Slots
# slot_test_01 = {
# start = zone_default # A zone of this type is immediately placed in a new district slot.
#
# include = { # A list of zone types that are available to be built in the slot. The key 'all' can be used to include all existing zone types.
# all
# }
#
# exclude = { # A list of zone types that aren't available to be built in the slot.
# zone_test_05
# }
#
# potential = {
# always = yes # Trigger that defines whether the slot is available on the planet at all. Scope = Planet.
# }
#
# unlock = { # Trigger that defines whether the slot is unlocked on the planet. Scope = Planet.
# always = yes
# }
# }
slot_rg_city_01 = {
include = {
zone_rg_city_housing
zone_rg_city_foundry
zone_rg_city_alloys
zone_rg_city_science
}
exclude = {
zone_default
}
unlock = { # planet scope
uses_district_set = rg_station
}
}
slot_rg_city_02 = {
include = {
zone_rg_city_housing
zone_rg_city_foundry
zone_rg_city_alloys
zone_rg_city_science
}
exclude = {
zone_default
}
unlock = { # planet scope
uses_district_set = rg_station
}
}
slot_rg_city_03 = {
include = {
zone_rg_city_housing
zone_rg_city_foundry
zone_rg_city_alloys
zone_rg_city_science
}
exclude = {
zone_default
}
unlock = { # planet scope
uses_district_set = rg_station
}
}

228
common/zones/rg_zones.txt Normal file
View File

@@ -0,0 +1,228 @@
# Planet District Zones
# zone_test_01 = {
# potential = { # Trigger that defines whether the zone can potentially be built on the Planet. Scope = Planet
# always = yes
# }
#
# unlock = { # Trigger that defines whether the zone is unlocked for building on the planet. Scope = Planet
# always = yes
# }
#
# resources = { # Cost of building. Scope = Planet
# category = planet_districts
# cost = {
# minerals = 50
# }
# }
#
# max_buildings = 3 # Number of slots for buildings.
#
# planet_modifier = { # Planet modifier from the zone
# }
#
# triggered_planet_modifier = { # Triggered planet modifier from the zone. Scope = Planet
# potential = {
# always = yes
# }
# }
#
# triggered_planet_pop_group_modifier = { # Triggered modifier applied to pop groups on planet.
# potential = { # Modifier values are divided in proportion to size between pop groups for which the trigger is true.
# always = yes # Scope = Pop group
# }
# }
#
# district_planet_modifier = { # Planet modifier from the zone. Modifier value is multiplied by the District Level
# }
#
# triggered_district_planet_modifier = { # Triggered planet modifier from the zone. Modifier value is multiplied by the District Level. Scope = Planet
# potential = {
# always = yes
# }
# }
#
# include = { } # Buildings listed here can be constructed in this zone.
#
# exclude = { } # Buildings listed here cannot be constructed in this zone.
#
# included_building_sets = {
# # Buildings belonging to any building set listed here can be constructed in this zone.
# }
#
# excluded_building_sets = {
# # Buildings belonging to any building set listed here cannot be constructed in this zone.
# }
#
# triggered_desc = { # Triggered description of the zone's effect. Scope = Planet
# trigger = {
# exists = owner
# }
# text = job_clerk_effect_desc
# }
# }
zone_rg_city_housing = {
icon = GFX_colony_type_urban
base_buildtime = 120
potential = { # planet scope
always = yes
}
unlock = { # planet scope
always = yes
}
resources = {
category = planet_zones
cost = {
}
}
include = {
all
}
included_building_sets = {
}
triggered_district_planet_modifier = {
potential = {
exists = owner
}
planet_housing_add = 1000
planet_crime_add = -10
planet_amenities_add = 1000
}
planet_modifier = {
zone_building_slots_add = 3
}
}
zone_rg_city_foundry = {
icon = GFX_resource_energy_large
base_buildtime = 120
potential = { # planet scope
always = yes
}
unlock = { # planet scope
always = yes
}
resources = {
category = planet_zones
cost = {
}
}
include = {
all
}
included_building_sets = {
}
inline_script = {
script = jobs/zone_technicians_add
AMOUNT = 1000
}
inline_script = {
script = jobs/zone_miner_add
AMOUNT = 1000
}
inline_script = {
script = jobs/zone_farmers_add
AMOUNT = 1000
}
planet_modifier = {
zone_building_slots_add = 3
}
}
zone_rg_city_alloys = {
icon = GFX_resource_energy_large
base_buildtime = 120
potential = { # planet scope
always = yes
}
unlock = { # planet scope
always = yes
}
resources = {
category = planet_zones
cost = {
}
}
include = {
all
}
included_building_sets = {
}
inline_script = {
script = jobs/zone_foundry_add
AMOUNT = 1000
}
planet_modifier = {
zone_building_slots_add = 3
}
}
zone_rg_city_science = {
icon = GFX_colony_type_research
base_buildtime = 120
potential = { # planet scope
always = yes
}
unlock = { # planet scope
always = yes
}
resources = {
category = planet_zones
cost = {
}
}
include = {
all
}
included_building_sets = {
}
triggered_district_planet_modifier = {
potential = {
exists = owner
owner = { is_regular_empire = yes }
}
modifier = {
job_physicist_add = 1000
job_biologist_add = 1000
job_engineer_add = 1000
}
}
triggered_district_planet_modifier = {
potential = {
exists = owner
owner = { is_hive_empire = yes }
}
modifier = {
job_calculator_physicist_add = 1000
job_calculator_biologist_add = 1000
job_calculator_engineer_add = 1000
}
}
triggered_planet_modifier = {
potential = {
exists = owner
owner = { is_machine_empire = yes }
}
modifier = {
job_calculator_physicist_add = 1000
job_calculator_biologist_add = 1000
job_calculator_engineer_add = 1000
}
}
planet_modifier = {
zone_building_slots_add = 3
}
}