:: kiosk_connections[include]
	<<switch $passage_kiosk_return>>
		<<case 'city_center'>>
			<<ConnectedLocation 'Leave' 'city_center' '' 'locations/city/citycenter/down.jpg' 1>>
		<<case 'city_residential'>>
			<<ConnectedLocation 'Leave' 'city_residential' '' 'locations/city/residential/street.jpg' 1>>
		<<default>>
			<<ConnectedLocation 'Leave' 'pav_residential' '' 'locations/pavlovsk/pavres.jpg' 2>>
	<</switch>>

:: kiosk[public outdoors]
	<<set $passage_kiosk_return = $location_var[$here][0] || $passage_kiosk_return>>

	<h2>Kiosk</h2>

	<<gs 'kiosk_connections'>>
	
	<<image "locations/city/shared/kiosk/kiosk21.jpg">>
	It is currently very busy. You'll have to wait to get to the counter.
		
		<<set _waitingTime = rand(1,10) + rand(1,10)>>

		<<act `'Wait in line ('+_waitingTime+' Minutes)'`>>
			<<set $time.minutes += _waitingTime>><<gt 'kiosk_counter'>>
		<</act>>
		/*<<if getvar("$exhibitionist_lvl") > 1>>
			<<actCLA 'Flash both your tits and your pussy to jump the queue'>>
				<<set $time.minutes += 1>>
				<<gs 'flash' 'full' 'outdoors' 5>>
				<<act 'Go to the counter'>>
					<<gt 'kiosk' 'counter'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<if getvar("$exhibitionist_lvl") > 0>>
			<<actCLA 'Flash your pussy to jump the queue'>>
				<<set $time.minutes += 1>>
				<<gs 'flash' 'pussy' 'outdoors' 5>>
				<<act 'Go to the counter'>>
					<<gt 'kiosk' 'counter'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<if $pc.pcs_inhib >= 40>>
			<<actCLA 'Flash your tits to jump the queue'>>
				<<set $time.minutes += 1>>
				<<gs 'flash' 'tits' 'outdoors' 5>>
				<<act 'Go to the counter'>>
					<<gt 'kiosk' 'counter'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<if getvar("$exhibitionist_lvl") > 0>>
			<<actCLA 'Suggest a blowjob in exchange for jumping the queue'>>
				<<if $pc.cumAtLocation(11) == 0>>
					<<set $pc.pcs_throat += 1>>
					<<gs 'npcgeneratec' 0 'stranger from the post office' `rand(19,45)`>>

					<<run $pc.skillExperienceGain('inhibition',rand(3,5))>>
					<<image "shared/sex/blowjob/kiosk_blowjob.jpg">>
					A man agrees to your suggestion and lets you move in front of him.
					<<arouse 'bj' 10 `['sub']`>>
					<<actCLA 'Cum on your face'>>
						<<image "pc/body/cum/cumface/cumface#.jpg" 1 23>>
						The man cums on your face.
						<<cum 'face' 'stranger from the post office'>>
						
						<<act 'Go to the counter'>>
							<<gt 'kiosk' 'counter'>>
						<</act>>
					<</actCLA>>
					<<actCLA 'Cum inside your mouth'>>
						<<image "locations/shared/postoffice/sex/cumlip.jpg">>
						The man cums inside your mouth.
						<<cum 'mouth' 'stranger from the post office'>>
						
						<<act 'Go to the counter'>>
							<<gt 'kiosk' 'counter'>>
						<</act>>
					<</actCLA>>
				<<else>>
					<<video "locations/shared/postoffice/punch.mp4">>
					<!-- FAILED TO CONVERT
						'The Man punches you in the gut and says, <font color="#0D42C0">"Go away bitch, your face is covered in sperm."</font> You stagger away from the kiosk and spend 2 hours curled up in a ball.'
					-----
						<<set 'The Man punches you in the gut and says , ERROR: FAILED TO CONVERT LITERAL: """<font color""" = ERROR: FAILED TO CONVERT LITERAL: """"#0D42C0">"Go away bitch""" , ERROR: FAILED TO CONVERT LITERAL: """your face is covered in sperm."<""" / ERROR: FAILED TO CONVERT LITERAL: """font> You stagger away from the kiosk and spend 2 hours curled up in a ball.'""">>

					-->
					<<warn "CONVERSION ERROR 8d63e823fd13a2daa84f7fcd6504de4f">>
					<<set $time.minutes += 120>>
					<<gs 'pain' 4 'tummy' 'hit'>>
					<<actCLA 'Recover'>>
						<<gt $loc>>
					<</actCLA>>
				<</if>>
			<</actCLA>>
		<</if>>
	<<else>>
		<<gt 'kiosk' 'counter'>>
	<</if>>
<</if>>*/
:: kiosk_counter[public outdoors]
	<<gs 'kiosk_connections'>>
	<<image "locations/city/shared/kiosk/kiosk123.jpg">>
	/*<center><img WIDTH = 245 HEIGHT = 56 src="images/locations/city/shared/kiosk/ruch.jpg"></center>*/
	<<act 'Buy some water' undefined `{cost:{cash:40}}`>>
		<<gt 'beverage' 'waterBottled'>>
	<</act>>

	/*<<stockItem `{id:'$siga',amount:20,price:115,label:'Cigarettes'}`>>
	<<stockItem `{id:'$fashmag',amount:1,price:150,label:'Fashion magazine'}`>>
		<<set $kioskloc = ''>> <<set $time.minutes += 1>> <<gt $loc>>
	<</actCLA>>
	<<if $finances.cash >= 100>>
		<<actCLA 'Buy a snack (100 <b>₽</b>) (0:05)'>>
			<<set $time.minutes += 5>>
			<<set $finances.cash -= 100>>
			<<set $pc.pcs_health += 10>>
			<<set $pc.mood += 20>>
			<<set $pc.fat += 6>>
			<<set $pc.pcs_energy += 20>>
			<<if $pc.pcs_hydra >= 100>>
				<<set $pc.pcs_hydra += 10>>
			<<else>>
				<<set $pc.pcs_hydra += 20>>
			<</if>>
			<<set $cumspclnt = 2>>
			<<gs 'cum_cleanup'>>
			<<set $pc.pcs_breath = 0>>
			<<image "shared/food/food.jpg">>
			You enjoy a small tasty, but somewhat fattening, snack.
			<<act 'return'>>
				<<gt 'kiosk' 'start'>>
			<</act>>
		<</actCLA>>
	<<else>>
		You don't have enough money to buy a snack.
	<</if>>
	<<if $finances.cash >= 40>>
		<<actCLA 'Buy some water (40 <b>₽</b>) (0:05)'>>
			<<set $pc.frost = 1>>
			<<if $pc.alko > 0>>
				<<setn $pc.alko -= 1>>

			<</if>>
			<<set $time.minutes += 5>>
			<<set $finances.cash -= 40>>
			<<set $pc.pcs_health += 10>>
			<<set $pc.pcs_energy += 4>>
			<<if $pc.pcs_hydra >= 100>>
				<<set $pc.pcs_hydra += 25>>
			<<else>>
				<<set $pc.pcs_hydra += 50>>
			<</if>>
			<<set $cumspclnt = 2>>
			<<gs 'cum_cleanup'>>
			<<set $pc.pcs_breath = 0>>
			<<gs 'cum_cleanup'>>
			<<image "shared/drinks/water.jpg">>
			You enjoy a drink of water
			<<act 'return'>>
				<<gt 'kiosk' 'start'>>
			<</act>>
		<</actCLA>>
	<<else>>
		You don't have enough money to buy some water.
	<</if>>
	<<actCLA 'View phone themes'>>
		<<set $kioskloc = ''>> <<gt 'kiosk' 'themes'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'themes'>>
	<<image "locations/city/shared/kiosk/kiosk123.jpg">>
	<center><img WIDTH = 245 HEIGHT = 56 src="images/locations/city/shared/kiosk/ruch.jpg"></center>
	<p>All themes cost 500 <b>₽</b></p>
	<<if $finances.cash >= 500>>
		<<set $i = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :phonethemeloop'>>
		<<if getvar("$i") == 1>>
			<<set $phoneNameTemp = 'Bimbo'>>

		<</if>>
		<<if getvar("$i") == 2>>
			<<set $phoneNameTemp = 'Aluminus'>>

		<</if>>
		<<if getvar("$i") == 3>>
			<<set $phoneNameTemp = 'Bottlecapped'>>

		<</if>>
		<<if getvar("$i") == 4>>
			<<set $phoneNameTemp = 'Galactic'>>

		<</if>>
		<<if getvar("$i") == 5>>
			<<set $phoneNameTemp = 'Vectored'>>

		<</if>>
		<<if getvar("$i") == 6>>
			<<set $phoneNameTemp = 'Veneer'>>

		<</if>>
		<<if getvar("$i") == 7>>
			<<set $phoneNameTemp = 'Voidwalker'>>

		<</if>>
		<<if getvar("$i") == 8>>
			<<set $phoneNameTemp = 'Voidwalker Red'>>

		<</if>>
		<<if getvar("$i") == 9>>
			<<set $phoneNameTemp = 'Voidwalker Toxic'>>

		<</if>>
		<<if getvar("$i") == 10>>
			<<set $phoneNameTemp = 'Gopnik'>>

		<</if>>
		<<if getvar("$i") == 11>>
			<<set $phoneNameTemp = 'Sports'>>

		<</if>>
		<<if getvar("$i") == 12>>
			<<set $phoneNameTemp = 'Succubus'>>

		<</if>>
		<<if getvar("$i") == 13>>
			<<set $phoneNameTemp = 'Woodshop'>>

		<</if>>
		<!-- FAILED TO CONVERT
			if phonetheme[i] = 0: '<a href="exec: VIEW ''images/system/phone/previews/<<$phonetheme_name[i]>>.png''">Preview</a> <a href="exec: money -= 500 & phonetheme[<<i>>] = 1 & gt ''kiosk'', ''themes''">Buy</a> the <b><<$phoneNameTemp>></b> theme.'
		-----
			<<if getvar("$phonetheme["+$i+"]") == 0>>
			<!-- FAILED TO CONVERT
	'<<link "Preview">><</link>> <<link "Buy">><<set $finances.cash -  = 500>> <<set $phonetheme[ERROR: FAILED TO CONVERT LITERAL: """<<i>>"""] = 1>> <<gt 'kiosk' 'themes'>><</link>> the <b><<$phoneNameTemp>></b> theme.'
-----
	<<set ERROR: FAILED TO CONVERT LITERAL: """'<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: VIEW ''images""" / $system / $phone / $previews / ERROR: FAILED TO CONVERT LITERAL: """$phonetheme_name[$i].png''">Preview<""" / ERROR: FAILED TO CONVERT LITERAL: """a> <a href="exec: money""" - ERROR: FAILED TO CONVERT LITERAL: """= 500""">> <<setinit $phonetheme[$ERROR: FAILED TO CONVERT LITERAL: """<<i>>"""] = 1>> <<gt 'kiosk' 'themes'">Buy</a> the <b>$phoneNameTemp</b> theme.'>>

-->
<<warn "CONVERSION ERROR 593e6ee7e42f70050f6d2cd3cfb51f98">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 22f2dec489cc084841b7cd7801c40524">>
		<<set $i += 1>>
		<<if getvar("$i") < 14>>
			<<warn 'JUMP COMMAND ENCOUNTERED: jump phonethemeloop'>>

		<</if>>
		<<set $phoneNameTemp to null>>
	<<else>>
		You don't have enough money to buy a phone theme.
	<</if>>
	<<act 'Return'>>
		<<gt 'kiosk' 'counter'>>
	<</act>>
<</if>>*/
