From 5fbb6e2ce4fe5ba6ad47ea5f032d255c7c2441da Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Wed, 18 Sep 2024 17:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E6=80=A7=E7=A9=BA=E9=97=B4=E7=AB=99?= =?UTF-8?q?=E8=A7=84=E6=A8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ownership_limits/RG_ownership_limits.txt | 1 + .../RG_ship_of_size_limits.txt | 13 +++- common/districts/rg_station_districts.txt | 48 ++++++------ common/on_actions/RG_on_actions.txt | 10 +++ .../planet_classes/RG_gray_planet_classes.txt | 2 +- .../scripted_effects/RG_gray_goo_effects.txt | 78 ++++++++++++++++++- events/RG_events.txt | 24 ++++++ .../simp_chinese/RG_l_simp_chinese.yml | 6 +- 8 files changed, 151 insertions(+), 31 deletions(-) diff --git a/common/country_limits/ownership_limits/RG_ownership_limits.txt b/common/country_limits/ownership_limits/RG_ownership_limits.txt index 3a1f44a..092e105 100644 --- a/common/country_limits/ownership_limits/RG_ownership_limits.txt +++ b/common/country_limits/ownership_limits/RG_ownership_limits.txt @@ -18,6 +18,7 @@ default = { ship_of_size_limits = { + RG_graygoo_capitalship_ships_limit RG_gray_juggernaut_ships_limit } } diff --git a/common/country_limits/ship_of_size_limits/RG_ship_of_size_limits.txt b/common/country_limits/ship_of_size_limits/RG_ship_of_size_limits.txt index a98decb..a5323fc 100644 --- a/common/country_limits/ship_of_size_limits/RG_ship_of_size_limits.txt +++ b/common/country_limits/ship_of_size_limits/RG_ship_of_size_limits.txt @@ -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 diff --git a/common/districts/rg_station_districts.txt b/common/districts/rg_station_districts.txt index 27ab1c2..ad21a1e 100644 --- a/common/districts/rg_station_districts.txt +++ b/common/districts/rg_station_districts.txt @@ -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 } } diff --git a/common/on_actions/RG_on_actions.txt b/common/on_actions/RG_on_actions.txt index 8b281f7..1e80740 100644 --- a/common/on_actions/RG_on_actions.txt +++ b/common/on_actions/RG_on_actions.txt @@ -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 diff --git a/common/planet_classes/RG_gray_planet_classes.txt b/common/planet_classes/RG_gray_planet_classes.txt index a1e410a..823ade5 100644 --- a/common/planet_classes/RG_gray_planet_classes.txt +++ b/common/planet_classes/RG_gray_planet_classes.txt @@ -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 diff --git a/common/scripted_effects/RG_gray_goo_effects.txt b/common/scripted_effects/RG_gray_goo_effects.txt index b3f9dc7..8c253e9 100644 --- a/common/scripted_effects/RG_gray_goo_effects.txt +++ b/common/scripted_effects/RG_gray_goo_effects.txt @@ -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 } -} \ No newline at end of file +} + diff --git a/events/RG_events.txt b/events/RG_events.txt index 1d9ebec..0227bc0 100644 --- a/events/RG_events.txt +++ b/events/RG_events.txt @@ -488,6 +488,7 @@ country_event = { 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 = { id = rg_event.200 diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index 050a65b..5a88fe6 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -16,7 +16,7 @@ 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_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_desc:0 "$NAME_Gray$本质上是由千千万万纳米机械所组成的个体,这让她可以辅助星域资源调度和研究资源调度。可不要让她做奇怪的事情哦?" RG_leader_trait_general_gray:0 "§Y纳米机器个体§!" @@ -467,8 +467,8 @@ rg_nothing_desc:0 "" 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_desc:0 "如果能够对L星门建造者的物质与科技进行一次彻底的构成研究,这些强力的纳米机器将极大的提升我们的军备水平。这需要我们获得足够的L星门认知。" rg_ap_nantiematter_tooltip:0 "§Y这表明了一切。§!"