#######################################
# Order of the Sacred Magdalene
# Troop Carnal Rite Events
#
# GGSM-owned adaptation of Christianity
# Mod's troop gangbang event.
#
# Christianity Mod remains untouched.
#######################################

namespace = ggsmtroop


#######################################
# TROOP CARNAL RITE
#
# The original Christianity Mod event
# can cause pregnancy through WoL.97
# and impregnate = 0. Neither is used
# here.
#######################################

long_character_event = {
	id = ggsmtroop.1
	desc = ggsmtroop.1.desc
	picture = GFX_event_nada3
	border = GFX_event_long_frame_religion
	is_triggered_only = yes

	trigger = {
		is_female = yes
		is_adult = yes
		religion = catholic
		society_member_of = ggsm_order_sacred_magdalene
		in_command = yes
		has_character_flag = ggsm_gangbanged_troops
	}

	option = {
		name = ggsmtroop.1.a

		# Preserve Christianity Mod's troop morale reward.
		add_character_modifier = {
			name = troops_gangbanged_general
			duration = 30
		}

		# This is an Order-sanctioned act, so there is
		# no adulteress penalty and no pregnancy roll.
		ggsm_progress_sacred_prostitution_effect = yes
		add_society_currency_minor_effect = yes

		hidden_tooltip = {

			# Preserve the original physical exhaustion risk.
			if = {
				limit = { trait = weak }
				random = {
					chance = 10
					add_trait = ill
				}
			}

			if = {
				limit = { NOT = { trait = strong } }
				random = {
					chance = 5
					add_trait = ill
				}
			}

			# Preserve Christianity Mod's effect on the
			# religion's lustfulness without using any
			# of its pregnancy effects.
			set_variable = {
				which = lust_increase
				value = 2
			}
			character_event = { id = christ.15 }
		}
	}
}


#######################################
# SIX-MONTH RECOVERY
#######################################

long_character_event = {
	id = ggsmtroop.2
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		clr_character_flag = ggsm_gangbanged_troops
	}
}
