zc
This commit is contained in:
@@ -52,6 +52,8 @@ on_monthly_pulse_country = {
|
||||
# rg_event.22 #小灰复活检测
|
||||
# rg_event.23 #月检移除L星门认知防止收容失效
|
||||
# rg_skill.9
|
||||
rg_planet.5025 # Virtual Machine pop creation
|
||||
rg_planet.5030 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,4 +176,84 @@ on_space_battle_lost = {
|
||||
events = {
|
||||
rg_skill.15
|
||||
}
|
||||
}
|
||||
|
||||
# A planet has been colonized.
|
||||
# Scope = Planet
|
||||
on_colonized = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
#A building construction has been completed.
|
||||
# This = Planet
|
||||
on_building_complete = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
# A building construction has been completed, which is an upgrade of previous building.
|
||||
# This = Planet
|
||||
on_building_upgraded = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
# A building construction has demolished.
|
||||
# This = Planet
|
||||
on_building_demolished = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
# A building repair has finished
|
||||
# This = Planet
|
||||
on_building_repaired = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
#A district construction has been completed.
|
||||
# This = Planet
|
||||
on_district_complete = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
# A building construction has finished, replacing another building.
|
||||
# This = Planet
|
||||
on_building_replaced = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
# A building construction has been downgraded and replaced.
|
||||
# This = Planet
|
||||
on_building_downgraded = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
|
||||
# A district construction has demolished.
|
||||
# This = Planet
|
||||
on_district_demolished = {
|
||||
events = {
|
||||
rg_planet.2026 # Virtual Machine pop creation
|
||||
rg_planet.2031 # Virtual Machine pop destruction
|
||||
}
|
||||
}
|
||||
39
common/planet_classes/RG_gray_planet_classes.txt
Normal file
39
common/planet_classes/RG_gray_planet_classes.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
pc_rg_grayhabitat = {
|
||||
habitat = yes
|
||||
entity = "gray_goo_planet"
|
||||
entity_scale = @planet_standard_scale
|
||||
icon = GFX_planet_type_habitat
|
||||
enable_tilt = no
|
||||
fixed_entity_scale = yes
|
||||
place_entity_on_planet_plane = no
|
||||
entity_face_object = no #disable rotation towards sun or planet we orbit around
|
||||
atmosphere_color = hsv { 0.0 0.0 1.0 }
|
||||
atmosphere_intensity = 1.0
|
||||
atmosphere_width = 0.5
|
||||
show_city = no
|
||||
city_color_lut = "gfx/portraits/misc/colorcorrection_continental.dds"
|
||||
extra_orbit_size = 0
|
||||
extra_planet_count = 0
|
||||
chance_of_ring = 0.0
|
||||
planet_size = 30
|
||||
moon_size = 1
|
||||
colonizable = yes
|
||||
district_set = machine_world
|
||||
# ideal = yes
|
||||
starting_planet = no
|
||||
orbit_lines = no
|
||||
has_colonization_influence_cost = no # applies when within own borders
|
||||
|
||||
is_artificial_planet = yes
|
||||
default_planet_selection = yes
|
||||
|
||||
modifier = {
|
||||
planet_colony_development_speed_mult = 2.0 # Habitats should be fast to colonize
|
||||
pop_environment_tolerance = 0.40
|
||||
planet_structures_cost_mult = -10
|
||||
planet_buildings_cost_mult = -10
|
||||
planet_building_build_speed_mult = 10
|
||||
}
|
||||
|
||||
carry_cap_per_free_district = @carry_cap_low
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,11 @@ rg_machine_maid_trait = {
|
||||
opposites = {
|
||||
}
|
||||
|
||||
modifier = {
|
||||
habitability_floor_add = 0.25
|
||||
pop_housing_usage_mult = -0.9
|
||||
}
|
||||
|
||||
assembling_modifier = {
|
||||
planet_pop_assemblers_nanites_upkeep_add = 0.1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user