bm: fix void machines modifiers status

This commit is contained in:
Mateusz Słodkowicz 2024-06-08 18:15:24 +02:00
parent 48ff08f2c6
commit 1e1f1adfc9
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 183 additions and 1 deletions

View File

@ -2,4 +2,14 @@ on_monthly_pulse_country = {
events = {
bm.1
}
}
on_tech_increased = {
events = {
bm.2
}
}
on_post_government_changed = {
events = {
bm.3
}
}

View File

@ -43,4 +43,176 @@ event = {
}
}
}
}
}
country_event = {
id = bm.2
is_triggered_only = yes
hide_window = yes
trigger = {
has_valid_civic = civic_bm_void_machines
OR = {
last_increased_tech = tech_mine_exotic_gases
last_increased_tech = tech_mine_rare_crystals
last_increased_tech = tech_mine_volatile_motes
last_increased_tech = tech_mine_zro
last_increased_tech = tech_mine_dark_matter
last_increased_tech = tech_mine_living_metal
}
}
immediate = {
if = {
limit = {
last_increased_tech = tech_mine_exotic_gases
}
remove_modifier = reduce_gas_output
}
if = {
limit = {
last_increased_tech = tech_mine_rare_crystals
}
remove_modifier = reduce_crystal_output
}
if = {
limit = {
last_increased_tech = tech_mine_volatile_motes
}
remove_modifier = reduce_motes_output
}
if = {
limit = {
last_increased_tech = tech_mine_zro
}
remove_modifier = reduce_zro_output
}
if = {
limit = {
last_increased_tech = tech_mine_dark_matter
}
remove_modifier = reduce_dark_matter_output
}
if = {
limit = {
last_increased_tech = tech_mine_living_metal
}
remove_modifier = reduce_living_metal_output
}
}
}
country_event = {
id = bm.3
is_triggered_only = yes
hide_window = yes
trigger = {
NOT = {
has_valid_civic = civic_bm_void_machines
}
OR = {
has_modifier = reduce_gas_output
has_modifier = reduce_crystal_output
has_modifier = reduce_motes_output
has_modifier = reduce_zro_output
has_modifier = reduce_dark_matter_output
has_modifier = reduce_living_metal_output
}
}
immediate = {
if = {
limit = {
has_modifier = reduce_gas_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = exotic_gases amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_gas_output
}
if = {
limit = {
has_modifier = reduce_crystal_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = rare_crystals amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_crystal_output
}
if = {
limit = {
has_modifier = reduce_motes_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = volatile_motes amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_motes_output
}
if = {
limit = {
has_modifier = reduce_zro_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = sr_zro amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_zro_output
}
if = {
limit = {
has_modifier = reduce_dark_matter_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = sr_dark_matter amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_dark_matter_output
}
if = {
limit = {
has_modifier = reduce_living_metal_output
}
every_planet_within_border = {
limit = {
has_mining_station = yes
has_resource = { type = sr_living_metal amount > 0 }
}
mining_station = {
dismantle = yes
}
}
remove_modifier = reduce_living_metal_output
}
}
}