:: city_redlight[outdoors public region_city street]
	<<ConnectedLocation 'Industrial Area' 'city_industrial' '' 'locations/city/industrial/nord.jpg' 5>>
	<h2>St. Petersburg - Red Light District</h2>
	<<image "locations/city/redlight/redlight.jpg">>
	This small area inside the Industrial District is home to a number of strip clubs and sex shops.
	/*<<if $time.hour >= 18 or $time.hour < 3>>
		The bright lights and booming music of the <<link "Fuzzy Dice">><<gt 'stripclub' 'start'>><</link>> strip club attract men from all over the city.
	<<else>>
		The strip club is closed for the day and will reopen at 18:00.
	<</if>>
	<<if getvar("$pornstudio") >= 1 and $time.hour >= 10 and $time.hour < 22>>
		A <<link "porn studio">><<gt 'pornstudio' 'start'>><</link>> is housed within one of the few warehouses that hasn''t been abandoned.
	<<elseif getvar("$pornstudio") >= 1 and ($time.hour < 10 or $time.hour >= 22)>>
		The porn studio is closed and will reopen at 10:00.
	<</if>>*/

	<p>
		<<ConnectedLocation 'Sex Shop' 'sexshop' '' '' 1>>
		A seedy looking shop that sells sex toys and other erotic merchandise
		<<if $time.hour < 3 or $time.hour >= 11>>
			is open for perverts from all around the city to browse its stock.
		<<else>>
			. It is currently closed and will reopen at 11:00.
		<</if>>
	</p>
	/*
	<<if getvar("$bordel") > 0 and setup.func('bordel', 'is_open')>>
		Inside the courtyard is the entrance to the <<link "brothel">><<gt 'bordel'>><</link>>.

	<</if>>
	<<if $time.hour >= 10>>
		You see a small <<link "printing shop">><<gt 'city_redlight' 'city_copy_shop'>><</link>> tucked away between two larger buildings.
	<<else>>
		You see a small printing shop tucked away between two larger buildings. It is currently closed and will open at 10:00.
	<</if>>
	<<if $time.hour >= 19 or $time.hour < 2>>
		A <<link "Hookah Lounge">><<gt 'hookahlounge' 'start'>><</link>> sits on a corner, with Indian music and the scent of exotic spices streaming from an open door.
	<<else>>
		The Hookah Lounge is currently closed and will reopen at 19:00.
	<</if>>
	<<gs 'taxi'>>
	<<if getvar("$car") > 0>>
		<<if getvar("$wrek") == 0 and ((cardrive == 7 and setup.func('autoservisF', 'is_open') == 0) or (cardrive == 9 and setup.func('autotraidF', 'is_open') == 0))>>
			<<set 'It looks like the ' + iif(cardrive = 7, 'repair shop', 'car dealership') + ' moved your car outside before they closed.'>>
			<<set $cardrive = 3>>
		<</if>>
		<<if getvar("$cardrive") == 3 or getvar("$cardrive") == 6 or (cardrive == 7 and setup.func('autoservisF', 'is_open')) or (cardrive == 9 and setup.func('autotraidF', 'is_open')) or getvar("$cardrive") == 27>>
			<!-- FAILED TO CONVERT
				'Your <a href="exec:' + iif(cardrive = 27, '', 'minut += 1 & ') + 'gs ''carF'', ''start''"><<$car>></a> sits in the parking lot.'
			-----
				<<set ERROR: FAILED TO CONVERT LITERAL: """'Your <a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:'""" + ERROR: FAILED TO CONVERT LITERAL: """iif(cardrive = 27""" , '' , 'minut + ERROR: FAILED TO CONVERT LITERAL: """= 1""">>

			-->
			<<warn "CONVERSION ERROR 5c440adb88bc0ab3e93e9553dc665bf5">>
		<</if>>
	<</if>>
	<<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>>
			<<actCLA 'Prostitute yourself'>>
				<<set $prst_loc = 1>> <<gt 'street_walker' 'work'>>
			<</actCLA>>
		<<elseif $pc.pcs_inhib >= 40>>
			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>>
<</if>>
<<if $location_var[$here][0] == 'city_copy_shop'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 1>>
	<<image "locations/city/redlight/bm_seller.jpg">>
	<p>You enter the run-down looking copy shop and look around. Scattered across the room are small tables with various dusty looking copy machines that don't strike you as being very reliable. Watching you from behind a counter is a bored looking man with greasy hair and a sleazy look.</p>
	<<if getvar("$fakepassport") == 2>>
		<!-- !!only notify player 1 time after events triggered-->
		<<set $fakepassport = 0>>
		<p>He gives you a hard stare. "A fake passport will cost you 30,000 <b>₽</b>," he says quietly.</p>
	<</if>>
	<<if getvar("$university['fakediplom']") == 2>>
		<!-- !!only notify player 1 time after events triggered-->
		<<setinit $university['fakediplom'] = 0>>
		<p>"A diploma for a bachelor's degree will cost you 100,000 <b>₽</b>," he says quietly.</p>
	<</if>>
	<<act 'Leave'>>
		<<gt 'city_redlight' 'start'>>
	<</act>>
	<<if getvar("$pc.age") < 18 and getvar("$fakepassport") != 1>>
		<<if $finances.cash >= 30000>>
			<<actCLA 'Buy fake passport (30,000 <b>₽</b>)'>>
				<<set $time.minutes += 60>>
				<<set $finances.cash -= 30000>>
				<<set $fakepassport = 1>>
				<<image "locations/city/redlight/bm_seller.jpg">>
				He tells you to come in the back and takes a quick photo of your face, then tells you to wait out front until he's done. About an hour goes by before he steps back out and hands you the passport, which shows your face but has an older age printed on it.
				<<act 'Leave'>>
					<<gt 'city_redlight' 'start'>>
				<</act>>
			<</actCLA>>
		<<else>>
			<!-- FAILED TO CONVERT
				act 'Buy fake passport (<font color="red">30,000 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy the fake passport.</font>'
			-----
				<<actCLA 'Buy fake passport (<font color="red">30,000 <b>₽</b></font>)'>>
				<<set ERROR: FAILED TO CONVERT LITERAL: """'<br><font color""" = ERROR: FAILED TO CONVERT LITERAL: """"red">You don't have enough money to buy the fake passport.<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
			<</actCLA>>

			-->
			<<warn "CONVERSION ERROR 00e86ea718530ab7c04055f73d56455d">>
		<</if>>
	<</if>>
	<<if getvar("$university['diploma']") == 0 and getvar("$university['fakediplom']") == 0>>
		<<if $finances.cash >= 100000>>
			<<actCLA 'Buy fake diploma (100,000 <b>₽</b>)'>>
				<<set $time.minutes += 60>>
				<<set $finances.cash -= 100000>>
				<<setinit $university['fakediplom'] = 1>>
				<<image "locations/city/redlight/bm_seller.jpg">>
				You buy a fake diploma.
				<<act 'Leave'>>
					<<gt 'city_redlight' 'start'>>
				<</act>>
			<</actCLA>>
		<<else>>
			<!-- FAILED TO CONVERT
				act 'Buy fake diploma (<font color="red">100,000 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy the fake diploma.</font>'
			-----
				<<actCLA 'Buy fake diploma (<font color="red">100,000 <b>₽</b></font>)'>>
				<<set ERROR: FAILED TO CONVERT LITERAL: """'<br><font color""" = ERROR: FAILED TO CONVERT LITERAL: """"red">You don't have enough money to buy the fake diploma.<""" / ERROR: FAILED TO CONVERT LITERAL: """font>'""">>
			<</actCLA>>

			-->
			<<warn "CONVERSION ERROR b78b6003fe3e9a22536c9191e30624da">>
		<</if>>
	<</if>>
<</if>>
*/
