:: characterOverview_sex[menu]
	<<gs 'characterOverviewNavigation' 'sex'>>
	<h2>Sex</h2>
	<h3>Pregnancy</h3>
	<p>As far as you are aware, you are not pregnant.</p>

	<h3>Ovulation cycle</h3>
	<<set _daysSincePeriodStarted = $time.daystart - $pc.cycleStart>>
	Your last period started _daysSincePeriodStarted <<plural _daysSincePeriodStarted 'day' 'days'>> ago.
	Your last cycle was $pc.cycleLengthLast days long.
	<<switch $pc.cyclePhase>>
		<<case 'menses'>>
			You currently have your monthly bleeding, but that doesn't mean you're infertile. While sperm is unlikely to survive til your ovulation, it's not impossible.
		<<case 'start'>>
			In your current cycle, you most likely didn't have your ovulation yet. The risk of getting pregnant is rather high.
		<<case 'end'>>
			In your current cycle, you most likely already had your ovulation. Getting pregnant in this stage is unlikely but not unheard of.
	<</switch>>

	<h3>Sex Partners</h3>
	<<set _recentDays = 30>>
	
	<h4>You are aware of</h4>
	<p>Sex partners you are aware of are those you remember having sex with.</p>
	<<set _recentSexPartnersAware = $pc.sexEncountersFilteredByNpc(_recentDays,true)>>
	
	<<if Object.keys(_recentSexPartnersAware).length == 0>>
		You didn't have sex with anybody in the past _recentDays.
	<<else>>
		<p>In the past _recentDays days, you had sex with the following characters:</p>
		<ul>
			<<for _sexnpcId, _npcAdditionalData range _recentSexPartnersAware>>
				<li>
					<<npc _sexnpcId>><</npc>>
				</li>
			<</for>>
		</ul>
	<</if>>

	<h4>You are not aware of</h4>
	<p>
		You are not aware of sex partners you had sex with while being drugged, inebriated, hypnotized, etc.
		This information is only known to the player, but not to $pc.name_nick.
		For example, she can't declare anybody the father of one of her children faithfully if she doesn't remember having sex with him.
	</p>
	<<set _recentSexPartnersUnaware = $pc.sexEncountersFilteredByNpc(_recentDays,false)>>

	<<if Object.keys(_recentSexPartnersUnaware).length == 0>>
		You didn't have sex with anybody in the past _recentDays.
	<<else>>
		<p>In the past _recentDays days, you had sex with the following characters:</p>
		<ul>
			<<for _sexnpcId, _npcAdditionalData range _recentSexPartnersUnaware>>
				<li>
					<<npc _sexnpcId>><</npc>>
				</li>
			<</for>>
		</ul>
	<</if>>
