# 官僚资产阶级危机决议

# ========== 危机系统主分类 ==========
CZD_bureaucratic_crisis_system = {

	# 查看当前危机状态
	CZD_view_current_crisis_status = {
		icon = GFX_decision_generic_political_discourse
		
		allowed = { tag = CZD }
		
		available = {
			always = yes
		}
		
		visible = {
			has_country_flag = CZD_crisis_started
			NOT = { has_country_flag = CZD_crisis_resolved }
		}
		
		fire_only_once = no
		days_remove = 1
		cost = 0
		
		complete_effect = {
			custom_effect_tooltip = CZD_view_status_tt
		}
	}
}

# ========== 激进路线专属决议 ==========
CZD_revolutionary_mobilization = {

	# 发动群众批斗大会
	CZD_organize_struggle_session = {
		icon = GFX_decision_generic_civil_support
		
		allowed = { tag = CZD }
		
		available = {
			has_country_flag = CZD_radical_path
			NOT = { has_country_flag = CZD_struggle_session_cooldown }
		}
		
		visible = {
			has_country_flag = CZD_radical_line_active
			NOT = { has_country_flag = CZD_crisis_resolved }
		}
		
		fire_only_once = no
		days_remove = 14
		cost = 25
		
		modifier = {
			stability_factor = -0.05
			war_support_factor = 0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = CZD_struggle_session_start_tt
			set_country_flag = { flag = CZD_struggle_session_cooldown days = 60 }
		}
		
		remove_effect = {
			add_to_variable = { CZD_bureaucratic_bourgeoisie_power = -5 }
			add_to_variable = { CZD_bureaucratic_bourgeoisie = -5 }
			add_to_variable = { CZD_revolutionary_momentum = 10 }
			add_to_variable = { CZD_counterrevolution_level = 3 }
			custom_effect_tooltip = CZD_struggle_session_effect_tt
		}
	}
	
	# 动员红色近卫队
	CZD_mobilize_red_guards = {
		icon = GFX_decision_generic_prepare_civil_war
		
		allowed = { tag = CZD }
		
		available = {
			has_country_flag = CZD_radical_path
			check_variable = { CZD_revolutionary_momentum > 30 }
			NOT = { has_country_flag = CZD_red_guards_mobilized }
		}
		
		visible = {
			has_country_flag = CZD_radical_line_active
			has_completed_focus = CZD_red_storm
			NOT = { has_country_flag = CZD_crisis_resolved }
		}
		
		fire_only_once = yes
		days_remove = 30
		cost = 50
		
		modifier = {
			stability_factor = -0.10
			conscription_factor = 0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = CZD_red_guards_mobilize_tt
		}
		
		remove_effect = {
			set_country_flag = CZD_red_guards_mobilized
			add_to_variable = { CZD_bureaucratic_bourgeoisie_power = -15 }
			add_to_variable = { CZD_bureaucratic_bourgeoisie = -15 }
			add_to_variable = { CZD_purge_intensity = 20 }
			add_to_variable = { CZD_counterrevolution_level = 10 }
			custom_effect_tooltip = CZD_red_guards_effect_tt
		}
	}
	
	# 发动思想整风运动
	CZD_launch_rectification_campaign = {
		icon = GFX_decision_generic_political_discourse
		
		allowed = { tag = CZD }
		
		available = {
			has_country_flag = CZD_radical_path
			NOT = { has_country_flag = CZD_rectification_ongoing }
		}
		
		visible = {
			has_country_flag = CZD_radical_line_active
			has_completed_focus = CZD_ideological_revolution
			NOT = { has_country_flag = CZD_crisis_resolved }
		}
		
		fire_only_once = no
		days_remove = 45
		cost = 35
		
		modifier = {
			political_power_factor = -0.15
			stability_factor = -0.05
		}
		
		complete_effect = {
			set_country_flag = CZD_rectification_ongoing
			custom_effect_tooltip = CZD_rectification_start_tt
		}
		
		remove_effect = {
			clr_country_flag = CZD_rectification_ongoing
			add_to_variable = { CZD_bureaucratic_bourgeoisie_power = -8 }
			add_to_variable = { CZD_bureaucratic_bourgeoisie = -8 }
			add_to_variable = { CZD_revolutionary_momentum = 15 }
			custom_effect_tooltip = CZD_rectification_effect_tt
		}
	}
	
	# 镇压反革命活动
	CZD_suppress_counterrevolution = {
		icon = GFX_decision_generic_civil_support
		
		allowed = { tag = CZD }
		
		available = {
			has_country_flag = CZD_radical_path
			check_variable = { CZD_counterrevolution_level > 20 }
		}
		
		visible = {
			has_country_flag = CZD_radical_line_active
			NOT = { has_country_flag = CZD_crisis_resolved }
		}
		
		fire_only_once = no
		days_remove = 21
		cost = 40
		
		modifier = {
			stability_factor = -0.03
		}
		
		complete_effect = {
			custom_effect_tooltip = CZD_suppress_start_tt
		}
		
		remove_effect = {
			add_to_variable = { CZD_counterrevolution_level = -15 }
			add_to_variable = { CZD_purge_intensity = 5 }
			custom_effect_tooltip = CZD_suppress_effect_tt
		}
	}
	
	# 推进世界革命（世界解放路线专属）
	CZD_advance_world_revolution = {
		icon = GFX_decision_generic_ignite_civil_war
		
		allowed = { tag = CZD }
		
		available = {
			has_country_flag = CZD_world_liberation_path
		}
		
		visible = {
			has_country_flag = CZD_world_liberation_ending_achieved
		}
		
		fire_only_once = no
		days_remove = 60
		cost = 75
		
		modifier = {
			justify_war_goal_time = -0.25
			subversive_activites_upkeep = -0.20
		}
		
		complete_effect = {
			custom_effect_tooltip = CZD_world_revolution_start_tt
		}
		
		remove_effect = {
			add_war_support = 0.10
			add_political_power = 50
			custom_effect_tooltip = CZD_world_revolution_effect_tt
		}
	}
}
