This commit is contained in:
ProjectKoi-Kalo\Kalo
2024-09-21 14:38:29 +08:00
parent 01200b9020
commit 2ac2b23047
15 changed files with 1131 additions and 30 deletions

View File

@@ -1060,6 +1060,129 @@ country_event = { # Memorial Valuts Civic Paragon Level Tick / FROM = Leader
}
}
# Necrophage Purge
# on_pop_purged
# This = Planet scope
# From = Country
# FromFrom = Pop
planet_event = {
id = rg_event.24
is_triggered_only = yes
hide_window = yes
trigger = {
exists = fromfrom #crisis.202 can remove the last pop
fromfrom = {
has_purge_type = {
type = purge_nanophage
}
}
}
immediate = {
random_owned_pop = {
limit = {
is_same_species = owner_species
}
species = { save_event_target_as = necrophage_pop_species }
}
if = {
limit = {
exists = event_target:necrophage_pop_species
}
create_pop = {
species = event_target:necrophage_pop_species
}
}
else = {
create_pop = {
species = owner_species
}
}
if = {
limit = {
last_created_pop = {
NOT = { ideal_planet_class = root }
}
NOR = {
uses_district_set = habitat
uses_district_set = ring_world
uses_district_set = city_world
uses_district_set = hive_world
uses_district_set = machine_world
is_planet_class = pc_gaia
is_planet_class = pc_relic
}
owner = {
has_technology = tech_glandular_acclimation
NOT = { ideal_planet_class = root }
}
}
last_created_pop = {
modify_species = {
ideal_planet_class = root
}
}
}
if = {
limit = {
from = {
OR = {
has_active_tradition = tr_harmony_unity_of_self
has_active_tradition = tr_synchronicity_unity_of_mind
}
}
}
from = {
add_monthly_resource_mult = {
resource = unity
value = 1.5
min = 5
max = 100
}
}
}
every_country = {
limit = {
has_communications = FROM
NOT = { is_country = FROM }
NOT = { is_same_species = FROMFROM }
NOT = { has_ai_personality_behaviour = purger }
NOT = { has_origin = origin_necrophage }
NOT = { has_ethic = ethic_gestalt_consciousness }
NOR = {
has_valid_civic = civic_death_cult
has_valid_civic = civic_death_cult_corporate
}
OR = {
is_country_type = default
has_ai_personality = awakened_fallen_empire_xenophile
}
has_intel_level = {
who = FROM
category = economy
level >= 2
}
}
add_opinion_modifier = { who = FROM modifier = opinion_necrophage }
}
every_country = {
limit = {
has_communications = FROM
NOT = { is_country = FROM }
is_same_species = FROMFROM
has_intel_level = {
who = FROM
category = economy
level >= 1 #lower because you'd hear from a friend of a friend
}
}
add_opinion_modifier = { who = FROM modifier = opinion_necrophage_our_species }
}
}
}
# 拆毁工厂小灰通讯
country_event = {
id = rg_event.200

View File

@@ -119,3 +119,41 @@ planet_event = {
set_update_modifiers_batch = end
}
}
# SP_Cracked
planet_event = {
id = RG_planet_killer.4
is_triggered_only = yes
hide_window = yes
trigger = {
is_star = no
}
immediate = {
set_update_modifiers_batch = begin
RG_destroy_planet_effect_sp = yes
every_country = {
create_message = {
type = "PLANET_DESTROYED"
localization = "message_RG_planet_killer_killed_planet_NANO_SP_desc"
days = 30
target = root
variable = {
type = name
localization = "RG_target_planet"
scope = root
}
variable = {
type = name
localization = "RG_attacker"
scope = from.owner
}
variable = {
type = name
localization = "RG_attacker_ship"
scope = from
}
}
}
set_update_modifiers_batch = end
}
}

View File

@@ -12,11 +12,17 @@ country_event = {
is_triggered_only = yes
trigger = {
has_country_flag = rg_habitat_enabled
exists = event_target:rg_gray_habitat_target
event_target:rg_gray_habitat_target = {
OR = {
has_country_flag = rg_habitat_enabled
has_active_tradition = tr_rg_nanotech_5
}
# exists = event_target:rg_gray_habitat_target
any_owned_planet = {
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
free_jobs > 0
NOR = {
free_jobs_of_type = {
@@ -27,21 +33,55 @@ country_event = {
category = bio_trophy
value >= 1
}
free_jobs_of_type = {
job = servant
value >= 1
}
}
}
}
}
immediate = {
event_target:rg_gray_habitat_target = {
planet_event = { id = rg_planet.2027 days = 1 }
if = {
limit = {
has_country_flag = rg_habitat_enabled
NOT = {
has_active_tradition = tr_rg_nanotech_5
}
}
event_target:rg_gray_habitat_target = {
planet_event = { id = rg_planet.2027 days = 1 }
}
}
else = {
random_owned_planet = {
limit = {
owner = {
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
}
free_jobs_of_type = {
category = bio_trophy
value >= 1
}
}
}
planet_event = { id = rg_planet.2027 days = 1 }
}
}
}
}
}
### Create the Unemployed
### Planet scope gatekeeper
### on_building_complete, on_building_upgraded, on_building_demolished,
@@ -54,12 +94,17 @@ planet_event = {
is_triggered_only = yes
trigger = {
is_same_value = event_target:rg_gray_habitat_target
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
exists = owner
owner = {
has_country_flag = rg_habitat_enabled
OR = {
has_country_flag = rg_habitat_enabled
has_active_tradition = tr_rg_nanotech_5
}
}
free_jobs > 0
}
@@ -77,12 +122,17 @@ planet_event = {
is_triggered_only = yes
trigger = {
is_same_value = event_target:rg_gray_habitat_target
is_under_colonization = no
NOT = { is_planet_class = pc_cosmogenesis_world }
OR = {
is_planet_class = pc_rg_grayhabitat
is_planet_class = pc_nanotech
}
exists = owner
owner = {
has_country_flag = rg_habitat_enabled
OR = {
has_country_flag = rg_habitat_enabled
has_active_tradition = tr_rg_nanotech_5
}
}
free_jobs > 0
}
@@ -93,10 +143,23 @@ planet_event = {
value = value:num_free_virtual_jobs
}
# Create pops for every free job
while = {
count = num_pops
create_pop = {
species = event_target:rg_owner_main_maid_species
if = {
owner = {
is_same_value = event_target:gray_owner
}
while = {
count = num_pops
create_pop = {
species = owner_main_species
}
}
}
else = {
while = {
count = num_pops
create_pop = {
species = event_target:rg_owner_main_maid_species
}
}
}