je_springtime_of_the_peoples = {
	icon = "gfx/interface/icons/event_icons/event_protest.dds"

	is_shown_when_inactive = {
		has_global_variable = peoples_springtime_happening
		has_technology_researched = egalitarianism
		capital = {
			OR = {
				region = sr:region_england
				region = sr:region_north_sea_coast
				region = sr:region_iberia
				region = sr:region_france
				region = sr:region_occitania
				region = sr:region_rhine
				region = sr:region_italy
				region = sr:region_balkans
				region = sr:region_north_germany
				region = sr:region_south_germany
				region = sr:region_baltic
				region = sr:region_danubia
				region = sr:region_poland
				#region = sr:region_russia
				#region = sr:region_dnieper
			}
		}
	}

	possible = {
		OR = {
			has_variable = dua_springtime_var
			any_interest_group = {
				OR = {
					is_powerful = yes
					ig_approval <= angry
				}
				leader = { has_ideology = ideology_radical }
			}
		}
	}

	immediate = {
		trigger_event = { id = 1848.4 }
	}

	complete = {
		is_at_war = no
		has_insurrectionary_interest_groups = no
		OR = {
			custom_tooltip = {
				text = je_springtime_of_the_peoples_tt_1
				always = no
			}
			AND = {
				any_interest_group = {
					is_in_government = yes
					leader = { has_ideology = ideology_radical }
				}
				NOT = { has_law = law_type:law_monarchy }
				OR = {
					has_law = law_type:law_census_voting
					has_law = law_type:law_universal_suffrage
				}
			}
			custom_tooltip = {
				text = je_springtime_of_the_peoples_tt_2
				always = no
			}
			NOT = {
				any_interest_group = {
					leader = { has_ideology = ideology_radical }
					is_marginal = no
				}
			}
		}		
	}

	on_complete = {
		set_variable = {
			name = completed_peoples_stringtime
		}
		set_variable = {
			name = completed_peoples_stringtime_recent
			months = short_modifier_time
		}
		custom_tooltip = je_springtime_of_the_peoples_tt_3
		hidden_effect = {
			if = {
				limit = {
					any_interest_group = {
						is_in_government = yes
						leader = { has_ideology = ideology_radical }
					}
					NOT = { has_law = law_type:law_monarchy }
					OR = {
						has_law = law_type:law_wealth_voting
						has_law = law_type:law_census_voting
						has_law = law_type:law_universal_suffrage
					}
				}
				trigger_event = { id = peoples_springtime.7 }
			}
		}
		custom_tooltip = je_springtime_of_the_peoples_tt_4
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						any_interest_group = {
							leader = { has_ideology = ideology_radical }
							is_marginal = no
						}
					}
				}
				trigger_event = { id = peoples_springtime.8 }
			}
		}
	}

	on_monthly_pulse = {
		events = {
			1848.5
		}
		random_events = {
			100 = 0
			10 = peoples_springtime.3
			10 = peoples_springtime.4
			10 = peoples_springtime.5
		}
	}

	invalid = {
		has_global_variable = peoples_springtime_happened
	}

	weight = 10000
	should_be_pinned_by_default = yes

	inheritable = no

	timeout = 3650
}
