code:
:: School Pool
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $poolroomstate is "own">>
	<<if $time gte ($hour * 60 + 50)>>
		<<if $swimmingattended is 1>>
			You enter the swimming pool room.

			The lesson has just ended. A few stragglers are still on their way to the changing rooms. Mason is gathering up towels that have been left behind.

			<<if random(1,1000) is 1>>
				Outside, someone is farting in the general direction of their enemies. They must be French.

			<</if>>
			<<if $exposed lte 0>>
				<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

				<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>
			<<elseif $exposed gte 1>>
				<<maleicon>><<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

				<<femaleicon>><<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><</link>>
			<</if>>
		<<else>>
			<<include "School Swimming Late">>
			<<set $swimmingattended to 2>>
		<</if>>
	<<elseif $exposed gte 2 and $swimall is 1>>
		<<npc Mason>><<person1>>
		<<if $swimmingattended is 1>>
			You rejoin the swimming lesson.
			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				Mason instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "It wouldn't be safe to let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<<elseif $time lte ($hour * 60 + 5)>>
			You enter the swimming pool room.
			Mason stands by the pool, covering <<his>> body as <<he>> tries to encourage students to stretch while the rest of the class pours in.
			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				<<He>> notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "T-that's a little too much."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<<else>>
			You enter the swimming pool room.

			Mason and the class are already in the water. "Glad you could join us!" <<He>> says, beckoning.
			<<gdelinquency>><<detention 1>>

			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				Mason instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Wait! It wouldn't be safe to let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>
			You climb into the water as Mason continues the lesson.

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<</if>>
	<<elseif $exposed gte 2 and $swimall isnot 1>>
		<<schoolpoolexposed>>
		<<if $exhibitionism gte 75 and $swimall isnot 1>>
			<<link [[Ask to swim naked|School Pool Ask Naked]]>><<fameexhibitionism 15>><<endevent>><<set $swimnudecounter += 1>><</link>><<exhibitionist5>>

		<</if>>
	<<elseif $swimall is 1>>
		<<npc Mason>><<person1>>
		<<if $swimmingattended is 1>>
			You rejoin the swimming lesson.
			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				Mason instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Well... obviously it wouldn't be safe to let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>

		<</if>>
		You enter the swimming pool room.
		Mason stands by the pool, encouraging students to stretch while waiting for the rest of the class.
		<<if $exposed gte 2>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
		<<else>>

			<<He>> glares at you. "So, thanks to a certain someone, I'm not allowed to let you in the pool unless you're all nude."

			<<link [[Swim naked|Swimming Lesson]]>><<undress "school pool">><<endevent>><</link>>
		<</if>>
	<<elseif ($worn.under_lower.type.includes("swim") or $worn.lower.type.includes("swim"))
	and ($worn.under_upper.type.includes("swim") or $worn.upper.type.includes("swim") or ($worn.under_upper.type.includes("naked") and $worn.upper.type.includes("naked") and ($player.gender_appearance is "m" or $swimCrossdressPermission is true)))
	and (($worn.upper.type.includes("naked") or $worn.upper.type.includes("swim")) and ($worn.lower.type.includes("naked") or $worn.lower.type.includes("swim")))>>
		<<npc Mason>><<person1>>
		<<if $swimmingattended is 1>>
			You rejoin the swimming lesson.
			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				Mason instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Well... obviously it wouldn't be safe to let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<<elseif $time lte ($hour * 60 + 5)>>
			You enter the swimming pool room.
			Mason stands by the pool, encouraging students to stretch while waiting for the rest of the class.
			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				<<He>> instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "I can't let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<<else>>
			You enter the swimming pool room.
			Mason and the class are already in the water. "Glad you could join us!" <<He>> says, beckoning.
			<<gdelinquency>><<detention 1>>

			<<if $rightarm is "bound" or $leftarm is "bound" or $feetuse is "bound">>
				Mason instantly notices your bound <<if $rightarm is "bound" or $leftarm is "bound">>arms<</if>><<if ($rightarm is "bound" or $leftarm is "bound") and $feetuse is "bound">> and <</if>><<if $feetuse is "bound">>legs<</if>>. "Wait! It wouldn't be safe to let you swim like that."

				<<He>> moves behind you and you feel your limbs fall free.<<unbind>>
			<</if>>
			You climb into the water as Mason continues the lesson.

			<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

		<</if>>
	<<else>>
		You enter the swimming pool room.
		<<npc Mason>><<person1>>
		Mason looks at your clothing. "You can't swim dressed like that! Go get changed."

		<<if $exhibitionism gte 75 and $swimall isnot 1>>
			<<link [[Ask to swim naked|School Pool Ask Naked]]>><<fameexhibitionism 15>><<endevent>><<set $swimnudecounter += 1>><</link>><<exhibitionist5>>

		<</if>>
		<<if $player.gender is "f" or ($player.gender is "h" and $player.gender_appearance is "f")>>
			<<if $swimCrossdressPermission is undefined>>
				<<link [[Say you only have a boy's swimming costume|School Pool Wrong]]>><</link>>

			<</if>>
			<<link [[Say you don't have anything to change into|School Pool Spare]]>><</link>>

		<<else>>
			<<if $swimCrossdressPermission is undefined>>
				<<if ($worn.upper.type.includes("naked") and $worn.under_upper.type.includes("naked")) and
				($worn.lower.type.includes("swim") or ($worn.lower.type.includes("naked") and $worn.under_lower.type.includes("swim")))>>
					<<link [[Say you only have a boy's swimming costume|School Pool Wrong]]>><<set $phase to 1>><</link>>
				<<else>>
					<<link [[Say you only have a girl's swimming costume|School Pool Wrong]]>><</link>>
				<</if>>

			<</if>>
			<<link [[Say you don't have anything to change into|School Pool Spare]]>><</link>>

		<</if>>

		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

	<</if>>

<<elseif $poolroomstate is "other">>
	<<if $exposed gte 1>>
		<<schoolpoolexposed>>
	<<else>>
		You step into the pool room.
		<<if $swimminginterrupted is 1>>
			<<npc Mason>><<person1>>You enter the pool room. Mason ceases <<his>> activity and looks your way. "I've got a class to teach.
			Stop bothering us." <<He>> points to the door.
			<<gdelinquency>>

			<<detention 1>>

			<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

			<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

		<<else>>
			<<npc Mason>><<person1>>
			You enter the pool room. Mason ceases <<his>> activity and smiles at you. "Are you lost? Or is there something you need to tell me?"
			It seems you've interrupted the lesson.

			<<set $swimminginterrupted to 1>>

			<<link [[Apologise|Swimming Classroom Apology]]>><<trauma 1>><<stress 1>><</link>><<gstress>><<gtrauma>>

			<<if $trauma gte 1>>
				<<link [[Mock|Swimming Classroom Mock]]>><<status 1>><<stress -12>><</link>><<lstress>><<gcool>><<gdelinquency>>

			<</if>>
		<</if>>
	<</if>>
<<else>>
	You are in the swimming pool room. It's saturated with the smell of chlorine.

	<<if $arousal gte $arousalmax>>
		<<orgasmLocation "emptySwimClassroom">>
	<</if>>

	<<exhibitionclassroom>>

	<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

	<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

<</if>>

:: School Pool Ask Naked
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>><<undress "school pool">><<exposure>>

<<if $swimnudecounter lte 1>>
	<<npc Mason>>

	<<if $submissive gte 1150>>
		"May I swim naked?" you ask. "The water feels nice."
	<<elseif $submissive lte 850>>
		"I'm swimming naked." you announce.
	<<else>>
		"Can I swim naked?" you ask.
	<</if>>

	<<person1>><<His>> blush deepens as the class breaks into excitement. "F-fine," <<he>> says. <<He>> turns and does <<his>>
	best to quiet the other students.

<<elseif $swimnudecounter lte 2>>
	<<npc Mason>><<generatey2>>

	<<if $submissive gte 1150>>
		"May I swim naked?" you ask. "The water feels nice."
	<<elseif $submissive lte 850>>
		"I'm swimming naked." you announce.
	<<else>>
		"Can I swim naked?" you ask.
	<</if>>

	<<person1>><<His>> blush deepens as the class breaks into excitement. "A-again?" <<he>> squeaks. Before <<he>> can turn around,
	a <<person2>><<person>> also leaves the changing rooms naked.

	<<person2>>"It's unfair if only <<pshe>> gets to swim naked," <<he>> says. Mason is too stunned to respond, and lets you both enter the pool.

<<elseif $swimnudecounter lte 3>>
	<<npc Mason>><<generatey2>><<generatey3>><<generatey4>>

	You leave, only to see a <<person2>><<person>>, a <<person3>><<person>> and a <<person4>><<person>> are already in the room naked,
	much to the enjoyment of the students in the pool and horror of Mason.

	<<person1>>Mason's blush deepens even further as the class applauds a fourth student willing to bare it all. "More of you?"
	<<he>> says, shaking <<his>> head.

	<<if $submissive gte 1150>>
		"I guess everyone wanted to join in," you say.
	<<elseif $submissive lte 850>>
		"Looks like you're outnumbered," you say.
	<<else>>
		"I'm not the only one who hates these swimsuits" you say.
	<</if>>

<<elseif $swimnudecounter lte 4>>
	<<npc Mason>><<generatey2>><<generatey3>><<generatey4>>

	You enter the pool, only to see that even more students than last time are already there, naked, with a few more coming out behind you.
	Maybe half the class are attending naked.

	A <<person2>><<person>> waves at you, <<his>> legs kicking in the water at the edge, while <<person1>> Mason tries <<his>>
	best to distract the clothed students from the gaggle of nude swimmers.

	<<if $cool gte 80>>
		Several of them are doing stretches at the edge of the pool, and a <<person3>><<person>> spots you,
		and points you out to a <<person4>><<person>>,who both wave at you.

	<</if>>
<<elseif $rng gte 51>>
	<<npc Mason>><<generatey2>><<generatey3>>

	<<person1>>Almost the entire class is now swimming naked. A few holdouts, including a <<person2>><<person>> and a <<person3>><<person>>,
	struggle to avoid looking as Mason tries to teach.

<<else>>
	<<npc Mason>><<generatey2>><<generatey3>>

	<<person1>>Almost the entire class is now swimming naked. A few holdouts, including a <<person2>><<person>> and a <<person3>><<person>>,
	struggle to avoid looking as Mason tries to teach.

<</if>>

<<person1>><<He>> does little to temper their excitement.
<<if $exposed gte 2>>
	<<flaunting>> you feel their eyes on you as you slip into the water.
<<else>>
	<<flaunting>> you feel their eyes on you as you <<nervously>> strip down to your <<lewdness>>, before slipping into the water. <<covered>>
<</if>><<exhibitionism5>>

<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

:: Pool Leighton Nude Punishment
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>><<set $swimall to 1>><<underlowerstrip>><<underupperstrip>>

Leighton demands the students strip. They do so. Then <<he>> turns and stares at Mason.

"E-even me?"

"You've lost control of your class. Be thankful I'm not firing you."

Once done, Leighton takes the swimwear and puts it in a hamper.

"Not a single one of you will swim with clothes, do you understand?" <<he>> turns to Mason. "Including you. Not with this class."

"Why?" one of the students asks.

"Blame your classmates. They wanted to skinny dip during class, now they can."

<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>

:: Swimming Lesson
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>><<set $phase to 0>>
<<set $swimmingattended to 1>>

<<if $swimnudecounter gte 10 and $swimall isnot 1>>
	<<npc Leighton>><<person1>> Leighton storms into the pool room, furious. "Mason!" <<he>> shouts. "Explain this! Why is this class swimming naked?"

	<<endevent>><<npc Mason>><<person1>>
	"I-I can't..." Mason turns to you, but is lost for words. Leighton follows <<his>> gaze.

	<<endevent>><<npc Leighton>><<person1>>
	"Of course," <<he>> snarls. "Everyone out of the pool."

	<<link [[Next|Pool Leighton Nude Punishment]]>><<pass 5>><</link>>
<<else>>
	<<if $time lte ($hour * 60 + 5)>>
		<<if $swimall is 1 and $exposed gte 2>>
			You don't bother worrying about your <<lewdness>>, everyone is naked at this point.

		<<elseif $exposed gte 1>>
			You keep your <<lewdness>> hidden beneath the surface of the water, but you still feel vulnerable and exposed.
			The rest of the class sneak looks when they think you can't see them.

		<</if>>
		<<if $arousal gte $arousalmax>>
			<<orgasmLocation "swimClassroom">>
		<</if>>
		The swimming lesson begins, how do you want to conduct yourself?

	<<else>>
		<<if $swimall is 1 and $exposed gte 2>>
			You don't bother worrying about your <<lewdness>>, everyone is naked at this point.

		<<elseif $exposed gte 1>>
			The water helps conceal you, but you still feel exposed. The rest of the class sneak looks when they think you can't see them.

		<</if>>
		<<if $arousal gte $arousalmax>>
			<<orgasmLocation "swimClassroom">>
		<</if>>
		The swimming lesson continues, how do you want to conduct yourself?

	<</if>>

	<<link [[Focus on the lesson|Swimming Lesson Focus]]>><</link>><<gstress>><<gswimming>><<gtiredness>>

	<<link [[Socialise with classmates|Swimming Lesson Socialise]]>><</link>><<gcool>><<ltrauma>><<lstress>><<gharass>>

	<<if $exposed gte 2 and $exhibitionism gte 75>>
		<<link [[Practise your backstroke|Swimming Lesson Naked Backstroke]]>><</link>><<gswimming>><<gtiredness>><<exhibitionist5>>

	<</if>>
	<<link [[Daydream|Swimming Lesson Daydream]]>><</link>><<lstress>> <<lharass>>

	<<if $exhibitionism gte 55>>
		<<link [[Masturbate|Swimming Lesson Masturbate]]>><<set $masturbationstart to 1>><</link>><<exhibitionist4>>

	<</if>>
<</if>>

:: School Pool Wrong
<<set $outside to 0>><<set $location to "pool">><<set $swimCrossdressPermission to true>><<set _alreadyWearing to false>><<schooleffects>><<effects>>

You speak in a low voice, so only the teacher will hear you.

<<if $player.gender is "f" or ($player.gender is "h" and $player.gender_appearance is "f") or $phase is 1>>
	<<if $player.gender_appearance is "f" or $genderknown.includes("Mason") or $phase is 1>>
		<<set $phase to 0>>
		"I only have a pair of boy's shorts, <<sir>>."

		<<He>> blushes. "Oh. That's better than nothing.
		<<if ($worn.upper.type.includes("naked") and $worn.under_upper.type.includes("naked")) and
			($worn.lower.type.includes("swim") or ($worn.lower.type.includes("naked") and $worn.under_lower.type.includes("swim")))>>
			Go ahead." You join the rest of the class.<<set _alreadyWearing to true>>
		<<else>>
			Go get changed." <<He>> turns back to <<his>> class.
		<</if>>

	<<else>>
		"I only have a pair of boy's shorts, <<sir>>."

		<<He>> looks at you blankly. "I don't see the..." <<He>> blushes as realisation dawns on <<his>> youthful face.
		"Oh. That's better than nothing, and it's not like you have a problem dressing as a boy.
		<<if ($worn.upper.type.includes("naked") and $worn.under_upper.type.includes("naked")) and
			($worn.lower.type.includes("swim") or ($worn.lower.type.includes("naked") and $worn.under_lower.type.includes("swim")))>>
			Go ahead." You join the rest of the class.<<set _alreadyWearing to true>>
		<<else>>
			Go get changed." <<He>> turns back to <<his>> class.
		<</if>>
		<<set $genderknown.pushUnique("Mason")>>

	<</if>>
<<else>>
	<<if $player.gender_appearance is "m" or $genderknown.includes("Mason")>>
		"I only have a girl's suit, <<sir>>."

		<<He>> blushes. "Oh. That's better than nothing. Go get changed." <<He>> turns back to <<his>> class.

	<<else>>
		"I only have a girl's suit, <<sir>>."

		<<He>> looks at you blankly. "I don't see the..." <<He>> blushes as realisation dawns on <<his>> youthful face.
		"Oh. That's better than nothing, and it's not like you have a problem dressing as a girl. Go get changed." <<He>> turns back to <<his>> class.
		<<set $genderknown.pushUnique("Mason")>>

	<</if>>
<</if>>

<<if _alreadyWearing>>
	<<link [[Next|Swimming Lesson]]>><<endevent>><</link>>
<<else>>
	<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

	<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

<</if>>

:: School Pool Spare
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>
"I don't have a swimming costume, <<sir>>."

<<He>> sighs and climbs out the pool. "Come on, we might have some spares."

<<He>> takes you into a small room and rummages inside a cupboard.

<<if $rng gte 81 and $delinquency gte 200>>
	"I'm sorry but we don't have anything to spare. You'll have to swim naked."

	<<He>> doesn't wait for you to give voice to your anxiety. "The rest of the class will be distracted, just quietly slip into the water.
	No one will be able to see anything once you're in."

	<<link [[Accept|School Pool Nude]]>><<undress "school pool">><<endevent>><<exposure>><</link>>

	<<link [[Refuse (0:05)|School Pool Refuse]]>><<pass 5>><<detention 6>><<endevent>><</link>><<gdelinquency>>
<<elseif $rng gte 41>>
	<<if $player.gender_appearance is "f">>
		<<He>> produces a bundle of fabric and passes it to you.

		"Don't be long!" <<he>> says, before leaving you alone in the room.

		You unfurl the fabric to reveal a rather tattered swimsuit.

		<<link [[Get changed|School Pool Crossdress]]>><<undress "school pool">><<spareschoolswimsuit>><<endevent>><<exposure>><<set $phase to 1>><</link>>
	<<else>>
		<<He>> produces a bundle of fabric and passes it to you.

		"Don't be long!" <<he>> says, before leaving you alone in the room.

		You unfurl the fabric to reveal a rather tattered pair of swim shorts.

		<<link [[Get changed|School Pool Crossdress]]>><<undress "school pool">><<spareschoolswimshorts>><<endevent>><<exposure>><<set $phase to 0>><</link>>

	<</if>>
<<elseif $rng gte 1>>
	<<if $player.gender_appearance is "f">>
		<<He>> produces a bundle of fabric and passes it to you.

		"Don't be long!" <<he>> says, before leaving you alone in the room.

		You unfurl the fabric to reveal a rather tattered pair of boy's swim shorts. You rummage in the cupboard yourself, but find not a scrap of clothing.
		It's the shorts or nothing.

		<<link [[Wear the shorts|School Pool Crossdress]]>><<undress "school pool">><<spareschoolswimshorts>><<endevent>><<exposure>><<set $phase to 0>><</link>>

		<<link [[Skip the lesson (0:05)|School Pool Refuse]]>><<pass 5>><<detention 6>><<endevent>><</link>><<gdelinquency>>
	<<else>>
		<<He>> produces a bundle of fabric and passes it to you.

		"Don't be long!" <<he>> says, before leaving you alone in the room.

		You unfurl the fabric to reveal a rather tattered girl's swimsuit. You rummage in the cupboard yourself, but find not a scrap of clothing.
		It's the swimsuit or nothing.

		<<link [[Wear the swimsuit|School Pool Crossdress]]>><<undress "school pool">><<spareschoolswimsuit>><<endevent>><<exposure>><<set $phase to 1>><</link>>

		<<link [[Skip the lesson (0:05)|School Pool Refuse]]>><<pass 5>><<detention 6>><<endevent>><</link>><<gdelinquency>>
	<</if>>
<</if>>

:: Swimming Classroom Apology
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

Embarrassed, you apologise and leave.

<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

:: Swimming Classroom Mock
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You mock the teacher. "Sorry for interrupting <<sir>>. I just wanted to see you in
<<if $pronoun is "f">>that tight swimsuit<<else>>those tight shorts<</if>>." A few of the students laugh, others start blushing.

Mason also blushes. "I-I'll pretend I didn't hear that." <<He>> points to the changing rooms, before quickly looking away from you.
<<gdelinquency>>

<<detention 1>><<npcincr Mason love -1>>
<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><<endevent>><</link>>

<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><<endevent>><</link>>

:: School Pool Nude
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You <<nervously>> undress and tuck your clothes away inside the cupboard. You open the door slightly and peek through the gap.
Thirty or so students, plus the teacher. You'll get in trouble if you don't join them, but can you really expose yourself in front of so many people?

<<link [[This was a mistake!|School Pool Refuse]]>><</link>>

<<link [[I have no choice|School Pool Nude Entry]]>><</link>>

:: School Pool Refuse
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

There's no way you're doing this. You leave the pool, clothes on and dignity intact, but refusing a teacher will have consequences.

<<link [[Next|School Pool Entrance]]>><</link>>

:: School Pool Crossdress
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

<<if $player.gender_appearance isnot $player.gender>>
	<<if $phase is 2>>
		<<set $phase to 0>>
		You steel yourself and walk through the door, <<lewdness>> on display. You manage to get beneath the flimsy protection of the water,
		but not before the rest of the class become aware of your state.
		<<garousal>><<arousal 600>>

		<<link [[Next|Swimming Lesson]]>><</link>>

	<<elseif $exposed gte 1>>
		You <<nervously>> undress and tuck your clothes away inside the cupboard, before slipping on the tattered <<if $phase is 9>>swimsuit<<else>>swim shorts<</if>>.
		You look down at your <<breasts>>; there's no way you'll pass as a boy. You open the door slightly and peek through the gap.
		Thirty or so students, plus the teacher. You'll get in trouble if you don't join them, but can you really expose yourself in front of so many people?

		<<link [[This was a mistake!|School Pool Refuse]]>><</link>>

		<<link [[I have no choice|School Pool Crossdress]]>><<set $phase to 2>><</link>>
	<<elseif $exposed lte 0>>
		You <<nervously>> undress and tuck your clothes away inside the cupboard, before slipping on the tattered <<if $phase is 9>>swimsuit<<else>>swim shorts<</if>>.

		You enter the pool room proper. A couple of heads turn, but no one gives you a second glance as you climb into the water.

		<<link [[Next|Swimming Lesson]]>><</link>>

	<</if>>
<<else>>
	You slip the tattered <<if $phase is 9>>swimsuit<<else>>swim shorts<</if>> on and store your clothes in the cupboard, before heading out for the lesson.

	<<link [[Next|Swimming Lesson]]>><</link>>
<</if>>

:: School Pool Nude Entry
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<effects>>

You steel yourself and walk through the door, doing your best to cover your displayed <<nudity>>.
You manage to get beneath the flimsy protection of the water, but not before the rest of the class become aware of your state.
<<garousal>><<arousal 600>>

<<link [[Next|Swimming Lesson]]>><</link>>

:: Swimming Lesson Focus
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $exposed lte 0 or $swimall is 1>>
	You focus on following Mason's instructions and exerting yourself. It's hard going, but you think you're making progress.
	<<physique 3>><<swimmingskilluse>>
<<elseif $exposed gte 1>>
	You focus on following Mason's instructions and exerting yourself. Doing so while keeping your body concealed beneath the water proves to be difficult.
	<<physique 3>><<swimmingskilluse>>
<</if>>

<<advancelesson>>
<<stress _lesson_progress>>
<<tiredness _lesson_progress>>

<<if $phase is 1>>
	<<set $phase to 0>>
	<<if $swimall is 1>>
		<<if pregnancyBellyVisible()>>
			The bell rings, signifying the end of the lesson. You climb out of the pool once Mason gives the go ahead, and <<nnpc_he "Mason">> sticks close by to assist you. Despite everyone being naked, no one seems concerned. A hands out towels to each other student as they pass, trying to avoid eye contact.
		<<else>>
			The bell rings, signifying the end of the lesson. You climb out of the pool. Despite everyone being naked, no one seems concerned. Mason hands out towels to each student as they pass, trying to avoid eye contact.
		<</if>>

	<<elseif $exposed gte 1>>
		<<if pregnancyBellyVisible()>>
			The bell rings, signifying the end of the lesson. You wait as the other students leave, climbing out of the pool once Mason gives the go ahead, and <<nnpc_he "Mason">> sticks close by to assist you. Some students linger, doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.
		<<else>>
			The bell rings, signifying the end of the lesson. You wait as the other students leave. Some students linger,
			doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.
		<</if>>

	<<elseif $exposed lte 0>>
		<<if pregnancyBellyVisible()>>
			The bell rings, signifying the end of the lesson. You climb out of the pool once Mason gives the go ahead, and <<nnpc_he "Mason">> sticks close by to assist you.
		<<else>>
			The bell rings, signifying the end of the lesson. You climb out of the pool.
		<</if>>

	<</if>>
	<<if $exposed lte 0>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

	<<elseif $exposed gte 1>>
		<<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

		<<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><</link>>

	<</if>>
<<else>>
	<<if $exposed gte 1>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - $allure)>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<<elseif $exposed lte 0>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 5))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>
	<<if $time gte ($hour * 60 + 5) and $time lte ($hour * 60 + 57)>>
	<<else>>
		<<if $player.gender_appearance is "m">>
			<<link [[Wait for the girls to leave (0:05)|School Pool]]>><<pass 5>><</link>>

		<</if>>
		<<if $player.gender_appearance is "f">>
			<<link [[Wait for the boys to leave (0:05)|School Pool]]>><<pass 5>><</link>>

		<</if>>
	<</if>>

:: Swimming Lesson Naked Backstroke
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

You pay little attention to the lesson, instead opting to practise your backstroke.
<<swimmingskilluse>>
Your classmates gasp as they see you swimming on your back completely naked, showing off your <<if pregnancyBellyVisible()>>pregnant belly<<if $player.penisExist and $player.vaginaExist>>,<<else>> and<</if>><</if>> <<genitals>> in the air for everyone to see.
<<exhibitionism5>>

Mason seems displeased by your choice of activity.
<<if $player.penisExist>>
	<<if $player.vaginaExist>>
		Some of both the boys and girls stare in awe of your unique set of genitals.
	<<elseif $penissize lte 0>>
		Some of the girls giggle at the sight, a few smirk. <<incgpenisinsecurity>>
	<<elseif $penissize is 4>>
		Some of the girls giggle at the sight, and a few of the boys scowl.
		<<if random(1,5) gte 4>>
			A couple of the boys let their eyes linger a little more than the others.
		<</if>>
		<<incgpenisinsecurity>>
	<<else>>
		Some of the students let their gaze linger a little on your naked body, and a few of the girls giggle a little at the sight.
	<</if>>
<<else>>
	Some of the boys giggle at the sight, and a few of the girls scowl.
	<<if random(1,5) gte 4>>
		A couple of the girls let their eyes linger a little more than the others.
	<</if>>
<</if>>

<<status 1>>

<<advancelesson>>
<<set _stress to _lesson_progress * -1>>
<<stress _stress>>
<<set _trauma to _lesson_progress * -0.5>>
<<trauma _trauma>>

<<if $phase is 1>>
	<<set $phase to 0>>
	<<if $swimall is 1>>
		The bell rings, signifying the end of the lesson. You climb out of the pool. Despite everyone being naked, no one seems concerned. Mason hands out towels to each student as they pass, trying to avoid eye contact.

	<<elseif $exposed gte 1>>
		The bell rings, signifying the end of the lesson. You wait as the other students leave. Some students linger,
		doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.

	<<elseif $exposed lte 0>>
		The bell rings, signifying the end of the lesson. You climb out of the pool.

	<</if>>
	<<if $exposed lte 0>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

	<<elseif $exposed gte 1>>
		<<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

		<<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><</link>>

	<</if>>
<<else>>
	<<if $exposed gte 1>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 2))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<<elseif $exposed lte 0>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 10))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>

:: Swimming Lesson Socialise
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $exposed gte 1 and $swimall isnot 1>>
	You pay little attention to the lesson, instead chatting with your fellow students. Some look away bashfully when you try to engage,
	but you catch them looking now and then.

<<elseif $exposed lte 0>>
	You pay little attention to the lesson, instead chatting with your fellow students.

<</if>>

<<status 1>>

<<advancelesson>>
<<set _stress to _lesson_progress * -1>>
<<stress _stress>>
<<set _trauma to _lesson_progress * -0.5>>
<<trauma _trauma>>

<<if $phase is 1>>
	<<set $phase to 0>>
	<<if $swimall is 1>>
		The bell rings, signifying the end of the lesson. You climb out of the pool. Despite everyone being naked, no one seems concerned. Mason hands out towels to each student as they pass, trying to avoid eye contact.

	<<elseif $exposed gte 1>>
		The bell rings, signifying the end of the lesson. You wait as the other students leave. Some students linger,
		doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.

	<<elseif $exposed lte 0>>
		The bell rings, signifying the end of the lesson. You climb out of the pool.

	<</if>>
	<<if $exposed lte 0>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

	<<elseif $exposed gte 1>>
		<<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

		<<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><</link>>

	<</if>>
<<else>>
	<<if $exposed gte 1>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure * 2))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<<elseif $exposed lte 0>>

		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 2))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>

:: Swimming Lesson Daydream
<<set $outside to 0>><<set $location to "pool">><<schooleffects>><<water>><<effects>>

<<if $trauma gte (($traumamax / 10) * 7)>>
	You keep to yourself, afraid that one wrong move will result in the whole class molesting you.
<<elseif $trauma gte (($traumamax / 10) * 2)>>
	You focus on your own thoughts, trying to keep the creeping anxiety at bay.
<<else>>
	<<if $swimall is 1>>
		As vulnerable as everyone is, you don't really pay attention to the lesson, instead idly paddling and showing off your <<lewdness>>. You wonder if anyone cares.
	<<elseif $exposed gte 1>>
		Vulnerable as you are you don't really pay attention to the lesson, instead idly paddling and keeping your <<lewdness>> covered.
	<<elseif $exposed lte 1>>
		You don't really pay attention to the lesson, instead idly paddling and thinking about what you'll do after school.
	<</if>>
<</if>>

<<status 1>>

<<advancelesson>>
<<set _stress to _lesson_progress * -1>>
<<stress _stress>>
<<set _trauma to _lesson_progress * -0.5>>
<<trauma _trauma>>

<<if $phase is 1>>
	<<set $phase to 0>>
	<<if $swimall is 1>>
		The bell rings, signifying the end of the lesson. You climb out of the pool. Despite everyone being naked, no one seems concerned. Mason hands out towels to each student as they pass, trying to avoid eye contact.

	<<elseif $exposed gte 1>>
		The bell rings, signifying the end of the lesson. You wait as the other students leave. Some students linger,
		doubtlessly hoping to get a nice view when you climb out, but Mason herds them away, giving you some privacy.

	<<elseif $exposed lte 0>>
		The bell rings, signifying the end of the lesson. You climb out of the pool.

	<</if>>
	<<if $exposed lte 0>>
		<<maleicon>><<link [[Boys' changing room|School Boy Changing Room]]>><</link>>

		<<femaleicon>><<link [[Girls' changing room|School Girl Changing Room]]>><</link>>

	<<elseif $exposed gte 1>>
		<<link [[Grab some towels and enter the boys' changing room|School Boy Changing Room]]>><<towelupm>><</link>>

		<<link [[Grab some towels and enter the girls' changing room|School Girl Changing Room]]>><<towelup>><</link>>

	<</if>>
<<else>>
	<<if $exposed gte 1>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 2))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<<elseif $exposed lte 0>>
		<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
		<<if $danger gte (8900 - ($allure / 10))>>
			<<eventsswimming>>
		<<else>>
			<<eventsswimmingsafe>>
		<</if>>
	<</if>>
<</if>>