zc
This commit is contained in:
@@ -134,7 +134,7 @@ rg_global_gray_location_check = {
|
||||
}
|
||||
|
||||
#创造灰风总督
|
||||
rg_create_gray_governor = {
|
||||
rg_create_gray_governor_leader = {
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
@@ -181,6 +181,9 @@ rg_create_gray_governor = {
|
||||
}
|
||||
remove_army = yes
|
||||
}
|
||||
event_target:rg_gray_habitat_target = {
|
||||
remove_planet = yes
|
||||
}
|
||||
#存储当前领袖等级
|
||||
every_owned_leader = {
|
||||
if = {
|
||||
@@ -238,6 +241,7 @@ rg_create_gray_governor = {
|
||||
remove_country_flag = rg_kac_grayfleet_active
|
||||
remove_country_flag = gray_constship_active
|
||||
remove_country_flag = gray_army_active
|
||||
remove_country_flag = gray_habitat_active
|
||||
#等级导入,把存储的领袖等级赋予到领袖身上
|
||||
random_owned_leader = {
|
||||
limit = {
|
||||
@@ -248,6 +252,19 @@ rg_create_gray_governor = {
|
||||
}
|
||||
}
|
||||
|
||||
rg_create_gray_governor = {
|
||||
if = {
|
||||
limit = {
|
||||
#has_country_flag = gray_warship_is_juggernaut
|
||||
has_country_flag = rg_habitat_enabled
|
||||
}
|
||||
rg_create_gray_governor_habitat = yes
|
||||
}
|
||||
else = {
|
||||
rg_create_gray_governor_leader = yes
|
||||
}
|
||||
}
|
||||
|
||||
#创造灰风总督
|
||||
rg_create_gray_governor_habitat = {
|
||||
if = {
|
||||
@@ -463,10 +480,14 @@ rg_create_gray_warship = {
|
||||
destroy_template = yes
|
||||
}
|
||||
}
|
||||
event_target:rg_gray_habitat_target = {
|
||||
remove_planet = yes
|
||||
}
|
||||
remove_country_flag = gray_constship_active
|
||||
remove_country_flag = gray_governor_active #旧版flag
|
||||
remove_country_flag = gray_official_active
|
||||
remove_country_flag = gray_army_active
|
||||
remove_country_flag = gray_habitat_active
|
||||
random_owned_leader = {
|
||||
limit = {
|
||||
has_leader_flag = gray_admiral
|
||||
@@ -575,11 +596,15 @@ rg_create_gray_army = {
|
||||
destroy_template = yes
|
||||
}
|
||||
}
|
||||
event_target:rg_gray_habitat_target = {
|
||||
remove_planet = yes
|
||||
}
|
||||
remove_country_flag = gray_warship_active
|
||||
remove_country_flag = rg_kac_grayfleet_active
|
||||
remove_country_flag = gray_governor_active #旧版flag
|
||||
remove_country_flag = gray_official_active
|
||||
remove_country_flag = gray_constship_active
|
||||
remove_country_flag = gray_habitat_active
|
||||
remove_ship_design = last_created_design
|
||||
random_owned_leader = {
|
||||
limit = {
|
||||
@@ -696,11 +721,15 @@ rg_create_gray_const = {
|
||||
}
|
||||
remove_army = yes
|
||||
}
|
||||
event_target:rg_gray_habitat_target = {
|
||||
remove_planet = yes
|
||||
}
|
||||
remove_country_flag = gray_army_active
|
||||
remove_country_flag = gray_warship_active
|
||||
remove_country_flag = rg_kac_grayfleet_active
|
||||
remove_country_flag = gray_governor_active #旧版flag
|
||||
remove_country_flag = gray_official_active
|
||||
remove_country_flag = gray_habitat_active
|
||||
random_owned_leader = {
|
||||
limit = {
|
||||
has_leader_flag = gray_scientist
|
||||
|
||||
@@ -177,51 +177,64 @@ rg_warship_init_mod0 = {
|
||||
}
|
||||
|
||||
rg_juggernaut_habitat_init = {
|
||||
capital_scope = {
|
||||
save_event_target_as = rg_capital_home_planet
|
||||
}
|
||||
spawn_planet = {
|
||||
class = pc_habitat
|
||||
location = root.home_planet
|
||||
orbit_location = yes
|
||||
orbit_angle_offset = 45
|
||||
orbit_distance_offset = 9.899
|
||||
size = 20
|
||||
has_ring = no
|
||||
event_target:global_gray_location = {
|
||||
solar_system = {
|
||||
spawn_planet = {
|
||||
class = pc_rg_grayhabitat
|
||||
spawn_beyond_gravity_well = yes
|
||||
orbit_location = yes
|
||||
orbit_angle_offset = 45
|
||||
orbit_distance_offset = 9.899
|
||||
size = 20
|
||||
has_ring = no
|
||||
|
||||
init_effect = {
|
||||
set_surveyed = {
|
||||
surveyed = yes
|
||||
surveyor = FROM
|
||||
}
|
||||
set_all_comms_surveyed = yes
|
||||
clear_blockers = yes
|
||||
|
||||
set_owner = root
|
||||
set_controller = root
|
||||
create_colony = {
|
||||
owner = root
|
||||
species = owner_main_species
|
||||
ethos = owner
|
||||
}
|
||||
set_name = "NAME_rg_gray_habitat_base"
|
||||
assign_leader = event_target:gray_governor
|
||||
|
||||
add_building = building_ancient_control_center
|
||||
add_building = building_nourishment_center
|
||||
add_building = building_ancient_palace
|
||||
add_building = building_affluence_center
|
||||
add_building = building_dimensional_fabricator
|
||||
|
||||
init_effect = {
|
||||
set_name = "NAME_rg_gray_habitat_base"
|
||||
set_planet_entity = {
|
||||
entity = "grey_tempesttw_juggernaut_entity"
|
||||
}
|
||||
set_surveyed = {
|
||||
surveyed = yes
|
||||
surveyor = FROM
|
||||
}
|
||||
set_all_comms_surveyed = yes
|
||||
clear_blockers = yes
|
||||
|
||||
set_planet_flag = megastructure
|
||||
set_planet_flag = habitat
|
||||
set_planet_flag = advanced_habitat
|
||||
set_planet_flag = advanced_habitat_2
|
||||
set_planet_flag = rg_gray_habitat
|
||||
save_global_event_target_as = rg_gray_habitat_target
|
||||
}
|
||||
}
|
||||
event_target:spawn_planet = {
|
||||
set_planet_flag = has_megastructure
|
||||
# set_planet_flag = has_payback_habitat
|
||||
}
|
||||
event_target:rg_capital_home_planet = {
|
||||
while = {
|
||||
count = 1
|
||||
random_owned_pop = {
|
||||
resettle_pop = {
|
||||
pop = this
|
||||
planet = event_target:rg_gray_habitat_target
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
exists = event_target:rg_fallen_maid_species
|
||||
}
|
||||
}
|
||||
rg_create_fallen_empire_species_effect = yes
|
||||
}
|
||||
|
||||
while = {
|
||||
count = 5
|
||||
create_pop = {
|
||||
species = rg_fallen_maid_species
|
||||
}
|
||||
}
|
||||
|
||||
set_planet_flag = megastructure
|
||||
set_planet_flag = habitat
|
||||
set_planet_flag = advanced_habitat
|
||||
set_planet_flag = advanced_habitat_2
|
||||
set_planet_flag = rg_gray_habitat
|
||||
save_global_event_target_as = rg_gray_habitat_target
|
||||
}
|
||||
unemploy_pop = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user