﻿# =====================
# 闁哄牊绻堥惌鐐碘偓瑙劽崕锔炬導閸曨亪鐛撻梻鍐ㄥ妤犲洭宕℃潏銊︾皻濞存粌顑勫▎?
# =====================

add_namespace = czd_crisis

# =====================
# 闁告椴稿┃鈧悷娆欑畱瑜板倹绂嶇€ｂ晜顐?
# =====================

# 闁哄鍎撮崵婊堝椽閹间焦娈旈柛鏍殜娴滈箖鎯冮崟顕呮敤婵炲浜濋ˉ鍛▔閸欍儰绻?
country_event = {
	id = czd_crisis.1
	title = czd_crisis.1.t
	desc = czd_crisis.1.d
	picture = GFX_report_cjc_soviet_32

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = CZD_crisis_started
		}
	}

	option = {
		name = czd_crisis.1.a # 閺夆晜鐟ょ花鍝勎涢埀顒佺▔閸欍儰绻嗛煫鍥ф嚇閵嗗繒鎷嬮妶鍥ㄥ焸閻庣數鎳撶欢?
		add_political_power = -25
		add_stability = -0.05
		add_ideas = CZD_escalating_class_contradictions
		custom_effect_tooltip = CZD_crisis_begins_tt
	}
}

# 闁稿繑鑹鹃崬瀵告崉椤栨粌娈犻柡鍌涖仦缁?
country_event = {
	id = czd_crisis.2
	title = czd_crisis.2.t
	desc = czd_crisis.2.d
	picture = GFX_report_cjc_lenin_3

	is_triggered_only = yes

	option = {
		name = czd_crisis.2.a # 闂傚啫澧庢鍥儗濞戞碍绂堥煫鍥ф嚇閵嗗繐閿濆牜娼?
		add_political_power = -10
		add_to_variable = { var = CZD_counterrevolution_level value = 5 }
		set_country_flag = CZD_chose_radical_line
	}

	option = {
		name = czd_crisis.2.b # 閺夆晜鐟ヨぐ褔寮伴姘辨瘜闁轰線濮瑰鎯冮崟锛栭柨?
		add_stability = -0.03
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = 5 }
		add_to_variable = { CZD_bureaucratic_bourgeoisie = 5 }
		set_country_flag = CZD_chose_historical_line
	}
}

# 濞戞挸绉跺﹢銏＄▕鐎ｆ - 濡澘妫滈。濠氭儍閸曃ㄩ柨?
country_event = {
	id = czd_crisis.3
	title = czd_crisis.3.t
	desc = czd_crisis.3.d
	picture = GFX_report_cjc_redflag_paper

	is_triggered_only = yes

	option = {
		name = czd_crisis.3.a # 缂佸鍟块悾楣冨储鐎ｎ亖鍋撻幒宥囶伇闁?
		custom_effect_tooltip = CZD_choose_historical_path_tt
		set_country_flag = CZD_historical_path
		add_stability = 0.05
		add_political_power = 25
	}

	option = {
		name = czd_crisis.3.b # 闂傚牃鏅涢幊陇绠涢崨娣偓蹇曠磼瑜忛悽?
		custom_effect_tooltip = CZD_choose_radical_path_tt
		set_country_flag = CZD_radical_path
		add_stability = -0.05
		add_war_support = 0.1
	}
}

# =====================
# 闁告ê妫楄ぐ鍓佹崉椤栨粌娈犲ù婊冾儎濞?
# =====================

# 闁告垿缂氶棅鈺呭箣閹邦剙鐎婚悹瀣暞閻?
country_event = {
	id = czd_crisis.10
	title = czd_crisis.10.t
	desc = czd_crisis.10.d
	picture = GFX_report_cjc_lenin_2

	is_triggered_only = yes

	option = {
		name = czd_crisis.10.a
		add_political_power = 25
		add_ideas = CZD_songbun_system
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = -10 }
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie value = -10 }
	}
}

# 闁搞儴妫勯宥嗙┍濠靛棗閱囬柣顏冭兌濞堟垿骞嶉埡浣虹倞
country_event = {
	id = czd_crisis.11
	title = czd_crisis.11.t
	desc = czd_crisis.11.d
	picture = GFX_report_cjc_soviet_1_parade

	is_triggered_only = yes

	option = {
		name = czd_crisis.11.a
		add_ideas = CZD_secret_police_network
		add_to_variable = { var = CZD_purge_intensity value = 15 }
		add_stability = 0.03
	}
}

# 闁谎嗘閵囨梻浠︽潏顐敤闁?
country_event = {
	id = czd_crisis.12
	title = czd_crisis.12.t
	desc = czd_crisis.12.d
	picture = GFX_report_cjc_soviet_3

	is_triggered_only = yes

	option = {
		name = czd_crisis.12.a
		add_ideas = CZD_revolutionary_bloodline
		add_political_power = 50
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = -15 }
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie value = -15 }
	}
}

# 闁哥儐鍨粩鎾箑濠靛洤鍘掑ù锝嗘尵闁挳鎯冮崟顓涒偓姗€鏁?
country_event = {
	id = czd_crisis.13
	title = czd_crisis.13.t
	desc = czd_crisis.13.d
	picture = GFX_report_cjc_lenin_3

	is_triggered_only = yes

	option = {
		name = czd_crisis.13.a
		swap_ideas = {
			remove_idea = CZD_revolutionary_bloodline
			add_idea = CZD_ten_principles
		}
		add_stability = 0.1
		add_war_support = 0.05
	}
}

# 缂佷勘鍨兼竟濠囨偝鐎ｎ偅绡傞柣銊ュ閻т線鏁?
country_event = {
	id = czd_crisis.14
	title = czd_crisis.14.t
	desc = czd_crisis.14.d
	picture = GFX_report_cjc_lenin_2

	is_triggered_only = yes

	option = {
		name = czd_crisis.14.a
		swap_ideas = {
			remove_idea = CZD_ten_principles
			add_idea = CZD_red_dynasty
		}
		if = {
			limit = { has_idea = CZD_escalating_class_contradictions }
			remove_ideas = CZD_escalating_class_contradictions
		}
		add_stability = 0.15
		add_political_power = 100
		custom_effect_tooltip = CZD_historical_ending_tt
		set_country_flag = CZD_historical_ending_achieved
	}
}

# =====================
# 婵犵鍋撻弶鈺傜閻墽鐥径鍝ョ殤闁?
# =====================

# 缂傚洢鍊撶槐顒佹交閹邦剙袟闁汇劌瀚槐鎴︽晸?
country_event = {
	id = czd_crisis.20
	title = czd_crisis.20.t
	desc = czd_crisis.20.d
	picture = GFX_report_cjc_soviet_3

	is_triggered_only = yes

	option = {
		name = czd_crisis.20.a
		add_ideas = CZD_political_crisis
		add_to_variable = { var = CZD_revolutionary_momentum value = 20 }
		add_stability = -0.05
	}
}

# 闁瑰灚鎸鹃。鎶芥煥娓氣偓閹?
country_event = {
	id = czd_crisis.21
	title = czd_crisis.21.t
	desc = czd_crisis.21.d
	picture = GFX_news_cjc_generic_1

	is_triggered_only = yes

	option = {
		name = czd_crisis.21.a
		swap_ideas = {
			remove_idea = CZD_political_crisis
			add_idea = CZD_break_the_old_world
		}
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = -20 }
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie value = -20 }
		add_war_support = 0.05
	}
}

# 缂佷勘鍨兼竟濠冾槹鎼淬垺鐦归悽顖ｅ幖瀹撳酣宕楅妸銉︾
country_event = {
	id = czd_crisis.22
	title = czd_crisis.22.t
	desc = czd_crisis.22.d
	picture = GFX_report_cjc_soviet_32

	is_triggered_only = yes

	option = {
		name = czd_crisis.22.a
		swap_ideas = {
			remove_idea = CZD_break_the_old_world
			add_idea = CZD_red_storm
		}
		add_to_variable = { var = CZD_purge_intensity value = 25 }
		add_to_variable = { var = CZD_revolutionary_momentum value = 15 }
	}
}

# 闂傚牃鏅涢幊锟犳儍閸曨偄纾╅悗娑欘殙閻箖鏁?- 闁稿繑濞婇弫顓㈠箮婢跺顏?
country_event = {
	id = czd_crisis.23
	title = czd_crisis.23.t
	desc = czd_crisis.23.d
	picture = GFX_report_cjc_redflag_paper

	is_triggered_only = yes

	option = {
		name = czd_crisis.23.a # 闁哄牃鍋撻柛姘捣濞堟垿鎮堕崱妯哄帓濞戞捁顔婄粻鐔兼晸?
		custom_effect_tooltip = CZD_choose_wuzhangyuan_tt
		set_country_flag = CZD_wuzhangyuan_path
		add_to_variable = { var = CZD_purge_intensity value = 20 }
	}

	option = {
		name = czd_crisis.23.b # 閻忓繐妫濆濠氬川閸婄喓绠婚悶娑樿嫰閸╁矂鏁?
		custom_effect_tooltip = CZD_choose_world_liberation_tt
		set_country_flag = CZD_world_liberation_path
		add_to_variable = { var = CZD_revolutionary_momentum value = 30 }
	}
}

# 鎰忚瘑褰㈡€侀潻鍛?- 娣蜂贡钄撳欢
country_event = {
	id = czd_crisis.24
	title = czd_crisis.24.t
	desc = czd_crisis.24.d
	picture = GFX_report_cjc_soviet_3
	
	is_triggered_only = yes
	
	option = {
		name = czd_crisis.24.a
		add_stability = -0.05
		add_war_support = 0.05
	}
}

# =====================
# 濞存粍鏌х粭鈧柛妯煎枙閻墽鐥径鍝ョ殤闁?(闂佸弶鍨堕婊堟晸?
# =====================

# 闁绘洖鍟弫鏍嫉閳ь剟宕ユ惔锝嗙暠闁稿繐顦虫慨?
country_event = {
	id = czd_crisis.30
	title = czd_crisis.30.t
	desc = czd_crisis.30.d
	picture = GFX_report_cjc_soviet_3

	is_triggered_only = yes

	option = {
		name = czd_crisis.30.a
		add_ideas = CZD_pure_revolutionary_ranks
		add_to_variable = { var = CZD_purge_intensity value = 30 }
		add_stability = -0.1
	}
}

# 闁哄牃鍋撻柛姘捣濞堟垶顪€鎼淬垺顫?
country_event = {
	id = czd_crisis.31
	title = czd_crisis.31.t
	desc = czd_crisis.31.d
	picture = GFX_report_cjc_redflag_paper

	is_triggered_only = yes

	option = {
		name = czd_crisis.31.a
		swap_ideas = {
			remove_idea = CZD_pure_revolutionary_ranks
			add_idea = CZD_soulless_shell
		}
		if = {
			limit = { has_idea = CZD_red_storm }
			remove_ideas = CZD_red_storm
		}
		if = {
			limit = { has_idea = CZD_escalating_class_contradictions }
			remove_ideas = CZD_escalating_class_contradictions
		}
		add_stability = -0.2
		add_political_power = -100
		
		# 棰嗗浜烘浛鎹负閲戞鏃?
		promote_character = CZD_kim_jong_il
		
		custom_effect_tooltip = CZD_wuzhangyuan_ending_tt
		set_country_flag = CZD_wuzhangyuan_ending_achieved
	}
}

# =====================
# 濞戞挻鐗滈弲顐﹀礉閸愭彃袟闁兼澘鎳撹闁衡偓閹规劒绮撻柣鈺冨枙閻墽鐥径鍝ョ殤闁?
# =====================

# 闁搞儰绮欏顖炴閳轰焦鍤掗柣銊ュ瑜板潡鏁?
country_event = {
	id = czd_crisis.40
	title = czd_crisis.40.t
	desc = czd_crisis.40.d
	picture = GFX_news_cjc_generic_1

	is_triggered_only = yes

	option = {
		name = czd_crisis.40.a
		add_ideas = CZD_revolutionary_fervor
		add_to_variable = { var = CZD_revolutionary_momentum value = 25 }
		add_war_support = 0.1
	}
}

# 闁告碍鍨电粭锝夊炊閹存帒鐦滃☉鏂款槸椤撴椽鏁?
country_event = {
	id = czd_crisis.41
	title = czd_crisis.41.t
	desc = czd_crisis.41.d
	picture = GFX_report_cjc_soviet_1_parade

	is_triggered_only = yes

	option = {
		name = czd_crisis.41.a
		swap_ideas = {
			remove_idea = CZD_revolutionary_fervor
			add_idea = CZD_permanent_revolution
		}
		if = {
			limit = { has_idea = CZD_red_storm }
			remove_ideas = CZD_red_storm
		}
		if = {
			limit = { has_idea = CZD_escalating_class_contradictions }
			remove_ideas = CZD_escalating_class_contradictions
		}
		add_war_support = 0.15
		add_stability = 0.1
		add_political_power = 150
		custom_effect_tooltip = CZD_world_liberation_ending_tt
		set_country_flag = CZD_world_liberation_ending_achieved
	}
}

# =====================
# 闂傚懎绻戝┃鈧悷娆欑畱瑜板倹绂嶇€ｂ晜顐?- 濠⒀呭仜婵偛鈻芥径瀣疄闁?
# =====================

# 闁哄鍎撮崵婊堝春閸濆嫮婀撮柣銊ュ閹崇娀鏁?
country_event = {
	id = czd_crisis.50
	title = czd_crisis.50.t
	desc = czd_crisis.50.d
	picture = GFX_report_cjc_soviet_3

	trigger = {
		tag = KOR
		has_country_flag = CZD_crisis_started
		NOT = {
			has_country_flag = CZD_historical_ending_achieved
			has_country_flag = CZD_wuzhangyuan_ending_achieved
			has_country_flag = CZD_world_liberation_ending_achieved
		}
	}

	mean_time_to_happen = {
		months = 6
	}

	option = {
		name = czd_crisis.50.a # 闁稿﹥鍎抽幆澶岀礃閵堝嫮鑸归柣銊ュ閿涙劙鏁?
		add_political_power = -10
		add_to_variable = { var = CZD_revolutionary_momentum value = 3 }
	}

	option = {
		name = czd_crisis.50.b # 缂備礁鐡ㄧ€垫棃鎮抽幍顔夹?
		add_stability = -0.02
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = 2 }
		add_to_variable = { CZD_bureaucratic_bourgeoisie = 2 }
	}
}

# 妤犵偞鐓￠崕鎾儍閸曨収娼岄柨?
country_event = {
	id = czd_crisis.51
	title = czd_crisis.51.t
	desc = czd_crisis.51.d
	picture = GFX_report_cjc_lenin_3

	trigger = {
		tag = KOR
		has_country_flag = CZD_crisis_started
		NOT = {
			has_country_flag = CZD_historical_ending_achieved
			has_country_flag = CZD_wuzhangyuan_ending_achieved
			has_country_flag = CZD_world_liberation_ending_achieved
		}
	}

	mean_time_to_happen = {
		months = 8
	}

	option = {
		name = czd_crisis.51.a # 閺夆晜绋栭、鎴犳嫬閸愨晝鍙€
		add_political_power = -15
		add_to_variable = { var = CZD_purge_intensity value = 5 }
	}

	option = {
		name = czd_crisis.51.b # 闁哄棗鍊瑰鍌滄喆閸屾稒绠?
		add_to_variable = { var = CZD_counterrevolution_level value = 3 }
	}
}

# 濠㈣埖绮嶅▍鍕儍閸曨剛浠氶柨?
country_event = {
	id = czd_crisis.52
	title = czd_crisis.52.t
	desc = czd_crisis.52.d
	picture = GFX_report_cjc_soviet_1_parade

	trigger = {
		tag = KOR
		has_country_flag = CZD_crisis_started
		check_variable = { var = CZD_purge_intensity value > 30 compare = greater_than }
		NOT = {
			has_country_flag = CZD_historical_ending_achieved
			has_country_flag = CZD_wuzhangyuan_ending_achieved
			has_country_flag = CZD_world_liberation_ending_achieved
		}
	}

	mean_time_to_happen = {
		months = 4
	}

	option = {
		name = czd_crisis.52.a # 閺夆晜鐟﹀Σ姝岀疀閸涢偊娲ｉ柨?
		add_stability = -0.03
		add_to_variable = { var = CZD_purge_intensity value = 5 }
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie_power value = -5 }
		add_to_variable = { var = CZD_bureaucratic_bourgeoisie value = -5 }
	}

	option = {
		name = czd_crisis.52.b # 闂傚洠鍋撻悷鏇氱劍濞插潡宕濋悩铏规闁?
		add_political_power = -20
		add_to_variable = { var = CZD_purge_intensity value = -10 }
	}
}



