# =========================================================
# 动态工业发展修正 - 工业计划委员会系统
# =========================================================
# 计划经济工业化动态修正
CZD_planned_industrialization_modifier = {
	icon = GFX_idea_SOV_third_five_year_plan
	enable = { 
		has_country_flag = CZD_industrial_planning_active
	}
	
	# 建筑速度修正 (通过变量动态调整)
	production_speed_buildings_factor = CZD_industrial_build_speed_var
	# 民用工厂产出
	production_speed_industrial_complex_factor = CZD_civilian_factory_speed_var
	# 军用工厂产出
	production_speed_arms_factory_factor = CZD_military_factory_speed_var
	# 工厂产能效率
	industrial_capacity_factory = CZD_factory_output_var
	# 生产效率增长
	production_factory_efficiency_gain_factor = CZD_production_efficiency_var
	# 资源开采
	local_resources_factor = CZD_resource_extraction_var
}

# =========================================================
# 唯一思想体系动态修正 - 思想统一程度
# =========================================================
CZD_monolithic_ideology_modifier = {
	icon = GFX_idea_fourth_international
	enable = { 
		has_country_flag = CZD_monolithic_system_active
	}
	
	# 政治控制力 (随思想统一程度增加)
	political_power_gain = CZD_ideology_pp_var
	# 稳定度
	stability_factor = CZD_ideology_stability_var
	# 意识形态漂移防御
	drift_defence_factor = CZD_ideology_drift_var
	# 战争支持度
	war_support_factor = CZD_ideology_war_support_var
	# 研究代价 (思想僵化)
	research_speed_factor = CZD_ideology_research_var
}

# =========================================================
# 全民皆兵动态修正 - 国防动员程度
# =========================================================
CZD_nation_in_arms_modifier = {
	icon = GFX_idea_generic_reserve_divisions
	enable = { 
		has_country_flag = CZD_nation_in_arms_active
	}
	
	# 征兵能力
	conscription_factor = CZD_mobilization_conscription_var
	# 陆军组织度
	army_org_factor = CZD_mobilization_org_var
	# 训练时间
	training_time_army_factor = CZD_mobilization_training_var
	# 战争支持
	war_support_factor = CZD_mobilization_war_support_var
	# 消费品因子 (军费增加)
	consumer_goods_factor = CZD_mobilization_consumer_var
	# 人力恢复
	monthly_population = CZD_mobilization_manpower_var
}

# =========================================================
# 军事科技现代化动态修正 - 装甲作战能力
# =========================================================
CZD_armor_warfare_modifier = {
	icon = GFX_idea_jap_supremacy_of_technology
	enable = { 
		has_country_flag = CZD_armor_modernization_active
	}
	
	# 装甲部队进攻
	army_armor_attack_factor = CZD_armor_attack_var
	# 装甲部队防御
	army_armor_defence_factor = CZD_armor_defence_var
	# 突破能力
	breakthrough_factor = CZD_armor_breakthrough_var
	# 摩托化/机械化部队
	motorized_attack_factor = CZD_motorized_attack_var
	mechanized_attack_factor = CZD_mechanized_attack_var
	# 研究加速
	research_speed_factor = CZD_tech_research_var
}

# 三一运动的余波 (动态版)
CZD_march_first_legacy_dynamic = {
	icon = GFX_idea_CZD_march_first_legacy
	# 你也可以根据变量数值改变图标（进阶玩法），这里先用通用的
	
	enable = { always = yes }
	
	# --- 绑定变量 ---
	# 稳定度
	stability_factor = CZD_legacy_stability_var
	
	# 政治点数获取
	political_power_gain = CZD_legacy_pp_var
	
	# 抵抗目标 (这个特殊，数值越低越好)
	resistance_target = CZD_legacy_resistance_var
}


# =========================================================
# 核心圈加成容器 - 8条特化线路
# 党的领导集体 - 根据选择的核心圈成员获得不同方向的全面加成
# =========================================================
CZD_inner_circle_modifier = {
	icon = GFX_idea_generic_communist_army
	enable = { always = yes }
	
	# ===================================
	# 1号线路：间谍情报 (朴宪永路线) - 全面加强情报机构
	# ===================================
	intel_network_gain_factor = CZD_ic_intel_network_var
	own_operative_detection_chance_factor = CZD_ic_operative_stealth_var
	enemy_operative_detection_chance_factor = CZD_ic_counter_intel_var
	foreign_subversive_activites = CZD_ic_subversion_var
	operative_slot = CZD_ic_operative_slot_var
	decryption_factor = CZD_ic_decryption_var
	
	# ===================================
	# 2号线路：科技研发 (金策路线) - 全面加强科研
	# ===================================
	research_speed_factor = CZD_ic_research_var
	land_doctrine_cost_factor = CZD_ic_land_doctrine_var
	naval_doctrine_cost_factor = CZD_ic_naval_doctrine_var
	air_doctrine_cost_factor = CZD_ic_air_doctrine_var
	nuclear_production_factor = CZD_ic_nuclear_var
	
	# ===================================
	# 3号线路：陆军强化 (崔贤路线) - 全面加强陆军
	# ===================================
	army_attack_factor = CZD_ic_army_attack_var
	army_defence_factor = CZD_ic_army_defence_var
	army_org_factor = CZD_ic_army_org_var
	army_morale_factor = CZD_ic_army_morale_var
	breakthrough_factor = CZD_ic_breakthrough_var
	planning_speed = CZD_ic_planning_var
	land_reinforce_rate = CZD_ic_reinforce_var
	
	# ===================================
	# 4号线路：海空力量 (武亭路线) - 全面加强海军空军
	# ===================================
	naval_damage_factor = CZD_ic_naval_damage_var
	navy_org_factor = CZD_ic_navy_org_var
	naval_speed_factor = CZD_ic_naval_speed_var
	air_attack_factor = CZD_ic_air_attack_var
	air_defence_factor = CZD_ic_air_defence_var
	air_superiority_efficiency = CZD_ic_air_superiority_var
	experience_gain_navy_factor = CZD_ic_navy_xp_var
	experience_gain_air_factor = CZD_ic_air_xp_var
	
	# ===================================
	# 5号线路：资源获取 (姜健路线) - 全面加强资源和减少需求
	# ===================================
	local_resources_factor = CZD_ic_local_resources_var
	production_lack_of_resource_penalty_factor = CZD_ic_resource_penalty_var
	fuel_gain_factor = CZD_ic_fuel_gain_var
	army_fuel_consumption_factor = CZD_ic_army_fuel_var
	navy_fuel_consumption_factor = CZD_ic_navy_fuel_var
	air_fuel_consumption_factor = CZD_ic_air_fuel_var
	
	# ===================================
	# 6号线路：军事工业 (吴振宇路线) - 全面加强军工和降低生产成本
	# ===================================
	industrial_capacity_factory = CZD_ic_factory_output_var
	industrial_capacity_dockyard = CZD_ic_dockyard_output_var
	production_factory_efficiency_gain_factor = CZD_ic_efficiency_gain_var
	production_factory_max_efficiency_factor = CZD_ic_max_efficiency_var
	line_change_production_efficiency_factor = CZD_ic_line_change_var
	equipment_conversion_speed = CZD_ic_conversion_var
	
	# ===================================
	# 7号线路：民用工业 (南日路线) - 全面加强民用工业和生产效率
	# ===================================
	production_speed_buildings_factor = CZD_ic_build_speed_var
	global_building_slots_factor = CZD_ic_building_slots_var
	consumer_goods_factor = CZD_ic_consumer_goods_var
	industry_repair_factor = CZD_ic_repair_var
	production_factory_start_efficiency_factor = CZD_ic_start_efficiency_var
	
	# ===================================
	# 8号线路：政治稳定 (崔庸健路线) - 全面增加政治点和稳定度
	# ===================================
	political_power_gain = CZD_ic_pp_gain_var
	political_power_factor = CZD_ic_pp_factor_var
	stability_factor = CZD_ic_stability_var
	stability_weekly = CZD_ic_stability_weekly_var
	war_support_factor = CZD_ic_war_support_var
	war_support_weekly = CZD_ic_war_support_weekly_var
	drift_defence_factor = CZD_ic_drift_defence_var
	max_command_power_mult = CZD_ic_command_power_var
}

# --- 改善修正的办法 ---
		
		# 稳定度从 -15% 变成 -10% (加 0.05)
		#add_to_variable = { var = CZD_legacy_stability_var value = 0.05 }
		
		# PP从 -15% 变成 -10%
		#add_to_variable = { var = CZD_legacy_pp_var value = 0.05 }
		
		# 抵抗从 10% 变成 5% (减少 0.05)
		#add_to_variable = { var = CZD_legacy_resistance_var value = -0.05 }
		
		# 给玩家一个提示
		#custom_effect_tooltip = CZD_legacy_improvement_tooltip


# =========================================================
# 军事民族精神 - 朝鲜陆军
# =========================================================
CZD_korean_army_spirit = {
	icon = GFX_idea_prc_low_popular_support
	enable = { always = yes }
	
	# 陆军相关加成，随着国策完成而增强
	army_org_factor = CZD_army_spirit_org_var
	army_morale_factor = CZD_army_spirit_morale_var
	experience_gain_army_factor = CZD_army_spirit_xp_var
	army_attack_factor = CZD_army_spirit_attack_var
	army_defence_factor = CZD_army_spirit_defence_var
}

# =========================================================
# 军事民族精神 - 朝鲜海军
# =========================================================
CZD_korean_navy_spirit = {
	icon = GFX_idea_AUS_navy
	enable = { always = yes }
	
	# 海军相关加成，随着国策完成而增强
	navy_org_factor = CZD_navy_spirit_org_var
	navy_experience_gain_factor = CZD_navy_spirit_xp_var
	naval_speed_factor = CZD_navy_spirit_speed_var
	naval_damage_factor = CZD_navy_spirit_damage_var
}

# =========================================================
# 军事民族精神 - 朝鲜空军
# =========================================================
		CZD_korean_air_spirit = {
			icon = GFX_idea_AUS_airforce
			enable = { always = yes }
			
			# 空军相关加成，随着国策完成而增强
			air_experience_gain_factor = CZD_air_spirit_xp_var
			air_attack_factor = CZD_air_spirit_attack_var
			fighter_efficiency_factor = CZD_air_spirit_fighter_var
			air_range_factor = CZD_air_spirit_range_var
		}


# =========================================================
# 动态民族精神增强提示定义
# =========================================================

CZD_army_spirit_strengthened = {
	icon = GFX_idea_generic_army
	enable = { always = no }
}

CZD_navy_spirit_strengthened = {
	icon = GFX_idea_generic_navy
	enable = { always = no }
}

CZD_air_spirit_strengthened = {
	icon = GFX_idea_generic_air
	enable = { always = no }
}


		# ==================================
		# 政府部门建立 (动态民族精神)
		# ==================================
		CZD_government_departments_modifier = {
			icon = GFX_idea_PRC_the_central_committee
			
			enable = { always = no }
			
			# 基础修饰符 - 每个部门+0.05增加
		
				# 1. 经济增长
				production_speed_buildings_factor = CZD_government_departments_count
				industrial_capacity_factory = CZD_government_departments_count
				
				# 2. 军事发展
				army_org_factor = CZD_government_departments_count
				
				# 3. 政治稳定
				stability_weekly = CZD_government_departments_count
				political_power_gain = CZD_government_departments_count
				
				# 4. 外交影响
				justify_war_goal_time = CZD_government_departments_count_war

		}

# =========================================================
# 马克思主义政治经济学系统 - 动态修正
# =========================================================

# ========== 经济基础动态修正 ==========
CZD_economic_policy_modifier = {
	icon = GFX_idea_SOV_third_five_year_plan
	enable = { always = yes }
	
	# 农业政策影响 - 集体化(左)增加人力，私有化(右)增加消费品
	# 变量范围: -0.25 到 +0.25
	monthly_population = CZD_econ_agriculture_pop_var
	consumer_goods_factor = CZD_econ_agriculture_consumer_var
	
	# 重工业政策影响 - 国有化(左)增加军工，市场化(右)增加民用
	# 变量范围: -0.15 到 +0.15
	production_speed_arms_factory_factor = CZD_econ_heavy_military_var
	production_speed_industrial_complex_factor = CZD_econ_heavy_civilian_var
	
	# 轻工业政策影响 - 计划(左)增加建造速度，市场(右)增加产出
	# 变量范围: -0.20 到 +0.20
	production_speed_buildings_factor = CZD_econ_light_build_var
	industrial_capacity_factory = CZD_econ_light_output_var
	
	# 商业政策影响 - 国营(左)增加资源，自由市场(右)增加贸易
	# 变量范围: -0.20 到 +0.20
	local_resources_factor = CZD_econ_commerce_resource_var
	trade_opinion_factor = CZD_econ_commerce_trade_var
	
	# 军事经济影响 - 军工优先(左)增加军队，民用优先(右)增加稳定
	# 变量范围: -0.15 到 +0.15
	army_org_factor = CZD_econ_military_army_var
	stability_factor = CZD_econ_military_stability_var
}

# ========== 上层建筑动态修正 ==========
CZD_political_modifier = {
	icon = GFX_idea_generic_communism_drift_bonus
	enable = { always = yes }
	
	# 延安派影响 - 增加政治点数和意识形态漂移防御
	political_power_gain = CZD_pol_yanan_pp_var
	drift_defence_factor = CZD_pol_yanan_drift_var
	
	# 苏联派影响 - 增加科研和与苏联关系
	research_speed_factor = CZD_pol_soviet_research_var
	
	# 甲山派影响 - 增加抵抗力和游击战能力
	resistance_damage_to_garrison = CZD_pol_kapsan_resistance_var
	army_morale_factor = CZD_pol_kapsan_morale_var
	
	# 国内派影响 - 增加稳定和建设速度
	stability_factor = CZD_pol_domestic_stability_var
	production_speed_buildings_factor = CZD_pol_domestic_build_var
	
	# 官僚阶层影响
	# 基层干部 - 增加征兵
	conscription_factor = CZD_pol_petty_conscript_var
	# 技术官僚 - 增加工业效率
	line_change_production_efficiency_factor = CZD_pol_technocrat_efficiency_var
	# 官僚资产阶级 - 增加政治点数但降低稳定
	political_power_factor = CZD_pol_bourgeois_pp_var
}

# ========== 政治路线 - 终极Buff ==========
# 1. 无产阶级专政 - 最强的终极buff，体现社会主义优越性
CZD_line_proletariat_dictatorship = {
	icon = GFX_idea_fourth_international
	enable = { 
		has_country_flag = CZD_current_line_proletariat
	}
	
	# 政治强势
	political_power_gain = 0.25
	stability_factor = 0.15
	war_support_factor = 0.15
	drift_defence_factor = 0.50
	
	# 军事动员
	conscription_factor = 0.15
	army_org_factor = 0.10
	army_morale_factor = 0.15
	
	# 人民战争特性
	defence = 0.10
	army_core_defence_factor = 0.15
	surrender_limit = 0.10
	
	# 轻微的经济代价
	research_speed_factor = -0.03
	consumer_goods_factor = 0.02
}

# 2. 人民民主专政 - 平衡发展
CZD_line_peoples_democracy = {
	icon = GFX_idea_PRC_the_central_committee
	enable = { 
		has_country_flag = CZD_current_line_democracy
	}
	
	# 政治稳定
	political_power_gain = 0.15
	stability_factor = 0.15
	war_support_factor = 0.05
	drift_defence_factor = 0.20
	
	# 经济建设
	production_speed_buildings_factor = 0.10
	consumer_goods_factor = -0.05
	
	# 军事适中
	conscription_factor = 0.05
	army_org_factor = 0.05
}

# 3. 技术官僚主导 - 科研和工业强
CZD_line_technocracy = {
	icon = GFX_idea_jap_supremacy_of_technology
	enable = { 
		has_country_flag = CZD_current_line_technocracy
	}
	
	# 科研优势
	research_speed_factor = 0.15
	
	# 工业优势
	production_speed_buildings_factor = 0.10
	industrial_capacity_factory = 0.15
	production_factory_max_efficiency_factor = 0.10
	line_change_production_efficiency_factor = 0.15
	
	# 政治代价
	political_power_gain = -0.10
	stability_factor = -0.05
	drift_defence_factor = -0.20
	
	# 军事弱势
	conscription_factor = -0.05
	army_morale_factor = -0.05
}

# 4. 以经济发展为中心 (修正主义道路) - 经济强但意识形态崩溃
CZD_line_revisionism = {
	icon = GFX_idea_generic_foreign_capital
	enable = { 
		has_country_flag = CZD_current_line_revisionism
	}
	
	# 经济繁荣
	industrial_capacity_factory = 0.20
	production_speed_buildings_factor = 0.15
	consumer_goods_factor = -0.08
	trade_opinion_factor = 0.30
	local_resources_factor = 0.10
	
	# 政治满崩
	political_power_gain = -0.15
	stability_factor = -0.10
	drift_defence_factor = -0.40
	communism_drift = -0.03
	
	# 军事弱化
	war_support_factor = -0.10
	conscription_factor = -0.10
	army_morale_factor = -0.10
}

# 5. 军国主义 - 军事强但民生差
CZD_line_militarism = {
	icon = GFX_idea_generic_war_preparation
	enable = { 
		has_country_flag = CZD_current_line_militarism
	}
	
	# 军事优势
	army_org_factor = 0.15
	army_morale_factor = 0.15
	army_attack_factor = 0.15
	breakthrough_factor = 0.10
	war_support_factor = 0.20
	conscription_factor = 0.20
	production_speed_arms_factory_factor = 0.15
	experience_gain_army_factor = 0.20
	
	# 政治代价
	political_power_gain = -0.15
	stability_factor = -0.15
	
	# 经济代价
	consumer_goods_factor = 0.08
	production_speed_industrial_complex_factor = -0.10
	research_speed_factor = -0.05
}

# 6. 官僚资产阶级专政 - 政治点数多但全面腐败
CZD_line_bureaucratic_capitalism = {
	icon = GFX_idea_chi_warlord_corruption3
	enable = { 
		has_country_flag = CZD_current_line_bureaucratic
	}
	
	# 官僚优势
	political_power_gain = 0.30
	
	# 经济腐败
	production_speed_buildings_factor = -0.05
	industrial_capacity_factory = -0.05
	consumer_goods_factor = 0.05
	
	# 政治崩溃
	stability_factor = -0.20
	war_support_factor = -0.15
	drift_defence_factor = -0.30
	communism_drift = -0.05
	
	# 军事败坏
	conscription_factor = -0.15
	army_org_factor = -0.10
	army_morale_factor = -0.15
}

# 7. 工团主义路线 - 工业强但政治和军事弱
CZD_line_syndicalism = {
	icon = GFX_idea_SOV_stakhanovite_movement
	enable = { 
		has_country_flag = CZD_current_line_syndicalism
	}
	
	# 工业优势
	industrial_capacity_factory = 0.25
	production_speed_industrial_complex_factor = 0.20
	production_factory_efficiency_gain_factor = 0.15
	local_resources_factor = 0.15
	
	# 工人动员
	conscription_factor = 0.10
	
	# 政治代价
	political_power_gain = -0.20
	stability_factor = -0.05
	
	# 军事代价
	army_org_factor = -0.15
	army_attack_factor = -0.05
	research_speed_factor = -0.05
}

# =========================================================
# 世界革命进程动态修正 - 全球解放进度
# =========================================================
# 随着各大洲人民站起来和资本主义的终结，奖励逐步增加
# 变量 WR_liberation_progress: 0-6 (每完成一个国策+1)
# 亚洲站起来+1, 欧洲站起来+1, 美洲站起来+1, 非洲站起来+1, 大洋洲站起来+1, 资本主义终结+1 = 最大6

WR_world_liberation_modifier = {
	icon = GFX_idea_fourth_international
	enable = { 
		check_variable = { WR_liberation_progress > 0 }
	}
	
	# 政治力量 (每阶段+3%, 最大+18%)
	political_power_factor = WR_liberation_pp_var
	
	# 稳定度 (每阶段+2.5%, 最大+15%)
	stability_factor = WR_liberation_stability_var
	
	# 战争支持 (每阶段+2.5%, 最大+15%)
	war_support_factor = WR_liberation_war_support_var
	
	# 研究速度 (每阶段+1.5%, 最大+9%)
	research_speed_factor = WR_liberation_research_var
	
	# 工厂产能 (每阶段+1.5%, 最大+9%)
	industrial_capacity_factory = WR_liberation_industry_var
	
	# 陆军士气 (每阶段+2%, 最大+12%)
	army_morale_factor = WR_liberation_morale_var
}