###################################
#
# THE SONS OF ABRAHAM 
# - Americanist Party Events
# - Basketball Events TBD
# - Reconquered American States Events TBD
#
# Namespace: AmPol 600s
#
###################################

# Joins the Blues
character_event = {
	id = AmPol.600
	desc = EVTDESC_AmPol_600
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_AmPol_600
		add_trait = pol_blue_dem
		if = {
			limit = {
				primary_title = { higher_tier_than = COUNT }
			}
			economy_techpoints = 25
			culture_techpoints = 25
			military_techpoints = 25
		}
	}
}

# Joins the Reds
character_event = {
	id = AmPol.601
	desc = EVTDESC_AmPol_601
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_AmPol_600
		add_trait = pol_red_gop
		piety = 100
	}
}

# Red liege has Blue vassal (Hidden)
character_event = {
	id = AmPol.602
	
	hide_window = yes
	
	min_age = 16
	only_capable = yes
	prisoner = no
	only_rulers = yes
	only_men = yes
	OR = {
		religion = americanist
		religion = populist
		religion = libertarian
	}
	
	trigger = {
		has_dlc = "Sons of Abraham"
		NOR = {
			liege = {
				war = yes
			}
			trait = incapable
			is_inaccessible_trigger = yes
			prisoner = yes
		}
		trait = pol_blue_dem
		liege = { 
			trait = pol_red_gop
			NOT = {
				has_opinion_modifier = { who = ROOT modifier = opinion_rejected_party }
			}
		}
	}
	
	immediate = {
		liege = {
			character_event = { id = AmPol.603 }
		}
	}
	
	mean_time_to_happen = {
		months = 640
	}
}

# Red liege has Blue vassal
character_event = {
	id = AmPol.603
	desc = EVTDESC_AmPol_603
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_603
		FROM = { 
			letter_event = { id = AmPol.604 days = 3 tooltip = EVTTOOLTIP_AmPol_604 }
		}
	}
	option = {
		name = EVTOPTB_AmPol_603
	}
}

# Blue vassal receives letter
letter_event = {
	id = AmPol.604
	desc = EVTDESC_AmPol_604
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_604
		ai_chance = {
			factor = 1
		}
		FROM = { 
			letter_event = { id = AmPol.605 days = 3 tooltip = EVTTOOLTIP_AmPol_605 }
		}
		remove_trait = pol_blue_dem
		add_trait = pol_red_gop
	}
	option = {
		name = EVTOPTB_AmPol_604
		ai_chance = {
			factor = 1
		}
		FROM = { 
			opinion = {
				modifier = opinion_rejected_party
				who = ROOT
			}
			letter_event = { id = AmPol.606 days = 3 tooltip = EVTTOOLTIP_AmPol_606 }
		}
	}
}

# Blue vassal complies
letter_event = {
	id = AmPol.605
	desc = EVTDESC_AmPol_605
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_605
		tooltip = {
			FROM = {
				remove_trait = pol_blue_dem
				add_trait = pol_red_gop
			}
		}
	}
}

# Blue vassal refuses
letter_event = {
	id = AmPol.606
	desc = EVTDESC_AmPol_606
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_606
	}
}

# Blue liege has Red vassal (Hidden)
character_event = {
	id = AmPol.610
	
	hide_window = yes
	
	min_age = 16
	only_capable = yes
	prisoner = no
	only_rulers = yes
	only_men = yes
	OR = {
		religion = americanist
		religion = populist
		religion = libertarian
	}
	
	trigger = {
		has_dlc = "Sons of Abraham"
		NOR = {
			liege = {
				war = yes
			}
			trait = incapable
			is_inaccessible_trigger = yes
			prisoner = yes
		}
		trait = pol_red_gop
		liege = { 
			trait = pol_blue_dem
			NOT = {
				has_opinion_modifier = { who = ROOT modifier = opinion_rejected_party }
			}
		}
	}
	
	immediate = {
		liege = {
			character_event = { id = AmPol.611 }
		}
	}
	
	mean_time_to_happen = {
		months = 640
	}
}

# Blue liege has Red vassal
character_event = {
	id = AmPol.611
	desc = EVTDESC_AmPol_611
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_611
		FROM = { 
			letter_event = { id = AmPol.612 days = 3 tooltip = EVTTOOLTIP_AmPol_612 }
		}
	}
	option = {
		name = EVTOPTB_AmPol_611
	}
}

# Red vassal receives letter
letter_event = {
	id = AmPol.612
	desc = EVTDESC_AmPol_612
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_612
		ai_chance = {
			factor = 1
		}
		FROM = { 
			letter_event = { id = AmPol.613 days = 3 tooltip = EVTTOOLTIP_AmPol_613 }
		}
		remove_trait = pol_red_gop
		add_trait = pol_blue_dem
	}
	option = {
		name = EVTOPTB_AmPol_612
		ai_chance = {
			factor = 1
		}
		FROM = { 
			opinion = {
				modifier = opinion_rejected_party
				who = ROOT
			}
			letter_event = { id = AmPol.614 days = 3 tooltip = EVTTOOLTIP_AmPol_614 }
		}
	}
}

# Red vassal complies
letter_event = {
	id = AmPol.613
	desc = EVTDESC_AmPol_613
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_613
		tooltip = {
			FROM = {
				remove_trait = pol_red_gop
				add_trait = pol_blue_dem
			}
		}
	}
}

# Red vassal refuses
letter_event = {
	id = AmPol.614
	desc = EVTDESC_AmPol_614
	border = GFX_event_letter_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_AmPol_614
	}
}

# Cynical Red considers Blues
character_event = {
	id = AmPol.620
	desc = EVTDESC_AmPol_620
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	min_age = 16
	only_capable = yes
	prisoner = no
	only_rulers = yes
	only_men = yes
	OR = {
		religion = americanist
		religion = populist
		religion = libertarian
	}
	
	trigger = {
		has_dlc = "Sons of Abraham"
		trait = pol_red_gop
		trait = cynical
	}
	
	mean_time_to_happen = {
		months = 140
	}
	
	option = {
		name = EVTOPTA_AmPol_620
		ai_chance = {
			factor = 1
		}
		remove_trait = pol_red_gop
		add_trait = pol_blue_dem
	}
	option = {
		name = EVTOPTB_AmPol_620
		ai_chance = {
			factor = 1
		}
		remove_trait = cynical
		add_trait = zealous
	}
}

# Zealous Blue considers Reds
character_event = {
	id = AmPol.621
	desc = EVTDESC_AmPol_621
	picture = GFX_evt_united_states_seal
	border = GFX_event_normal_frame_religion
	
	min_age = 16
	only_capable = yes
	prisoner = no
	only_rulers = yes
	only_men = yes
	OR = {
		religion = americanist
		religion = libertarian
		religion = populist
	}
	
	trigger = {
		has_dlc = "Sons of Abraham"
		trait = pol_blue_dem
		trait = zealous
	}
	
	mean_time_to_happen = {
		months = 140
	}
	
	option = {
		name = EVTOPTA_AmPol_620
		ai_chance = {
			factor = 1
		}
		remove_trait = pol_blue_dem
		add_trait = pol_red_gop
	}
	option = {
		name = EVTOPTB_AmPol_621
		ai_chance = {
			factor = 1
		}
		remove_trait = zealous
		add_trait = cynical
	}
}

