nameplace = MSSCRF

character_event = { # Ritual Sacrifice Prisoner (Jailer's perspective)
	id = MSSCRF.1

	desc = {
		trigger = {
			trigger ={
				NOR = {
					trait = bloodthirsty_gods_1
					trait = bloodthirsty_gods_2
					trait = bloodthirsty_gods_3
				}
				NOT = {
					any_realm_wonder_upgrade = {
						has_wonder_upgrade = upgrade_sacrificial_altar
						is_active = yes
					}
				}
			}
		}

		text = EVTDESCHF23002
	}
	desc = {
		trigger = {
			is_incapable = no
			trigger ={
				OR = {
					trait = bloodthirsty_gods_1
					trait = bloodthirsty_gods_2
					trait = bloodthirsty_gods_3
				}
				NOT = {
					any_realm_wonder_upgrade = {
						has_wonder_upgrade = upgrade_sacrificial_altar
						is_active = yes
					}
				}
			}
		}

		text = EVTDESCHF23002_B 	#Do it yourself.
	}
	desc = {
		trigger = {
			trigger ={
				NOR = {
					trait = bloodthirsty_gods_1
					trait = bloodthirsty_gods_2
					trait = bloodthirsty_gods_3
				}
				any_realm_wonder_upgrade = {
					has_wonder_upgrade = upgrade_sacrificial_altar
					is_active = yes
				}
			}
		}

		text = EVTDESCHF23002_C
	}
	desc = {
		trigger = {
			is_incapable = no
			trigger ={
				OR = {
					trait = bloodthirsty_gods_1
					trait = bloodthirsty_gods_2
					trait = bloodthirsty_gods_3
				}
				any_realm_wonder_upgrade = {
					has_wonder_upgrade = upgrade_sacrificial_altar
					is_active = yes
				}
			}
		}

		text = EVTDESCHF23002_D 	#Do it yourself.
	}
	picture = {
		picture = GFX_evt_pagan_blood_sacrifice
	}

	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes

	immediate = {
		random_realm_wonder_upgrade = {
			limit = {
				trigger = { has_wonder_upgrade = upgrade_sacrificial_altar }

				is_active = yes
			}
			save_event_target_as = the_sacrificial_altar
			wonder = { save_event_target_as = the_temple }
		}
	}
	
	option = {
		name = EVTOPTA_SSI_072

		if = {
			limit = { event_target:the_sacrificial_altar = { is_active = yes } }

			prestige = 10
		}
	}

	option = {
		name = EVTOPTBHF23002
		trigger = {
			event_target:target_sacrificed_prisoner = { can_be_eaten_trigger = yes }
			event_target:the_sacrificial_altar = { is_active = yes }
		}
		tooltip_info_custom = EVTOPTBHF23002_TT

		if = {
			limit = { NOT = { trait = cannibal_trait } }
			add_trait = cannibal_trait
		}

		add_character_modifier = {
			name = ate_beating_heart
			months = 6
		}
	}
}

character_event = { # Ping - Your vassal was sacrificed
	id = MSSCRF.2

	desc = EVTDESC_MSSCRF_2
	border = GFX_event_normal_frame_war

	notification = yes
	is_triggered_only = yes

	picture = {
		picture = GFX_evt_pagan_blood_sacrifice
	}

	option = { name = EVTOPTAHF23001 } # How terrible!

}