:: pav_complexb3
<<set $here = 'pav_complexb3'>>
<<set $ARGS = $location_var[$here]>>
<!-- !SETTINGS:-->

<<set $loc_arg = $location_var[$here][0]>>
<<set $loc = 'pav_complexb3'>>
<!-- !elevator does not work-->
<<if $liftnotwork_day != $time.daystart>>
	<<set $liftnotwork_count = 1>>

<</if>>
<!-- !Apartment Uncle Misha-->
<<if $mishahouse_day != $time.daystart>>
	<<set $mishahouse_count = 1>>

<</if>>
<!-- !how much money for sex give boys-->
<<set $rnd_money_sex = '+rand(50,350)+'>>
<<set $rnd_money_sex = $rnd_money_sex>>
<!-- !================================================================================================!-->
<!-- !FLOORS: ---------------------------Entrance to the town-------------------------------------- FLOORS:!-->
<!-- !================================================================================================!-->
<!-- !housemates-->
<!-- !!locked in Pavlovsk, floor 1-->
<<if $location_var[$here][0] == 'etaj_1'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'etaj_1'>>
	<<set $menu_off = 0>>
	<<if getvar("$sound") == 0>>
	<</if>>
	
	<h2>Ground floor of the apartment building</h2>
	<<image "locations/pavlovsk/resident/apartment/podezd2.jpg">>
	<center>A dirty and poorly maintained stairwell, the same as any other in your town.</center>
	<!-- FAILED TO CONVERT
		'There''s a <a href="exec: dynamic $housemates">list</a> of the people who live here on the wall.'
	-----
		<<set ERROR: FAILED TO CONVERT LITERAL: """'There''s a <a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: dynamic $housemates">list<""" / ERROR: FAILED TO CONVERT LITERAL: """a> of the people who live here on the wall.'""">>

	-->
	<<warn "CONVERSION ERROR f20a560c8ec902fb019273d67dc66584">>
	Someone put up some <<link "advertisements">><<gt 'pav_complexb3' 'pod_objava'>><</link>> on the wall near the entrance.
	<<actCLA 'Leave the building'>>
		<<set $time.minutes += 1>> <<gt 'pav_complex' 'start'>>
	<</actCLA>>
	<<actCLA 'Go up to the second floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_2'>>
	<</actCLA>>
	<<act 'Take the elevator'>>
		<<gt 'pav_complexb3' 'lift' 'etaj_1'>>
	<</act>>
	<!-- !!	if rolanblockhome ! 1 and mid($start_type,1,2) = 'sg':-->
	<!-- !!		act 'Apartment 1: Mr. Matveev''s': gt 'rolanapt','home'-->
	<!-- !!	end-->
<</if>>
<!-- !floor 2-->
<<if $location_var[$here][0] == 'etaj_2'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'etaj_2'>>
	<<set $menu_off = 0>>
	<center>2nd floor of the apartment building</center>
	<<image "locations/pavlovsk/resident/apartment/stairs/etaj2.jpg">>
	<center>The second floor stairwell is clean and well maintained. It was renovated not long ago, and the inhabitants do their best to keep it clean.</center>
	<<actCLA 'Go down to the first floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_1'>>
	<</actCLA>>
	<<actCLA 'Go up to the third floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_3'>>
	<</actCLA>>
	<<act 'Take the elevator'>>
		<<gt 'pav_complexb3' 'lift' 'etaj_2'>>
	<</act>>
<</if>>
<!-- !floor 3-->
<<if $location_var[$here][0] == 'etaj_3'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'etaj_3'>>
	<<set $menu_off = 0>>
	<center>3rd floor of the apartment building</center>
	<<image "locations/pavlovsk/resident/apartment/stairs/etaj3.jpg">>
	<center>The third floor stairwell is clean and well maintained. It was renovated not long ago, and the inhabitants do their best to keep it clean.</center>
	<<actCLA 'Go down to the second floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_2'>>
	<</actCLA>>
	<<actCLA 'Go up to the fourth floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_4'>>
	<</actCLA>>
	<<act 'Take the elevator'>>
		<<gt 'pav_complexb3' 'lift' 'etaj_3'>>
	<</act>>
<</if>>
<!-- !floor 4-->
<<if $location_var[$here][0] == 'etaj_4'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'etaj_4'>>
	<<set $menu_off = 0>>
	<center>4th floor of the apartment building</center>
	<<image "locations/pavlovsk/resident/apartment/stairs/etaj4.jpg">>
	<center>The fourth floor stairwell was renovated not long ago, but some hoodlums have already sprayed graffiti on the walls.</center>
	<<actCLA 'Go down to the third floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_3'>>
	<</actCLA>>
	<<actCLA 'Go up to the fifth floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_5'>>
	<</actCLA>>
	<<if getvar("$seenAd") == 0>>
		<<gt 'pav_shared_apt_advertNo30'>>
	<<else>>
		<<act 'Apartment 30: Shared apartment'>>
			<<gt 'pav_shared_apt' 'doorNo30'>>
		<</act>>
	<</if>>
	<<act 'Take the elevator'>>
		<<gt 'pav_complexb3' 'lift' 'etaj_4'>>
	<</act>>
<</if>>
<!-- !floor 5-->
<<if $location_var[$here][0] == 'etaj_5'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'etaj_5'>>
	<<set $menu_off = 0>>
	<center>Floor #5</center>
	<<image "locations/pavlovsk/resident/apartment/stairs/etaj5.jpg">>
	<center>The fifth floor stairwell looks like most of the other floors, but it has a final set of stairs at the other end of the hall that go up to the roof.</center>
	<<actCLA 'Go down to the fourth floor'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'etaj_4'>>
	<</actCLA>>
	<<actCLA 'Go up to the roof'>>
		<<set $time.minutes += 1>> <<gt 'pav_complexb3' 'roof'>>
	<</actCLA>>
	<<act 'Take the elevator'>>
		<<gt 'pav_complexb3' 'lift' 'etaj_5'>>
	<</act>>
<</if>>
<!-- !!roof-->
<<if $location_var[$here][0] == 'roof'>>
	<<set $menu_loc = 'pav_complexb3'>>
	<<set $menu_arg = 'roof'>>
	<<set $locclass to null>>
	<<set $menu_off = 0>>
	<<set $time.minutes += 1>>
	<center>Roof</center>
	<<if $time.isWinter>>
		<!-- !!if hour >= 8 and hour <= 21:-->
		<!-- !!'<<image 'locations/pavlovsk/resident/apartment/roof/roofw.jpg'>>'-->
		<!-- !!else-->
		<<image "locations/pavlovsk/resident/apartment/roof/roofw.jpg">>
		<!-- !!end-->
	<<else>>
		<<if $time.hour >= 8 and $time.hour <= 21>>
			<<image "locations/pavlovsk/resident/apartment/roof/roof.jpg">>
		<<else>>
			<<image "locations/pavlovsk/resident/apartment/roof/roofn.jpg">>
		<</if>>
	<</if>>
	<center>The roof is fairly flat, with the roof access door in a raised part in the middle of the roof. Along one of the walls is another door to some type of storage or maintenances access. There is several ventilation stacks on the roof as well.</center>
	<<actCLA 'Go down to the fifth floor'>>
		<<if $wardrobe.isWearingSwimwear or $wardrobe.clothingworntype == 'nude'>>
			<<msg '<center><font color = red>You need to get dressed first</font></center>'>>
			<<gt 'pav_complexb3' 'roof'>>
		<<else>>
			<<set $time.minutes += 1>>
			<<gt 'pav_complexb3' 'etaj_5'>>
		<</if>>
	<</actCLA>>
	<<if $wardrobe.isWearingSwimwear or $wardrobe.clothingworntype == 'nude'>>
		<<actCLA 'Change back into your clothes'>>
			<<set $time.minutes += 5>>
			<<run $wardrobe.wear_clothes_legacy('clothes',$lastwornclothingtype['swim'],$lastwornclothingnumber['swim'])>>
			<<run $wardrobe.wear(['panties',$lastwornpantytype['swim'],$lastwornpantynumber['swim']])>>
			<<run $wardrobe.wear(['bra',$lastwornbratype['swim'],$lastwornbranumber['swim']])>>
			<<gt 'pav_complexb3' 'roof'>>
		<</actCLA>>
	<</if>>
	<<if $weather.temperature >= 15 and $time.hour >= 8 and $time.hour <= 20>>
		<<if $wardrobe.ownsSwimmingItem and !$wardrobe.isWearingSwimwear>>
			<<act 'Change into a bikini'>>
				<<gt 'changingroom' 'view_swim_list'>>
			<</act>>
		<</if>>
		<<if $wardrobe.clothes.type == 'swimwear'>>
			<<actCLA 'Sunbathe (1:00)'>>
				 				<<set $menu_off = 1>>
				<<set $time.minutes += 60>>
				<<run $pc.skillExperienceGain('inhibition',rand(1,3))>>
				<<if $pc.pcs_sweat < 35>>
					<<run $pc.sweatAdd(5)>>

				<</if>>
				<<set $pc.mood += 5>>
				<<image "locations/city/residential/apartment/zagar1.jpg">>
				<<if $inventory.get("sunblock") == 0>>
					<<set $pc.tan += 1>>
					You lie down to sunbathe.
				<<elseif $inventory.get("sunblock") > 0>>
					<<run $inventory.dec('sunblock',1)>>
					<<set $pc.tan += 3>>
					You put the sunblock on your body and lie down on the roof to sunbathe.
				<</if>>
				<<act 'Get Up'>>
					<<gt 'pav_complexb3' 'roof'>>
				<</act>>
			<</actCLA>>
		<</if>>
	<</if>>
<</if>>
<!-- !================================================================================================!-->
<!-- !ELEVATOR: ------------------------------------------------------------------------------------ ELEVATOR:!-->
<!-- !================================================================================================!-->
<!-- !the lift-->
<<if $location_var[$here][0] == 'lift'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 1>>
	<<image "locations/pavlovsk/resident/apartment/stairs/elevator.jpg">>
	<center>The elevator in the apartment building is quite old. The building supervisor does his best to keep it running, but it breaks down a lot. Someone put up a <<link "notification">><<gt 'pav_complexb3' 'elev_objava' $location_var[$here][1]>><</link>> in the elevator.</center>
	<<act 'Push button: Floor 1'>>
		<<gt 'pav_complexb3' 'etaj_1'>>
	<</act>>
	<<act 'Push button: Floor 2'>>
		<<gt 'pav_complexb3' 'etaj_2'>>
	<</act>>
	<<act 'Push button: Floor 3'>>
		<<gt 'pav_complexb3' 'etaj_3'>>
	<</act>>
	<<act 'Push button: Floor 4'>>
		<<gt 'pav_complexb3' 'etaj_4'>>
	<</act>>
	<<act 'Push button: Floor 5'>>
		<<gt 'pav_complexb3' 'etaj_5'>>
	<</act>>
	<<set $pod_lift_ev = RAND(0,100)>>
	<<if getvar("$pod_lift_ev") <= 5>>
		<<set $time.minutes += 1>>
		<<image "locations/pavlovsk/resident/apartment/stairs/event/elevator#.jpg" 1 2>>
		When the elevator door opens, you are surprised to see a naked woman standing in it. She looks at you in panic and is frantically pressing all the elevator buttons. You're too baffled to do anything until it's too late. The door has already closed, and the elevator is moving away from you.
		<<actCLA 'Leave'>>
			<<gt 'pav_complexb3' $location_var[$here][1]>>
		<</actCLA>>
	<<elseif getvar("$pod_lift_ev") <= 10 or getvar("$liftnotwork_count") <= 0>>
		<<set $time.minutes += 1>>
		<<set $liftnotwork_day = $time.daystart>>
		<<set $liftnotwork_count -= 1>>
		<<image "locations/pavlovsk/resident/apartment/stairs/liftnotwork.jpg">>
		<p>The building supervisor has put a sign on the elevator: "Dear tenants, the elevator is out of order for today. Don't worry, I should have it working again by tomorrow!"</p>
		<<actCLA 'Leave'>>
			<<gt 'pav_complexb3' $location_var[$here][1]>>
		<</actCLA>>
	<</if>>
	<<set $pod_lift_ev to null>>
<</if>>
<!-- !elevator ads-->
<<if $location_var[$here][0] == 'elev_objava'>>
	<<set $time.minutes += 1>>
	<<image "locations/pavlovsk/resident/apartment/stairs/elevator_ob#.jpg" 1 2>>
	<<actCLA 'Continue'>>
		<<gt 'pav_complexb3' 'lift' $location_var[$here][1]>>
	<</actCLA>>
<</if>>
<!-- !locked ads-->
<<if $location_var[$here][0] == 'pod_objava'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 1>>
	<<image "locations/pavlovsk/resident/apartment/stairs/pod_ob#.jpg" 1 2>>
	<<act 'Continue'>>
		<<gt 'pav_complexb3' 'etaj_1'>>
	<</act>>
<</if>>
:: housemates_macro[widget]
<<widget 'housemates'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 1>>
	<<image "locations/pavlovsk/resident/apartment/stairs/housemates.jpg">>
	<p>Floor 1 - Apartment number 1: Rolan Matveev</p>
	<p>Floor 2 - Apartment number</p>
	<p>Floor 3 - Apartment number</p>
	<p>Floor 4 - Apartment number 30: Shared</p>
	<p>Floor 5 - Apartment number</p>
	<<act 'Leave'>>
	<<gt 'pav_complexb3' 'etaj_1'>>
<</act>>
<</widget>>
