From f6f1699772105a1731a96ca8121db183d19182ab Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Mon, 23 Sep 2024 17:59:20 +0800 Subject: [PATCH] =?UTF-8?q?Changes=20=E7=BA=B3=E7=B1=B3=E6=92=95=E8=A3=82?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/deposits/RG_deposits.txt | 79 +++ common/megastructures/RG_habitats.txt | 8 +- common/megastructures/RG_nano_ripper.txt | 659 ++++++++++++++++++ .../RG_megastructure_effects.txt | 160 +++++ .../RG_megastructure_triggers.txt | 21 + .../static_modifiers/RG_static_modifiers.txt | 22 + events/RG_planet_event.txt | 237 +++++++ .../simp_chinese/RG_l_simp_chinese.yml | 38 +- 8 files changed, 1221 insertions(+), 3 deletions(-) create mode 100644 common/deposits/RG_deposits.txt create mode 100644 common/megastructures/RG_nano_ripper.txt create mode 100644 common/scripted_triggers/RG_megastructure_triggers.txt diff --git a/common/deposits/RG_deposits.txt b/common/deposits/RG_deposits.txt new file mode 100644 index 0000000..7bb2895 --- /dev/null +++ b/common/deposits/RG_deposits.txt @@ -0,0 +1,79 @@ + +# Nanite Harvester Deposits +d_nanite_ripper_deposit_1 = { + resources = { + category = orbital_mining_deposits + produces = { + nanites = 0.1 + } + } + station = shipclass_mining_station + is_for_colonizable = no + + potential = { + can_have_mineral_deposits = yes + } + + drop_weight = { + weight = 0 + } +} + +d_nanite_ripper_deposit_2 = { + resources = { + category = orbital_mining_deposits + produces = { + nanites = 1.6 + } + } + station = shipclass_mining_station + is_for_colonizable = no + + potential = { + can_have_mineral_deposits = yes + } + + drop_weight = { + weight = 0 + } +} + +# Nanite Harvester Deposits +d_nanite_ripper_deposit_3 = { + resources = { + category = orbital_mining_deposits + produces = { + nanites = 5.8 + } + } + station = shipclass_mining_station + is_for_colonizable = no + + potential = { + can_have_mineral_deposits = yes + } + + drop_weight = { + weight = 0 + } +} + + +d_nanite_ripper_deposit_4 = { + resources = { + category = orbital_mining_deposits + produces = { + nanites = 25.6 + } + } + station = shipclass_mining_station + is_for_colonizable = no + + potential = { + can_have_mineral_deposits = yes + } + + drop_weight = { + weight = 0 + } +} \ No newline at end of file diff --git a/common/megastructures/RG_habitats.txt b/common/megastructures/RG_habitats.txt index 8adbabe..142532e 100644 --- a/common/megastructures/RG_habitats.txt +++ b/common/megastructures/RG_habitats.txt @@ -20,7 +20,7 @@ RG_habitat_central_complex = { hide_name = yes show_in_outliner = no entity_offset = { x = 7 y = -7 } - build_time = 360 + build_time = @central_orbital_build_time resources = { category = megastructures_habitat @@ -30,10 +30,14 @@ RG_habitat_central_complex = { } } + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + construction_blocks_and_blocked_by = self_type potential = { - has_tradition = tr_rg_nanotech_2 + always = yes # OR = { # has_technology = tech_habitat_1 # has_civic = civic_diadochi diff --git a/common/megastructures/RG_nano_ripper.txt b/common/megastructures/RG_nano_ripper.txt new file mode 100644 index 0000000..f3a7063 --- /dev/null +++ b/common/megastructures/RG_nano_ripper.txt @@ -0,0 +1,659 @@ +# orbital Arc Furnace First Stage +rg_nano_ripper_1 = { + entity = "arc_crucible_stage_1_entity" + construction_entity = "arc_crucible_stage_1_entity" + construction_scale = 1.02 #to avoid z-fighting of consrucion entity with the base entity + portrait = "GFX_megastructure_arc_furnace_background" + place_entity_on_planet_plane = yes + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + #show_in_outliner = no + use_planet_resource = yes + scales_with_planet = yes + build_time = 360 # 1 year + resources = { + category = megastructures + cost = { + nanites = 500 + unity = 500 + } + + upkeep = { + energy = 20 + } + } + + construction_blocks_and_blocked_by = self_type + build_system_tooltip = arc_furnace_tooltip + + dismantle_cost = { + category = megastructures + cost = { + energy = 500 + } + } + + dismantle_time = 360 + + dismantle_potential = { + always = yes + } + + dismantle_possible = { + can_dismantle_megastructure = { + TECH = tech_orbital_arc_furnace + } + } + + on_dismantle_complete = { + every_system_planet = { + limit = { + has_modifier = rg_nano_ripper_1_mod + } + rg_dismantle_nano_ripper_effect = yes + } + random_system_planet = { + limit = { + has_planet_flag = rg_has_nano_ripper + } + set_planet_entity = { entity = pc_gray_goo } + remove_planet_flag = has_megastructure + remove_planet_flag = rg_has_nano_ripper + } + from = { + add_resource = { + nanites = 500 + mult = modifier:megastructure_dismantle_refund_mult + } + # if = { + # limit = { + # check_variable = { + # which = arc_furnace_counter + # value >= 1 + # } + # } + # change_variable = { + # which = arc_furnace_counter + # value = -1 + # } + # } + } + } + + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + + potential = { + always = yes + } + + possible = { + hidden_trigger = { + exists = starbase + } + custom_tooltip = { + fail_text = "requires_inside_border" + is_inside_border = from + } + custom_tooltip = { + fail_text = "requires_surveyed_system" + NOT = { + any_system_planet = { + is_surveyed = { + who = prev.from + status = no + } + } + } + } + custom_tooltip = { + fail_text = "requires_no_dyson_sphere" + system_has_dyson_sphere = no + } + custom_tooltip = { + fail_text = "requires_no_dyson_sphere_construction" + if = { + limit = { + system_has_dyson_sphere = no + } + NOT = { + solar_system = { + has_star_flag = dyson_sphere_construction + } + } + } + } + custom_tooltip = { + fail_text = "requires_no_arc_furnace" + system_has_arc_furnace = no + } + custom_tooltip = { + fail_text = "rg_requires_no_nano_ripper" + rg_system_has_nano_ripper = no + } + # custom_tooltip = { + # fail_text = "requires_less_than_x_arc_furnaces" + # from = { + # check_variable = { + # which = arc_furnace_counter + # value <= value:arc_furnace_limit + # } + # } + # } + } + + placement_rules = { + planet_possible = { + custom_tooltip = { + fail_text = "requires_no_anomaly" + NOT = { has_anomaly = yes } + } + rg_is_pc_nano = yes + custom_tooltip = { + fail_text = "requires_no_existing_megastructure" + NOR = { + has_planet_flag = megastructure + has_planet_flag = has_megastructure + } + } + if = { + limit = { + from = { is_ai = yes } + } + solar_system = { + count_system_planet = { + count >= 8 + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + } + } + } + } + } + + country_modifier = { + custom_tooltip = rg_nano_ripper_1_mod_tooltip + } + + # root = system + # from = country + ai_weight = { + factor = 5 + + modifier = { + factor = 0.1 + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } + } + + modifier = { + factor = 0.1 + any_neighbor_system = { + exists = owner + NOT = { + owner = { is_same_value = from } + } + } + } + } + + on_build_start = { + set_star_flag = arc_furnace_construction + } + on_build_cancel = { + remove_star_flag = arc_furnace_construction + } + on_build_complete = { + remove_star_flag = arc_furnace_construction + fromfrom.planet = { + set_planet_flag = has_megastructure + set_planet_flag = rg_has_nano_ripper + if = { + limit = { has_orbital_station = yes } + orbital_station = { + dismantle = yes + } + } + set_planet_entity = { entity = invisible_turret_entity } + } + from = { + country_event = { + id = rg_planet.1000 + } + # country_event = { + # id = machine_age.3405 #2nd Arc Furnace built + # } + } + } +} + +# orbital Arc Furnace Second Stage +rg_nano_ripper_2 = { + entity = "arc_crucible_stage_2_entity" + construction_entity = "arc_crucible_stage_2_entity" + construction_scale = 1.02 #to avoid z-fighting of consrucion entity with the base entity + portrait = "GFX_megastructure_arc_furnace_background" + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + #show_in_outliner = no + use_planet_resource = yes + scales_with_planet = yes + build_time = 1080 # 3 years + resources = { + category = megastructures + cost = { + nanites = 1000 + unity = 1000 + } + + upkeep = { + energy = 40 + } + } + + construction_blocks_and_blocked_by = none + + dismantle_cost = { + category = megastructures + cost = { + energy = 1000 + } + } + + dismantle_time = 360 + + dismantle_potential = { + always = yes + } + + dismantle_possible = { + can_dismantle_megastructure = { + TECH = tech_orbital_arc_furnace + } + } + + on_dismantle_complete = { + every_system_planet = { + limit = { + has_modifier = rg_nano_ripper_2_mod + } + rg_dismantle_nano_ripper_effect = yes + } + random_system_planet = { + limit = { + has_planet_flag = rg_has_nano_ripper + } + set_planet_entity = { entity = pc_gray_goo } + remove_planet_flag = has_megastructure + remove_planet_flag = rg_has_nano_ripper + } + from = { + add_resource = { + nanites = 1000 + mult = modifier:megastructure_dismantle_refund_mult + } + # if = { + # limit = { + # check_variable = { + # which = arc_furnace_counter + # value >= 1 + # } + # } + # change_variable = { + # which = arc_furnace_counter + # value = -1 + # } + # } + } + } + + upgrade_from = { + rg_nano_ripper_1 + } + + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + + potential = { + always = yes + } + + + country_modifier = { + custom_tooltip = rg_nano_ripper_2_mod_tooltip + } + + on_build_start = { + set_star_flag = arc_furnace_construction + } + on_build_cancel = { + remove_star_flag = arc_furnace_construction + } + on_build_complete = { + remove_star_flag = arc_furnace_construction + from = { country_event = { id = rg_planet.1005 } } + } +} + +# Orbital arc furnace Third Stage +rg_nano_ripper_3 = { + entity = "arc_crucible_stage_3_entity" + construction_entity = "arc_crucible_stage_3_entity" + construction_scale = 1.02 #to avoid z-fighting of consrucion entity with the base entity + portrait = "GFX_megastructure_arc_furnace_background" + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + place_entity_on_planet_plane = yes + #show_in_outliner = no + use_planet_resource = yes + scales_with_planet = yes + build_time = 1080 # 3 years + resources = { + category = megastructures + cost = { + nanites = 1500 + unity = 2000 + } + + upkeep = { + energy = 80 + } + } + + construction_blocks_and_blocked_by = none + + dismantle_cost = { + category = megastructures + cost = { + energy = 1500 + } + } + + dismantle_time = 360 + + dismantle_potential = { + always = yes + } + + dismantle_possible = { + can_dismantle_megastructure = { + TECH = tech_orbital_arc_furnace + } + } + + on_dismantle_complete = { + every_system_planet = { + limit = { + has_modifier = rg_nano_ripper_3_mod + } + rg_dismantle_nano_ripper_effect = yes + } + random_system_planet = { + limit = { + has_planet_flag = rg_has_nano_ripper + } + set_planet_entity = { entity = pc_gray_goo } + remove_planet_flag = has_megastructure + remove_planet_flag = rg_has_nano_ripper + } + from = { + add_resource = { + nanites = 1500 + mult = modifier:megastructure_dismantle_refund_mult + } + # if = { + # limit = { + # check_variable = { + # which = arc_furnace_counter + # value >= 1 + # } + # } + # change_variable = { + # which = arc_furnace_counter + # value = -1 + # } + # } + } + } + + upgrade_from = { + rg_nano_ripper_2 + } + + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + + potential = { + always = yes + } + + + country_modifier = { + custom_tooltip = rg_nano_ripper_3_mod_tooltip + } + + on_build_start = { + set_star_flag = arc_furnace_construction + } + on_build_cancel = { + remove_star_flag = arc_furnace_construction + } + on_build_complete = { + remove_star_flag = arc_furnace_construction + from = { country_event = { id = rg_planet.1010 } } + } +} + +# Orbital arc furnace Final Stage +rg_nano_ripper_4 = { + entity = "arc_crucible_stage_4_entity" + construction_entity = "arc_crucible_stage_4_entity" + construction_scale = 1.02 #to avoid z-fighting of consrucion entity with the base entity + portrait = "GFX_megastructure_arc_furnace_background" + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + place_entity_on_planet_plane = yes + show_in_outliner = no + use_planet_resource = yes + scales_with_planet = yes + build_time = 1080 # 3 years + resources = { + category = megastructures + cost = { + nanites = 2000 + unity = 4000 + } + + upkeep = { + energy = 100 + } + } + + construction_blocks_and_blocked_by = none + + dismantle_cost = { + category = megastructures + cost = { + energy = 2000 + } + } + + dismantle_time = 360 + + dismantle_potential = { + always = yes + } + + dismantle_possible = { + can_dismantle_megastructure = { + TECH = tech_orbital_arc_furnace + } + } + + on_dismantle_complete = { + every_system_planet = { + limit = { + has_modifier = rg_nano_ripper_4_mod + } + rg_dismantle_nano_ripper_effect = yes + } + random_system_planet = { + limit = { + has_planet_flag = rg_has_nano_ripper + } + set_planet_entity = { entity = pc_gray_goo } + remove_planet_flag = has_megastructure + remove_planet_flag = rg_has_nano_ripper + } + from = { + add_resource = { + nanites = 2000 + mult = modifier:megastructure_dismantle_refund_mult + } + # if = { + # limit = { + # check_variable = { + # which = arc_furnace_counter + # value >= 1 + # } + # } + # change_variable = { + # which = arc_furnace_counter + # value = -1 + # } + # } + } + } + + upgrade_from = { + rg_nano_ripper_3 + } + + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + + potential = { + always = yes + } + + + country_modifier = { + custom_tooltip = rg_nano_ripper_4_mod_tooltip + } + + on_build_start = { + set_star_flag = arc_furnace_construction + } + on_build_cancel = { + remove_star_flag = arc_furnace_construction + } + on_build_complete = { + remove_star_flag = arc_furnace_construction + from = { country_event = { id = rg_planet.1015 } } + # if = { + # limit = { + # any_system_megastructure = { + # is_megastructure_type = dyson_swarm_3 + # } + # } + # from = { + # set_country_flag = burning_brightly_achievement + # } + # } + } +} +# Orbital Arc Furnace Destroyed +rg_nano_ripper_destroyed = { + entity = "arc_crucible_destroyed_entity" + portrait = "GFX_megastructure_construction_background" + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + place_entity_on_planet_plane = yes + show_in_outliner = no + scales_with_planet = yes + + potential = { + always = no + } +} + +# Orbital arc furnace Restored Stage +rg_nano_ripper_restored = { + entity = "arc_crucible_stage_4_entity" + construction_entity = "arc_crucible_stage_4_entity" + construction_scale = 1.02 #to avoid z-fighting of consrucion entity with the base entity + portrait = "GFX_megastructure_arc_furnace_background" + entity_offset = { x = 0 y = 0 } + rotate_to_center = no + scale_offset = yes + place_entity_on_planet_plane = yes + show_in_outliner = no + use_planet_resource = yes + scales_with_planet = yes + build_time = 720 # 2 years + resources = { + category = megastructures + cost = { + nanites = 3000 + unity = 2000 + } + + upkeep = { + energy = 100 + } + } + + construction_blocks_and_blocked_by = none + + upgrade_from = { + rg_nano_ripper_destroyed + } + + prerequisites = { + has_tradition = tr_rg_nanotech_2 + } + + potential = { + always = yes + } + + country_modifier = { + custom_tooltip = rg_nano_ripper_4_mod_tooltip + } + + on_build_start = { + set_star_flag = arc_furnace_construction + } + on_build_cancel = { + remove_star_flag = arc_furnace_construction + } + on_build_complete = { + remove_star_flag = arc_furnace_construction + from = { country_event = { id = rg_planet.1016 } } + fromfrom.planet = { + set_planet_entity = { entity = invisible_turret_entity } + } + # if = { + # limit = { + # any_system_megastructure = { + # is_megastructure_type = dyson_swarm_3 + # } + # } + # from = { + # set_country_flag = burning_brightly_achievement + # } + # } + } +} diff --git a/common/scripted_effects/RG_megastructure_effects.txt b/common/scripted_effects/RG_megastructure_effects.txt index 0d86538..617d03e 100644 --- a/common/scripted_effects/RG_megastructure_effects.txt +++ b/common/scripted_effects/RG_megastructure_effects.txt @@ -65,4 +65,164 @@ spawn_rg_oribital_ring_effect = { From = { remove_ship_design = last_created_design } +} + +rg_nano_ripper_update_orbital_effect = { + # Find the orbital and habitat complex and save them as event targets + if = { + limit = { + any_fleet_in_orbit = { + OR = { + is_ship_size = major_orbital_resource + is_ship_size = minor_orbital_resource + } + } + } + + random_fleet_in_orbit = { + limit = { + OR = { + is_ship_size = major_orbital_resource + is_ship_size = minor_orbital_resource + } + } + save_event_target_as = target_orbital + } + + # solar_system = { + # random_system_planet = { + # limit = { + # has_planet_flag = habitat + # } + # save_event_target_as = target_habitat + # } + # } + + last_added_deposit = { + event_target:target_orbital = { + set_fleet_flag = mining_orbital + } + #switch = { + # trigger = is_deposit_type + # # Minerals + # d_minerals_1 = { + # event_target:target_orbital = { + # set_fleet_flag = mining_orbital + # } + # } + # Alloys + # d_alloys_1 = { + # event_target:target_orbital = { + # set_fleet_flag = mining_orbital + # } + # event_target:target_habitat = { + # add_deposit = d_hab_alloy_1 + # last_added_deposit = { + # set_deposit_flag = planet@event_target:target_planet + # } + # } + # } + #} + } + } +} + +rg_dismantle_nano_ripper_effect = { + # Find the orbital and habitat complex and save them as event targets + if = { + limit = { + any_fleet_in_orbit = { + OR = { + is_ship_size = major_orbital_resource + is_ship_size = minor_orbital_resource + } + } + } + + random_fleet_in_orbit = { + limit = { + OR = { + is_ship_size = major_orbital_resource + is_ship_size = minor_orbital_resource + } + } + save_event_target_as = target_orbital + } + + # solar_system = { + # random_system_planet = { + # limit = { + # has_planet_flag = habitat + # } + # save_event_target_as = target_habitat + # } + # } + } + + switch = { + trigger = has_modifier + rg_nano_ripper_1_mod = { + remove_deposit = d_nanite_ripper_deposit_1 + remove_modifier = rg_nano_ripper_1_mod + } + rg_nano_ripper_2_mod = { + remove_deposit = d_nanite_ripper_deposit_1 + remove_deposit = d_nanite_ripper_deposit_2 + remove_modifier = rg_nano_ripper_2_mod + } + rg_nano_ripper_3_mod = { + remove_deposit = d_nanite_ripper_deposit_1 + remove_deposit = d_nanite_ripper_deposit_2 + remove_deposit = d_nanite_ripper_deposit_3 + remove_modifier = rg_nano_ripper_3_mod + # if = { + # limit = { + # exists = event_target:target_orbital + # } + # event_target:target_habitat = { + # random_deposit = { + # limit = { + # is_deposit_type = d_hab_alloy_1 + # has_deposit_flag = planet@event_target:target_planet + # } + # remove_deposit = yes + # } + # } + # } + } + rg_nano_ripper_4_mod = { + remove_deposit = d_nanite_ripper_deposit_1 + remove_deposit = d_nanite_ripper_deposit_2 + remove_deposit = d_nanite_ripper_deposit_3 + remove_deposit = d_nanite_ripper_deposit_4 + remove_modifier = rg_nano_ripper_4_mod + # if = { + # limit = { + # exists = event_target:target_orbital + # } + # event_target:target_habitat = { + # while = { + # count = 2 + # random_deposit = { + # limit = { + # is_deposit_type = d_hab_alloy_1 + # has_deposit_flag = planet@event_target:target_planet + # } + # remove_deposit = yes + # } + # } + # } + # } + } + } + + if = { + limit = { + has_orbital_mining_deposit = no + exists = event_target:target_orbital + } + event_target:target_orbital = { + remove_fleet_flag = mining_orbital + } + } } \ No newline at end of file diff --git a/common/scripted_triggers/RG_megastructure_triggers.txt b/common/scripted_triggers/RG_megastructure_triggers.txt new file mode 100644 index 0000000..a7b1fcc --- /dev/null +++ b/common/scripted_triggers/RG_megastructure_triggers.txt @@ -0,0 +1,21 @@ +rg_is_pc_nano = { + OR = { + is_planet_class = pc_nanotech + is_planet_class = pc_gray_goo + } +} + +rg_system_has_nano_ripper = { + solar_system = { + any_system_megastructure = { + OR = { + is_megastructure_type = rg_nano_ripper_1 + is_megastructure_type = rg_nano_ripper_2 + is_megastructure_type = rg_nano_ripper_3 + is_megastructure_type = rg_nano_ripper_4 + is_megastructure_type = rg_nano_ripper_destroyed + is_megastructure_type = rg_nano_ripper_restored + } + } + } +} diff --git a/common/static_modifiers/RG_static_modifiers.txt b/common/static_modifiers/RG_static_modifiers.txt index 9f89a6a..a0000ea 100644 --- a/common/static_modifiers/RG_static_modifiers.txt +++ b/common/static_modifiers/RG_static_modifiers.txt @@ -120,4 +120,26 @@ skill_rg_nanite_leader_background_planet_governor = { planet_amenities_add = 2 planet_stability_add = 0.5 planet_jobs_upkeep_mult = -0.01 +} + +# Arc Furnace + +rg_nano_ripper_1_mod = { + station_gatherers_produces_mult = @arc_furnace_1_mod_value + icon = "gfx/interface/icons/planet_modifiers/pm_arc_furnace.dds" +} + +rg_nano_ripper_2_mod = { + station_gatherers_produces_mult = @arc_furnace_2_mod_value + icon = "gfx/interface/icons/planet_modifiers/pm_arc_furnace.dds" +} + +rg_nano_ripper_3_mod = { + station_gatherers_produces_mult = @arc_furnace_3_mod_value + icon = "gfx/interface/icons/planet_modifiers/pm_arc_furnace.dds" +} + +rg_nano_ripper_4_mod = { + station_gatherers_produces_mult = @arc_furnace_4_mod_value + icon = "gfx/interface/icons/planet_modifiers/pm_arc_furnace.dds" } \ No newline at end of file diff --git a/events/RG_planet_event.txt b/events/RG_planet_event.txt index 6c79992..55e5de8 100644 --- a/events/RG_planet_event.txt +++ b/events/RG_planet_event.txt @@ -1,4 +1,241 @@ namespace = rg_planet +# Furnace Lvl 1 +country_event = { + id = rg_planet.1000 + hide_window = yes + location = FROM + + is_triggered_only = yes + + after = { + fromfromfrom = { + solar_system = { + every_system_planet = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + save_event_target_as = target_planet + remove_trade_deposits = yes + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + add_modifier = { + modifier = rg_nano_ripper_1_mod + days = -1 + } + } + } + } + } +} + +# Furnace Lvl 2 +country_event = { + id = rg_planet.1005 + hide_window = yes + location = FROM + + is_triggered_only = yes + + after = { + fromfromfrom = { + solar_system = { + every_system_planet = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + save_event_target_as = target_planet + remove_trade_deposits = yes + add_deposit = d_nanite_ripper_deposit_2 + rg_nano_ripper_update_orbital_effect = yes + remove_modifier = rg_nano_ripper_1_mod + add_modifier = { + modifier = rg_nano_ripper_2_mod + days = -1 + } + } + } + } + } +} + +# Furnace Lvl 3 +country_event = { + id = rg_planet.1010 + hide_window = yes + location = FROM + + is_triggered_only = yes + + after = { + fromfromfrom = { + solar_system = { + every_system_planet = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + save_event_target_as = target_planet + remove_trade_deposits = yes + add_deposit = d_nanite_ripper_deposit_3 + rg_nano_ripper_update_orbital_effect = yes + remove_modifier = rg_nano_ripper_2_mod + add_modifier = { + modifier = rg_nano_ripper_3_mod + days = -1 + } + } + } + } + } +} +# Furnace Lvl 4 +country_event = { + id = rg_planet.1015 + hide_window = yes + location = FROM + + is_triggered_only = yes + + after = { + fromfromfrom = { + solar_system = { + every_system_planet = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + save_event_target_as = target_planet + remove_trade_deposits = yes + add_deposit = d_nanite_ripper_deposit_4 + rg_nano_ripper_update_orbital_effect = yes + remove_modifier = rg_nano_ripper_3_mod + add_modifier = { + modifier = rg_nano_ripper_4_mod + days = -1 + } + } + } + } + } +} + +# Furnace Restored +country_event = { + id = rg_planet.1016 + hide_window = yes + location = FROM + + is_triggered_only = yes + + after = { + fromfromfrom = { + solar_system = { + every_system_planet = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + save_event_target_as = target_planet + remove_trade_deposits = yes + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_2 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_3 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_4 + rg_nano_ripper_update_orbital_effect = yes + remove_modifier = rg_nano_ripper_3_mod + add_modifier = { + modifier = rg_nano_ripper_4_mod + days = -1 + } + } + } + } + } +} + +ship_event = { + id = rg_planet.1017 + hide_window = yes + + is_triggered_only = yes + + trigger = { + from = { + OR = { + has_modifier = rg_nano_ripper_1_mod + has_modifier = rg_nano_ripper_2_mod + has_modifier = rg_nano_ripper_3_mod + has_modifier = rg_nano_ripper_4_mod + } + } + } + + immediate = { + from = { + if = { + limit = { + NOT = { has_deposit_for = shipclass_research_station } + is_star = no + is_astral_scar = no + colonizable_planet = no + } + remove_trade_deposits = yes + switch = { + trigger = has_modifier + rg_nano_ripper_1_mod = { + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + } + rg_nano_ripper_2_mod = { + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_2 + rg_nano_ripper_update_orbital_effect = yes + } + rg_nano_ripper_3_mod = { + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_2 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_3 + rg_nano_ripper_update_orbital_effect = yes + } + rg_nano_ripper_4_mod = { + add_deposit = d_nanite_ripper_deposit_1 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_2 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_3 + rg_nano_ripper_update_orbital_effect = yes + add_deposit = d_nanite_ripper_deposit_4 + rg_nano_ripper_update_orbital_effect = yes + } + } + } + else = { + remove_modifier = rg_nano_ripper_1_mod + remove_modifier = rg_nano_ripper_2_mod + remove_modifier = rg_nano_ripper_3_mod + remove_modifier = rg_nano_ripper_4_mod + } + } + } +} ##### Virtual Ascension Events ### Create the Unemployed ### Country scope gatekeeper diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index b142539..fd30c83 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -50,7 +50,7 @@ tradition_rg_nanotech_delayed: "我们是一股永不停息的洪流,吞天食地、势不可挡。一切都将融入我们,我们将形成一切。" tr_rg_nanotech_adopt_modifier_desc: "§Y$AVAILABLE_STARBASE_BUILDINGS$§!$sm_nanite_harvester$" tr_rg_nanotech_1_modifier_desc: "§Y$AVAILABLE_BUILDINGS$§!$building_rg_nanolab_1$\n§Y$AVAILABLE_BUILDINGS$§!$building_rg_nanolab_2$\n§Y$AVAILABLE_BUILDINGS$§!$building_rg_nanotech_cauldron$\n§Y$AVAILABLE_BUILDINGS$§!$building_rg_nanite_transmuter$\n" - tr_rg_nanotech_2_modifier_desc: "§I解锁巨型结构:§!§Y$RG_habitat_central_complex$§!\n" + tr_rg_nanotech_2_modifier_desc: "§I解锁巨型结构:§!§Y$RG_habitat_central_complex$§!\n§I解锁巨型结构:§!§Y$rg_nano_ripper_4$§!:可从恒星系内所有行星、卫星和小行星上产出大量的£nanites£$nanites$" tr_rg_nanotech_3_modifier_desc: "§Y解锁行星决议:§!$decision_rg_nanotech_swarm_consume_world$\n§Y解锁巨像武器:§!$tech_object_gray_7$:可将星球转变为可殖民的§Y$pc_nanotech$§!" tr_rg_nanotech_4_modifier_desc: "§Y解锁飞升:$rg_ap_nantiematter$\n解锁舰船:§!$RG_graygoo_destroyer$\n§Y获得遗珍:§!§Y$rg_tempest_invocator$§!:允许你召唤宇宙风暴:§Y$graytempest_storm$§!" tr_rg_nanotech_5_modifier_desc: "§Y解锁净化方式:$purge_nanophage$§!:将非帝国主体人口同化为我们的一部分。\n所有帝国人口将获得§Y纳米特质§!:人口需要£nanites£§Y$nanites$§!维护费。\n每个类型为§Y$pc_nanotech$§!或§Y$pc_rg_grayhabitat$§!的殖民地都将瞬间创建§Y纳米化$pops_with_icon$§!以填补§Y£building£建筑§!和§Y£district£区划§!的£job£岗位需求。" @@ -129,6 +129,42 @@ district_rg_industrial: "工业区段" district_rg_industrial_plural: "工业区段" district_rg_industrial_desc: "这个区段中遍布着叮当作响的工厂与强劲的机械,为帝国提供了有力的工业基础。" + rg_nano_ripper_1: "$rg_nano_ripper_4$:灰色雾环" + rg_nano_ripper_1_DESC: "$rg_nano_ripper_1_MEGASTRUCTURE_DETAILS$" + rg_nano_ripper_2: "$rg_nano_ripper_4$:洪流天梯" + rg_nano_ripper_2_DESC: "$rg_nano_ripper_1_MEGASTRUCTURE_DETAILS$" + rg_nano_ripper_3: "$rg_nano_ripper_4$:核心炼化" + rg_nano_ripper_3_DESC: "$rg_nano_ripper_1_MEGASTRUCTURE_DETAILS$" + rg_nano_ripper_4: "§Y纳米撕裂器§!" + rg_nano_ripper_4_DESC: "$rg_nano_ripper_1_MEGASTRUCTURE_DETAILS$" + rg_nano_ripper_1_MEGASTRUCTURE_DETAILS: "§R需要在§!§Y$pc_gray_goo$§!§R或§!§Y$pc_nanotech$§!§R上建造。§!\n使用大规模部署的纳米机器,§Y$rg_nano_ripper_4$§!以星球为原料,高效转化成我们所需要的£nanites£$nanites$。请$LITHOID$物种在家长陪同下观看。" + rg_nano_ripper_1_mod: "$rg_nano_ripper_1$" + rg_nano_ripper_1_mod_desc: "$rg_nano_ripper_1_DESC$" + rg_nano_ripper_1_mod_tooltip: "在恒星系内所有行星、卫星和小行星上转换出规模§Y0.1§!£nanites£的$nanites$$NEW_LINE$§E$SYSTEM_MODIFIER$§!:$TABBED_NEW_LINE$$mod_station_gatherers_produces_mult$:§G+$@arc_furnace_1_mod_value|%0$§!" + rg_nano_ripper_2_mod: "$rg_nano_ripper_2$" + rg_nano_ripper_2_mod_desc: "$rg_nano_ripper_2_DESC$" + rg_nano_ripper_2_mod_tooltip: "将转换出的$nanites$提升至规模§Y1.7§!£nanites£$NEW_LINE$§E$SYSTEM_MODIFIER$§!:$TABBED_NEW_LINE$$mod_station_gatherers_produces_mult$:§G+$@arc_furnace_2_mod_value|%0$§!" + rg_nano_ripper_3_mod: "$rg_nano_ripper_3$" + rg_nano_ripper_3_mod_desc: "$rg_nano_ripper_3_DESC$" + rg_nano_ripper_3_mod_tooltip: "将转换出的$nanites$提升至规模§Y7.5§!£nanites£$NEW_LINE$§E$SYSTEM_MODIFIER$§!:$TABBED_NEW_LINE$$mod_station_gatherers_produces_mult$:§G+$@arc_furnace_3_mod_value|%0$§!" + rg_nano_ripper_4_mod: "$rg_nano_ripper_4$" + rg_nano_ripper_4_mod_desc: "$rg_nano_ripper_4_DESC$" + rg_nano_ripper_4_mod_tooltip: "将转换出的$nanites$提升至规模§Y33.1§!£nanites£$NEW_LINE$§E$SYSTEM_MODIFIER$§!:$TABBED_NEW_LINE$$mod_station_gatherers_produces_mult$:§G+$@arc_furnace_4_mod_value|%0$§!" + rg_nano_ripper_destroyed: "被毁的$rg_nano_ripper_4$" + rg_nano_ripper_destroyed_DESC: "$rg_nano_ripper_4$的残骸" + rg_nano_ripper_destroyed_MEGASTRUCTURE_DETAILS: "$rg_nano_ripper_1_MEGASTRUCTURE_DETAILS$" + rg_nano_ripper_restored: "$rg_nano_ripper_4$" + rg_nano_ripper_restored_DESC: "$rg_nano_ripper_4_DESC$" + tech_rg_rg_nano_ripper: "$rg_nano_ripper_4$" + tech_rg_rg_nano_ripper_desc: "$rg_nano_ripper_4_DESC$" + rg_requires_no_nano_ripper: "$TRIGGER_FAIL$无法与现存的§Y$rg_nano_ripper_4$§!在同一个恒星系建造" + rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$无法与§Y在建的$rg_nano_ripper_4$§!在同一星系建造" + allow_rg_arc_furnace: "§H解锁巨型结构:§!$rg_nano_ripper_4$" + + d_nanite_ripper_deposit_1: "£nanites£ +0.1" + d_nanite_ripper_deposit_2: "£nanites£ +1.6" + d_nanite_ripper_deposit_3: "£nanites£ +5.8" + d_nanite_ripper_deposit_4: "£nanites£ +25.6" rg_machine_maid_trait_effect_tooltip: "每个在线的$pops_with_icon$§!产生0.3£nanites£$nanites$§Y维护费§!。\n在$NAME_Gray$国家工作时:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$:§G+10%§!"