﻿add_namespace = russia
add_namespace = news_russia

country_event = {
	id = russia.11
	title = russia.11.t
	desc = russia.11.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {	#We accept!
		name = russia.11.o1

		SOV = {
			country_event = {
				id = russia.12
			}
		}
		
		set_country_flag = has_joined_CSTO_by_event
		
		ai_chance = {
			factor = 25
		}
	}
	
	option = {	#We refuse
		name = russia.11.o2
		add_political_power = 50
		SOV = {
			add_opinion_modifier = {
				target = FROM
				modifier = recent_actions_negative
			}
			
			country_event = {
				id = russia.13
			}
		}
		
		ai_chance = {
			factor = 10
		}
	}
}



country_event = {	#They accept!
	id = russia.12
	title = russia.12.t
	desc = russia.12.d
	picture = GFX_report_event_china_army
	
	is_triggered_only = yes
	
	option = {
		name = russia.12.o1
		
		add_to_faction = FROM
		
		FROM = {
			set_country_flag = has_joined_CSTO_by_event
		}
	}
}

#China Alliance Refused

country_event = {	#They refuse!
	id = russia.13
	title = russia.13.t
	desc = russia.13.d
	picture = GFX_report_event_china_army
	
	is_triggered_only = yes
	
	option = {
		name = russia.13.o1
		
			add_opinion_modifier = {
				target = FROM
				modifier = recent_actions_negative
			}
	}
}

country_event = {
	id = russia.15
	title = russia.15.t
	desc = russia.15.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {	#We accept!
		name = russia.15.o1

		SOV = {
			country_event = {
				id = russia.16
			}
		}
		
		set_country_flag = has_joined_WP_by_event
		
		ai_chance = {
			factor = 80
		}
	}
	
	option = {	#We refuse
		name = russia.15.o2
		add_political_power = 50
			add_opinion_modifier = {
				target = ROOT
				modifier = recent_actions_negative
			}
			
			country_event = {
				id = russia.17
			}
			
			ai_chance = {
				factor = 20
			}
		}
}

country_event = {
	id = russia.22
	title = russia.15.t
	desc = russia.15.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {	#We accept!
		name = russia.15.o1

		SOV = {
			country_event = {
				id = russia.16
			}
		}
		
		every_country = {
			limit = {
				is_in_faction_with = ROOT
				NOT = { is_faction_leader = yes }
			}
			country_event = { id = russia.15 }
		}
		
		set_country_flag = has_joined_WP_by_event
		
		dismantle_faction = yes
		
		ai_chance = {
			factor = 75
			
			modifier = {
				factor = 75
				
				AND = {
					ROOT = { has_government = communist } 
				}
			}

		}
	}
	
	option = {	#We refuse
		name = russia.15.o2
		add_political_power = 50
			add_opinion_modifier = {
				target = ROOT
				modifier = recent_actions_negative
			}
			
			country_event = {
				id = russia.17
			}
			
			ai_chance = {
				factor = 25
				
				modifier = {
				factor = 75
				
					AND = {
						ROOT = { NOT = { has_government = communist } 
					}
				}
			
			}
		}
	}
}



country_event = {	#They accept!
	id = russia.16
	title = russia.16.t
	desc = russia.16.d
	picture = GFX_report_event_china_army
	
	is_triggered_only = yes
	
	option = {
		name = russia.16.o1
		
		add_to_faction = FROM
		
		FROM = {
			set_country_flag = has_joined_WP_by_event
		}
	}
}

#China Alliance Refused

country_event = {	#They refuse!
	id = russia.17
	title = russia.17.t
	desc = russia.17.d
	picture = GFX_report_event_china_army
	
	is_triggered_only = yes
	
	option = {
		name = russia.17.o1
		
			add_opinion_modifier = {
				target = FROM
				modifier = recent_actions_negative
			}
	}
}

#mobilization time

country_event = {
	id = russia.commie
	title = russia.commie.t
	desc = russia.commie.d
	picture = GFX_report_event_china_army
	
	trigger = {
		AND = {
			has_government = communist
			tag = SOV
			has_idea = civilian_economy
		}
		
	}
	
	mean_time_to_happen = {
		days = 50
	}
	
	
	option = {
		name = russia.commie.o1
		
		add_ideas = partial_economic_mobilisation
		
		ai_chance = {
			factor = 80
		}
	}
	
	option = {
		name = russia.commie.o2
		
		add_political_power = 150
		
		ai_chance = {
			factor = 20
		}
	}
}

country_event = {
	id = russia.18
	title = russia.2.t
	desc = russia.2.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {
		name = russia.2.o1
		ai_chance = {
			factor = 50
		}
		SOV = { puppet = BLR }
		SOV = { country_event = { id = russia.19 } }
	}
	
	option = {
		name = russia.2.o2
		ai_chance = {
			factor = 50
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
		SOV = { add_opinion_modifier = { target = BLR modifier = large_decrease } }
		SOV = { country_event = { id = russia.20 } }
	}
}

#Belarus accepts!
country_event = {
	id = russia.19
	title = russia.3.t
	desc = russia.3.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {
		name = russia.19.o1
		effect_tooltip = {
			puppet = BLR
		}
	}
}

#Belarus refuses!
country_event = {
	id = russia.20
	title = russia.4.t
	desc = russia.4.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {
		name = russia.20.o1
		effect_tooltip = {
			add_opinion_modifier = { target = BLR modifier = large_decrease }
		}
		
		create_wargoal = { type = annex_everything target = BLR }
	}
}

country_event = {
	id = russia.21
	title = russia.21.t
	desc = russia.21.d
	picture = GFX_report_event_SOV_flag
	
	is_triggered_only = yes
	
	option = {	#lets bring em in!
		name = russia.21.o1

		FROM = {
			country_event = {
				id = russia.15b
			}
		}

		ai_chance = {
			factor = 50
			
			modifier = {
				factor = 90
				
				AND = {
					FROM = { has_government = communist } 
				}
			}

		}
	}
	
	option = {	#NO.
		name = russia.15.o2
		add_political_power = 50
			add_opinion_modifier = {
				target = FROM
				modifier = recent_actions_negative
			}
			
			FROM = {
				add_opinion_modifier = {
					target = ROOT
					modifier = recent_actions_negative
				}
			}
			
			ai_chance = {
				factor = 10
				
				modifier = {
				factor = 50
				
					AND = {
						ROOT = { NOT = { has_government = communist } 
					}
				}
			
			}
		}
	}
}