:: city_residential_script[script]
setup.connections ??= {};
setup.connections.city_park_city_residential = {time: 20};

setup.locations ??= {};
setup.locations.city_residential = {label: 'Residential Area',image: 'locations/city/residential/street.jpg'}

:: city_residential[outdoors public region_city car street]

<<Connection 'city_residential' 'city_center'>>
<<Connection 'city_residential' 'city_industrial'>>

<h2>St. Petersburg - Residential Area</h2>
<<if $time.isWinter>>
	<<imageDayNight "#" "locations/city/residential/streetw.jpg" "locations/city/residential/streetwn.jpg">>
<<else>>
	<<imageDayNight "#" "locations/city/residential/street.jpg" "locations/city/residential/street_night.jpg">>
<</if>>
/*<<gs 'street_event' 'city_residential' 'extras'>>
<<if getvar("$opusk") > 0 or getvar("$gnewQW") == 5>>
	<<if rand(0,9) == 0>>
		<<gt 'gopnew' 'start5'>>

	<</if>>
	<<if setup.func('homes_properties', 'has_access', 'city_apartment')>>
		<p>Something is written on the wall near the entrance to your building. It reads:<b>"$pc.name_first $pc.name_last from apartment 69 is a cheap slut!"</b></p>

	<</if>>
<</if>>
<<if getvar("$gopdeath") == 1 and $vsehsdaladay != $time.daystart>>
	<<set $pc.gameover= 6>>
	<<gt 'gameover'>>
<</if>>
<<if setup.func('homes_properties', 'is_property_of_status', 'owned', 'city_house')>>
	Your <a href="exec: minut += 10 & gs ''city_house_res_misc'', ''fronty''">house</a> is within walking distance.'
	<<actCLA '<b>Go to your house</b>'>>
		<<set $time.minutes += 10>>
		<<gt 'city_house_res_misc' 'fronty'>>
	<</actCLA>>
<</if>>
*/
<<if $time.hour >= 4 and $time.hour <= 23>>
	<<ConnectedLocation 'Metro' 'metro_city_residential' '' 'locations/city/shared/metro/platcenter.jpg' 5>>
<</if>>
<<ConnectedLocation 'Central Park' 'city_park' 'start' 'locations/city/centralpark/park.jpg' 20>>
<<ConnectedLocation 'Lake' 'city_lake' 'start' 'locations/city/residential/lake/lake2.jpg' 40>>

/*<<if getvar("$evt_chk") == 1>>
	<!-- !! We've got an event today, check it's location:-->
	<<gs 'emp_functions' 'disp_evt' 3>>
<</if>>
<<gs 'taxi'>>*/

<<if $time.hour >= 8 and $time.hour <= 22>>
	<<ConnectedLocation 'Kiosk' 'kiosk' 'city_residential' 'locations/city/shared/kiosk/kiosk21.jpg' 1>>
	<p>You can see the kiosk selling cigarettes and magazines.</p>
<</if>>


/*<<if getvar("$Enable_tablemap") == 0>>
	<<if getvar("$katkey") == 1>>
		<<link "Kat''s">><<gt 'katspalnya' 'start'>><</link>> apartment

	<</if>>
	<<if getvar("$IrinaQW") >= 1>>
		<<link "Irene''s">><<gt 'city_irinaroom' 'start'>><</link>> apartment is not far from yours.

	<</if>>
	<<if $time.hour >= 16 and $time.hour < 22 and getvar("$dimaQW") > 0>>
		<<link "Dima''s">><<gt 'city_dima' 'start'>><</link>> apartment

	<</if>>
	<<if getvar("$klofQW") >= 2>>
		<<link "Jora''s">><<gt 'city_jorahouse' 'start'>><</link>> apartment

	<</if>>
<<else>>
	<<set $st_count = 0>> <<set $show_table = ''>>
	<<if getvar("$katkey") == 1>>
		gs'show_table','<<link 'Kat''s'>><<gt  'katspalnya'  'start'>><</link>> apartment','3'

	<</if>>
	<<if getvar("$IrinaQW") >= 1>>
		gs'show_table','<<link 'Irene''s'>><<gt  'city_irinaroom'  'start'>><</link>> apartment is not far from yours.','3'

	<</if>>
	<<if $time.hour >= 16 and $time.hour < 22 and getvar("$dimaQW") > 0>>
		gs'show_table','<<link 'Dima''s'>><<gt  'city_dima'  'start'>><</link>> apartment','3'

	<</if>>
	<<if getvar("$klofQW") >= 2>>
		gs'show_table','<<link 'Jora''s'>><<gt  'city_jorahouse'  'start'>><</link>> apartment','3'

	<</if>>
	<<if $time.hour >= 10 and $time.hour < 22 and getvar("$lesbiQW") == 1>>
		gs'show_table','<<link 'Natalya Petrovna''s'>><<gt  'lesbidomhouse'  'start'>><</link>> apartment.', '3'
	<<elseif $lesbiday != $time.daystart and getvar("$subdom") == 2>>
		gs'show_table','<<link 'Your slave''s'>><<gt  'lesbisubhouse'  'start'>><</link>> apartment.','3'
	<<elseif $lesbiday != $time.daystart and $time.hour >= 8 and $time.hour < 22 and getvar("$lesbiQW") >= 2 and getvar("$lesbiQW") < 13>>
		gs'show_table','<<link 'Mistress''s'>><<gt  'lesbidomhouse'  'start'>><</link>> apartment.','3'
	<<elseif $lesbiday != $time.daystart and $time.hour >= 8 and $time.hour < 22 and getvar("$lesbiQW") >= 13>>
		gs'show_table','<<link 'Mistress''s'>><<gt  'lesbimistress'  'start'>><</link>> apartment.','3'
	<</if>>
	<<if getvar("$st_count") > 0>>
		<TABLE BORDER=1><<$show_table>></TR></TABLE>

	<</if>>
<</if>>*/
<p>
	<<if $time.hour >= 5 and $time.hour <= 23>>
		The metro station is a 5 minute walk away.
	<</if>>
	<<if $location.isOpen('shop')>>
		<<ConnectedLocationCode 'Supermarket' 'locations/shared/store/shop.jpg' 3>>
			<<travel  'shop' 'city_residential'>>
		<</ConnectedLocationCode>>
		The supermarket is not far from here. It is open
	<<else>>
		The nearby supermarket opens
	<</if>>
	<<=$location.openingTimesStr('shop')>>.
</p>

<p>
	<<if ($time.hour >= 8 and $time.hour <= 20) or $pc.preg == 2>>
		<<ConnectedLocation 'Clinic' 'city_clinic' 'start' 'locations/shared/clinic/poli.jpg' 1>>
		The clinic is also nearby.
	<<else>>
		The clinic is closed. It will open at 08:00.
	<</if>>
	<<if $time.hour >= 6 and $time.hour <= 9 and getvar("$military") == 1 and $time.weekday == 6>>
		<<ConnectedLocation 'military bus' 'Military' 'start' 'locations/city/shared/military/military.jpg' 60>>
		There is a military bus waiting on the other side of the street.
	<<elseif getvar("$military") == 1>>
		The military bus will wait between 06:00 and 09:00 on Saturdays.
	<</if>>
	/*<<if $time.hour >= 8 and $time.hour <= 14 and $time.weekday != 1>>
		<<ConnectedLocation 'Marketplace' 'city_market' 'start' 'locations/city/residential/market/rinok.jpg' 10>>
		You could go shopping at the noisy local marketplace.
	<<else>>
		You could go shopping at the noisy local marketplace, but it's
		<<if $time.weekday == 1>>
			closed on Mondays.
		<<else>>
			only open between 08:00 and 15:00.
		<</if>>
	<</if>>*/
</p>

<p>
	/*<<if $time.hour >= 8 and $time.hour <= 15 and $time.weekday < 6>>
		<<ConnectedLocation 'Tailor Shop' 'city_market' 'tailor' 'locations/city/residential/market/rinok.jpg' 10>>
		Near the market is a tailor shop where you can get your clothes resized if needed.
	<<else>>
		Near the market is a tailor shop where you can get your clothes resized if needed. It is open from 8:00 to 16:00 on weekdays.
	<</if>>*/
	/*<<if $time.hour >= 11 and $time.hour < 12 and $time.weekday > 1 and $time.weekday < 5 and getvar("$workKafe['job']") == 1>>
		The side door of <<link '"The Roadhouse"'>><<setn $time.minutes += 1>><<gt  'city_kafe'  'work'>><</link>> is open, allowing employees to enter to begin their shift.
	<<elseif $time.hour >= 12 and $time.hour <= 22 and $time.weekday != 1>>
		<<ConnectedLocation 'Roadhouse' 'city_kafe' 'start' 'locations/city/residential/cafe/kafe.jpg' 1>>
		In a side alley, next to the uniquely styled diner "The Roadhouse", you can hear some <<link "gopniks">><<set $time.minutes += 1>><<gt 'gopnew'  'start'>><</link>> swearing and laughing.
	<<elseif $time.hour > 22 or $time.hour <= 3>>
		You can hear the swearing and laughing of some <<link "gopniks">><<gt 'gopnew' 'start'>><</link>> in the parking lot of "The Roadhouse" diner.
	<<else>>
		The Roadhouse diner is closed right now. It's open between 12:00 and 23:00 every day except Monday.
	<</if>>*/

	The uniquely styled diner "The Roadhouse" is located in a side alley.
	<<if $location.isOpen('city_kafe')>>
		<<ConnectedLocation 'The Roadhouse' 'city_kafe' '' 'locations/city/residential/cafe/kafe.jpg' 3>>
		It is open
	<<else>>
		It opens
	<</if>>
	<<=$location.openingTimesStr('city_kafe')>>.

	/*<<if getvar("$clener") >= 1 and $time.hour >= 7 and $time.hour <= 22>>
		There's a small office building where a <<link 'cleaning lady'>><<setn $time.minutes += 1>><<gt  'city_smalloffice'  'start'>><</link>> is needed.
	<</if>>*/
</p>
<p>
	The city's large central park is a 20 minute walk away.
	The city's only lake is a 40 minute walk away.
</p>
<p>
	<<ConnectedLocation 'Pharmacy' 'city_pharmacy' 'start' 'locations/pavlovsk/pharmacy/aptekabusy3.jpg' 5>>
	Nearby is a 24 Hour Pharmacy.
</p>

/*<p>
	<<if getvar("$Enable_tablemap") == 0>>
		<<if $time.hour >= 10 and $time.hour < 22 and getvar("$lesbiQW") == 1>>
			<<link `$npc("A178").fullname_possessive`>><<gt 'lesbidomhouse' 'start'>><</link>> apartment.
		<<elseif $lesbiday != $time.daystart and getvar("$subdom") == 2>>
			<<link "Your slave's">><<gt 'lesbisubhouse' 'start'>><</link>> apartment.
		<<elseif $lesbiday != $time.daystart and $time.hour >= 8 and $time.hour < 22 and getvar("$lesbiQW") >= 2 and getvar("$lesbiQW") < 13>>
			<<link "Mistress's">><<gt 'lesbidomhouse' 'start'>><</link>> apartment.
		<<elseif $lesbiday != $time.daystart and $time.hour >= 8 and $time.hour < 22 and getvar("$lesbiQW") >= 13>>
			<<link "Mistress's">><<gt 'lesbimistress' 'start'>><</link>> apartment.
		<</if>>
	<</if>>
</p>*/
/*<p>
<<if setup.func('homes_properties', 'has_access', 'city_apartment') == 0>>
	<<ConnectedLocation 'Trash Bins' 'city_trashplace' 'start' 'locations/city/residential/musorka.jpg' 1>>
	You see several trash bins in the courtyard of one of the apartment buildings.'
<<else>>
	'You see several <<link 'apartment building'>><<setn $time.minutes += 1>><<gt  'city_trashplace'">trash bins</a> in the courtyard of your <a href="exec: gt 'city_apt_building' 'floor_1'>><</link>>.'
<</if>>
</p>
<<if getvar("$SNarkPriton") > 0>>
	'The <<link 'drug house'>><<setn $time.minutes += 1>><<gt  'city_drugden'>><</link>> is clearly recognizable by the syringes and trash that lies in front of it.'

<</if>>
<p>
	<<if $time.hour >= 8 and $time.hour <= 23 or getvar("$saunaWorkWhore") > 0 or getvar("$workDisk") == 2>>
		<<ConnectedLocation 'Sauna' 'city_sauna' 'start' 'locations/city/residential/sauna/sauna.jpg' 10>>
		The sauna is a 10 minute walk away. Rumors say that it's just a front for a brothel.
	<</if>>
</p>
<<if $time.hour >= 20 or $time.hour <= 4>>
	There are prostitutes working near here.
	<<if $pc.pcs_makeup > 2 and $wardrobe.PCloStyle == 4 and $pc.pcs_inhib >= 40 and ($pc.sexStat('vaginal') > 0 or $pc.fame('pav_slut') >= 100)>>
		<<act 'Prostitute yourself'>>
			<<gt 'street_walker' 'work'>>
		<</act>>
	<<elseif $pc.pcs_inhib >= 40 and ($pc.sexStat('vaginal') > 0 or $pc.fame('pav_slut') >= 100)>>
		You could work as a prostitute, but you need to wear appropriate clothes and more than a little bit of makeup.
	<<else>>
		You could work as a prostitute, but you aren''t comfortable with the idea.
	<</if>>
<</if>>
<<gs 'booty_call' 'home_links'>>*/
