Changes文件名不知道怎么烂了

This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-09-25 12:15:37 +08:00
parent 503df79a18
commit f8979629b2
5 changed files with 97 additions and 8 deletions

View File

@ -0,0 +1,48 @@
# event:graygoo.499
# 初始化小灰领袖等级
set_variable = {
which = rg_gray_level
value = 1
}
#Country event_target:gray_owner
#存储当前领袖等级
rg_save_gray_leader_level_effect = {
every_owned_leader = {
if = {
###等级检测
limit = {
has_leader_flag = rg_gray_leader
}
#由于目前是leader域所以不能直接导出等级
#导出等级到暂存
export_trigger_value_to_variable = {
trigger = has_skill
variable = rg_gray_level_temp
}
#把leader域中的变量存到country域中
#导入变量
owner = {
set_variable = {
which = rg_gray_level
value = prev.rg_gray_level_temp
}
}
#清理暂存区
clear_variable = rg_gray_level_temp
}
}
}
#Country event_target:gray_owner
#等级导入,把存储的领袖等级赋予到领袖身上
rg_set_varible_as_leader_level_effect = {
random_owned_leader = {
limit = {
has_leader_flag = rg_gray_leader
}
set_skill = owner.rg_gray_level
}
}

View File

@ -3,10 +3,7 @@ produces = {
exists = planet exists = planet
planet = { planet = {
owner = { owner = {
OR = { RG_tradition5_or_gray_owner_trigger = yes
RG_gray_harbitat_active_trigger = yes
has_active_tradition = tr_rg_nanotech_5
}
} }
rg_is_pc_nano = yes rg_is_pc_nano = yes
} }

View File

@ -48,4 +48,11 @@ rg_is_main_species_with_maid_trait_trigger = {
is_same_species = owner_main_species is_same_species = owner_main_species
is_subspecies = owner_main_species is_subspecies = owner_main_species
} }
}
RG_tradition5_or_gray_owner_trigger = {
OR = {
RG_gray_harbitat_active_trigger = yes
has_active_tradition = tr_rg_nanotech_5
}
} }

View File

@ -4,12 +4,24 @@ rg_machine_maid_trait = {
} }
custom_tooltip = rg_machine_maid_trait_effect_tooltip custom_tooltip = rg_machine_maid_trait_effect_tooltip
initial = no initial = no
species_potential_add = { always = no } species_potential_add = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_remove = { always = no } species_possible_remove = { always = no }
species_possible_merge_add = { always = no } species_possible_merge_add = {
species_possible_merge_remove = { always = no } FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
species_possible_merge_remove = {
FROM = {
RG_tradition5_or_gray_owner_trigger = yes
}
}
randomized = no randomized = no
allowed_archetypes = { MACHINE } allowed_archetypes = { ROBOT MACHINE BIOLOGICAL LITHOID }
sorting_priority = 20 sorting_priority = 20
potential_crossbreeding_chance = 1.0 potential_crossbreeding_chance = 1.0

View File

@ -42,6 +42,31 @@ planet_event = {
} }
set_update_modifiers_batch = end set_update_modifiers_batch = end
} }
} option = {
trigger = { has_civic = civic_AG_gray_master }
name = AG_dooropen_master.option
if = {
limit = {
any_country = {
has_civic = civic_AG_gray
}
}
#do nothing
}
else_if = {
limit = {
NOT = {
any_country = {
has_civic = civic_AG_gray
}
}
has_global_flag = has_rg_mod
}
force_remove_civic = civic_AG_gray_master
}
else = {
country_event = { id = graygoo.499 }
}
} }
# Cracked # Cracked