﻿add_namespace = czd_juche

# ============================================================================
# 濞戞捁顔婄紞瀣箑濠靛洤鍘掗柛銉︾☉閵囧洭宕㈤悢宄扮仧濞存粌顑勫▎?
# ============================================================================

# ================================================
# 濞存粌顑勫▎?闁挎稒鑹鹃崢鐑芥儍閸曨収鍎戝☉鎾亾濞寸媴缍侀。顐も偓闈涘悑閻楀疇绠涢崘顏佲偓妯肩博?
# 閻熸瑱绠戣ぐ鍌炴晬濮橆剛鏆氶柟瀛樷偓瀛糄_juche_idea闁搞儳鏅悺?
# ================================================
country_event = {
	id = czd_juche.1
	title = czd_juche.1.t
	desc = czd_juche.1.d
	picture = GFX_report_event_gathering_party
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_juche_idea_established
		}
	}
	
	# 闂侇偄顦甸妴宀柨娑欒壘瀹歌京鎷崘顔兼闁哄啨鍎查崹姘舵儍閸曨厾鍗滈悗闈涚秺椤ｎ偆鈧潧鍚嬪?
	option = {
		name = czd_juche.1.a
		ai_chance = { factor = 70 }
		
		add_political_power = 100
		add_stability = 0.10
		add_war_support = 0.05
		
		# 濠⒀呭仜婵偤骞囪箛姘辨鐟滆埇鍨洪埀顑跨窔濡茶顕?
		add_ideas = CZD_juche_central_leadership
		
		custom_effect_tooltip = CZD_juche_core_established_tt
	}
	
	# 闂侇偄顦甸妴宀柨娑欒壘瀹歌京鎷崘顔借偁濞达絾鎹囬。顐も偓?
	option = {
		name = czd_juche.1.b
		ai_chance = { factor = 30 }
		
		add_political_power = 150
		add_stability = 0.05
		
		# 闁衡偓閹稿簼绗夐柣鎰潐閺嗙喖寮撮弶鎴▼濞达絽妫濆Σ璇差嚗閳ヨ櫕鈧儲绋夐埀顒佺?
		add_ideas = CZD_juche_collective_leadership
		
		custom_effect_tooltip = CZD_juche_collective_tt
	}
}

# ================================================
# 濞存粌顑勫▎?闁挎稒姘ㄧ划鈥趁规惔銈呮缂佹柨顑呯敮顐﹀礆濞嗗浚鍚呴悷灏佸亾
# 閻熸瑱绠戣ぐ鍌炴晬濮橆剛鏆氶柟瀛樷偓瀛糄_self_sufficiency_in_economy闁搞儳鏅悺?
# ================================================
country_event = {
	id = czd_juche.2
	title = czd_juche.2.t
	desc = czd_juche.2.d
	picture = GFX_report_event_industry_soviet
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_juche_self_sufficiency_declared
		}
	}
	
	# 闂侇偄顦甸妴宀柨娑欏哺閸ｇ顔忛妷銈囩懝濞村吋锚閸?- 闁告劖绋戞导鎰偓鐢靛帶閹?
	option = {
		name = czd_juche.2.a
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 2
				has_war = yes
			}
		}
		
		# 闁告劖绋戞导鎰附閺嵮冃?
		add_tech_bonus = {
			name = industrial_bonus
			bonus = 1.0
			uses = 2
			category = industry
		}
		
		# 鐎点倖妞介埀顒傚Т閸熸顔忛妷銉ヨ寖
		random_owned_controlled_state = {
			limit = { is_core_of = ROOT }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		
		add_ideas = CZD_heavy_industry_priority
		
		custom_effect_tooltip = CZD_self_sufficiency_heavy_tt
	}
	
	# 闂侇偄顦甸妴宀柨娑欒壘闁解晝鎮伴垾鍐茬岛閻?- 婵ɑ鍨归弫鎾寸▔鎼粹€虫櫧鐎规悶鍎遍懟鐔兼煂?
	option = {
		name = czd_juche.2.b
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 2
				has_war = no
			}
		}
		
		# 婵ɑ鍨归弫銈咁啅閵夈倗鐟瑰┑鍌涚墪婵?
		add_tech_bonus = {
			name = industrial_bonus
			bonus = 1.0
			uses = 1
			category = industry
		}
		
		# 鐎点倖妞介埀顒傚У閻垶鎮介妸銉ょ矗闁?
		random_owned_controlled_state = {
			limit = { is_core_of = ROOT }
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		
		add_ideas = CZD_balanced_economy
		
		custom_effect_tooltip = CZD_self_sufficiency_balanced_tt
	}
	
	# 闂侇偄顦甸妴宀伴柨娑欎亢娴溿倕顔忛妷銈囩懝濞戞挸楠搁崯妯荤▔?- 婵ɑ鍨归弫鎾垛偓鐢靛帶閹?
	option = {
		name = czd_juche.2.c
		ai_chance = { factor = 20 }
		
		add_stability = 0.10
		
		# 婵炴垵鐗愰崹鍌炲传娴ｇ娅ら悘?
		add_ideas = CZD_peoples_economy
		
		# 濠⒀呭仜婵偞绂嶉崫鍕潝
		add_manpower = 50000
		
		custom_effect_tooltip = CZD_self_sufficiency_light_tt
	}
}

# ================================================
# 濞存粌顑勫▎?闁挎稒纰嶉埀顒佺箖閸忓倿鎮鍌滃綄闁告鍠庨崹?- 濞戞挴鍋撻柛蹇撳暙鐎垫煡骞€濠靛洤鍘掑ù锝嗘尵闁?
# 閻熸瑱绠戣ぐ鍌炴晬濮橆剛鏆氶柟瀛樷偓瀛糄_monolithic_ideological_system闁搞儳鏅悺?
# ================================================
country_event = {
	id = czd_juche.3
	title = czd_juche.3.t
	desc = czd_juche.3.d
	picture = GFX_report_event_propaganda
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_juche_monolithic_system
		}
	}
	
	# 闂侇偄顦甸妴宀柨娑欑煯瀵寮介懖鈺傜暠闁诡剚绻冮崗鍌滅磼閻斿墎顏?- 濡ゅ倹顭囪彊閻庤鐭徊鍓х矓閹寸姷鍩￠柟?
	option = {
		name = czd_juche.3.a
		ai_chance = { factor = 40 }
		
		add_stability = 0.20
		add_war_support = 0.10
		
		# 缂佸倷鐒﹂娑欏緞閺嵮勭闁规澘绻楅惁鎴ｃ亹閵忊檧鍋撴担鍦懖闂?
		set_rule = { can_boost_other_ideologies = no }
		
		add_ideas = CZD_strict_ideological_unity
		
		# 闁艰绻楁禒鍫澝洪幆褍顨涢柛婵嗙Т婵繑寰勮缁犳瑦绋夌€ｎ喗顎?
		add_to_variable = { var = CZD_soviet_influence value = -15 }
		clamp_variable = { var = CZD_soviet_influence min = 0 max = 100 }
		
		custom_effect_tooltip = CZD_monolithic_strict_tt
	}
	
	# 闂侇偄顦甸妴宀柨娑欒壘閸ㄩ亶鏌呴悩鏂ュ亾瑜嶇花鏌ユ偨閵娾斁鏀柛蹇擃儐閳ь剚绻€鐎靛本绋?- 妤犵偛鐤囬妴鈧柡鍌濐潐椤?
	option = {
		name = czd_juche.3.b
		ai_chance = { factor = 40 }
		
		add_stability = 0.15
		add_political_power = 100
		
		add_ideas = CZD_creative_marxism
		
		# 闁艰绻楁禒鍫澝洪幆褍顨涢柛婵嗙Т婵繘鏌呴崒姘唺濞戞挸顑夊?
		add_to_variable = { var = CZD_soviet_influence value = -8 }
		clamp_variable = { var = CZD_soviet_influence min = 0 max = 100 }
		
		custom_effect_tooltip = CZD_monolithic_creative_tt
	}
	
	# 闂侇偄顦甸妴宀伴柨娑欒壘缁辨垿寮ㄩ幆褜鍔呴柡鍫灥椤撹法鎷?- 缂佸鍨归悥楦跨疀椤愶紕绋婚柟鏉跨箺閻︽垼銇愰姀鈾€鍋撴笟鈧Σ璇差嚗閳ヨ櫕鈧?
	option = {
		name = czd_juche.3.c
		ai_chance = { factor = 20 }
		
		add_research_slot = 1
		
		add_ideas = CZD_open_academic_discussion
		
		custom_effect_tooltip = CZD_monolithic_open_tt
	}
}

# ================================================
# 濞存粌顑勫▎?闁挎稒鑹鹃ˇ缁樼閵堝牆娈板☉鎾诡嚙鐢偊宕?
# 閻熸瑱绠戣ぐ鍌炴晬濮橆剛鏆氶柟瀛樷偓瀛糄_independence_in_diplomacy闁搞儳鏅悺?
# ================================================
country_event = {
	id = czd_juche.4
	title = czd_juche.4.t
	desc = czd_juche.4.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_juche_diplomatic_independence
		}
	}
	
	# 闂侇偄顦甸妴宀柨娑欒壘缂傛挾绮╃€ｎ剙顏紒鏂款儑濞堟垶寰勯弽锔藉攭閻犱警鍨抽崵?- 闁告瑯鍨伴崹鍗烆嚈濞差亝鈻堥柦鈧?
	option = {
		name = czd_juche.4.a
		ai_chance = { factor = 50 }
		
		set_rule = { can_create_factions = yes }
		
		add_political_power = 150
		add_war_support = 0.05
		
		add_ideas = CZD_independent_diplomacy
		
		# 闁衡偓閻熺増婢栧☉鎾冲婢у秹寮垫径濠傚綑濞存籂鍐╃閻庣娉涢崣褏鍖?
		every_country = {
			limit = { has_government = communism }
			add_opinion_modifier = { target = ROOT modifier = CZD_brother_nation }
		}
		
		custom_effect_tooltip = CZD_diplomacy_independent_tt
	}
	
	# 闂侇偄顦甸妴宀柨娑欑煯缁楀矂鎳熻箛姘矒濞ｅ洦绻冪€垫梻妲愯閻︽垿鎳曢弮鍌炲厙 - 闁兼儳鍢茬欢閬嶆嚐韫囨矮绮撻柟缁樻綑婵?
	option = {
		name = czd_juche.4.b
		ai_chance = { 
			factor = 30
			modifier = {
				factor = 2
				SOV = { is_major = yes }
			}
		}
		
		# 闁艰绻楁禒鍫ュ箵閺夋垵袠
		SOV = {
			add_opinion_modifier = { target = ROOT modifier = positive_trade_relations }
		}
		add_opinion_modifier = { target = SOV modifier = positive_trade_relations }
		
		# 闁兼儳鍢茬欢杈╂啑閸涱収妲?
		add_equipment_to_stockpile = { type = infantry_equipment amount = 2000 }
		add_equipment_to_stockpile = { type = artillery_equipment amount = 100 }
		
		add_ideas = CZD_soviet_aligned_diplomacy
		
		# 闁艰绻楁禒鍫澝洪幆褍顨涢柛婵嗙Т婵繑绋夋繝鍌氱３
		add_to_variable = { var = CZD_soviet_influence value = 10 }
		clamp_variable = { var = CZD_soviet_influence min = 0 max = 100 }
		
		custom_effect_tooltip = CZD_diplomacy_soviet_tt
	}
	
	# 闂侇偄顦甸妴宀伴柨娑欑煯缁楀本绋夐鐐寸鐎点倛娅ｉ悵娑㈠礂閸曨偆鍚归柛蹇撶－闁?
	option = {
		name = czd_juche.4.c
		ai_chance = { 
			factor = 20
			modifier = {
				factor = 3
				PRC = { exists = yes }
			}
		}
		
		# 濞戞搩鍘煎ù妤呭箵閺夋垵袠
		if = {
			limit = { PRC = { exists = yes } }
			PRC = {
				add_opinion_modifier = { target = ROOT modifier = positive_trade_relations }
			}
			add_opinion_modifier = { target = PRC modifier = positive_trade_relations }
		}
		
		# 濞存粌鎼慨蹇涘箵閺夋垵袠
		add_manpower = 30000
		
		add_ideas = CZD_chinese_aligned_diplomacy
		
		# 鐎点倛娉涢悾銊ッ洪幆褍顨涢柛婵嗙Т婵繑绋夋繝鍌氱３
		add_to_variable = { var = CZD_yanan_influence value = 10 }
		clamp_variable = { var = CZD_yanan_influence min = 0 max = 100 }
		
		custom_effect_tooltip = CZD_diplomacy_chinese_tt
	}
}

# ================================================
# 濞存粌顑勫▎?闁挎稒鐭€靛本鎷呴幘绮瑰亾濠靛洤鍘掗悗鐟拌嫰閸欏繒娑甸鍓у綄 - 濠㈤浜Σ鍏肩▕鐎ｎ亝绂?
# 閻熸瑱绠戣ぐ鍌炴晬濮橆剛鏆氶柟瀛樷偓瀛糄_the_sun_of_the_nation闁搞儳鏅悺?
# ================================================
country_event = {
	id = czd_juche.5
	title = czd_juche.5.t
	desc = czd_juche.5.d
	picture = GFX_report_event_kim_il_sung
	
	is_triggered_only = yes
	major = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_sun_of_nation_established
		}
	}
	
	option = {
		name = czd_juche.5.a
		
		add_political_power = 300
		add_stability = 0.15
		add_war_support = 0.20
		
		# 缂佸顭峰▍搴ㄥ箥閳ь剟寮垫径澶婎槻闁哄啳鍩栭埀顑嫮姣岄柡鍐ㄧ箳缁ㄨ法绮婇悜鍥╃婵烇綀顕ф慨鐐差潩闂€鎰暯闁诡儸鍛煉闁哄鏀籾ff
		if = {
			limit = { has_idea = CZD_juche_central_leadership }
			remove_ideas = CZD_juche_central_leadership
		}
		if = {
			limit = { has_idea = CZD_juche_collective_leadership }
			remove_ideas = CZD_juche_collective_leadership
		}
		
		add_ideas = CZD_juche_final_form
		
		# 缂備焦鐟╅崳楣冨籍閵夛箑鐏囨繛锝堫嚙婵偛顫濋梹鎰暯闁绘顢婂?
		闂佸弶鍨跺Λ鈺呭箣?= {
			add_country_leader_trait = CZD_trait_sun_of_the_nation
		}
		
		custom_effect_tooltip = CZD_sun_of_nation_tt
	}
}

# ================================================
# 閺夊牆鎳庢慨顏呯鐎ｂ晜顐介柨娑欐皑缁€趁规惔銈呮缂佹柨顑堢换妯间沪閺囩喎袚闁告稑顭槐娆戔偓瑙勭濠€锛勬喆閿曗偓瑜板倿鏁?
# ================================================
country_event = {
	id = czd_juche.10
	title = czd_juche.10.t
	desc = czd_juche.10.d
	picture = GFX_report_event_industry_soviet
	
	trigger = {
		tag = CZD
		has_country_flag = CZD_juche_self_sufficiency_declared
		NOT = { has_country_flag = CZD_self_sufficiency_progress_1 }
		num_of_military_factories > 15
		num_of_civilian_factories > 10
	}
	
	mean_time_to_happen = { days = 30 }
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_self_sufficiency_progress_1
		}
	}
	
	option = {
		name = czd_juche.10.a
		
		add_political_power = 50
		add_stability = 0.05
		
		# 濠⒀呭仜瀹歌京绱掕箛鏃傘偣闁煎浜為悵娑㈠极閸喓浜?
		add_to_variable = { var = CZD_self_sufficiency_bonus value = 0.02 }
		
		custom_effect_tooltip = CZD_self_sufficiency_progress_tt
	}
}

# ================================================
# 閺夊牆鎳庢慨顏呯鐎ｂ晜顐介柨娑欑閳ь剚绻冮崗鍌滅磼閻斿墎顏遍柟瀛樺姈閻?
# ================================================
country_event = {
	id = czd_juche.11
	title = czd_juche.11.t
	desc = czd_juche.11.d
	picture = GFX_report_event_propaganda
	
	trigger = {
		tag = CZD
		has_country_flag = CZD_juche_monolithic_system
		NOT = { has_country_flag = CZD_monolithic_progress_1 }
		stability > 0.7
	}
	
	mean_time_to_happen = { days = 60 }
	
	immediate = {
		hidden_effect = {
			set_country_flag = CZD_monolithic_progress_1
		}
	}
	
	option = {
		name = czd_juche.11.a
		
		add_war_support = 0.05
		add_political_power = 75
		
		# 濠⒀呭仜婵偟绱掗崟顓犵煆閹?
		add_to_variable = { var = CZD_ic_army_org_var value = 0.02 }
		
		custom_effect_tooltip = CZD_monolithic_progress_tt
	}
}

