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

	group = je_group_crises

	is_shown_when_inactive = {
		NOT = { has_variable = completed_sol_je }
		NOT = { has_variable = dismissed_poverty_variable }
		NOT = { has_variable = begging_woman_martyr_variable }
		root.average_sol < 10
	}

	possible = {
		root.average_sol < 7
		OR = {
			ig:ig_petty_bourgeoisie = {
				is_powerful = yes
			}
			ig:ig_industrialists = {
				is_powerful = yes
			}
		}
		OR = {
			has_law = law_type:law_no_social_security
			has_law = law_type:law_no_health_system
		}
		OR = {
			has_technology_researched = modern_sewerage
			has_technology_researched = labor_movement
			has_technology_researched = human_rights
		}
		any_scope_state = {
			is_incorporated = yes
			any_scope_building = {
				is_building_type = building_urban_center
				level >= 10
			}
		}
	}

	immediate = {
		trigger_event = { id = sol_events.1 }
	}

	complete = {
		custom_tooltip = {
			text = je_sol_goal_desc
			scope:journal_entry = {
				is_goal_complete = yes
			}
		}
	}

	on_complete = {
		set_variable = {
			name = completed_sol_je
			months = normal_modifier_time
		}
		trigger_event = { id = sol_events.2 }
	}

	invalid = {
		custom_tooltip = {
			text = je_sol_invalid_desc
			OR = {
				has_variable = dismissed_poverty_variable
				has_variable = begging_woman_martyr_variable
			}
		}
	}

	on_monthly_pulse = {
		random_events = {
			100 = 0
			10 = sol_events.3
			10 = sol_events.4
			10 = sol_events.5
			10 = sol_events.6
		}
	}

	current_value = {
		value = root.average_sol
	}

	goal_add_value = {
		add = 3
	}

	weight = 200

	should_be_pinned_by_default = yes

	transferable = no

	progressbar = yes
}
