:: pav_residential[hasEvents outdoors residential public street region_pav]
<h2>Pavlovsk</h2>
<<if $time.isWinter>>
	<<imageDayNight "locations/pavlovsk/pavreswinter#.jpg" "" "n">>
<<else>>
	<<imageDayNight "locations/pavlovsk/pavres#.jpg" "" `"n_"+rand(1,2)`>>
<</if>>

<p>
	The residential area of the town.
	This area is suburban with more modern houses, dusty roads and pockets of overgrown vegetation stretching out far and wide, but some would say that just adds to the town's rustic charm.
	Apart from the old Imperial palace built by Catherine the Great, with its surrounding gardens and forest, and the recently remodeled Bip fortress, everything else is relatively modern.
</p>
<<ConnectedLocationCode "Church" 'locations/pavlovsk/church/st-nikolas.jpg' 1>>
	<<travel `['pav_church','start']`>>
<</ConnectedLocationCode>>
<p>
	Even from here, you can spot the Church of St. Nikolas, the tallest building in town.
</p>

/*<<if getvar("$flag_rape_1") == 1>>
	<<set $flag_rape_1 = 0>>
	<<set $rape_count = $rape>>
	You stop under the dim light of a streetlight. Breathing heavy, you occasionally stop to wince from the pain coming from your pussy. You convince yourself not to tell anyone, and to just get home, clean up and go to bed as soon as possible. The sooner you do that, the sooner you can forget this ever happened.
<<elseif getvar("$flag_rape_1") == 2>>
	<<set $flag_rape_1 = 0>>
	<<set $rape_count = $rape>>
	Coming out of your daze, you find you've walked into the center of town without even realizing it. You feel a bit strange as you stop to think about why you aren''t upset about having been raped. Replaying the encounter in your head, you realize you actually enjoyed it a little. All in all, you're not too worried about what happened.
<<elseif $rape > $rape_count>>
	<!-- !for normal rape. differ display with bimbolevel-->
	<<set $rape_count = $rape>>
	<<if getvar("$bimbolevel") > 2>>
		You feel great after having sex, and don't understand why they didn''t just ask. Silly man.
	<<elseif getvar("$bimbolevel") > 0>>
		Coming out of your daze, you find you've walked into the center of town without even realizing it. You feel a bit strange as you stop to think about why you aren''t upset about having been raped. Replaying the encounter in your head, you realize you actually had fun and enjoyed it. All in all, you're not too worried about what happened.
	<<else>>
		You stop under the dim light of a streetlight. Breathing heavy, you occasionally stop to wince from the pain coming from your pussy. You convince yourself not to tell anyone, and to just get home, clean up and go to bed as soon as possible. The sooner you do that, the sooner you can forget this ever happened.
	<</if>>
<</if>>*/
<!-- !! TODO: Commented out and replaced by the wlife mechanics - see end of the file under !-- Prostitution ------>
<!-- !!if fame['pav_slut'] >= 250 and rand(1, 10) = 10 and pav_residential_prost_day ! daystart:-->
<!-- !!	pav_residential_prost_day = daystart-->
<!-- !!	'A man approaches you, and asks if you want to earn some easy money. He's offers you 200 <b>₽</b> for a quickie in the bushes.'-->
<!-- !!-->
<!-- !!-->
<!-- !!	gs 'willpower', 'prostitution', 'resist'-->
<!-- !!	if will_cost <= pcs_willpwr:-->
<!-- !!		act 'Decline (<<will_cost>> Willpower)':-->
<!-- !!			gs 'willpower', 'pay', 'resist'-->
<!-- !!			gt 'pav_residential'-->
<!-- !!		end-->
<!-- !!	else-->
<!-- !!		act 'Decline (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don't have enough willpower to use this action.</font>'-->
<!-- !!	end-->
<!-- !!	act 'Agree': gs 'npcgeneratec', 0, 'Stranger at the Park', rand(18,45) & gs 'boyStat', $npclastgenerated & gt 'gevent', '5'-->
<!-- !!	exit-->
<!-- !!end-->
/*<<if (($time.month == 9 and $time.day > 16) or $time.month >= 10) and (getvar("$AlbinaQW['StarletsShutDown']") == 0 or getvar("$AlbinaQW['Chernov']") == 0)>>
	<p>You can see election posters on the walls all over town. They say: "Vote for Boris Barlovsky!" Wait a minute... isn't that Albina's father?</p>

<</if>>
<<if getvar("$AlbinaQW['StarletsJoined']") > 0 and getvar("$AlbinaQW['StarletsShutDown']") == 0 and $npc('A23').pregtalk == 0 and getvar("$AlbinaQW['Chernov']") == 0 and (($time.month == 11 and $time.day > 18) or $time.month == 12) and $time.hour >= 14>>
	<<gt 'albina_election_events' 'start'>>

<</if>>
<<if rand(1, 5) >= 4 and $pc.fame('pav_slut') >= 150>>
	<<if $pc.fame('pav_slut') < 200>>
		<br>You catch people staring at you intently, as if they're supposed to know who you are but can't quite remember why. You sincerely hope they don't realize your promiscuous adventures are the reason why. The occasional person chuckling and pointing at you crushes those hopes, and you quickly keep walking before they get a chance to say anything.
	<<elseif $pc.fame('pav_slut') < 250>>
		<br>People look at you with lewd grins on their faces, some of them even making vulgar gestures. Looks like they know what you've been up to.
	<<else>>
		<br>Everywhere you go, people recognize you as a whore. Some even come over and slap you on the ass, claiming they know you like it when they do, or claiming they want to sample your goods. An elderly woman sitting on a bench calls out to you, loudly calling you a slut and a whore. You hide your face and run away as fast as you can, before she can draw too much attention to you.
	<</if>>
<</if>>

<<if getvar("$fedorKozlovQW") >= 20 and getvar("$FedorKozHome") == 1 or getvar("$fedorKozlovQW") == -15 and getvar("$FedorKozHome") == 1>>
	'<br><<link 'Fedor'>><<setn $time.minutes += 1>><<gt  'FedorEv4'  'Home Entrance'>><</link>> lives in a house nearby.'

<</if>>*/

<<if $time.hour >= 8 and $time.hour <= 22>>
	<<ConnectedLocation "Kiosk" 'kiosk' 'pav_residential' 'locations/city/shared/kiosk/kiosk21.jpg' 2>>
	<p>At the end of the street, there's a small kiosk selling a variety of items such as cigarettes,
	magazines, snacks, drinks and even themes for your phone.</p>
<</if>>

<<if $pc.isSchoolStudent>>
	<<set _schoolname = 'the local school.'>>
	<<ConnectedLocationCode 'School' 'locations/pavlovsk/school/building/gschool.jpg' 2 `{priority:5000,hotkeys:['S'],indecencyBlocked:true}`>>
		<<travel  'school_grounds'>>
	<</ConnectedLocationCode>>
<<else>>
	<<set _schoolname = 'your old school.'>>
<</if>>

<<ConnectedLocation 'Community Center' 'pav_commcenter' '' 'locations/pavlovsk/community/dk.jpg' 2>>
<<ConnectedLocation 'Public Park' 'pav_park'  'start' 'locations/pavlovsk/park/skver.jpg' 5>>
<<ConnectedLocation 'Lake' 'pav_lake' '' 'locations/pavlovsk/lake/lake.summer.jpg' 5>>


<p>
	In the center of Pavlovsk is the town square,
	which features the community center, a popular hotspot for the local teenagers to hang out
	after a long day at _schoolname
	Connected to the town center is the old palace grounds
	which have been turned into a large public park.
	With the lake nearby, the area can get quite busy, especially during the summer and
	winter when people can swim or skate at the lake.
</p>
<!-- !!made changes here, to remove direct links to the kids in the apartment complex, make sure this will work with the code left.-->
<!--
<<if getvar("$Enable_tablemap") == 0>>
	<<if getvar("$DimaBeHomeOnce") == 1 and getvar("$DimaRudeBlock") == 0>>
		'<<link 'Dimka'>><<setn $time.minutes += 10>><<gt  'dimaHome'  'home'>><</link>> lives in one of the fancier houses in town.'

	<</if>>
	<<if (getvar("$igor_history") == 1 or getvar("$IgorLoverQW") > 0 or getvar("$IgorQW['house_open']") == 1) and getvar("$IdorBlock") == 0>>
		'<<link 'Igor'>><<setn $time.minutes += 10>><<gt  'IgorHome'  'home'>><</link>> lives in one of the fancier houses in town.'

	<</if>>
	<<if getvar("$katjaQW['QWstage']") >= 2 or getvar("$mey_vika['mey_vika_qw']") >= 27 or getvar("$mey_vika['key']") == 1>>
		'Nearby is a large house where the <<link 'Meynold twins'>><<setn $time.minutes += 10>><<gt 'mey_home'  'door'>><</link>> live.'

	<</if>>
	<<if getvar("$LariskaQW['story']") >= 6>>
		'<<link 'Lariska'>><<setn $time.minutes += 10>><<gt  'LariskaHome'  'front_door'>><</link>> lives about 10 minutes away from here.'

	<</if>>
	<<if $quest('christina').subpath >= 5>>
		<br><<link "<<npc 'A18'>><</npc>>">><<gt 'Zvereva_house' 'front_door'>><</link>> lives in an expensive house near here.

	<</if>>
	<<if getvar("$AlbinaQW['KnowsHouse']") == 1>>
		'<<link 'Albina'>><<setn $time.minutes += 10>><<gt  'albinahome' 'gate'>><</link>> lives in one of the few luxurious mansions Pavlovsk has to offer.'

	<</if>>
	<<if getvar("$soniaQW['homeinvite']") == 1>>
		'<<link 'Sonia''s'>><<setn $time.minutes += 10>><<gt  'soniahome' 'home'>><</link>> house is up through a garden pathway to a well cared for grey, wooden-clad house.'

	<</if>>
<<else>>
	<<set $st_count = 0>> <<set $show_table = ''>>
	<<if getvar("$DimaBeHomeOnce") == 1 and getvar("$DimaRudeBlock") == 0>>
		gs'show_table','Fancier house of <<link 'Dimka Nosov'>><<setn $time.minutes += 10>><<gt  'dimaHome'  'home'>><</link>>','3'

	<</if>>
	<<if (getvar("$igor_history") == 1 or getvar("$IgorLoverQW") > 0 or getvar("$IgorQW['house_open']") == 1) and getvar("$IdorBlock") == 0>>
		gs'show_table','Fancier house of <<link 'Igor Kruglov'>><<setn $time.minutes += 10>><<gt  'IgorHome'  'home'>><</link>>', '3'

	<</if>>
	<<if getvar("$katjaQW['QWstage']") >= 2 or getvar("$mey_vika['mey_vika_qw']") >= 27 or getvar("$mey_vika['key']") == 1>>
		gs'show_table','The house of the <<link 'Meynold twins'>><<setn $time.minutes += 10>><<gt 'mey_home'  'door'>><</link>>','3'

	<</if>>
	<<if getvar("$LariskaQW['story']") >= 6>>
		gs'show_table','House of <<link 'Lariska Gruzdev'>><<setn $time.minutes += 10>><<gt  'LariskaHome'  'front_door'>><</link>> in the richer part of town','3'

	<</if>>
	<<if $quest('christina').subpath >= 5>>
		gs'show_table','<br><<link '<<npc 'A18'>><</npc>>'>><<gt  'Zvereva_house'  'front_door'>><</link>> lives in an expensive house near here.','3'

	<</if>>
	<<if getvar("$AlbinaQW['KnowsHouse']") == 1>>
		gs'show_table','A luxurious mansion that's home to <<link 'Albina Barlovskaya'>><<setn $time.minutes += 10>><<gt  'albinahome' 'gate'>><</link>>','3'

	<</if>>
	<<if getvar("$soniaQW['homeinvite']") == 1>>
		gs'show_table','A grey wooden-clad house that's home to <<link 'Sonia Ivanko'>><<setn $time.minutes += 10>><<gt  'soniahome' 'home'>><</link>>','3'

	<</if>>
	<<if getvar("$st_count") > 0>>
		<TABLE BORDER=1><<$show_table>></TR></TABLE>

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

<<if getvar("$InvitationToDimkaNYparty") == 1 and $time.month == 12 and $time.day == 31 and $time.hour > 14 and $time.hour <= 18>>
	<<actCLA "<b>Go to the New Year's party at Dimka's house</b>">>
		 <<set $time.minutes += 30>> <<gt 'sny' '3'>>
	<</actCLA>>
<<elseif getvar("$InvitationToDimkaNYparty") == 1 and $time.month != 12>>
	<<set $InvitationToDimkaNYparty to null>>
<</if>>

<<ConnectedLocation 'Five Eight estate' 'pav_complex' 'start' 'locations/pavlovsk/resident/apartment/complex.jpg' 22 `{priority:10000,hotkeys:['H']}`>>
<<ConnectedLocation 'Commercial Area' 'pav_commercial' '' 'locations/pavlovsk/gorodok.jpg' 5>>
<<ConnectedLocation 'Industrial Area' 'pav_industrial' '' 'locations/pavlovsk/factory/pav_factory.jpg' 5>>
<<ConnectedLocation 'Market' 'pav_market' '' 'locations/pavlovsk/pav_market_day.jpg' 15>>
<<ConnectedLocation 'Train Station' 'pav_train_hall' '' 'locations/pavlovsk/trainstation/pavtrainstation_day.jpg' 15>>
<<ConnectedLocation 'Pushkin' 'liam' '' 'locations/pushkin/liam.jpg' 30>>


	<!-- Succubus-Stuff
	<<if ($time.hour > 20 or $time.hour < 4) and getvar("$succubusQW") == 5 and $suchuntday != $time.daystart>>
		<<actCLA 'Go hunting near the community center (this can take a lot of time)'>>
			<<set $scrand = rand(0,4)>>
			<<set $time.minutes += 60 - (5 * ($succublvl + $scrand))>>
			<<set $menu_off = 1>>
			<<if rand(0,7) - getvar("$succublvl") < 2>>
				<<gt 'succubus' 'pavResfeed'>>
			<<else>>
				<center><h2>Pavlovsk</h2></center>
				<<if $time.isWinter>>
					<<if $time.hour >= 8 and $time.hour <= 21>>
						<<image "locations/pavlovsk/pavreswinter.jpg">>
					<<else>>
						<<image "locations/pavlovsk/pavreswintern.jpg">>
					<</if>>
				<<else>>
					<<if $time.hour >= 8 and $time.hour <= 21>>
						<<image "locations/pavlovsk/pavres.jpg">>
					<<else>>
						<<image "locations/pavlovsk/pavresn.jpg">>
					<</if>>
				<</if>>
				The disco is in full swing, which means a lot of adolescents going to and from the community center. You find a spot down the street from the community center to lie in wait for your prey.
				You hide for a few minutes, watching groups of students pass by as you wait for a lone victim to pounce on. You lie in wait for almost thirty minutes thinking about the meal ahead, your hand finding its way between your legs a few times.
				You are unsuccessful and fail to find a suitable victim.
				<<act 'Return'>>
					<<gt 'pav_residential'>>
				<</act>>
			<</if>>
		<</actCLA>>
	<</if>>
	 -->
/*
<!-- !-- Random prostitution solicitation check -------------------------->
<<if getvar("$prostitute['blocked']") == 0>>
	<<gs 'prostitution_functions' 'check_solicitation_event'>>

<</if>>

<!-- <<gs 'booty_call' 'home_links'>> -->
 */
:: pav_residential_events[events]
	<<gs 'street_event' 'pav_residential' 'extras'>>

	<!--
	<<if setup.startingCharacterTagsIncludes('sg') and ($time.hour >= 8 or $time.hour < 23) and $pc.cumAtLocation(11) == 1 and rand(0, 3) == 0 and $npcdaycheck[54] != $time.daystart>>
		<<set $menu_off = 1>>
		<<setinit $npcdaycheck[54] = $time.daystart>>
		<<if getvar("$sosedknow") == 0>>
			<<set $sosedknow = 1>>
			<p>As you walk through Pavlovsk, someone calls out to you. "$pc.name_first!" You turn around and see uncle Misha, your neighbor. He looks at your face in amazement, "Your face looks like a mess! What is that?"</p>
			<p>You blush and hesitate, trying to inconspicuously wipe the sperm off your face. It's obviously not working; he already noticed. You see his eyes widen when he realizes what it is. "I see. Looks like you had fun." he grins and continues on his way.</p>
		<<else>>
			<p>Once again, you run into uncle Misha, your neighbor. He notices the sperm on your face: "Again? Looks like you've been busy, girl. Nice look, it suits you."</p>
		<</if>>
		<<act 'Continue'>>
			<<gt 'pav_residential'>>
		<</act>>
		$exit
	<</if>>
	 -->

	<!--
	Magic Stuff
	<<if getvar("$pcs_magik") >= 1 and getvar("$mainQW") == 0 and setup.startingCharacterTagsIncludes('sg') and setup.startingCharacterTagsIncludes('magic')>>
		<<set $menu_off = 1>>
		<<set $mainQW = 1>>
		<<image "locations/city/citycenter/lab/event/main.jpg">>
		You see Tatiana and Gustav at the entrance to the apartment building. Tatiana adjusts her glasses and looks around, while Gustav seems to have his head in the clouds not really paying attention to his surroundings. His tattoos are not visible.
		<p>Tatiana closely looks around you: "I felt a burst of energy. Were you attacked by a magician?"</p>
		<<act 'No?'>>
			<<gt 'mainQW'>>
		<</act>>
		$exit
	<</if>>
	 -->

	<!-- AndRev?
	 <<if setup.startingCharacterTagsIncludes('sg') and getvar("$AndRev") == 1 and ($time.hour >= 22 or $time.hour <= 2) and rand(1,100) >= 90 and $AndRevstart != $time.daystart>>
		<<set $menu_off = 1>>
		<<image "locations/city/citycenter/lab/event/main.jpg">>
		It is late and you are hurrying to get home when you are suddenly grabbed from behind. A large hand covers your mouth and you cannot scream. A powerful arm wraps around you and lifts you from your feet. You are dragged into an alleyway between two buildings and the arm around you loosens for just a minute.
		<<actCLA 'Continue'>>
			<<image "locations/city/citycenter/lab/event/main.jpg">>
			Before you can attempt to escape, you feel something sting your arm and your body relaxes against your will. Just before your eyes close and you lose consciousness, you hear a familiar voice rasp in your ear. "Now you'll pay for breaking my nose, you little slut."
			<<act 'Continue'>>
				<<gt 'boilerroom' 'start'>>
			<</act>>
		<</actCLA>>
	<</if>>
	 -->

	<!-- Vadim Belys Quest
	 <<if $npc('A113').QW == 1 and $time.daybelisex != $time.daystart and $time.hour >= 9 and $time.hour <= 23 and $time.weekday == 7>>
		<<set $menu_off = 1>>
		<<set $time.daybelisex = $time.daystart>>
		<<set $time.minutes += 1>>
		<<image "characters/pavlovsk/vadim/belyjeep.jpg">>
		As you walk through Pavlovsk, Vadim Belys Mitsubishi Pajero stops near you.
		<<act 'Go to the jeep'>>
			<<gt 'belgang' 'payday'>>
		<</act>>
	<<elseif $npc('A113').QW == 1 and $time.daybelisex != $time.daystart and $time.hour >= 9 and $time.hour <= 23 and $time.weekday != 7 and getvar("$belgangPayWeek") >= 300 and getvar("$belgangProstitute") == 1 and rand(0,2) == 0>>
		<<set $menu_off = 1>>
		<<set $time.daybelisex = $time.daystart>>
		<<set $time.minutes += 1>>
		<<image "characters/pavlovsk/vadim/belyjeep.jpg">>
		You see the by now familiar old Mitsubishi Pajero driving through the streets with Vadim Bely and his gang inside. Your heart skips a beat as you notice one of them pointing at you and they pull over.
		<<act 'Go to the jeep'>>
			<<gt 'belgang' 'workofdebt'>>
		<</act>>
	<</if>>
	 -->
