:: post_office[public indoors]
	<<set $postoffice_returnPassage = $location_var[$here]?.[0] ?? $postoffice_returnPassage>>

	<h2>Post Office</h2>
	<<image "locations/shared/postoffice/city.jpg">>
	It is currently quiet and you could walk straight up to the counter.

	<<act 'Counter'>><<addtime 1>><<gt 'post_office_counter'>><</act>>

	<<switch 'torgcentr'>>
		<<case 'city_center'>>
			<<ConnectedLocation 'Leave' 'city_center' '' 'locations/city/citycenter/down.jpg' 3>>
		<<default>>
			<<ConnectedLocation 'Leave' 'pav_commercial' '' 'locations/pavlovsk/gorodok.jpg' 3>>
	<</switch>>

:: post_office_counter[event]
	<h2>Post Office - Counter</h2>
	<<image "locations/shared/postoffice/counter.jpg">>
	You reach the counter, but you have no business here.

	<<switch 'torgcentr'>>
		<<case 'city_center'>>
			<<ConnectedLocation 'Leave' 'city_center' '' 'locations/city/citycenter/down.jpg' 3>>
		<<default>>
			<<ConnectedLocation 'Leave' 'pav_commercial' '' 'locations/pavlovsk/gorodok.jpg' 3>>
	<</switch>>

:: post_office_deprecated[deprecated]
	/*<<if ($time.hour >= 9 and $time.hour <= 10) or ($time.hour >= 15 and $time.hour <= 16)>>
		<h2>Post Office</h2>
		<<image "locations/shared/postoffice/city.jpg">>
		It is currently very busy and looks like you'll have to wait to get to the counter.
		<<actCLA 'Wait in line (30 Minutes)'>>
			<<set $time.minutes += 30>>
			<<set $postloc = 'counter'>> <<gt 'post_office'>>
		<</actCLA>>
		/*<<if getvar("$exhibitionist_lvl") > 2>>
			<<actCLA 'Flash both your tits and your pussy to skip the line' undefined `{willpower:['exhib','self','hard']}`>>
					
					
					<<set $menu_off = 1>>
					<<gs 'flash' 'full' 'inside' 1>>
					<<actCLA 'Go to the counter'>>
						<<set $postloc = 'counter'>> <<gt 'post_office'>>
					<</actCLA>>
				<</actCLA>>
			
		<</if>>
		<<if getvar("$exhibitionist_lvl") > 1>>
			<<actCLA 'Flash your pussy to skip the line' undefined `{willpower:['exhib','self']}`>>
					
					
					<<set $menu_off = 1>>
					<<gs 'flash' 'pussy' 'inside' 1>>
					<<actCLA 'Go to the counter'>>
						<<set $postloc = 'counter'>> <<gt 'post_office'>>
					<</actCLA>>
				<</actCLA>>
			
		<</if>>
		<<if getvar("$exhibitionist_lvl") > 0 or $pc.pcs_inhib >= 45>>
			<<actCLA 'Flash your tits to skip the line' undefined `{willpower:['exhib','self','easy']}`>>
					
					
					<<set $menu_off = 1>>
					<<gs 'flash' 'tits' 'inside' 1>>
					<<actCLA 'Go to the counter'>>
						<<set $postloc = 'counter'>> <<gt 'post_office'>>
					<</actCLA>>
				<</actCLA>>
			
		<</if>>
		<<if getvar("$exhibitionist_lvl") > 0>>
			<<actCLA 'Suggest a blowjob in exchange for jumping the queue' undefined `{willpower:['bj','self']}`>>
					
					
					<<set $menu_off = 1>>
					<<if $pc.cumAtLocation(11) == 0>>
						<<gs 'npcgeneratec' 0 'stranger' `rand(18,45)`>>
						
						<<run $pc.skillExperienceGain('inhibition',rand(2,5))>>
						<<arouse 'bj' 10 `['sub']`>>
						<<actCLA 'Cum on your face'>>
							<<if $pc.hairColor == 0>>
								<<set $cum_face_image = 'black/' + rand(1,23)>>
							<<elseif $pc.hairColor == 1>>
								<<set $cum_face_image = 'brown/' + rand(1,31)>>
							<<elseif $pc.hairColor == 2>>
								<<set $cum_face_image = 'red/' + rand(1,19)>>
							<<elseif $pc.hairColor == 3>>
								<<set $cum_face_image = 'blonde/' + rand(1,25)>>
							<<else>>
								<<set $cum_face_image = 'custom/' + rand(1,20)>>
							<</if>>
							<<image 'pc/body/cum/cumface/<<$cum_face_image>>.jpg'>>
							The man cums on your face.
							<<cum 'face' 'stranger'>>
							
							<<actCLA 'Go to the counter'>>
								<<set $postloc = 'counter'>> <<gt 'post_office'>>
							<</actCLA>>
						<</actCLA>>
						<<actCLA 'Cum in your mouth'>>
							<<image "locations/shared/postoffice/sex/cumlip.jpg">>
							The man cums inside your mouth.
							<<cum 'mouth' 'stranger'>>
							
							<<actCLA 'Go to the counter'>>
								<<set $postloc = 'counter'>> <<gt 'post_office'>>
							<</actCLA>>
						<</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 postoffice and spend 2 hours curled up like 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 postoffice and spend 2 hours curled up like a ball.'""">>

						-->
						<<warn "CONVERSION ERROR 546f3dec770c5c52bf67374a57ef506d">>
						<<set $time.minutes += 120>>
						<<gs 'pain' 4 'tummy' 'hit'>>
						<<actCLA 'Recover'>>
							<<if getvar("$bankloc") == 1>>
								<<gt 'city_center'>>
							<<else>>
								<<gt 'pav_commercial'>>
							<</if>>
						<</actCLA>>
					<</if>>
				<</actCLA>>
			
		<</if>>
	<<else>>
		<h2>Post Office</h2>
		<<image "locations/shared/postoffice/city.jpg">>
		It is currently quiet and you can walk straight up to the counter.
		<<actCLA 'Go to the counter'>>
			<<set $postloc = 'counter'>> <<gt 'post_office'>>
		<</actCLA>>
	<</if>>
	<<if getvar("$bankloc") == 0>>
		<<act 'Go to Postmaster`s Office'>>
	<<gt 'post_master' 'start'>>
<</act>>

	<</if>>
<<if $postloc == 'counter'>>
	 	<<set $menu_loc = 'post_office'>>
	<<set $menu_arg = 'counter'>>
	<<set $menu_off = 0>>
	<h2>Counter</h2>
	<<image "locations/shared/postoffice/counter.jpg">>
	The counter, it's boring here.
	<<actCLA 'Leave'>>
		<<set $postloc = 'leave'>> <<gt 'post_office'>>
	<</actCLA>>
	<<if $finances.hasBankAccount == 1 and $finances.cash > 0>>
		<<actCLA 'Deposit money to your bank account'>>
			<<set $menu_off = 1>>
			<<set $time.minutes += 5>>
			<<set $finances.bankIN = input ("How much money do you want to deposit into the account?")>>
			<<if getvar("$finances.bankIN") <= 0 or $finances.bankIN > $finances.cash>>
				Not correct operation.
			<<else>>
				<<set $finances.bank += $finances.bankIN>>
				<<set $finances.cash -= $finances.bankIN>>
				<p><br>You put on the account kartaIN <b>₽</b>, now you have karta <b>₽</b> on it.</p>
			<</if>>
			<p>"Is there anything else I can do for you?"</p>
			<<actCLA 'Leave the post office'>>
				<<set $postloc = 'leave'>> <<gt 'post_office'>>
			<</actCLA>>
			<<actCLA 'Yes'>>
				<<set $postloc = 'counter'>> <<gt 'post_office'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$legal_fine") > 0>>
		<<actCLA 'Pay toward legal fine'>>
			<<set $menu_off = 1>>
			<<set $fineIN = input ("How much money do you want to pay off your fine/s?")>>
			<<if getvar("$fineIN") <= 0 or $fineIN > $finances.cash>>
				Not correct operation.
			<<else>>
				<<set $legal_fine -= $fineIN>>
				<<set $finances.cash -= $fineIN>>
				<p><br>You pay fineIN <b>₽</b> of your legal fine/s, now you have legal_fine <b>₽</b> still outstanding.</p>
			<</if>>
		<</actCLA>>
		<<if $finances.cash > $legal_fine>>
			<<actCLA 'Pay off your legal fine/s'>>
				<<set $finances.cash -= $legal_fine>>
				<<set $legal_fine = 0>>
				<<set $menu_off = 1>>
				<h2>Counter</h2>
				<<image "locations/shared/postoffice/counter.jpg">>
				You pay the full amount of your outstanding fine/s to the cashier and they print out a receipt to say that it is paid off.
				<<actCLA 'Done'>>
					<<set $postloc = 'counter'>> <<gt 'post_office'>>
				<</actCLA>>
			<</actCLA>>
		<</if>>
	<</if>>
	<<if getvar("$used_pattest") > 0>>
		<<actCLA 'Send paternity test (20.000 <b>₽</b>)'>>
			<<set $menu_off = 1>>
			<<if $finances.cash >= 20000>>
				<<send_test>>
				You pay the fee of the testing, then you mail your used paternity test to the testing labor in Saint Petersburg with the copy of your receipt of payment. You will get answer in SMS withing a week.
			<<else>>
				Unfortunately you have no money to send the test in. You could, but they would just throw it out without the receipt of payment.
			<</if>>
			<<actCLA 'Done'>>
				<<set $postloc = 'counter'>> <<gt 'post_office'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<actCLA 'Check received mail'>>
		<<set $menu_off = 1>>
		<<set $time.minutes += 5>>
		<<if getvar("$mail") <= 0>>
			Sorry no mail.
		<<else>>
			You have mail.
		<</if>>
		<p>"Is there anything else I can do for you?"</p>
		<<actCLA 'Yes'>>
			<<set $postloc = 'counter'>> <<gt 'post_office'>>
		<</actCLA>>
		<<actCLA 'Leave the post office'>>
			<<set $postloc = 'leave'>> <<gt 'post_office'>>
		<</actCLA>>
	<</actCLA>>
	<<set $i = 0>>
	<!-- !!{	*pl '<center><table align="center">'
	:loopcard
	if i = 0:
	n = 5
	price = 60
	$buy_link = '<a' + iif(money >= 60, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''post_office''">buy ','>buy ') +'</a>'
	elseif i = 1:
	n = 10
	price = 115
	$buy_link = '<a' + iif(money >= 115, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''post_office''">buy ','>buy ') +'</a>'
	elseif i = 2:
	n = 20
	price = 220
	$buy_link = '<a' + iif(money >= 220, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''post_office''">buy ','>buy ') +'</a>'
	elseif i = 3:
	n = 50
	price = 520
	$buy_link = '<a' + iif(money >= 520, ' href="exec: gs ''$buy_item'', <<n>>, ''hours of internet access'', <<price>>, ''internet'', ''post_office''">buy ','>buy ') +'</a>'
	end
	i += 1
	'<tr><td align="center"><<n>> hour internet card </td><td align="right">(you have <<internet>> hours of internet access) </td><td align="right"><<$buy_link>> </td><td align="left">for <<price>> <b>₽</b></td></tr>'
	if i < 4: jump 'loopcard'
	'</table></center>'
	if money > 0:
	act 'Put the money on the phone':
	cla
	menu_off = 1
	set minut = minut + 5
	obmennik = input ("How many <b>₽</b> do you want to deposit?")
	if obmennik <= 0:
	'<center><br><b>Do you want to think again?</b></center>'
	act 'Return':$postloc = 'counter' & gt 'post_office'
	else
	if money < obmennik:
	'<center><br>You do not have <b><<obmennik>></b> <b>₽</b>.</center>'
	act 'Return':$postloc = 'counter' & gt 'post_office'
	end
	if money >= obmennik:
	set balans = balans + obmennik
	set money = money - obmennik
	clr
	'<center><br>You put <b><<obmennik>></b> <b>₽</b> to the account.</center>'
	'"Is there anything else I can do for you?"'
	act 'Yes':$postloc = 'counter' & gt 'post_office'
	act 'Leave the post office':$postloc = 'leave' & gt 'post_office'
	end
	end
	end
	end
	} -->
	<!-- !!Might use for the city branch, but seems ott for Pav-->
	<!-- !!	if askWork = 0 and bankloc = 0:-->
	<!-- !!		act 'Ask for work':-->
	<!-- !!			-->
	<!-- !!			minut += 5-->
	<!-- !!			-->
	<!-- !!			'You approach the counter and ask the girl at the counter: "Excuse me... I hear you are looking for postal workers? I would like to come work as a one."'-->
	<!-- !!'She nods understandingly: "We are looking for new workers, that's true. I''d hire you in an instant, but unfortunately it's not up to me. You should go see Oleg Koltsov, the postmaster. He's usually in his office between 12:00 and 14:00. I bet he will hire you! Good luck when you go see him!"'-->
	<!-- !!			'"I'm afraid there is no position available at this time."'-->
	<!-- !!			act 'Step away from the counter':gt'post_office', 'start'-->
	<!-- !!askWork += 1-->
	<!-- !!		end-->
	<!-- !!	end-->
<</if>>
<<if $postloc == 'leave'>>
	<<set $time.minutes += 3>>
	<<set $postloc to null>>
	<<if getvar("$bankloc") == 1>>
		<<gt 'city_center'>>
	<<else>>
		<<gt 'pav_commercial'>>
	<</if>>
<</if>>
<!-- !! Not used for Pav, maybe use for city?-->
<<if $postloc == 'post_off'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 30>>
	<h2>Postmaster Office</h2>
	<!-- !!Blatte: MISSING IMAGE-->
	$ImageNeededPlacholder
	<!-- !!'<<image 'system/image_needed.png'>>'-->
	Behind his desk, a man of about 50 is busy with some paperwork. He's dressed quite sharply, and you had never expected the postmaster would be this good looking.
	<<act 'Exit office'>>
		<<gt 'post_office' 'start'>>
	<</act>>
	<<if getvar("$post_wrk") == 0>>
		<<actCLA 'Ask for work'>>
			<<set $time.minutes += 15>>
			<!-- !!Placeholder text-->
			<p>You approach the man's desk, but he doesn't look up from his work. With a soft voice you carefully try to get his attention: "Umm... excuse me?"</p>
			<p>He looks up from his desk: "Oh I'm sorry, I didn't hear you come in. Hello, I'm Oleg Koltsov, postmaster at this post office. Is there a problem?"</p>
			<p>You smile and shake your head: "No, no problem. I am looking for a job, I hear you are often looking for workers?"</p>
			<p>You can feel his eyes exploring your body for a moment before he responds: "Yes, we are! We currently only have a part-time vacancy, for sorting the mail. You would be working between these and these hours, give or take. Does that sound good to you?"</p>
			<<actCLA '"Sorry, not interested"'>>
				"I need to think about it if it's okay."
				<p>"Sure $pc.name_nick, come back when you've made up your mind."</p>
				<<act 'Exit office'>>
					<<gt 'post_office' 'start'>>
				<</act>>
			<</actCLA>>
			<<actCLA '"That sounds great!"'>>
				<<set $post_wrk += 1>>
				<!-- !!Placeholder text-->
				<p>You beam: "That sounds fantastic, thank you so much!"</p>
				Oleg gives you a friendly smile, happy to have found another potential worker. He quickly writes some of your personal data down.
				Oleg continues: "If you want to work a shift, you need to be here between this time. There''s no point in you getting changed for just 20 minutes of work."
				<p>That also sounds fair. You give him a handshake as you get ready to leave: "Okay. Thank you sir!"</p>
				<<act 'Exit Office'>>
					<<gt 'post_office' 'start'>>
				<</act>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
<</if>>
