add_namespace = vrm_white_peace

country_event = {
	id = vrm_white_peace.1
	title = vrm_white_peace.1.t
	desc = vrm_white_peace.1.d
	
	picture = GFX_report_event_soviet_invasion_map
	
    is_triggered_only = yes

	
	option = {
		name = vrm_white_peace.1.a
		add_political_power = 50
		ai_chance = { 
		    base = 1
			modifier = { has_war_support < 0.20 add = 5	}
			modifier = { casualties > 1000000 add = 3 }
			modifier = { casualties > 2000000 add = 6 }
			modifier = { casualties > 4000000 add = 8 }
			modifier = { has_manpower < 100000 add = 4 }
			modifier = { any_allied_country = { casualties > 1500000 num_of_factories > 75 } add = 2 }
		}
		every_country ={
			limit = { is_in_faction_with = FROM has_war_with = FROM has_civil_war = no NOT = { has_idea = vrm_dearms } }
			add_timed_idea = { days = 30 idea = vrm_dearms } 		
		}
		if = {
			limit = { is_faction_leader = yes is_in_faction = yes }
		    every_country ={
			     limit = { is_in_faction_with = ROOT has_war_with = FROM has_civil_war = no }
		         white_peace = FROM
			     set_truce = { target = FROM days = 60 }
               }  
		    }
		if = {
			limit = { is_in_faction = no }
		    FROM = { white_peace = ROOT }
			set_truce = { target = FROM days = 30 }
         }  
	}
	option = {
		name = vrm_white_peace.1.b
		ai_chance = { base = 5 }
	}
}

