:: school_hallway_break[public indoors]

	<<set _schoolPeriodStartTimes = $quest('school').get('startTimes')>>
	<<set _nextSchoolPeriodStartTime = _schoolPeriodStartTimes[$quest('school').period]>>
	<<set _timeToNextPeriodStart = $time.timeDifference(_nextSchoolPeriodStartTime[0],_nextSchoolPeriodStartTime[1])>>
	<<if _timeToNextPeriodStart >= -5>>
		<<gs 'school_schedule'>>
	<<else>>
		<<include 'school_break_options'>>
	<</if>>


:: school_break_options[include]
	<h2>Break</h2>
	<<image "locations/pavlovsk/school/chat/cooljocks.jpg">>
	<p>
		During break, the students split up to hang out with those in their social groups.
		The nerds and outcasts hang out in the classrooms,
		the cool kids and jocks hang out in the hallway near the lockers,
		and the gopniks hang out in the stairwell near the disused classrooms.
	</p>


	<<actCLA 'Wait for the end of the break'>>
		<<gs 'school_schedule'>>
	<</actCLA>>

	<<ConnectedLocation 'Classroom' 'school_break_classroom' '' 'locations/pavlovsk/school/chat/nerd1.jpg' 1>>
	<<ConnectedLocation 'Hallway' 'school_break_cooljocks' '' 'locations/pavlovsk/school/chat/cooljocks.jpg' 2>>
	<<ConnectedLocation 'Stairwell' 'school_break_gopniks' '' 'locations/pavlovsk/school/chat/gopnik.jpg' 3>>
	<<ConnectedLocation 'Water Cooler' 'school_break_water' '' 'locations/pavlovsk/school/building/watercooler.jpg' 1>>
	<<ConnectedLocation 'Girls Restroom' 'school_break_girls_restroom' '' 'locations/pavlovsk/school/bathroom/girlsbathroom.jpg' 2>>
	<<ConnectedLocation 'Boys Restroom' 'school_break_boys_restroom' '' 'locations/pavlovsk/school/bathroom/boysbathroom.jpg' 2>>

:: school_break_lunch[public indoors]
	<h2>Lunch Break: Cafeteria</h2>
	<<image "locations/pavlovsk/school/lunch/lunch.jpg">>
	<p>During the break, students and some of the teachers are standing in line near the kitchen, waiting for their food.</p>

	<<if $q.questIsActive('school_mother') and $quest('school')_mother.get('lastBaggedLunch',0) < $time.daystart>>
		<p>Your mother has provided you with bagged lunch.</p>
		<<actCLA 'Eat bagged lunch'>>
			<<run $quest('school')_mother.set('lastBaggedLunch',$time.daystart)>>
			<<gt 'beverage' 'mealMumBagged'>>
		<</actCLA>>
	<</if>>
	<<act 'Buy food' undefined `{cost:{cash:50}}`>>
		<<gt 'beverage' 'mealSchool'>>
	<</act>>

	<<gs 'gschool_groups' 'teachers'>>

	<<act 'Leave Cafeteria'>>
		<<addtime 5>>
		<<gt 'school_hallway_break'>>
	<</act>>

:: school_break_water[indoors private]

	<h2>Water Cooler</h2>
	<<either 1>>
		<<image "locations/pavlovsk/school/building/watercoolergossip.jpg">>
		You stop at the water cooler to get a drink. Several nearby students are gossiping with each other about a variety of topics.
		<<gs 'gschool_gossip' 'mixed'>>
	<<or 3>>
		<<image "locations/pavlovsk/school/building/watercooler.jpg">>
		You stop at the water cooler to get a drink, but no one else is around.
	<</either>>

	<<drinkWaterAction>>

	<<ConnectedLocation 'Leave' 'school_hallway_break' '' 'locations/pavlovsk/school/chat/cooljocks.jpg' 1>>

