:: city_mansion_residence_1
<<set $here = 'city_mansion_residence_1'>>
<<set $ARGS = $location_var[$here]>>
<<if $location_var[$here][0] == 'yfoyer'>>
	<<set $loc = 'city_mansion_residence_1'>>
	<<set $loc_arg = 'yfoyer'>>
	<<set $menu_loc = 'city_mansion_residence_1'>>
	<<set $menu_arg = 'yfoyer'>>
	<<set $locM = 'city_mansion_residence_1'>>
	<<set $locM_arg = 'yfoyer'>>
	<<set $location_type = 'private'>>
	<<set $locclass to null>>
	<<set $menu_off = 0>>
	<<set $time.minutes += 1>>
	
	<<if $pc.frost > 0>>
		<<set $pc.frost = 0>>

	<</if>>
	<h2>Foyer</h2>
	<<if $ymanrem[3] == 3>>
		<<image "locations/city/suburb/mansion/y_foyer.jpg">>
	<<elseif $ymanrem[3] == 2>>
		<<image "locations/city/suburb/mansion/i_finished.jpg">>
	<<else>>
		<<image "locations/city/suburb/mansion/i_unfinished.jpg">>
	<</if>>
	<<if $courtletter_date <= $time.daystart and getvar("$courtletter_date") != 0>>
		<<gt 'sentence' 'letter'>>

	<</if>>
	<<actCLA 'Walk outside'>>
		<<if $wardrobe.clothingworntype != 'nude'>>
			<<set $time.minutes += 5>>
			<<gt 'city_mansion_entrance'>>
		<<else>>
			<<msg '<b><font color = red>You need to get dressed.</font></b>'>>
			<<gt 'city_mansion_residence_1' 'yfoyer'>>
		<</if>>
	<</actCLA>>
	<<if $ymanrem[3] >= 1>>
		The main hall of Matryona Mansion. You can visit the different rooms in the mansion from here.
		There''s a <<link "mirror">><<gt 'mirror' 'start'>><</link>> hanging on the wall.
		<<if $inventory.get("umbrella") > 0>>
			There''s an umbrella hanging on a hook by the door.

		<</if>>
		<<act 'Go to your bedroom'>>
			<<gt 'city_mansion_residence_1' 'ybedroom'>>
		<</act>>
		<<act 'Go to your bathroom'>>
			<<gt 'city_mansion_residence_1' 'ybathroom'>>
		<</act>>
		<<act 'Go to your kitchen'>>
			<<gt 'city_mansion_residence_1' 'ykitchen'>>
		<</act>>
		<<act 'Go to your living room'>>
			<<gt 'city_mansion_residence_2' 'yliving'>>
		<</act>>
		<<act 'Go to your lounge'>>
			<<gt 'city_mansion_residence_2' 'ylounge'>>
		<</act>>
		<<act 'Go to your library'>>
			<<gt 'city_mansion_residence_2' 'ylibrary'>>
		<</act>>
		<<actCLA 'Go to your office'>>
			
		<</actCLA>>
		<<act 'Go to your nursery'>>
			<<gt 'city_mansion_residence_2' 'ynursery'>>
		<</act>>
		<<actCLA 'Go to your gym'>>
			<<set $time.minutes += 1>> <<gt 'city_mansion_residence_3' 'ygym'>>
		<</actCLA>>
	<</if>>
	<<if getvar("$bassMansion") == 1>>
		<<actCLA 'Go to your pool'>>
	<<setn $time.minutes += 1>> <<gt 'city_mansion_residence_3' 'ypool'>>
<</actCLA>>

	<</if>>
	<<if getvar("$banaMansion") >= 1>>
		<<actCLA 'Go to your sauna'>>
	<<setn $time.minutes += 1>> <<gt 'city_mansion_residence_3' 'ysauna'>>
<</actCLA>>

	<</if>>
	<<if setup.func('homes_properties', 'is_current_home') == 0>>
		<<actCLA 'Set this apartment as your main home'>>
			<<gs 'homes_properties' 'set_home'>> <<gt 'city_mansion_residence_1' 'yfoyer'>>
		<</actCLA>>
	<<else>>
		<<if $status['dog'] != 'blocked' and getvar("$menu_off") == 0 and getvar("$rex['owned']") == 1>>
			<<if getvar("$rex['status']") == 0>>
				<<gt 'pet_dog' 'name'>>
			<<elseif $time.hour > 5>>
				<br>Your dog <a href="exec: gt ''pet_dog'', ''start''"><<$rex[''name'']>></a> is lying on the floor.<br>
			<<elseif $time.hour < 6>>
				<br><<$rex[''name'']>> is sleeping in his dog basket.<br>
			<</if>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'ybedroom'>>
	<<set $loc = 'city_mansion_residence_1'>>
	<<set $loc_arg = 'ybedroom'>>
	<<set $menu_loc = 'city_mansion_residence_1'>>
	<<set $menu_arg = 'ybedroom'>>
	<<set $locM = 'city_mansion_residence_1'>>
	<<set $locM_arg = 'ybedroom'>>
	<<set $location_type = 'private'>>
	<<set $locclass = 'bedr'>>
	<<set $menu_off = 0>>
	<<set $time.minutes += 1>>
	<h2>Bedroom</h2>
	<<if $ymanrem[4] == 2>>
		<<image "locations/city/suburb/mansion/y_bedroom.jpg">>
		<center>Your large bedroom with all the necessities that a modern bedroom has.</center>
	<<elseif $ymanrem[4] == 1>>
		<<image "locations/city/suburb/mansion/i_finished.jpg">>
	<<else>>
		<<image "locations/city/suburb/mansion/i_unfinished.jpg">>
	<</if>>
	<<act 'Leave the room'>>
		<<gt 'city_mansion_residence_1' 'yfoyer'>>
	<</act>>
	<<act 'Relax on your bed'>>
		<<gt 'bed' 'start'>>
	<</act>>
	<<gs 'prostitution_functions' 'prostitute_outfit_at_home'>>
	<<if getvar("$pornMagazine") > 0>>
		<<gs 'events' 'read_porn'>>

	<</if>>
	<<if $pc.horny >= 50>>
		<<act 'Masturbate'>>
			<<gt 'selfplay' 'start'>>
		<</act>>
	<</if>>
	<<if $ymanrem[4] == 2>>
		It's a bright and beautiful room, with a large <<link "continental bed">><<gt 'bed' 'start'>><</link>>.
		There''s a table and a <<link "mirror">><<gt 'mirror' 'start'>><</link>> placed in one of the corners.
		<<if getvar("$pornMagazine") > 0>>
			You have hidden your porn magazine in your nightstand.

		<</if>>
		'On one side of the room is the entrance to a walk-in <<link 'wardrobe'>><<gt  'wardrobe'  'start'>><</link>>.'
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'ybathroom'>>
	<<set $loc_arg = 'ybathroom'>>
	<<set $loc = 'city_mansion_residence_1'>>
	<<set $locM_arg = 'ybathroom'>>
	<<set $locM = 'city_mansion_residence_1'>>
	<<set $menu_loc = 'city_mansion_residence_1'>>
	<<set $menu_arg = 'ybathroom'>>
	<<set $location_type = 'bathroom'>>
	<<set $bathtype = 'glass shower and tub'>>
	<<set $menu_off = 0>>
	<<set $time.minutes += 1>>
	<h2>Bathroom</h2>
	<<if $ymanrem[5] == 2>>
		<<image "locations/city/suburb/mansion/y_bathroom.jpg">>
	<<elseif $ymanrem[5] == 1>>
		<<image "locations/city/suburb/mansion/i_finished.jpg">>
	<<else>>
		<<image "locations/city/suburb/mansion/i_unfinished.jpg">>
	<</if>>
	<<act 'Leave the room'>>
		<<gt 'city_mansion_residence_1' 'yfoyer'>>
	<</act>>
	<<if $ymanrem[5] == 2>>
		'The ornate room holds a shower, toilet, sink, <<link 'brush'>><<gt  'mirror' 'start'">mirror</a> where you can ' + iif(pcs_hairbsh < 1 '<a href="exec:gt 'mirror' 'brush'>><</link>>','brush') + ' your hair, and even a bath tub.'
		<<gs 'selfplay' 'suction_dildo'>>
		<<gs 'bathroom' 'private'>>
		<<gs 'bathroom' 'misery_2'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'ykitchen'>>
	<<set $loc = 'city_mansion_residence_1'>>
	<<set $loc_arg = 'ykitchen'>>
	<<set $menu_loc = 'city_mansion_residence_1'>>
	<<set $menu_arg = 'ykitchen'>>
	<<set $locclass = 'kitr'>>
	<<set $menu_off = 0>>
	<<set $time.minutes += 1>>
	<<gs 'kit_din'>>
	<h2>Kitchen</h2>
	<<if $ymanrem[6] == 2>>
		<<image "locations/city/suburb/mansion/y_kitchen.jpg">>
	<<elseif $ymanrem[6] == 1>>
		<<image "locations/city/suburb/mansion/i_finished.jpg">>
	<<else>>
		<<image "locations/city/suburb/mansion/i_unfinished.jpg">>
	<</if>>
	<<act 'Leave the room'>>
		<<gt 'city_mansion_residence_1' 'yfoyer'>>
	<</act>>
	<<if $ymanrem[6] == 2>>
		A well stocked kitchen containing all the necessities to make whatever meal you please.
		<<if getvar("$cltarelka") > 0>>
			You have <b><<cltarelka>></b> clean plates left.
		<<else>>
			<b><font color="red">You don't have any clean plates left.</font></b>
		<</if>>
		<!-- FAILED TO CONVERT
			if dirttarelka > 0:'There are <b><<dirttarelka>></b> dirty dishes in the sink. <a href="exec:dynamic $dirtarm">Wash the dishes</a>.'
		-----
			<<if getvar("$dirttarelka") > 0>>
			<!-- FAILED TO CONVERT
	'There are <b><<dirttarelka>></b> dirty dishes in the sink. <<link "Wash the dishes">><<dirtarm>><</link>>.'
-----
	<<set ERROR: FAILED TO CONVERT LITERAL: """'There are <b><<dirttarelka>><""" / ERROR: FAILED TO CONVERT LITERAL: """b> dirty dishes in the sink. <a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:dynamic $dirtarm">Wash the dishes<""" / ERROR: FAILED TO CONVERT LITERAL: """a>.'""">>

-->
<<warn "CONVERSION ERROR 87a0fcda6427f522398791547ba8fa1d">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 738915350db84207ee22eef0357b351d">>
		<<if getvar("$fairy") > 0>>
			<!-- FAILED TO CONVERT
				'Under the sink is some dishwashing detergent, which is enough for <b><<fairy>></b> ' + iif(fairy = 1, 'time.', 'times.')
			-----
				<<set 'Under the sink is some dishwashing detergent , ERROR: FAILED TO CONVERT LITERAL: """which is enough for <b><<fairy>><""" / ERROR: FAILED TO CONVERT LITERAL: """b> '""" + iif(fairy = 1, 'time.', 'times.')>>

			-->
			<<warn "CONVERSION ERROR 9b3882b0ad433a08b889c0edb527d97d">>
		<<else>>
			<b><font color="red">You have nothing to wash dishes with. You should buy some detergent.</font></b>
		<</if>>
		<<if $inventory.get("food") > 0>>
			<<if getvar("$cltarelka") == 0 or getvar("$edahot") > 0>>
				<<set $edagot = ''>>

			<</if>>
			<<if getvar("$cltarelka") > 0 and getvar("$edahot") == 0>>
				<<set $edagot = '<<link "Cook a meal">><<edagotd>><</link>>'>>

			<</if>>
			<!-- FAILED TO CONVERT
				'There''s enough food for <b>$inventory.get("food")</b> ' + iif(eda = 1, 'serving', 'servings') + '. <<$edagot>>'
			-----
				<<set ERROR: FAILED TO CONVERT LITERAL: """'There''s enough food for <b>$inventory.get("food")<""" / ERROR: FAILED TO CONVERT LITERAL: """b> '""" + iif(eda = 1, 'serving', 'servings') + '. $edagot'>>

			-->
			<<warn "CONVERSION ERROR 5671d0574a9ef16d3251c57e7eb5941c">>
		<<elseif $inventory.get("foodDiet") == 0 and $inventory.get("food") == 0>>
			<b><font color="red">The fridge is empty. You have nothing to eat.</font></b>
		<</if>>
		<<if getvar("$edahot") > 0>>
			<<link "There''s a warm meal on the table.">><<edahotd>><</link>>

		<</if>>
		<<if getvar("$husband") > 0 and getvar("$husbandrink") != 10>>
			<<if $time.hour == 7 or $time.hour == 17>>
				<<link "Your husband is eating at the table.">><<gt 'husb' 'start'>><</link>>

			<</if>>
		<</if>>
		<<if getvar("$husband") > 0 and getvar("$husbanday") > 0 and $huseatday != $time.daystart and $inventory.get("food") >= 2>>
			<<actCLA 'Cook a meal for your husband and yourself (1:00)'>>
				 				<<set $husband += 5>>
				<<run $inventory.dec('food',2)>>
				<<set $time.minutes += 60>>
				<<set $huseatday = $time.daystart>>
				<<set $pc.mood -= 25>>
				<<image "shared/home/kitchen/cook.jpg">>
				You prepare a meal for your husband and yourself.
				<<act 'Leave the meal'>>
					<<gt 'kuhr'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<edasnack>>
		<<sandwich>>
		<<drinkWaterAction>>
		<<dritea>>
		<<fill_bottle>>
		$inventory.get("foodDiet")
		<<pranik>>
		<<fatdel>>
		<<lekarstvo>>
		$inventory.get("vitamin")
	<</if>>
<</if>>
