From 9947c005ae63fc7a1264ab2f3a6d7c0380005acd Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Wed, 7 May 2025 15:04:35 +0800 Subject: [PATCH] =?UTF-8?q?"=E6=9B=B4=E6=96=B0=E7=BA=B3=E7=B1=B3=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5=E7=BF=BB=E8=AF=91=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=9F=8E?= =?UTF-8?q?=E5=B8=82=E7=89=B9=E5=8C=96=E5=8C=BA=E5=9F=9F=E5=AE=9A=E4=B9=89?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/districts/rg_station_districts.txt | 300 +++++++++--------- .../scripted_effects/RG_gray_init_effects.txt | 54 ++-- common/zone_slots/rg_zone_slots.txt | 63 ++++ common/zones/rg_zones.txt | 228 +++++++++++++ events/RG_planet_event.txt | 8 +- .../simp_chinese/RG_planet_l_simp_chinese.yml | 49 +-- realgray-stellaris-mod.code-workspace | 3 + 7 files changed, 503 insertions(+), 202 deletions(-) create mode 100644 common/zone_slots/rg_zone_slots.txt create mode 100644 common/zones/rg_zones.txt diff --git a/common/districts/rg_station_districts.txt b/common/districts/rg_station_districts.txt index 35c3679..7df7f39 100644 --- a/common/districts/rg_station_districts.txt +++ b/common/districts/rg_station_districts.txt @@ -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 diff --git a/common/scripted_effects/RG_gray_init_effects.txt b/common/scripted_effects/RG_gray_init_effects.txt index 76a7c1e..660b949 100644 --- a/common/scripted_effects/RG_gray_init_effects.txt +++ b/common/scripted_effects/RG_gray_init_effects.txt @@ -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 } } diff --git a/common/zone_slots/rg_zone_slots.txt b/common/zone_slots/rg_zone_slots.txt new file mode 100644 index 0000000..8a4daa0 --- /dev/null +++ b/common/zone_slots/rg_zone_slots.txt @@ -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 + } +} \ No newline at end of file diff --git a/common/zones/rg_zones.txt b/common/zones/rg_zones.txt new file mode 100644 index 0000000..2aeec72 --- /dev/null +++ b/common/zones/rg_zones.txt @@ -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 + } +} diff --git a/events/RG_planet_event.txt b/events/RG_planet_event.txt index 69fb0f1..c3fd255 100644 --- a/events/RG_planet_event.txt +++ b/events/RG_planet_event.txt @@ -262,11 +262,11 @@ country_event = { NOR = { free_jobs_of_type = { job = mortal_initiate - value >= 1 + value >= 100 } free_jobs_of_type = { category = bio_trophy - value >= 1 + value >= 100 } } } @@ -298,11 +298,11 @@ country_event = { NOR = { free_jobs_of_type = { job = mortal_initiate - value >= 1 + value >= 100 } free_jobs_of_type = { category = bio_trophy - value >= 1 + value >= 100 } } # exists = event_target:rg_gray_habitat_target diff --git a/localisation/simp_chinese/RG_planet_l_simp_chinese.yml b/localisation/simp_chinese/RG_planet_l_simp_chinese.yml index e1a578d..e150705 100644 --- a/localisation/simp_chinese/RG_planet_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_planet_l_simp_chinese.yml @@ -14,30 +14,43 @@ district_rg_farming: "农业区段" district_rg_farming_plural: "农业区段" district_rg_farming_desc: "无垠的农田之海充斥着这个区段,其中种满了大量的食物。" - district_rg_generator: "发电区段" - district_rg_generator_plural: "发电区段" - district_rg_generator_desc: "反应堆填满了这个区段,专注于生产能量。" - district_rg_nanites: "纳米区段" - district_rg_nanites_plural: "纳米区段" - district_rg_nanites_desc: "纳米机器复制仪填满了这个区段,目标是生产尽可能多的纳米机器人。" + district_rg_generator: "纳米复制区段" + district_rg_generator_plural: "纳米复制区段" + district_rg_generator_desc: "纳米机器复制仪填满了这个区段,专注于生产基础资源。" + district_rg_nanites: "纳米铸造区段" + district_rg_nanites_plural: "纳米铸造区段" + district_rg_nanites_desc: "纳米机器复制仪填满了这个区段,目标是生产尽可能多的纳米机器人与合金。" district_rg_mining: "采矿区段" district_rg_mining_plural: "采矿区段" district_rg_mining_desc: "采矿无人机集群填满了这个区段,专注于从附近星球上采集有用的矿物。" - district_rg_science: "研究区段" - district_rg_science_plural: "研究区段" - district_rg_science_desc: "这个区段充满了各类研究设施。" + district_rg_science: "纳米科研区段" + district_rg_science_plural: "纳米科研区段" + district_rg_science_desc: "这个区段充满了住房与各类研究设施。" district_rg_commercial: "商业区段" district_rg_commercial_plural: "商业区段" district_rg_commercial_desc: "这个区段充斥着专门用于商业的民用工厂和设施。" - district_rg_city: "城市区段" - district_rg_city_plural: "城市区段" + district_rg_city: "纳米居住区段" + district_rg_city_plural: "纳米居住区段" district_rg_city_desc: "这个区段充满了城市中心,这些城市中心提供大量的住房和职员的办公场所。" - district_rg_hive: "蜂巢区段" - district_rg_hive_plural: "蜂巢区段" + district_rg_hive: "纳米蜂巢区段" + district_rg_hive_plural: "纳米蜂巢区段" district_rg_hive_desc: "高耸的尖塔布满这个区段,当子个体不在工作时,就会集结于此摄取营养素。" - district_rg_nexus: "中枢区段" - district_rg_nexus_plural: "中枢区段" + district_rg_nexus: "纳米中枢区段" + district_rg_nexus_plural: "纳米中枢区段" district_rg_nexus_desc: "高效的区划填满了这个区段,无人机部署作业前,在这些集中区划中接受整修服务。" - district_rg_industrial: "工业区段" - district_rg_industrial_plural: "工业区段" - district_rg_industrial_desc: "这个区段中遍布着叮当作响的工厂与强劲的机械,为帝国提供了有力的工业基础。" \ No newline at end of file + district_rg_industrial: "纳米铸造区段" + district_rg_industrial_plural: "纳米铸造区段" + district_rg_industrial_desc: "这个区段中遍布着叮当作响的工厂与强劲的机械,为帝国提供了有力的工业基础。" + + zone_rg_city_housing:0 "纳米居住特化" + zone_rg_city_housing_desc:0 "使用零素方钢和纳米物质,房屋就像凭空出现一样相互堆叠。" + zone_rg_city_housing_plural:0 "纳米居住特化" + zone_rg_city_foundry:0 "纳米复制特化" + zone_rg_city_foundry_desc:0 "使用先进的零素方钢和膨胀螺栓堆叠技术,这些凭空增加的复制仪专注于生产基础资源。" + zone_rg_city_foundry_plural:0 "纳米复制特化" + zone_rg_city_science:0 "纳米研发特化" + zone_rg_city_science_desc:0 "通过缩减研究人员宿舍空间,我们的科研设备数量得以增加。" + zone_rg_city_science_plural:0 "纳米研发特化" + zone_rg_city_alloys:0 "纳米铸造特化" + zone_rg_city_alloys_desc:0 "使用先进的零素方钢和膨胀螺栓堆叠技术,这些凭空增加的复制仪目标是生产尽可能多的纳米机器人与合金。" + zone_rg_city_alloys_plural:0 "纳米铸造特化" \ No newline at end of file diff --git a/realgray-stellaris-mod.code-workspace b/realgray-stellaris-mod.code-workspace index 013423a..202a57e 100644 --- a/realgray-stellaris-mod.code-workspace +++ b/realgray-stellaris-mod.code-workspace @@ -5,6 +5,9 @@ }, { "path": "../../../../../../../Steam/steamapps/common/Stellaris" + }, + { + "path": "../../../../../../../Steam/steamapps/workshop/content/281990/2293827000" } ] } \ No newline at end of file