﻿
#Effects used in playdates

#playdate_end_guest_effect - Effect run for all guests when they leave playdates

playdate_concluded_my_events_effect = {
	save_temporary_scope_as = finished_participant
}

playdate_fire_correct_default_event_effect = {
	trigger_event = {
		on_action = playdate_event_selection
		days = { min_playdate_event_spacing max_playdate_event_spacing }
	}
}

playdate_end_guest_effect = {
	# Only called on the end of a *successful* playdate. Playdates which are interrupted due to death, imprisonment, etc., don't get this, so put critical clean-up stuff in the activity itself.
	stress_impact = {
		base = medium_stress_loss
		gregarious = medium_stress_impact_loss
		charming = minor_stress_impact_loss
		shy = medium_stress_impact_gain
		pensive = minor_stress_impact_gain
	}
}

hosted_successful_playdate_interrupted_effect = {
	add_prestige = medium_prestige_gain
	scope:activity = {
		every_attending_character = {
			limit = {
				this != scope:host
			}
			custom = every_guest_scope_tt
			add_opinion = {
				target = scope:host
				modifier = hosted_successful_playdate_opinion
			}
		}
	}
}
