修改纳米技术赤字情况,调整资源类型和相关效果
This commit is contained in:
@@ -1,192 +1,150 @@
|
||||
situation_nanties_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
|
||||
owner = {
|
||||
country_event = { id = advisor.20 days = 10 random = 20 }
|
||||
save_event_target_as = kaleidoscope_new_owner
|
||||
}
|
||||
random_playable_country = {
|
||||
limit = {
|
||||
has_country_flag = gave_kaleidoscope_to@owner
|
||||
}
|
||||
country_event = { id = situation.2025 days = 10 random = 20 }
|
||||
}
|
||||
}
|
||||
on_abort = {
|
||||
owner = {
|
||||
add_resource = {
|
||||
energy = @bailout_basic_base_amount
|
||||
mult = value:bailout_scaling_factor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
start_value = 15
|
||||
on_monthly = {
|
||||
random_events = {
|
||||
80 = 0
|
||||
20 = origin.4170 # Payback | MSI helping you
|
||||
}
|
||||
}
|
||||
|
||||
stages = {
|
||||
deficit_first = {
|
||||
icon = GFX_situation_stage_1
|
||||
icon_background = GFX_situation_stage_frame_red
|
||||
end = 25
|
||||
modifier = {
|
||||
planet_researchers_physics_research_produces_add = -0.5
|
||||
planet_researchers_society_research_produces_add = -0.5
|
||||
planet_researchers_engineering_research_produces_add = -0.5
|
||||
diplo_weight_economy_mult = -0.1
|
||||
planet_pop_assembly_reduction = 0.1
|
||||
ship_disengage_chance_mult = -0.1
|
||||
ship_weapon_damage = -0.20
|
||||
ship_speed_mult = -0.20
|
||||
}
|
||||
}
|
||||
deficit_second = {
|
||||
icon = GFX_situation_stage_2
|
||||
icon_background = GFX_situation_stage_frame_red
|
||||
end = 50
|
||||
modifier = {
|
||||
planet_researchers_physics_research_produces_add = -1
|
||||
planet_researchers_society_research_produces_add = -1
|
||||
planet_researchers_engineering_research_produces_add = -1
|
||||
diplo_weight_economy_mult = -0.2
|
||||
planet_pop_assembly_reduction = 0.2
|
||||
ship_disengage_chance_mult = -0.25
|
||||
ship_weapon_damage = -0.40
|
||||
ship_speed_mult = -0.40
|
||||
}
|
||||
}
|
||||
deficit_third = {
|
||||
icon = GFX_situation_stage_3
|
||||
icon_background = GFX_situation_stage_frame_red
|
||||
end = 75
|
||||
modifier = {
|
||||
planet_researchers_physics_research_produces_add = -1.5
|
||||
planet_researchers_society_research_produces_add = -1.5
|
||||
planet_researchers_engineering_research_produces_add = -1.5
|
||||
diplo_weight_economy_mult = -0.33
|
||||
planet_pop_assembly_reduction = 0.33
|
||||
ship_disengage_chance_mult = -0.50
|
||||
ship_weapon_damage = -0.60
|
||||
ship_speed_mult = -0.60
|
||||
}
|
||||
}
|
||||
deficit_fourth = {
|
||||
icon = GFX_situation_stage_4
|
||||
icon_background = GFX_situation_stage_frame_red
|
||||
end = 100
|
||||
on_first_enter = {
|
||||
situation_event = { id = deficit.100 }
|
||||
}
|
||||
modifier = {
|
||||
planet_researchers_physics_research_produces_add = -2
|
||||
planet_researchers_society_research_produces_add = -2
|
||||
planet_researchers_engineering_research_produces_add = -2
|
||||
diplo_weight_economy_mult = -0.5
|
||||
planet_pop_assembly_reduction = 0.5
|
||||
ship_disengage_chance_mult = -0.75
|
||||
planet_jobs_produces_mult = -0.1
|
||||
ship_weapon_damage = -0.8
|
||||
ship_speed_mult = -0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
on_progress_complete = {
|
||||
country_defaulted_in_situation_tooltip = yes
|
||||
hidden_effect = {
|
||||
situation_event = { id = deficit.110 }
|
||||
}
|
||||
}
|
||||
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|energy|
|
||||
desc = string_expenditures_greater_than_income_energy
|
||||
owner = { has_actual_deficit = { RESOURCE = energy } }
|
||||
}
|
||||
modifier = {
|
||||
subtract = 5
|
||||
desc = string_not_in_deficit_energy
|
||||
owner = {
|
||||
resource_income_compare = {
|
||||
resource = energy
|
||||
value >= 0
|
||||
}
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
subtract = 1
|
||||
desc = string_resource_reserves_energy
|
||||
owner = {
|
||||
has_negative_income_with_stockpile = { RESOURCE = energy }
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
desc = civilian_difficulty
|
||||
mult = 0.1
|
||||
situation_monthly_progress > 0
|
||||
is_difficulty = 0
|
||||
owner = {
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
desc = cadet_difficulty
|
||||
mult = 0.5
|
||||
situation_monthly_progress > 0
|
||||
is_difficulty = 1
|
||||
owner = {
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
}
|
||||
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_science_investment
|
||||
icon = GFX_situation_approach_research
|
||||
icon_background = GFX_situation_approach_bg_red
|
||||
modifier = {
|
||||
planet_researchers_produces_mult = -0.5
|
||||
planet_buildings_energy_upkeep_mult = -0.2
|
||||
}
|
||||
|
||||
ai_weight = {
|
||||
base = 0
|
||||
modifier = {
|
||||
add = 2
|
||||
current_stage = deficit_third
|
||||
}
|
||||
modifier = {
|
||||
add = 2
|
||||
current_stage = deficit_fourth
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user