on_actions = { on_weekly_POL = { effect = { if = { limit = { has_country_flag = POL_communism_uprising_again_activation NOT = { OR = { has_civil_war = yes has_country_flag = POL_communism_uprising_again_activation_event_happened } } } set_country_flag = POL_communism_uprising_again_activation_event_happened country_event = { id = poland.168 days = 90 } } if = { limit = { has_country_flag = POL_revolt_country_flag NOT = { has_country_flag = POL_revolt_country_flag_event_happened } } set_country_flag = POL_revolt_country_flag_event_happened country_event = { id = poland.156 days = 45 } } if = { limit = { has_country_flag = POL_revolt_country2_flag } clr_country_flag = POL_revolt_country2_flag country_event = { id = poland.158 days = 85 } } if = { limit = { has_country_flag = POL_revolt_country_flag controls_state = 628 } clr_country_flag = POL_revolt_country_flag country_event = { id = poland.160 days = 90 } } if = { limit = { has_completed_focus = POL_betray_the_communists has_civil_war = no NOT = { has_country_flag = POL_betray_the_communists_event_happened } } set_country_flag = POL_betray_the_communists_event_happened country_event = poland.163 } if = { limit = { NOT = { has_country_flag = POL_poland_39_event_happened } has_war_with = UKR controls_state = 701 controls_state = 700 controls_state = 1247 controls_state = 1111 NOT = { has_completed_focus = POL_access_to_the_black_sea } nationalist_monarchists_are_in_power = yes UKR = { is_in_faction = no } } set_country_flag = POL_poland_39_event_happened country_event = poland.39 } if = { limit = { NOT = { has_country_flag = POL_poland_43_event_happened } has_war_with = UKR controls_state = 335 controls_state = 699 controls_state = 1250 controls_state = 695 controls_state = 333 has_completed_focus = POL_access_to_the_black_sea NOT = { has_completed_focus = POL_end_of_the_ukrainian_regime } nationalist_monarchists_are_in_power = yes UKR = { is_in_faction = no } } set_country_flag = POL_poland_43_event_happened country_event = poland.43 } if = { limit = { NOT = { has_country_flag = POL_poland_100_event_happened } has_country_flag = POL_stay_outside_the_eu_flag has_idea = EU_member } set_country_flag = POL_poland_100_event_happened country_event = poland.100 } if = { limit = { NOT = { has_country_flag = POL_poland_166_event_happened } check_variable = { POL.euro_accept = 2 } } set_country_flag = POL_poland_166_event_happened country_event = poland.166 } } } on_monthly_POL = { effect = { if = { limit = { has_country_flag = POL_start_visegrad_plans_flag NOT = { OR = { CZE = { is_in_faction_with = POL } CZE = { is_subject_of = POL } SLO = { is_in_faction_with = POL } SLO = { is_subject_of = POL } HUN = { is_in_faction_with = POL } HUN = { is_subject_of = POL } has_country_flag = POL_start_visegrad_plans_flag_event_happened } } } set_country_flag = POL_start_visegrad_plans_flag_event_happened country_event = { id = poland.144 days = 365 } } if = { limit = { has_country_flag = POL_start_baltic_plans_flag NOT = { OR = { LIT = { is_in_faction_with = POL } LIT = { is_subject_of = POL } LAT = { is_in_faction_with = POL } LAT = { is_subject_of = POL } EST = { is_in_faction_with = POL } EST = { is_subject_of = POL } has_country_flag = POL_start_baltic_plans_flag_event_happened } } } set_country_flag = POL_start_baltic_plans_flag_event_happened country_event = { id = poland.145 days = 365 } } if = { limit = { has_country_flag = POL_start_balkan_plans_flag NOT = { OR = { ROM = { is_in_faction_with = POL } ROM = { is_subject_of = POL } BUL = { is_in_faction_with = POL } BUL = { is_subject_of = POL } has_country_flag = POL_start_balkan_plans_flag_event_happened } } } set_country_flag = POL_start_balkan_plans_flag_event_happened country_event = { id = poland.146 days = 365 } } if = { limit = { has_country_flag = POL_start_scandinavia_plans_flag NOT = { OR = { SWE = { is_in_faction_with = POL } SWE = { is_subject_of = POL } FIN = { is_in_faction_with = POL } FIN = { is_subject_of = POL } has_country_flag = POL_start_scandinavia_plans_flag_event_happened } } } set_country_flag = POL_start_scandinavia_plans_flag_event_happened country_event = { id = poland.146 days = 365 } } if = { limit = { NOT = { has_country_flag = POL_economy_event_happened } has_completed_focus = POL_introduce_the_new_order has_government = communism } set_country_flag = { flag = POL_economy_event_happened days = 1460 value = 1 } random_list = { 33 = { country_event = { id = poland.150 days = 730 random_days = 730 } } 33 = { country_event = { id = poland.151 days = 730 random_days = 730 } } 33 = { country_event = { id = poland.152 days = 730 random_days = 730 } } } } # Privatization monthly update if = { limit = { has_dynamic_modifier = { modifier = POL_private_pensions } } set_temp_variable = { gdp_diff = gdp_per_capita } subtract_from_temp_variable = { gdp_diff = pensions_effective_gdpc } multiply_temp_variable = { gdp_diff = 0.05 } add_to_variable = { pensions_effective_gdpc = gdp_diff } set_temp_variable = { pensions_population_temp = pensions_effective_gdpc } multiply_temp_variable = { pensions_population_temp = 0.005 } set_variable = { POL_pensions_population_growth_modifier = pensions_population_temp } clamp_variable = { var = POL_pensions_population_growth_modifier max = 1.5 } set_temp_variable = { pensions_roi_temp = pensions_effective_gdpc } multiply_temp_variable = { pensions_roi_temp = 0.00015 } set_variable = { POL_pensions_roi_modifier = pensions_roi_temp } clamp_variable = { var = POL_pensions_roi_modifier max = 0.045 } add_to_variable = { POL_pensions_interest_rate_modifier = 0.2 } clamp_variable = { var = POL_pensions_interest_rate_modifier max = 0 } } if = { limit = { has_dynamic_modifier = { modifier = POL_private_healthcare } } set_temp_variable = { gdp_diff = gdp_per_capita } subtract_from_temp_variable = { gdp_diff = healthcare_effective_gdpc } multiply_temp_variable = { gdp_diff = 0.05 } add_to_variable = { healthcare_effective_gdpc = gdp_diff } set_temp_variable = { healthcare_population_temp = healthcare_effective_gdpc } multiply_temp_variable = { healthcare_population_temp = 0.0025 } set_variable = { POL_healthcare_population_growth_modifier = healthcare_population_temp } clamp_variable = { var = POL_healthcare_population_growth_modifier max = 0.5 } set_temp_variable = { healthcare_war_support_temp = healthcare_effective_gdpc } multiply_temp_variable = { healthcare_war_support_temp = 0.00025 } set_variable = { POL_healthcare_war_support_modifier = healthcare_war_support_temp } clamp_variable = { var = POL_healthcare_war_support_modifier max = 0.025 } set_temp_variable = { healthcare_morale_temp = healthcare_effective_gdpc } multiply_temp_variable = { healthcare_morale_temp = 0.00125 } set_variable = { POL_healthcare_morale_modifier = healthcare_morale_temp } clamp_variable = { var = POL_healthcare_morale_modifier max = 0.25 } set_temp_variable = { healthcare_tax_cost_temp = healthcare_effective_gdpc } multiply_temp_variable = { healthcare_tax_cost_temp = -0.0004 } set_variable = { POL_healthcare_tax_cost_modifier = healthcare_tax_cost_temp } clamp_variable = { var = POL_healthcare_tax_cost_modifier min = -0.2 } set_temp_variable = { healthcare_stability_temp = healthcare_effective_gdpc } multiply_temp_variable = { healthcare_stability_temp = -0.001 } set_variable = { POL_healthcare_stability_modifier = healthcare_stability_temp } clamp_variable = { var = POL_healthcare_stability_modifier min = -1 } add_to_variable = { POL_healthcare_interest_rate_modifier = 0.1 } clamp_variable = { var = POL_healthcare_interest_rate_modifier max = 0 } } if = { limit = { has_dynamic_modifier = { modifier = POL_private_education } } set_temp_variable = { gdp_diff = gdp_per_capita } subtract_from_temp_variable = { gdp_diff = education_effective_gdpc } multiply_temp_variable = { gdp_diff = 0.05 } add_to_variable = { education_effective_gdpc = gdp_diff } set_temp_variable = { education_research_temp = education_effective_gdpc } multiply_temp_variable = { education_research_temp = 0.002 } set_variable = { POL_education_research_factor = education_research_temp } clamp_variable = { var = POL_education_research_factor max = 2 } set_temp_variable = { education_productivity_temp = education_effective_gdpc } multiply_temp_variable = { education_productivity_temp = 0.01 } set_variable = { POL_education_productivity_modifier = education_productivity_temp } clamp_variable = { var = POL_education_productivity_modifier max = 10 } set_temp_variable = { education_project_temp = education_effective_gdpc } multiply_temp_variable = { education_project_temp = 0.0025 } set_variable = { POL_education_project_speed_modifier = education_project_temp } clamp_variable = { var = POL_education_project_speed_modifier max = 1 } set_temp_variable = { education_influence_temp = education_effective_gdpc } multiply_temp_variable = { education_influence_temp = 0.0025 } set_variable = { POL_education_influence_modifier = education_influence_temp } clamp_variable = { var = POL_education_influence_modifier max = 0.5 } add_to_variable = { POL_education_interest_rate_modifier = 0.1 } clamp_variable = { var = POL_education_interest_rate_modifier max = 0 } } # stability overflow update if = { limit = { has_dynamic_modifier = POL_economy_modifier } set_temp_variable = { stability_overflow_drift = POL_economy_weekly_stability } multiply_temp_variable = { stability_overflow_drift = 4 } add_to_variable = { POL_economy_stability_modifier = stability_overflow_drift } multiply_temp_variable = { stability_overflow_drift = -1 } add_stability = stability_overflow_drift } } } }