:: kuhrPar_events[kuhrPar_events events]
	<<set _location_mum = $npcs.location('A29')>>
	<<if _location_mum.location == 'home'>>
		<<if _location_mum.activity.includes('breakfast')>>
			<<if _location_mum.activity.includes('setup')>>
				<<event 100>>
					<<onceADay 'mum_breakfast_setup'>>
						<<relationship 'A29' 'like'>>
						<<set $time.minutes += 5>>

						<<image "characters/pavlovsk/resident/mom/gotovka.jpg">>
						<p><<npc 'A29' undefined 'Your mother'>><</npc>> turns to you. <<say 'A29' "$pc.name_nick, please set the table for breakfast.">> You sigh and grab the dishes.</p>
						<<act 'Set the table for breakfast'>>
							<<gt 'kuhrPar'>>
						<</act>>
						<<eventFired>>
					<</onceADay>>
				<</event>>
			<</if>>
		<</if>>
	<</if>>
:: kuhrPar[indoors private kitchen homeParents]
<<set _location_dad = $npcs.location('A28')>>
<<set _location_mum = $npcs.location('A29')>>
<<set _location_anya = $npcs.location('A33')>>
<<set _location_kolka = $npcs.location('A34')>>
<<set _breakfastNPCs = {}>>
<<set _dinnerNPCs = {}>>

<<ConnectedLocation 'Hallway' 'korrPar' '' 'locations/pavlovsk/resident/apartment/home/korrPar.webp' 1>>

<h2>Kitchen</h2>
<<imageDayNight "locations/pavlovsk/resident/apartment/home/kuhrpar#.jpg" "" "Night">>

<p>
	The kitchen is not very impressive, but it has everything your family needs.
	Since everyone can't always join for family meals,
	your mother usually pre-cooks some meals and stores them in the fridge.
	Of course, you could also just have a snack if you're not that hungry.
</p>

/* ----- Mum ----- */
<<if _location_mum.location == 'home'>>
	<<if _location_mum.activity.includes('breakfast')>>
		<<if _location_mum.activity.includes('prepare')>>
			<p><<npc 'A29' undefined 'Your mother'>><<gt 'mother'>><</npc>> is here, busy making breakfast.</p>
		<<elseif _location_mum.activity.includes('cleanup')>>
			Your <<npc $npc_mother 'mother'>><<gt 'mother'>><</npc>> is here clearing away the breakfast dishes.
		<<else>>
			<<set _breakfastNPCs['A29'] = {contents:"<<gt 'mother'>>"}>>
		<</if>>
	<<elseif _location_mum.activity.includes('dinner')>>
		<<if _location_mum.activity.includes('prepare')>>
			Your <<npc $npc_mother 'mother'>><<gt 'mother'>><</npc>> is here making diner.
		<<elseif _location_mum.activity.includes('cleanup')>>
			Your <<npc $npc_mother  'mother'>><<gt 'mother'>><</npc>> is here cleaning up after dinner
			<<if _location_anya.location == 'home' and _location_anya.activity.includes('cleanDinner')>>
				with <<npc 'A33'>><<gt  'sister_chat'  'sister_chat'>><</npc>> helping her
			<</if>>
			.
		<<else>>
			<<set _dinnerNPCs['A29'] = {contents:"<<gt 'mother'>>"}>>
		<</if>>
	<<elseif _location_mum.activity.includes('clean') and  _location_mum.activity.includes('kitchen')>>
		Your <<npc $npc_mother 'mother'>><<gt 'mother'>><</npc>> is here cleaning.
	<</if>>
<</if>>

/* ----- Dad ----- */
<<if _location_dad.location == 'home'>>
	<<if _location_dad.activity.includes('breakfast')>>
		<<set _breakfastNPCs['A28'] = {contents:"<<gt 'father'>>"}>>
	<<elseif _location_dad.activity.includes('dinner')>>
		<<set _dinnerNPCs['A28'] = {contents:"<<gt 'father'>>"}>>
	<<elseif _location_dad.activity.includes('newspaper')>>
		Your <<npc $npc_father 'stepfather'>><<gt 'father'>><</npc>> is here reading the paper.
	<<elseif _location_dad.activity.includes('preparesDinner')>>
		Your <<npc $npc_father 'stepfather'>><<gt 'father'>><</npc>> is here setting the table for dinner.
	<</if>>
<</if>>
/* ----- Kolka ----- */
<<if _location_kolka.location == 'home'>>
	<<if _location_kolka.activity.includes('breakfast')>>
		<<set _breakfastNPCs['A34'] = {contents:"<<gt 'brother' 'start'>>"}>>
	<<elseif _location_kolka.activity.includes('dinner')>>
		<<set _dinnerNPCs['A34'] = {contents:"<<gt 'brother' 'start'>>"}>>
	<</if>>
<</if>>
/* ----- Anya ----- */
<<if _location_anya.location == 'home'>>
	<<if _location_anya.activity.includes('breakfast')>>
		<<set _breakfastNPCs['A33'] = {contents:"<<gt 'sister'>>"}>>
	<<elseif _location_anya.activity.includes('cleanBreakfast')>>
		<<npc 'A33'>><<gt 'sister' 'cleanBreakfast'>><</npc>> is cleaning up the breakfast table.
	<<elseif _location_anya.activity.includes('dinner')>>
		<<set _dinnerNPCs['A33'] = {contents:"<<gt 'sister'>>"}>>
	<</if>>
<</if>>

<<set _eatWithFamilyEnabled = false>>
/* ----- Breakfast ----- */
<<if $family_breakfast_day != $time.daystart>>
	<<npcList _breakfastNPCs "# is here eating breakfast." "# are here eating breakfast.">>
	<<if Object.keys(_breakfastNPCs).length > 0>>
		<<set _eatWithFamilyEnabled = true>>
		You could join <<npcPronoun _breakfastNPCs 'himherthem'>> or just grab something to go.
		<<act 'Join Breakfast (0:20)'>>
			<<gt 'breakfast_family'>>
		<</act>>
	<</if>>
<</if>>

/* ----- Dinner ----- */
<<if $family_dinner_day != $time.daystart>>
	<<npcList _dinnerNPCs "# is here eating dinner." "# are here eating dinner.">>
	<<if Object.keys(_dinnerNPCs).length > 0>>
		<<set _eatWithFamilyEnabled = true>>
		You could join <<npcPronoun _dinnerNPCs 'himherthem'>>.
		<<act 'Join Dinner (0:30)'>>
			<<gt 'dinner_family'>>
		<</act>>
	<</if>>
<</if>>

<<if !_eatWithFamilyEnabled>>
	<<act 'Eat a preprepared meal (0:15)'>>
		<<gt 'beverage' 'mealMum'>>
	<</act>>
<</if>>


/*
<<if $time.weekday == 6 and getvar("$locat['Fam_set_month_inGad']") == 1 and getvar("$grandmaQW['block']") == 0 and $time.hour > 9 and $time.hour < 12 and $pc.isSchoolStudent>>
	Your parents are getting ready to go to <<link "Gadukino">><<gt 'gadhouse' 'to_gadukino'>><</link>> to visit your great grandparents. You can go with them if you want, or stay home like <<=$npc('A33').firstname>> usually does.

<</if>>
<<if $pc.isSchoolStudent>>
	<<if (($time.hour == 6 and $time.minutes >= 45) or ($time.hour == 7 and $time.minutes < 15)) and getvar('$breakfast_day') != $time.daystart and getvar("$locat['Fam_inGad']") == 0>>

	<<elseif $time.hour == 18 and $time.minutes <= 30 and $dinner_day != $time.daystart and getvar("$locat['Fam_inGad']") == 0>>

			<<actCLA 'Eat dinner with your family (0:20)'>>
			*/
:: dinner_family[event]
	<<if $wardrobe.PCloswimwear != 1 and $wardrobe.clothingworntype != 'nude'>>
		<<addtime 30>>
		<<consume 'mealMumDinner'>>
		
		<<set $family_dinner_day = $time.daystart>>

		<<image "locations/pavlovsk/resident/apartment/home/dinnerhome.jpg">>
		<<relationship 'A29' 'like'>>
		<p>
			You sit down and join your family for dinner and <<npc 'A28' undefined 'your stepfather'>><</npc>> starts teasing you.
			<<say 'A28' "So, do you have a boyfriend yet $pc.name_nick?">>
		</p>
		<<if $pc.fame('pav_slut') > 150 and getvar("$motherKnowSpravka") == 0>>
			<p>You're about to respond when your mother interrupts you. "Of course not! She's still too young to be thinking about boys!"</p>
			<<=$npc('A34').firstname>> then chimes in. "Like any boy would date her when she sucks them all off anyways."
			<p>Your mother turns towards <<=$npc('A34').firstname>>. "That's not funny! Apologize to your sister right now! Right now!"</p>
			<<if getvar("$locat['Anya']") == 12>>
				<<=$npc('A33').firstname>> smirks as <<=$npc('A34').firstname>> freezes in place and decides he doesn''t want to be the one to tell her about your reputation and just apologizes to you.
			<<else>>
				<<=$npc('A34').firstname>> freezes in place and decides he doesn''t want to be the one to tell her about your reputation and just apologizes to you.
			<</if>>
			Your stepfather clears his throat and quickly changes the subject, talking about how his work went. After that, you have a fairly enjoyable dinner.
		<<elseif $pc.fame('pav_slut') > 150>>
			You're about to respond when your mother interrupts you. "She's too young to worry about that and... we talked about it." She gives you a meaningful glance and you shut your mouth.
			<<=$npc('A34').firstname>> then chimes in. "Like any boy would date her when she sucks them all off anyways."
			<p>Your mother turns towards <<=$npc('A34').firstname>>. "That's not funny!" She then glances at you. "She might have made some mistakes, but she's trying to be a better girl now. Now apologize to your sister right now!"</p>
			<<if getvar("$locat['Anya']") == 12>>
				<<=$npc('A33').firstname>> just smirks as <<=$npc('A34').firstname>> freezes in place and then apologizes to you.
			<<else>>
				Startled, <<=$npc('A34').firstname>> freezes in place and then apologizes to you.
			<</if>>
			Your stepfather clears his throat and quickly changes the subject, talking about how his work went. After that, you have a fairly enjoyable dinner.
		<<else>>
			<p>You're about to respond when <<npc 'A29' undefined 'your mother'>><</npc>> interrupts you. <<say 'A29' "Of course not! She's still too young to be thinking about boys!">></p>
			Your stepfather sighs. <<say 'A28' "She's old enough to start dating, dear.">>
			Your mother gives him a hard stare. <<say 'A29' "No, she isn't. She needs to focus on school and then university before she can start thinking about boys.">>
			Your stepfather decides to drop it and start talking about some of the stuff that happened at his work. All and all, you have a fairly enjoyable dinner.
		<</if>>
		<<ret 'Get up from the table'>>
	<<else>>
		<<image "locations/pavlovsk/resident/apartment/home/dinnerhome.jpg">>
		<p>Everyone stares at you as you sit down for dinner.  "What?" you exclaim.</p>
		<p>Your mother stands up from her seat, nearly knocking her chair over in the process. "What on God's earth are you doing $pc.name_nick?! Have you have no shame? Get dressed immediately young lady!"</p>
		<<act 'Leave'>>
			<<gt 'korrPar'>>
		<</act>>
	<</if>>



/*
	<<else>>
		<<if ($time.hour == 8 or ($time.hour == 7 and getvar("$locat['Fam_inGad']") == 1)) and $breakfast_day != $time.daystart>>
			<<actCLA 'Eat breakfast alone (0:20)'>>
				<<set $menu_off = 1>>
				<<set $breakfast_day = $time.daystart>>
				<<gs 'beverage' 'family_meals' 'breakfast'>>
				<<image "shared/food/breakfast_#.jpg" 0 1>>
				<p>You enjoy a quiet breakfast by yourself. The portions were moderate and $mtxt. You accompany it with a mug of tea.</p>
				<<actCLA 'Get up from the table'>>
					<<gt $location>>
				<</actCLA>>
			<</actCLA>>
		<</if>>

	<</if>>

	<<edasnack>>
	<<sandwich>>
	<<drinkWaterAction>>
	<<dritea>>
	$inventory.get("foodDiet")
	<<pranik>>
	<<fatdel>>
	<<lekarstvo>>
	$inventory.get("vitamin")
<</if>>
 */

:: breakfast_family[event]
<<if $wardrobe.PCloswimwear != 1 and $wardrobe.clothingworntype != 'nude'>>
	<<addtime 20>>
	<<consume 'mealMumBreakfast'>>
	
	<<for _endActivityNPC range ['A28','A29','A33','A34']>>
		<<run $npc(_endActivityNPC).endActivity(['breakfast'])>>
	<</for>>

	<<set $family_breakfast_day = $time.daystart>>
	<<image "locations/pavlovsk/resident/apartment/home/breakfasthome.jpg">>
	<<relationship 'A29' 'like'>>
	<<if $pc.isSchoolStudent>>
		<p>As you sit down and join your family for breakfast, <<npc 'A28' undefined 'your stepfather'>><</npc>> enages you in conversation. <<say 'A28' "How are you doing in school $pc.name_nick?">></p>
		<<if !$time.isSchoolHoliday>>
			<<if getvar("$class['school_grade_average']") >= 80>>
				You smile at him. <<say "Really great. We were just learning something interesting the other day.">> You go on to talk about some of the stuff you have learned recently in school. He just nods, while your mother gives you a proud smile and <<npc 'A34'>><</npc>> rolls his eyes.
				The rest of breakfast is taken up with some small talk about what everyone has been up to of late. You thoroughly enjoy your breakfast with your family.
			<<else>>
				You glance at him. <<say "Um okay, I guess...">> You notice <<npc 'A29' undefined 'your mother'>><</npc>> frowning at you, so you quickly try to change the subject, but they won't let you. You do your best to make them think you're doing better than you are, but they don't buy it. <<npc 'A34'>><</npc>> snickers at you getting grilled.
				The rest of breakfast is taken up talking about how <<=$npc('A34').firstname>> is doing in school. He seems to be doing better than you and is showered with praise from your mother and stepfather. The food is good, even if the conversation wasn''t the best. You quickly finish your meal.
			<</if>>
		<<else>>
			You smile at him. <<say "I'm enjoying some time away from school hanging out with my friends. It's nice to just relax for a change.">>
			Your mother speaks up. <<say 'A29' "It wouldn't hurt to study your school books and get ahead of your courses to get better grades.">> You roll your eyes, but before you can respond, your stepfather lays his hand on your mother's. <<say 'A28' "Let her enjoy herself. This is her last year before she goes to university after all.">> he says with a little emphasis. You just sigh and nod as you both know that is what your mother wants.
		<</if>>
	<<else>>
		<p><<npc 'A28'>><</npc>> looks over at you. <<say 'A28' "So have you found a cute boy that is head over heels in love with you, wanting to take you out on dates and buy you stuff yet?">> he says in a slightly teasing tone and your mother smacks his arm. <<say 'A29' "She's too young for that! She needs to focus on her education.">></p>
		<p>You are about to answer, but <<npc 'A34'>><</npc>> chimes in. <<say 'A34' "Like any boy would want to be seen with her!">> This earns him a playful punch on the arm from you and before long, you are all bantering at the table.</p>		
	<</if>>
	<<ret 'Get up from the table'>>

<<else>>

	<<image "locations/pavlovsk/resident/apartment/home/breakfasthome.jpg">>
	<p>Everyone stares at you as you sit down for breakfast. "What?" you exclaim.</p>
	<p>Your mother stands up from her seat, nearly knocking her chair over in the process. "What on God's earth are you doing $pc.name_nick?! Have you have no shame? Get dressed immediately young lady!"</p>
	<<act 'Leave'>>
		<<gt 'korrPar'>>
	<</act>>
<</if>>
