###################################
#
# THE SONS OF ABRAHAM
# - Jewish Events
#
###################################

namespace = SoA

# Third Temple Construction Begun
character_event = {
	id = SoA.100
	desc = EVTDESC_SoA_100
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # build_third_temple, realm_decisions.txt
	hide_from = yes

	option = {
		name = EVTOPTA_SoA_100
		set_global_flag = building_third_temple
		custom_tooltip = { text = third_temple_construction }
	}
}

# Third Temple Built

# TODO: Not originally in Plus - is it required?

province_event = {
	id = SoA.10199

	is_triggered_only = yes # build_third_temple, realm_decisions.txt
	hide_window = yes

	immediate = {
		owner = {
			narrative_event = { id = SoA.101 }
		}
	}
}

narrative_event = {
	id = SoA.101
	title = EVTNAME_SoA_101
	desc = EVTDESC_SoA_101
	picture = GFX_evt_jerusalem_captured_jews
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes
	major = yes
	hide_from = yes

	major_trigger = {
		ai = no
		religion = jewish
	}

	immediate = {
		set_global_flag = jewish_priesthood_founded

		activate_title = {
			title = d_jewish
			status = yes
		}

		random_realm_lord = {
			limit = { is_theocracy = yes }
			preferred_limit = { has_landed_title = b_jerusalem }
			preferred_limit = { num_of_holy_sites >= 1 }

			grant_title = d_jewish
			save_event_target_as = new_kohen_gadol
			set_defacto_liege = ROOT
			pf_liege_change_effect = yes
			break = yes
		}

		create_random_priest = {
			random_traits = yes
			dynasty = random
			religion = jewish
			culture = ROOT
			age = 50
			health = 7
			add_trait = quick
			add_trait = zealous
			add_trait = scholar
			add_trait = mastermind_theologian

			attributes = {
				learning = 8
			}
		}

		new_character = {
			grant_title = b_jerusalem
			grant_title = d_jewish
			save_event_target_as = new_kohen_gadol
			set_defacto_liege = ROOT
		}

		c_jerusalem = {
			location = {
				destroy_wonder = yes
				add_wonder = wonder_third_temple
			}
		}
	}

	option = {
		name = EVTOPTA_SoA_550

		trigger = { religion_group = jewish_group }

		if = {
			limit = { character = ROOT }

			prestige = 500
			piety = 500

			religion_authority = {
				name = third_temple_built
			}
		}
	}

	option = {
		name = EVTOPTB_TOG_6004

		trigger = {
			NOR = {
				religion_group = jewish_group
				religion_group = muslim
			}
		}
	}

	option = {
		name = EVTOPTC_TOG_6004

		trigger = { religion_group = muslim }
	}
}

# Creation of Israel
narrative_event = {
	id = SoA.102
	title = EVTNAME_SoA_102
	desc = EVTDESC_SoA_102
	picture = GFX_evt_jerusalem_captured_jews
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes # create_israel, realm_decisions.txt
	hide_from = yes

	immediate = {
		if = {
			limit = { ai = no }
			set_character_flag = achievement_kingdom_of_david
		}
	}

	option = {
		name = EVTOPTA_SoA_102

		primary_title = {
			show_scope_change = no

			k_israel = {
				show_scope_change = no

				set_title_flag = non_manual_law_change # No prestige loss
				grant_title = ROOT
				copy_title_laws = PREV
				clr_title_flag = non_manual_law_change # No prestige loss
			}
		}

		hidden_effect = {
			if = {
				limit = { real_tier = KING }

				k_israel = {
					make_primary_title = yes
				}
			}

			d_jerusalem = {
				de_jure_liege = k_israel
			}

			d_ascalon = {
				de_jure_liege = k_israel
			}

			d_galilee = {
				de_jure_liege = k_israel
			}

			d_oultrejourdain = {
				de_jure_liege = k_israel
			}
		}
	}
}

# Jews Expelled
character_event = {
	id = SoA.105
	desc = EVTDESC_SoA_105
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # expel_jews, realm_decisions.txt
	hide_from = yes

	immediate = {
		any_realm_lord = {
			limit = {
				religion_group = jewish_group
				ai = yes
			}

			any_demesne_title = {
				grant_title_no_opinion = ROOT
			}
		}

		any_realm_lord = {
			limit = {
				OR = {
					ai = no
					has_character_modifier = borrowed_from_jews
				}
			}

			character_event = { id = SoA.107 }
		}
	}

	option = {
		name = EVTOPTA_SoA_105

		prestige = -200
		banish_religion = jewish

		if = {
			limit = { trait = just }
			remove_trait = just
		}

		if = {
			limit = { trait = charitable }
			remove_trait = charitable
		}

		if = {
			limit = { trait = arbitrary }

			if = {
				limit = { NOT = { trait = greedy } }

				random = {
					chance = 50
					add_trait_greedy_effect = yes
				}
			}
		}
		else_if = {
			limit = { trait = greedy }

			random = {
				chance = 50
				add_trait_arbitrary_effect = yes
			}
		}
		else = {
			random_list = {
				25 = { add_trait_arbitrary_effect = yes }
				25 = { add_trait_greedy_effect = yes }
				50 = { }
			}
		}

		pf_prosperity_minus2_effect = yes
		pf_tradition_plus2_effect = yes

		any_demesne_title = {
			show_scope_change = no

			limit = { real_tier = BARON }

			if = {
				limit = { has_building = ct_jewish_community_3 }

				remove_building = ct_jewish_community_3

				ROOT = {
					show_scope_change = no

					piety = -30
					wealth = 150
				}
			}
			else_if = {
				limit = { has_building = ct_jewish_community_2 }

				remove_building = ct_jewish_community_2

				ROOT = {
					show_scope_change = no

					piety = -20
					wealth = 100
				}
			}
			else_if = {
				limit = { has_building = ct_jewish_community_1 }

				remove_building = ct_jewish_community_1

				ROOT = {
					show_scope_change = no

					piety = -10
					wealth = 50
				}
			}
		}

		any_realm_lord = {
			show_scope_change = no

			limit = {
				lower_tier_than = king
				ai = yes

				NOT = {
					any_liege = {
						ai = no
						NOT = { character = ROOT }
					}
				}

				OR = {
					AND = {
						real_tier = BARON
						vassal_of = ROOT
					}

					primary_title = {
						crownlaw_title = {
							OR = {
								has_law = crown_authority_3
								has_law = crown_authority_4
							}
						}
					}
				}

				any_demesne_province = {
					has_building = ct_jewish_community_1
					owned_by = PREV
				}
			}

			any_demesne_title = {
				show_scope_change = no

				limit = { real_tier = BARON }

				if = {
					limit = { has_building = ct_jewish_community_3 }

					remove_building = ct_jewish_community_3

					ROOT = {
						show_scope_change = no

						piety = -30
						wealth = 150
					}
				}
				else_if = {
					limit = { has_building = ct_jewish_community_2 }

					remove_building = ct_jewish_community_2

					ROOT = {
						show_scope_change = no

						piety = -20
						wealth = 100
					}
				}
				else_if = {
					limit = { has_building = ct_jewish_community_1 }

					remove_building = ct_jewish_community_1

					ROOT = {
						show_scope_change = no

						piety = -10
						wealth = 50
					}
				}
			}
		}

		any_realm_lord = {
			show_scope_change = no

			limit = {
				ai = no
				lower_real_tier_than = KING

				OR = {
					AND = {
						real_tier = BARON
						vassal_of = ROOT
					}

					primary_title = {
						crownlaw_title = {
							OR = {
								has_law = crown_authority_3
								has_law = crown_authority_4
							}
						}
					}
				}

				OR = {
					any_demesne_province = {
						has_building = ct_jewish_community_1
						owned_by = PREV
					}

					any_realm_lord = {
						vassal_of = PREV

						any_demesne_province = {
							has_building = ct_jewish_community_1
							owned_by = PREV
						}
					}
				}

				NOT = {
					any_liege = {
						ai = no
						NOT = { character = ROOT }
					}
				}
			}

			character_event = {
				id = Plus.705
				tooltip = EVTTOOLTIP710005
			}
		}
	}
}

# Jews Welcomed Back
character_event = {
	id = SoA.106
	desc = EVTDESC_SoA_106
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # welcome_jews, realm_decisions. txt
	hide_from = yes

	immediate = {
		any_player = {
			limit = {
				is_vassal_or_below_of = ROOT
				NOT = { character = ROOT }
			}

			character_event = { id = SoA.108 }
		}
	}

	option = {
		name = EVTOPTA_SoA_106

		prestige = 50
	}
}

# Jews Welcomed Back due to ruler now being Jewish!
character_event = {
	id = SoA.566
	desc = EVTDESC_SoA_566
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_character_convert_religion

	only_independent = yes
	religion_group = jewish_group
	has_dlc = "Sons of Abraham"

	trigger = {
		has_character_modifier = expelled_jewish
	}

	option = {
		name = EVTOPTA_SoA_566

		prestige = 50
		remove_character_modifier = expelled_jewish

		custom_tooltip = {
			text = jews_are_welcome

			any_player = {
				limit = {
					is_vassal_or_below_of = ROOT
					NOT = { character = ROOT }
				}

				character_event = { id = SoA.108 }
			}
		}
	}
}

# Jews Expelled (Notifier for Vassals)
character_event = {
	id = SoA.107
	desc = EVTDESC_SoA_107
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = I_SEE

		trigger = {
			NOT = { has_character_modifier = borrowed_from_jews }
		}
	}

	option = {
		name = EVTOPTB_SoA_107

		trigger = { has_character_modifier = borrowed_from_jews }

		remove_character_modifier = borrowed_from_jews
	}
}

# Jews Welcomed Back (Notifier for Vassals)
character_event = {
	id = SoA.108
	desc = EVTDESC_SoA_108
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = I_SEE
	}
}

### Jewish Court Events

# CleanSlate: Ashkenazi and Sephardi events merged

# Jewish Diplomat Appears at Court
character_event = {
	id = SoA.200
	desc = EVTDESC_SoA_200
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_independent = yes
	min_age = 16
	prisoner = no
	only_capable = yes
	has_dlc = "Sons of Abraham"

	trigger = {
		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
			culture = khazar
			culture = han
		}

		NOR = {
			has_character_flag = jewish_chancellor
			has_character_flag = pogrom
			has_character_modifier = expelled_jewish
		}

		is_inaccessible_trigger = no
	}

	weight_multiplier = {
		factor = 1

		mult_modifier = {
			factor = 1.43

			capital_scope = {
				region = world_europe_west_iberia
			}
		}
	}

	immediate = {
		if = {
			limit = {
				capital_scope = {
					region = world_europe_west_iberia
				}
			}

			create_character = {
				random_traits = yes
				culture = sephardi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = charismatic_negotiator
				flag = ai_flag_refuse_conversion

				attributes = {
					diplomacy = 10
				}
			}
		}
		else = {
			create_character = {
				random_traits = yes
				culture = ashkenazi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = charismatic_negotiator
				flag = ai_flag_refuse_conversion

				attributes = {
					diplomacy = 10
				}
			}
		}

		new_character = {
			remove_lifestyle_trait_effect = yes
			add_trait = socializer

			random = {
				chance = 30
				add_trait = shrewd
			}

			save_event_target_as = jewish_courtier
		}
	}

	option = {
		name = EVTOPTA_SoA_200

		custom_tooltip = { text = jewish_courtier_tooltip }
	}
}

# Jewish Administrator Appears at Court
character_event = {
	id = SoA.201
	desc = EVTDESC_SoA_201
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_independent = yes
	min_age = 16
	prisoner = no
	only_capable = yes
	has_dlc = "Sons of Abraham"

	trigger = {
		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
			culture = khazar
			culture = han
		}

		NOR = {
			has_character_flag = jewish_chancellor
			has_character_flag = pogrom
			has_character_modifier = expelled_jewish
		}

		is_inaccessible_trigger = no
	}

	weight_multiplier = {
		factor = 1

		mult_modifier = {
			factor = 1.43

			capital_scope = {
				region = world_europe_west_iberia
			}
		}
	}

	immediate = {
		if = {
			limit = {
				capital_scope = {
					region = world_europe_west_iberia
				}
			}

			create_character = {
				random_traits = yes
				culture = sephardi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = fortune_builder
				flag = ai_flag_refuse_conversion

				attributes = {
					stewardship = 10
				}
			}
		}
		else = {
			create_character = {
				random_traits = yes
				culture = ashkenazi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = fortune_builder
				flag = ai_flag_refuse_conversion

				attributes = {
					stewardship = 10
				}
			}
		}

		new_character = {
			remove_lifestyle_trait_effect = yes
			add_trait = administrator

			random = {
				chance = 30
				add_trait = shrewd
			}

			save_event_target_as = jewish_courtier
		}
	}

	option = {
		name = EVTOPTA_SoA_200

		custom_tooltip = { text = jewish_courtier_tooltip }
	}
}

# Jewish Spy Appears at Court
character_event = {
	id = SoA.202
	desc = EVTDESC_SoA_202
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_independent = yes
	min_age = 16
	prisoner = no
	only_capable = yes
	has_dlc = "Sons of Abraham"

	trigger = {
		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = zoroastrian_group
			religion_group = jewish_group
			culture = khazar
			culture = han
		}

		NOR = {
			has_character_flag = jewish_chancellor
			has_character_flag = pogrom
			has_character_modifier = expelled_jewish
		}

		is_inaccessible_trigger = no
	}

	weight_multiplier = {
		factor = 1

		mult_modifier = {
			factor = 1.43

			capital_scope = {
				region = world_europe_west_iberia
			}
		}
	}

	immediate = {
		if = {
			limit = {
				capital_scope = {
					region = world_europe_west_iberia
				}
			}

			create_character = {
				random_traits = yes
				culture = sephardi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = intricate_webweaver
				flag = ai_flag_refuse_conversion

				attributes = {
					intrigue = 10
				}
			}
		}
		else = {
			create_character = {
				random_traits = yes
				culture = ashkenazi
				dynasty = culture
				religion = jewish
				female = no
				age = 30
				add_trait = intricate_webweaver
				flag = ai_flag_refuse_conversion

				attributes = {
					intrigue = 10
				}
			}
		}

		new_character = {
			# Remove lifestyles
			remove_lifestyle_trait_effect = yes
			add_trait = master_schemer

			random = {
				chance = 30
				add_trait = shrewd
			}

			save_event_target_as = jewish_courtier
		}
	}

	option = {
		name = EVTOPTA_SoA_200

		custom_tooltip = { text = jewish_courtier_tooltip }
	}
}

### Jewish Expulsion Events

# TODO: Not originally in Plus - is it required?

# Loss of economic tech
character_event = {
	id = SoA.300
	desc = EVTDESC_SoA_300
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_playable = yes
	min_age = 16

	trigger = {
		has_character_modifier = expelled_jewish
	}

	option = {
		name = EVTOPTA_SoA_300

		economy_techpoints = -50
	}
}

# TODO: Not originally in Plus - is it required?

# Loss of cultural tech
character_event = {
	id = SoA.301
	desc = EVTDESC_SoA_301
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_playable = yes
	min_age = 16

	trigger = {
		has_character_modifier = expelled_jewish
	}

	option = {
		name = EVTOPTA_SoA_301

		culture_techpoints = -50
	}
}

# TODO: Not originally in Plus - is it required?

# Loss of military tech
character_event = {
	id = SoA.302
	desc = EVTDESC_SoA_302
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events

	only_playable = yes
	min_age = 16

	trigger = {
		has_character_modifier = expelled_jewish
	}

	option = {
		name = EVTOPTA_SoA_302

		military_techpoints = -50
	}
}

### Jewish Passover

# Invitation Sent
character_event = {
	id = SoA.500
	desc = EVTDESC_SoA_500
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # celebrate_passover, minor_decisions.txt
	hide_from = yes

	option = {
		name = EVTOPTA_SoA_500

		custom_tooltip = {
			text = passover_invitations_sent

			any_vassal = {
				show_scope_change = no

				limit = {
					religion_group = jewish_group
					is_adult = yes
					prisoner = no
					war = no
					is_incapable = no
					is_inaccessible_trigger = no
				}

				character_event = {
					id = SoA.501
					days = 2
				#	tooltip = EVTTOOLTIP_SoA_501
				}
			}

			character_event = { id = SoA.503 days = 10 }
			character_event = { id = SoA.504 days = 12 }
		}
	}
}

# Invitation Received
character_event = {
	id = SoA.501
	desc = EVTDESC_SoA_501
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_501

		custom_tooltip = {
			text = passover_accepted

			set_character_flag = attending_passover
			set_character_flag = do_not_disturb

			character_event = { id = SoA.503 days = 8 }
			character_event = { id = SoA.599 days = 20 } # Safety catch flag clearing
		}

		ai_chance = {
			factor = 80

			trigger = {
				opinion = {
					who = ROOT
					value >= -20
				}
			}
		}
	}

	option = {
		name = EVTOPTB_SoA_501

		FROM = {
			show_scope_change = no

			opinion = {
				name = opinion_refused_passover
				who = ROOT
			}

			character_event = {
				id = SoA.502
				tooltip = passover_declined
			}
		}

		ai_chance = { factor = 20 }
	}
}

# Invitation Refused
character_event = {
	id = SoA.502
	desc = EVTDESC_SoA_502
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	ai = no

	option = {
		name = I_SEE

		tooltip = {
			opinion = {
				name = opinion_refused_passover
				who = FROM
			}
		}
	}
}

# Passover Sedar Begins
character_event = {
	id = SoA.503
	desc = EVTDESC_SoA_503
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	hide_from = yes
	is_triggered_only = yes

	ai = no

	option = {
		name = EVTOPTA_SoA_503
	}
}

# Passover Sedar Ends (Host)
character_event = {
	id = SoA.504
	desc = EVTDESC_SoA_504
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	hide_from = yes
	is_triggered_only = yes

	option = {
		name = {
			text = EVTOPTA_SoA_504
			trigger = {
				NOT = {
					any_realm_title = {
						title = c_jerusalem
					}
				}
			}
		}
		name = {
			text = EVTOPTB_SoA_504
			trigger = {
				any_realm_title = {
					title = c_jerusalem
				}
			}
		}

		any_vassal = {
			show_scope_change = no

			limit = { has_character_flag = attending_passover }

			opinion = {
				name = opinion_passover
				who = ROOT
			}

			character_event = { id = SoA.505 }
			clr_character_flag = attending_passover
			clr_character_flag = do_not_disturb
		}

		add_character_modifier = {
			name = held_passover_timer
			years = 5
			hidden = yes
		}

		prestige = 5
		piety = 5
		clr_character_flag = holding_passover
		clr_character_flag = do_not_disturb

		if = {
			limit = {
				trigger_if = {
					limit = { has_character_flag = passover_mood_boost }

					had_character_flag = {
						flag = passover_mood_boost
						years >= 5
					}
				}
			}

			pf_court_plus2_effect = yes
		}
	}
}

# Passover Sedar Ends (Guest)
character_event = {
	id = SoA.505
	desc = EVTDESC_SoA_505
	picture = GFX_evt_synagogue
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	ai = no

	option = {
		name = EVTOPTA_SoA_504
	}
}

# TODO: Not originally in Plus - is it required?

# The Priesthood Restored
narrative_event = {
	id = SoA.550
	title = EVTNAME_SoA_550
	desc = EVTDESC_SoA_550
	picture = GFX_evt_synagogue
	border = GFX_event_narrative_frame_religion

	major = yes
	is_triggered_only = yes # restore_high_priesthood, realm_decisions.txt

	major_trigger = {
		ai = no
	}

	option = {
		name = {
			text = EVTOPTA_SoA_550
			trigger = { religion_group = jewish_group }
		}
		name = {
			text = EVTOPTB_TOG_6004
			trigger = {
				NOR = {
					religion_group = jewish_group
					religion_group = muslim
				}
			}
		}
		name = {
			text = EVTOPTC_TOG_6004
			trigger = { religion_group = muslim }
		}
	}
}

### Jewish Councillor Events

# Councillor (Hidden)
character_event = {
	id = SoA.560

	is_triggered_only = yes # on_five_year_pulse, random_events, jewish_events
	hide_window = yes

	religion_group = jewish_group
	has_job_title = yes

	trigger = {
		OR = {
			has_job_title = job_chancellor
			has_job_title = job_treasurer
			has_job_title = job_spymaster
		}

		employer = {
			NOT = { religion_group = jewish_group }
		}
	}

	weight_multiplier = {
		factor = 1

		mult_modifier = {
			factor = 2

			OR = {
				has_focus = focus_scholarship
				employer = { has_focus = focus_scholarship }
			}
		}
	}

	immediate = {
		trigger_switch = {
			on_trigger = has_job_title

			job_chancellor = {
				employer = {
					character_event = { id = SoA.561 }
				}
			}

			job_treasurer = {
				employer = {
					character_event = { id = SoA.563 }
				}
			}

			job_spymaster = {
				employer = {
					character_event = { id = SoA.565 }
				}
			}
		}
	}
}

# Chancellor
character_event = {
	id = SoA.561
	desc = EVTDESC_SoA_561
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_561

		culture_techpoints = 50
	}
}

# Steward
character_event = {
	id = SoA.563
	desc = EVTDESC_SoA_563
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_561

		economy_techpoints = 50
	}
}

# Spymaster
character_event = {
	id = SoA.565
	desc = EVTDESC_SoA_565
	picture = GFX_evt_jewish_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_561

		military_techpoints = 50
	}
}

###########################################
# Flag management                         #
###########################################

# Safety catch - clears character flags and modifiers
character_event = {
	id = SoA.599

	hide_window = yes
	is_triggered_only = yes

	immediate = {
		clr_character_flag = do_not_disturb
		clr_character_flag = holding_passover
		clr_character_flag = attending_passover
	}
}