筛查修史山

This commit is contained in:
ProjectKoi-Kalo\Kalo
2024-09-22 20:17:00 +08:00
parent 7f928c6f67
commit b56cf39382
21 changed files with 233 additions and 371 deletions

View File

@@ -130,25 +130,34 @@ country_event = {
orbit_distance = 30
}
}
if = {
limit = {
exists = sector
}
sector = {
leader = {
unassign_leader = this
save_event_target_as = rg_cluster_sector_gov
}
}
}
else = {
root = {
random_owned_leader = {
limit = {
leader_class = official
}
save_event_target_as = rg_cluster_sector_gov
# if = {
# limit = {
# exists = sector
# }
# sector = {
# leader = {
# unassign_leader = this
# save_event_target_as = rg_cluster_sector_gov
# }
# }
# }
# else = {
# root = {
# random_owned_leader = {
# limit = {
# leader_class = official
# }
# save_event_target_as = rg_cluster_sector_gov
# }
# }
# }
root = {
random_owned_leader = {
limit = {
leader_class = official
}
save_event_target_as = rg_cluster_sector_gov
}
}
}
@@ -191,9 +200,9 @@ country_event = {
set_controller = root
set_capital = yes
set_sector_capital = yes
sector = {
assign_leader = event_target:rg_cluster_sector_gov
}
# sector = {
# assign_leader = event_target:rg_cluster_sector_gov
# }
set_name = random
generate_start_buildings_and_districts = yes
}

View File

@@ -988,44 +988,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}
@@ -1044,6 +1027,7 @@ country_event = {
response_text = graygoo.503.b.response
allow = {
hidden_trigger = {
# To prevent exploit
any_owned_army = {
army_type = gray_army
OR = {
@@ -1059,44 +1043,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}
@@ -1115,6 +1082,7 @@ country_event = {
response_text = rg_const.503.response
allow = {
hidden_trigger = {
# To prevent exploit
any_owned_army = {
army_type = gray_army
OR = {
@@ -1130,44 +1098,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}
@@ -1952,8 +1903,8 @@ country_event = {
NOT = {
has_global_flag = rg_ge_gray_portrait_manual_toggle
}
set_global_flag = rg_ge_gray_portrait_manual_toggle
}
set_global_flag = rg_ge_gray_portrait_manual_toggle
}
rg_ge_clear_portrait_select = yes
event_target:gray_owner = {
@@ -1970,8 +1921,8 @@ country_event = {
NOT = {
has_global_flag = rg_ge_gray_portrait_manual_toggle
}
set_global_flag = rg_ge_gray_portrait_manual_toggle
}
set_global_flag = rg_ge_gray_portrait_manual_toggle
}
rg_ge_clear_portrait_select = yes
event_target:gray_owner = {

View File

@@ -54,21 +54,23 @@ country_event = {
has_country_flag = rg_habitat_enabled
}
# exists = event_target:rg_gray_habitat_target
any_owned_planet = {
is_under_colonization = no
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
free_jobs > 0
NOR = {
free_jobs_of_type = {
job = mortal_initiate
value >= 1
PREV = {
any_owned_planet = {
is_under_colonization = no
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
free_jobs > 0
NOR = {
free_jobs_of_type = {
job = mortal_initiate
value >= 1
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
}
}
}
}

View File

@@ -191,68 +191,7 @@ country_event = {
}
}
}
option = {
name = marry_gray
trigger = {
check_variable = {
which = wg_gray_affection
value > @wg_gray_affection_to_lv4
}
NOT = {
has_country_flag = married_gray
}
}
allow = {
OR = {
AND = {
has_wg_special_authority = no
resource_stockpile_compare = {
resource = sr_living_metal
value >= 100
}
resource_stockpile_compare = {
resource = rare_crystals
value >= 1000
}
}
custom_tooltip = {
check_variable = {
which = wsg_rings
value >= 1
}
fail_text = not_enough_engagement_rings
}
}
custom_tooltip = {
fail_text = gray_become_ruler
NOT = {
ruler = {
has_leader_flag = "gray_leader"
}
}
}
}
if = {
limit = {
has_wg_special_authority = yes
}
subtract_variable = {
which = wsg_rings
value = 1
}
}
else = {
add_resource = {
sr_living_metal = -100
rare_crystals = -1000
}
}
hidden_effect = {
country_event = {
id = wg_affection.30000
}
}
}
inline_script = "events/rg_wsg_marry_gray_option_500_scripts"
option = {
name = graygoo.500.d
default_hide_option = yes
@@ -892,44 +831,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}
@@ -945,6 +867,7 @@ country_event = {
response_text = graygoo.503.b.response
allow = {
hidden_trigger = {
# To prevent exploit
any_owned_army = {
army_type = gray_army
OR = {
@@ -960,44 +883,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}
@@ -1013,6 +919,7 @@ country_event = {
response_text = rg_const.503.response
allow = {
hidden_trigger = {
# To prevent exploit
any_owned_army = {
army_type = gray_army
OR = {
@@ -1028,44 +935,27 @@ country_event = {
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
allow = {
hidden_trigger = {
any_owned_army = {
army_type = gray_army
OR = {
exists = planet
AND = {
exists = fleet
fleet = {
num_ships > 0
OR = {
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = planet
}
planet = {
has_ground_combat = no
}
}
}
}
}
custom_tooltip = {
fail_text = graygoo.500.allow.a
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
any_owned_army = {
army_type = gray_army
if = {
limit = {
exists = fleet
}
fleet = {
is_in_combat = no
}
}
}
}