realgray-stellaris-mod/common/situations/rg_deficit_situations.txt

150 lines
3.3 KiB
Plaintext
Raw Normal View History

situation_nanites_deficit = {
picture = GFX_evt_deficit
category = negative
fail_icon = GFX_situation_outcome_meh
fail_icon_frame = GFX_situation_outcome_frame_green
complete_icon = GFX_situation_outcome_bankrupcy
complete_icon_frame = GFX_situation_outcome_frame_red
on_start = {
set_situation_flag = deficit_situation
}
on_abort = {
owner = {
add_resource = {
nanites = @bailout_strategic_base_amount
mult = value:bailout_scaling_factor
}
}
}
start_value = 15
stages = {
deficit_first = {
icon = GFX_situation_stage_1
icon_background = GFX_situation_stage_frame_red
end = 25
modifier = {
planet_jobs_upkeep_mult = 0.05
all_technology_research_speed = -0.05
planet_buildings_upkeep_mult = 0.05
megastructures_upkeep_mult = 0.05
}
}
deficit_second = {
icon = GFX_situation_stage_2
icon_background = GFX_situation_stage_frame_red
end = 50
modifier = {
planet_jobs_upkeep_mult = 0.1
all_technology_research_speed = -0.1
planet_buildings_upkeep_mult = 0.1
megastructures_upkeep_mult = 0.1
}
}
deficit_third = {
icon = GFX_situation_stage_3
icon_background = GFX_situation_stage_frame_red
end = 75
modifier = {
planet_jobs_upkeep_mult = 0.15
all_technology_research_speed = -0.2
planet_buildings_upkeep_mult = 0.15
megastructures_upkeep_mult = 0.15
}
}
deficit_fourth = {
icon = GFX_situation_stage_4
icon_background = GFX_situation_stage_frame_red
end = 100
on_first_enter = {
situation_event = {
id = gigadeficit.160
}
}
modifier = {
planet_jobs_upkeep_mult = 0.2
all_technology_research_speed = -0.4
planet_buildings_upkeep_mult = 0.2
megastructures_upkeep_mult = 0.2
}
}
}
on_progress_complete = {
country_defaulted_in_situation_tooltip = yes
hidden_effect = {
situation_event = {
id = rg_deficit.220
}
}
}
on_fail = {
custom_tooltip = deficit_situation_finish_tooltip
hidden_effect = {
destroy_situation = this
}
}
monthly_progress = {
base = 0
modifier = {
add = value:deficit_situation_progress_value|RESOURCE|nanites|
desc = string_expenditures_greater_than_income_nanites
owner = {
has_actual_deficit = {
RESOURCE = nanites
}
}
}
modifier = {
subtract = 3
desc = string_not_in_deficit_nanites
owner = {
resource_income_compare = {
resource = nanites
value >= 0
}
}
}
modifier = {
subtract = 1
desc = string_resource_reserves_nanites
owner = {
has_negative_income_with_stockpile = {
RESOURCE = nanites
}
}
}
}
approach = {
name = deficit_approach_do_nothing
icon = GFX_situation_approach_this_is_fine
icon_background = GFX_situation_approach_bg_yellow
default = yes
on_select = {
custom_tooltip = deficit_approach_do_nothing_tooltip
}
ai_weight = {
base = 1
}
}
approach = {
name = deficit_approach_cut_nanite_usage
icon = GFX_situation_approach_research
icon_background = GFX_situation_approach_bg_red
modifier = {
country_nanites_produces_mult = 0.15
planet_stability_add = -10
planet_structures_cost_mult = 1
megastructures_cost_mult = 1
}
ai_weight = {
base = 0
modifier = {
add = 2
current_stage = deficit_third
}
modifier = {
add = 2
current_stage = deficit_fourth
}
}
}
}