# ==================================
# 3. 政府部门建立决议组
# ==================================
CZD_government_structure_decisions = {

	# --- 建立贸易部 ---
	CZD_establish_ministry_of_trade = {
		icon = GFX_decision_generic_form_nation
		
		cost = 100  # 政治点消耗
		days_remove = 90
		fire_only_once = yes
		visible = {
			has_completed_focus = KOR_establish_government_structure
		}
		
		available = {
			has_political_power > 100
			NOT = { has_country_flag = CZD_ministry_trade_established }
		}
		
		complete_effect = {
			# 标记部门已建立
			set_country_flag = CZD_ministry_trade_established
			
			# 增加政府部门计数
			add_to_variable = { var = CZD_government_departments_count value = 0.03 }
            add_to_variable = { var = CZD_government_departments_count_war value = -0.1 }
			
			
			
			# 触发事件通知（可选）
			custom_effect_tooltip = CZD_ministry_established_tooltip
		}
		
		ai_will_do = { factor = 10 }
	}

	# --- 建立外交部 ---
	CZD_establish_ministry_of_foreign_affairs = {
		icon = GFX_decision_generic_join_faction
		
		cost = 100
		days_remove = 90
		fire_only_once = yes
		visible = {
			has_completed_focus = KOR_establish_government_structure
		}
		
		available = {
			has_political_power > 100
			NOT = { has_country_flag = CZD_ministry_foreign_affairs_established }
		}
		
		complete_effect = {
			set_country_flag = CZD_ministry_foreign_affairs_established
			add_to_variable = { var = CZD_government_departments_count value = 0.03 }
            add_to_variable = { var = CZD_government_departments_count_war value = -0.1 }
		
			custom_effect_tooltip = CZD_ministry_established_tooltip
		}
		
		ai_will_do = { factor = 10 }
	}

	# --- 建立国防部 ---
	CZD_establish_ministry_of_defense = {
		icon = GFX_decision_generic_army
		
		cost = 100  # 更高的成本
		days_remove = 90
		fire_only_once = yes
		visible = {
			has_completed_focus = KOR_establish_government_structure
		}
		
		available = {
			has_political_power > 100
			NOT = { has_country_flag = CZD_ministry_defense_established }
		}
		
		complete_effect = {
			set_country_flag = CZD_ministry_defense_established
			add_to_variable = { var = CZD_government_departments_count value = 0.03 }
            add_to_variable = { var = CZD_government_departments_count_war value = -0.1 }
			
			custom_effect_tooltip = CZD_ministry_established_tooltip
		}
		
		ai_will_do = { factor = 15 }
	}

	# --- 建立工业部 ---
	CZD_establish_ministry_of_industry = {
		icon = GFX_decision_generic_construction
		
		cost = 100
		days_remove = 90
		fire_only_once = yes
		visible = {
			has_completed_focus = KOR_establish_government_structure
		}
		
		available = {
			has_political_power > 60
			NOT = { has_country_flag = CZD_ministry_industry_established }
		}
		
		complete_effect = {
			set_country_flag = CZD_ministry_industry_established
			add_to_variable = { var = CZD_government_departments_count value = 0.03 }
            add_to_variable = { var = CZD_government_departments_count_war value = -0.1 }
			
			custom_effect_tooltip = CZD_ministry_established_tooltip
		}
		
		ai_will_do = { factor = 12 }
	}

	# --- 建立宣传部 ---
	CZD_establish_ministry_of_propaganda = {
		icon = GFX_decision_generic_propaganda
		
		cost = 100  # 较低的成本
		days_remove = 90
		fire_only_once = yes
		visible = {
			has_completed_focus = KOR_establish_government_structure
		}
		
		available = {
			has_political_power > 100
			NOT = { has_country_flag = CZD_ministry_propaganda_established }
		}
		
		complete_effect = {
			set_country_flag = CZD_ministry_propaganda_established
			add_to_variable = { var = CZD_government_departments_count value = 0.03 }
            add_to_variable = { var = CZD_government_departments_count_war value = -0.1 }
		
			custom_effect_tooltip = CZD_ministry_established_tooltip
		}
		
		ai_will_do = { factor = 8 }
	}

}

