This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-09-24 22:36:39 +08:00
parent ff2afb6a1a
commit 8411e7c7bd
10 changed files with 63 additions and 45 deletions

View File

@ -180,6 +180,16 @@ on_space_battle_won = {
} }
} }
# This = owner of fleet 1 (winner)
# From = owner of fleet 2 (loser)
# FromFrom = fleet 1
# FromFromFrom = fleet 2
# Fires when a combat is finished from a lack of enemies
on_space_battle_over = {
events = {
}
}
# This = owner of fleet 1 (loser) # This = owner of fleet 1 (loser)
# From = owner of fleet 2 (winner) # From = owner of fleet 2 (winner)
# FromFrom = fleet 1 # FromFrom = fleet 1

View File

@ -200,9 +200,6 @@ rg_event_effect_planet2027_spawn_maid_species_non_gray = {
trait = trait_robot_streamlined_protocols trait = trait_robot_streamlined_protocols
trait = trait_robot_luxurious trait = trait_robot_luxurious
} }
effect = {
save_event_target_as = rg_maid_species
}
} }
} }
} }

View File

@ -1423,7 +1423,7 @@ RG_const_auto_build_effect = {
#建造空间站 #建造空间站
find_closest_planet = { find_closest_planet = {
trigger = { trigger = {
id = RG_work_bees_trigger.1 id = RG_work_bees_trigger.11
RG_planet_can_auto_build = yes RG_planet_can_auto_build = yes
} }
found_planet = { found_planet = {
@ -1433,7 +1433,7 @@ RG_const_auto_build_effect = {
duration = $station_time$ duration = $station_time$
} }
effect = { effect = {
id = RG_work_bees_effect.2 id = RG_work_bees_effect.22
#若星系属于母国,则自动建造 #若星系属于母国,则自动建造
if = { if = {
limit = { limit = {

View File

@ -37,3 +37,11 @@ RG_has_gray_cluster_origin_trigger = {
has_country_flag = origin_gray_country #远星之歌 has_country_flag = origin_gray_country #远星之歌
} }
} }
rg_is_main_species_with_maid_trait_trigger = {
has_trait = rg_machine_maid_trait
OR = {
is_same_species = owner_main_species
is_subspecies = owner_main_species
}
}

View File

@ -91,6 +91,7 @@ tr_rg_nanotech_3 = {
tech = tech_object_gray_7 tech = tech_object_gray_7
message = no message = no
} }
rg_create_gray_planetkiller_testship_2 = yes
} }
#Unlocks Starbase Building and Make Nanite World Decision #Unlocks Starbase Building and Make Nanite World Decision
ai_weight = { ai_weight = {

View File

@ -684,6 +684,7 @@ country_event = {
hide_window = yes hide_window = yes
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
exists = fromfrom.leader
OR = { OR = {
fromfrom.leader = { fromfrom.leader = {
has_trait = RG_leader_trait_admiral_nanorebuild_gray has_trait = RG_leader_trait_admiral_nanorebuild_gray
@ -717,8 +718,9 @@ country_event = {
hide_window = yes hide_window = yes
is_triggered_only = yes is_triggered_only = yes
trigger = { trigger = {
exists = fromfromfrom.leader
OR = { OR = {
fromfrom.leader = { fromfromfrom.leader = {
has_trait = RG_leader_trait_admiral_nanorebuild_gray has_trait = RG_leader_trait_admiral_nanorebuild_gray
} }
} }

View File

@ -1193,16 +1193,10 @@ country_event = { # Memorial Valuts Civic Paragon Level Tick / FROM = Leader
} }
immediate = { immediate = {
random_owned_pop = { rg_create_gray_planetkiller_testship_2 = yes
limit = { modify_species = {
is_same_species = root species = root.species
species = { add_trait = rg_machine_maid_trait
NOT = {
has_trait = rg_machine_maid_trait
}
}
}
rg_event_effect_planet2027_spawn_maid_species_non_gray = yes
} }
} }
} }

View File

@ -289,12 +289,6 @@ country_event = {
else = { else = {
random_owned_planet = { random_owned_planet = {
limit = { limit = {
owner = {
RG_gray_harbitat_active_trigger = yes
}
# exists = event_target:rg_gray_habitat_target
PREV = {
any_owned_planet = {
is_under_colonization = no is_under_colonization = no
OR = { OR = {
is_planet_class = pc_rg_grayhabitat is_planet_class = pc_rg_grayhabitat
@ -311,8 +305,7 @@ country_event = {
value >= 1 value >= 1
} }
} }
} # exists = event_target:rg_gray_habitat_target
}
} }
planet_event = { planet_event = {
id = rg_planet.2027 id = rg_planet.2027
@ -388,6 +381,7 @@ planet_event = {
if = { if = {
limit = { limit = {
owner = { owner = {
exists = event_target:gray_owner
is_same_value = event_target:gray_owner is_same_value = event_target:gray_owner
exists = event_target:rg_owner_main_maid_species exists = event_target:rg_owner_main_maid_species
} }
@ -404,16 +398,14 @@ planet_event = {
limit = { limit = {
owner = { owner = {
any_owned_species = { any_owned_species = {
has_trait = rg_machine_maid_trait rg_is_main_species_with_maid_trait_trigger = yes
is_subspecies = owner_main_species
} }
} }
} }
owner = { owner = {
random_owned_species = { random_owned_species = {
limit = { limit = {
has_trait = rg_machine_maid_trait rg_is_main_species_with_maid_trait_trigger = yes
is_subspecies = owner_main_species
} }
save_event_target_as = rg_maid_species save_event_target_as = rg_maid_species
} }
@ -421,10 +413,24 @@ planet_event = {
while = { while = {
count = num_pops count = num_pops
create_pop = { create_pop = {
species = rg_maid_species species = event_target:rg_maid_species
} }
} }
} }
else_if = {
limit = {
owner = {
NOT = {
any_owned_species = {
rg_is_main_species_with_maid_trait_trigger = yes
}
}
}
}
every_owned_pop = {
rg_event_effect_planet2027_spawn_maid_species_non_gray = yes
}
}
} }
# Kill pops generated in excess (e.g. from forbidden jobs) # Kill pops generated in excess (e.g. from forbidden jobs)
if = { if = {

View File

@ -6,7 +6,7 @@
rg_requires_no_nano_ripper: "$TRIGGER_FAIL$Cannot construct in the same system as an existing §Y$rg_nano_ripper_4$§!" rg_requires_no_nano_ripper: "$TRIGGER_FAIL$Cannot construct in the same system as an existing §Y$rg_nano_ripper_4$§!"
rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$Cannot construct in the same system as an ongoing §Y$rg_nano_ripper_4$ construction§!" rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$Cannot construct in the same system as an ongoing §Y$rg_nano_ripper_4$ construction§!"
allow_rg_nano_ripper: "§HUnlock megastructures§!$rg_nano_ripper_4$" allow_rg_nano_ripper: "§HUnlock megastructures§!$rg_nano_ripper_4$"
rg_machine_maid_trait_effect_tooltip: "Each online $pops_with_icon$§! require 0.3 £nanites£$nanites$§Y upkeep§!.\nOn $NAME_Gray$ Owner Country:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!" rg_machine_maid_trait_effect_tooltip: "Each online $pops_with_icon$§! require 0.3 £nanites£$nanites$§Y upkeep§!.\nPop Housing Usage: §G-90%§!\nSpecies Minimum Habitability: §G+25%§!\nOn $NAME_Gray$ Owner Country:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
concept_rg_scion: "$preset_rg_scion$" concept_rg_scion: "$preset_rg_scion$"
concept_rg_scion_desc: "$preset_rg_scion_desc$" concept_rg_scion_desc: "$preset_rg_scion_desc$"
concept_rg_gray: "$NAME_Gray$" concept_rg_gray: "$NAME_Gray$"

View File

@ -6,7 +6,7 @@
rg_requires_no_nano_ripper: "$TRIGGER_FAIL$无法与现存的§Y$rg_nano_ripper_4$§!在同一个恒星系建造" 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$§!在同一星系建造" rg_requires_no_nano_ripper_construction: "$TRIGGER_FAIL$无法与§Y在建的$rg_nano_ripper_4$§!在同一星系建造"
allow_rg_nano_ripper: "§H解锁巨型结构§!$rg_nano_ripper_4$" allow_rg_nano_ripper: "§H解锁巨型结构§!$rg_nano_ripper_4$"
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%§!" rg_machine_maid_trait_effect_tooltip: "每个在线的$pops_with_icon$§!产生0.3£nanites£$nanites$§Y维护费§!。\n人口住房使用§G-90%§!\n物种最低宜居性§G+25%§!\n在$NAME_Gray$国家工作时:$TABBED_NEW_LINE$$mod_planet_jobs_produces_mult$§G+10%§!"
concept_rg_scion: "$preset_rg_scion$" concept_rg_scion: "$preset_rg_scion$"
concept_rg_scion_desc: "$preset_rg_scion_desc$" concept_rg_scion_desc: "$preset_rg_scion_desc$"
concept_rg_gray: "$NAME_Gray$" concept_rg_gray: "$NAME_Gray$"