add_namespace = czd_tokyo_massacre
add_namespace = czd_diplomacy

# =========================================================
# 朝鲜东京大屠杀事件 - 展现民族复仇主义
# =========================================================

# 事件1：复仇的选择
country_event = {
	id = czd_tokyo_massacre.1
	title = czd_tokyo_massacre.1.t
	desc = czd_tokyo_massacre.1.d
	picture = GFX_report_cjc_red_jap_1
	
	is_triggered_only = yes
	
	# 选项A：血债血偿- 发动大屠杀
	option = {
		name = czd_tokyo_massacre.1.a
		ai_chance = { factor = 30 }
		
		# 严重的国家稳定度损失
		add_stability = -0.15
		add_war_support = 0.10
		add_political_power = -100
		
		# 获得复仇主义精神
		add_ideas = CZD_vengeance_fulfilled
		
		# 所有国家对我们的好感下降
		every_country = {
			limit = {
				NOT = { tag = ROOT }
				NOT = { has_war_with = ROOT }
			}
			add_opinion_modifier = { target = ROOT modifier = CZD_tokyo_massacre }
		}
		
		# 主要共产主义国家的态度
		if = {
			limit = { SOV = { exists = yes } }
			SOV = { add_opinion_modifier = { target = ROOT modifier = CZD_tokyo_massacre_communist } }
		}
		if = {
			limit = { PRC = { exists = yes } }
			PRC = { add_opinion_modifier = { target = ROOT modifier = CZD_tokyo_massacre_communist } }
		}
		
		# 触发后续事件
		country_event = { id = czd_tokyo_massacre.2 days = 1 }
		
		# 日本（如果存在）收到消息
		if = {
			limit = { JAP = { exists = yes } }
			JAP = { country_event = { id = czd_tokyo_massacre.10 } }
		}
		
		custom_effect_tooltip = CZD_tokyo_massacre_warning_tooltip
	}
	
	# 选项B：正义审判- 国际法庭审判
	option = {
		name = czd_tokyo_massacre.1.b
		ai_chance = { factor = 50 }
		
		add_stability = 0.05
		add_political_power = 50
		
		# 获得正义审判精神
		add_ideas = CZD_justice_tribunal
		
		# 国际声望提升
		every_country = {
			limit = {
				NOT = { tag = ROOT }
				NOT = { has_war_with = ROOT }
			}
			add_opinion_modifier = { target = ROOT modifier = CZD_just_tribunal }
		}
		
		# 触发审判事件
		country_event = { id = czd_tokyo_massacre.3 days = 3 }
	}
	
	# 选项C：人道主义- 交给联合国决定
	option = {
		name = czd_tokyo_massacre.1.c
		ai_chance = { factor = 20 }
		
		add_stability = -0.05
		add_war_support = 0.05
		
		# 随机结果
		random_list = {
			60 = {
				# 人民选择和解
				country_event = { id = czd_tokyo_massacre.4 days = 5 }
			}
			40 = {
				# 人民选择复仇
				country_event = { id = czd_tokyo_massacre.5 days = 5 }
			}
		}
	}
}

# 事件2：复仇东进-大屠杀进行时
country_event = {
	id = czd_tokyo_massacre.2
	title = czd_tokyo_massacre.2.t
	desc = czd_tokyo_massacre.2.d
	picture = GFX_news_cjc_kiev_ruin_1
	
	is_triggered_only = yes
	
	option = {
		name = czd_tokyo_massacre.2.a
		
		# 朝鲜人口大量减少
		282 = {
			add_manpower = -500000
			damage_building = { type = infrastructure damage = 0.5 }
		}
		
		# 士气高涨但军队受损
		add_war_support = 0.15
		army_experience = -20
		
		# 获得大量装备（缴获）
		add_equipment_to_stockpile = { type = infantry_equipment amount = 5000 }
		add_political_power = -50
	}
}

# 事件3：正义裁决
country_event = {
	id = czd_tokyo_massacre.3
	title = czd_tokyo_massacre.3.t
	desc = czd_tokyo_massacre.3.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_tokyo_massacre.3.a
		
		add_political_power = 100
		add_stability = 0.10
		
		# 提升国际地位
		add_to_variable = { var = CZD_legacy_stability_var value = 0.05 }
	}
}

# 事件4：人民选择和解
country_event = {
	id = czd_tokyo_massacre.4
	title = czd_tokyo_massacre.4.t
	desc = czd_tokyo_massacre.4.d
	picture = GFX_report_cjc_soviet_3
	
	is_triggered_only = yes
	
	option = {
		name = czd_tokyo_massacre.4.a
		
		add_stability = 0.10
		add_political_power = 75
		
		# 获得和解精神
		add_ideas = CZD_reconciliation_spirit
	}
}

# 事件5：人民选择复仇
country_event = {
	id = czd_tokyo_massacre.5
	title = czd_tokyo_massacre.5.t
	desc = czd_tokyo_massacre.5.d
	picture = GFX_report_cjc_poster_1
	
	is_triggered_only = yes
	
	option = {
		name = czd_tokyo_massacre.5.a
		
		add_stability = -0.10
		add_war_support = 0.10
		
		# 小规模报复
		282 = { add_manpower = -100000 }
		
		every_country = {
			limit = {
				NOT = { tag = ROOT }
				NOT = { has_war_with = ROOT }
			}
			add_opinion_modifier = { target = ROOT modifier = CZD_limited_reprisals }
		}
	}
}

# 事件10：日本收到大屠杀消息
country_event = {
	id = czd_tokyo_massacre.10
	title = czd_tokyo_massacre.10.t
	desc = czd_tokyo_massacre.10.d
	picture = GFX_news_cjc_kiev_ruin_1
	
	is_triggered_only = yes
	
	option = {
		name = czd_tokyo_massacre.10.a
		
		add_war_support = 0.20
		add_stability = -0.20
		
		# 血债不会被遗忘
		add_opinion_modifier = { target = CZD modifier = CZD_massacre_never_forget }
	}
}


# =========================================================
# 外交事件 - 索要远东及东南亚国家
# =========================================================

# 事件10：美国收到领土要求
country_event = {
	id = czd_diplomacy.10
	title = czd_diplomacy.10.t
	desc = czd_diplomacy.10.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	# 选项A：同意让步
	option = {
		name = czd_diplomacy.10.a
		ai_chance = { 
			factor = 70
			modifier = {
				factor = 1.5
				has_war = yes
			}
			modifier = {
				factor = 0.5
				is_major = yes
				NOT = { has_war = yes }
			}
		}
		
		# 转让领土
		if = {
			limit = { owns_state = 684 }
			CZD = { transfer_state = 684 }
		}
		if = {
			limit = { owns_state = 632 }
			CZD = { transfer_state = 632 }
		}
		
		CZD = { country_event = { id = czd_diplomacy.12 } }
	}
	
	# 选项B：拒绝
	option = {
		name = czd_diplomacy.10.b
		ai_chance = { factor = 30 }
		
		CZD = { country_event = { id = czd_diplomacy.13 } }
	}
}

# 事件11：其他国家收到领土要求
country_event = {
	id = czd_diplomacy.11
	title = czd_diplomacy.11.t
	desc = czd_diplomacy.11.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	# 閫夐」A锛氬悓鎰忚姝?
	option = {
		name = czd_diplomacy.11.a
		ai_chance = { 
			factor = 80
			modifier = {
				factor = 1.5
				CZD = { is_major = yes }
			}
		}
		
		# 杞宀涘笨
		if = {
			limit = { owns_state = 646 }
			CZD = { transfer_state = 646 }
		}
		if = {
			limit = { owns_state = 645 }
			CZD = { transfer_state = 645 }
		}
		if = {
			limit = { owns_state = 647 }
			CZD = { transfer_state = 647 }
		}
		
		add_opinion_modifier = { target = CZD modifier = CZD_territorial_concession }
		CZD = { country_event = { id = czd_diplomacy.14 } }
	}
	
	# 閫夐」B锛氭嫆缁?
	option = {
		name = czd_diplomacy.11.b
		ai_chance = { factor = 20 }
		
		CZD = { 
			add_opinion_modifier = { target = PREV modifier = CZD_refused_demand }
		}
	}
}

# 事件12：美国同意让步
country_event = {
	id = czd_diplomacy.12
	title = czd_diplomacy.12.t
	desc = czd_diplomacy.12.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.12.a
		add_political_power = 50
		add_opinion_modifier = { target = USA modifier = CZD_territorial_gain }
	}
}

# 事件13：美国拒绝
country_event = {
	id = czd_diplomacy.13
	title = czd_diplomacy.13.t
	desc = czd_diplomacy.13.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.13.a
		add_political_power = -25
		
		# 可以对美发动战争
		create_wargoal = {
			type = take_state
			target = USA
			generator = { 684 632 }
		}
	}
}

# 事件14：其他国家同意让步
country_event = {
	id = czd_diplomacy.14
	title = czd_diplomacy.14.t
	desc = czd_diplomacy.14.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.14.a
		add_political_power = 30
	}
}

# =========================================================
# 外交事件 - 要求菲律宾等东南亚国家
# =========================================================

# 事件20：菲律宾被要求成为傀儡
country_event = {
	id = czd_diplomacy.20
	title = czd_diplomacy.20.t
	desc = czd_diplomacy.20.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	# 选项A：同意成为傀儡
	option = {
		name = czd_diplomacy.20.a
		ai_chance = { 
			factor = 60
			modifier = {
				factor = 2.0
				CZD = { is_major = yes }
			}
			modifier = {
				factor = 1.5
				has_war = yes
			}
		}
		
		CZD = { 
			puppet = PHI 
			country_event = { id = czd_diplomacy.30 days = 1 }
		}
	}
	
	# 选项B：拒绝
	option = {
		name = czd_diplomacy.20.b
		ai_chance = { factor = 40 }
		
		CZD = { 
			add_opinion_modifier = { target = PHI modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.35 days = 1 }
		}
	}
}

# 事件21：马来被要求成为傀儡
country_event = {
	id = czd_diplomacy.21
	title = czd_diplomacy.21.t
	desc = czd_diplomacy.21.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	# 閫夐」A锛氬悓鎰忔垚涓哄個鍎?
	option = {
		name = czd_diplomacy.21.a
		ai_chance = { 
			factor = 70
			modifier = {
				factor = 2.0
				CZD = { is_major = yes }
			}
		}
		
		CZD = { 
			puppet = MAL 
			country_event = { id = czd_diplomacy.31 days = 1 }
		}
	}
	
	# 閫夐」B锛氭嫆缁?
	option = {
		name = czd_diplomacy.21.b
		ai_chance = { factor = 30 }
		
		CZD = { 
			add_opinion_modifier = { target = MAL modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.36 days = 1 }
		}
	}
}

# 事件22：印尼被要求成为傀儡
country_event = {
	id = czd_diplomacy.22
	title = czd_diplomacy.22.t
	desc = czd_diplomacy.22.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	# 閫夐」A锛氬悓鎰忔垚涓哄個鍎?
	option = {
		name = czd_diplomacy.22.a
		ai_chance = { 
			factor = 65
			modifier = {
				factor = 2.0
				CZD = { is_major = yes }
			}
		}
		
		CZD = { 
			puppet = INS 
			country_event = { id = czd_diplomacy.32 days = 1 }
		}
	}
	
	# 閫夐」B锛氭嫆缁?
	option = {
		name = czd_diplomacy.22.b
		ai_chance = { factor = 35 }
		
		CZD = { 
			add_opinion_modifier = { target = INS modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.37 days = 1 }
		}
	}
}

# 事件25：菲律宾独立后被要求成为傀儡（要求归还样板领土）
country_event = {
	id = czd_diplomacy.25
	title = czd_diplomacy.25.t
	desc = czd_diplomacy.25.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.25.a
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 2.0
				has_war = yes
				NOT = { has_war_with = CZD }
			}
		}
		
		PHI = { set_autonomy = { target = PHI autonomy_state = autonomy_free } }
		CZD = { 
			puppet = PHI 
			country_event = { id = czd_diplomacy.30 days = 1 }
		}
	}
	
	option = {
		name = czd_diplomacy.25.b
		ai_chance = { factor = 50 }
		
		CZD = { 
			add_opinion_modifier = { target = PREV modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.35 days = 1 }
		}
	}
}

# 事件26：马来独立后被要求成为傀儡
country_event = {
	id = czd_diplomacy.26
	title = czd_diplomacy.26.t
	desc = czd_diplomacy.26.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.26.a
		ai_chance = { factor = 40 }
		
		MAL = { set_autonomy = { target = MAL autonomy_state = autonomy_free } }
		CZD = { 
			puppet = MAL 
			country_event = { id = czd_diplomacy.31 days = 1 }
		}
	}
	
	option = {
		name = czd_diplomacy.26.b
		ai_chance = { factor = 60 }
		
		CZD = { 
			add_opinion_modifier = { target = PREV modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.36 days = 1 }
		}
	}
}

# 事件27：印尼独立后被要求成为傀儡
country_event = {
	id = czd_diplomacy.27
	title = czd_diplomacy.27.t
	desc = czd_diplomacy.27.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.27.a
		ai_chance = { factor = 40 }
		
		INS = { set_autonomy = { target = INS autonomy_state = autonomy_free } }
		CZD = { 
			puppet = INS 
			country_event = { id = czd_diplomacy.32 days = 1 }
		}
	}
	
	option = {
		name = czd_diplomacy.27.b
		ai_chance = { factor = 60 }
		
		CZD = { 
			add_opinion_modifier = { target = PREV modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.37 days = 1 }
		}
	}
}

# 事件28：荷属印尼被释放为傀儡（归属朝鲜）
country_event = {
	id = czd_diplomacy.28
	title = czd_diplomacy.28.t
	desc = czd_diplomacy.28.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.28.a
		ai_chance = { factor = 30 }
		
		# 閲婃斁鍗板凹骞跺個鍎＄粰鏈濋矞
		release_puppet = INS
		CZD = { 
			puppet = INS 
			country_event = { id = czd_diplomacy.32 days = 1 }
		}
	}
	
	option = {
		name = czd_diplomacy.28.b
		ai_chance = { factor = 70 }
		
		CZD = { 
			add_opinion_modifier = { target = HOL modifier = CZD_refused_demand }
			country_event = { id = czd_diplomacy.37 days = 1 }
		}
	}
}

# =========================================================
# 傀儡成功/失败反馈事件
# =========================================================

# 事件30：菲律宾同意成为傀儡
country_event = {
	id = czd_diplomacy.30
	title = czd_diplomacy.30.t
	desc = czd_diplomacy.30.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.30.a
		add_political_power = 100
		add_stability = 0.05
		custom_effect_tooltip = CZD_phi_now_puppet_tooltip
	}
}

# 事件31：马来同意成为傀儡
country_event = {
	id = czd_diplomacy.31
	title = czd_diplomacy.31.t
	desc = czd_diplomacy.31.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.31.a
		add_political_power = 100
		add_stability = 0.05
		custom_effect_tooltip = CZD_mal_now_puppet_tooltip
	}
}

# 事件32：印尼同意成为傀儡
country_event = {
	id = czd_diplomacy.32
	title = czd_diplomacy.32.t
	desc = czd_diplomacy.32.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.32.a
		add_political_power = 100
		add_stability = 0.05
		custom_effect_tooltip = CZD_ins_now_puppet_tooltip
	}
}

# 事件35：菲律宾拒绝
country_event = {
	id = czd_diplomacy.35
	title = czd_diplomacy.35.t
	desc = czd_diplomacy.35.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.35.a
		add_political_power = -25
		
		create_wargoal = {
			type = puppet_wargoal_focus
			target = PHI
		}
	}
}

# 事件36：马来拒绝
country_event = {
	id = czd_diplomacy.36
	title = czd_diplomacy.36.t
	desc = czd_diplomacy.36.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.36.a
		add_political_power = -25
		
		create_wargoal = {
			type = puppet_wargoal_focus
			target = MAL
		}
	}
}

# 事件37：印尼拒绝
country_event = {
	id = czd_diplomacy.37
	title = czd_diplomacy.37.t
	desc = czd_diplomacy.37.d
	picture = GFX_report_cjc_lenin_2
	
	is_triggered_only = yes
	
	option = {
		name = czd_diplomacy.37.a
		add_political_power = -25
		
		create_wargoal = {
			type = puppet_wargoal_focus
			target = INS
		}
	}
}


