:: autoservisF
<<set $here = 'autoservisF'>>
<<set $ARGS = $location_var[$here]>>
<<if $location_var[$here][0] == 'start'>>
	<<set $loc_arg = $location_var[$here][0]>>
	<<set $loc = 'autoservisF'>>
	<<set $location_type = 'event'>>
	<<set $menu_arg = 'start'>>
	<<set $menu_loc = 'autoservisF'>>
	<<set $menu_off = 0>>
	 	<<gs 'avtonorm'>>
	<center><b>Car Service Center</b></center>
	<<image "locations/city/industrial/CarServiceSta/autoservis1.jpg">>
	<!-- FAILED TO CONVERT
		if car > 0 and cardrive = 7:'Your <a href="exec:gs ''carF'', ''start''"><<$car>></a> is parked just inside.'
	-----
		<<if getvar("$car") > 0 and getvar("$cardrive") == 7>>
		<!-- FAILED TO CONVERT
	'Your <a href="exec:gs ''carF'', ''start''"><<$car>></a> is parked just inside.'
-----
	<<set ERROR: FAILED TO CONVERT LITERAL: """'Your <a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec:gs ''carF''""" , ERROR: FAILED TO CONVERT LITERAL: """''start''">$car<""" / ERROR: FAILED TO CONVERT LITERAL: """a> is parked just inside.'""">>

-->
<<warn "CONVERSION ERROR 27690e5806e185b70014dfd1618762c1">>

	<</if>>

	-->
	<<warn "CONVERSION ERROR aaaec74b642c3e806ac1e2bf31b7beea">>
	<<if getvar("$cardrive") == 7>>
		<<set $menu_off = 1>>
		<<if getvar("$wrek") == 0>>
			<<if $car['current_condition'] >= $car['new_condition'] * 75 / 100>>
				The foreman inspects your car quickly but thoroughly.
				After only a few minutes, he returns to you and announces that your car doesn''t need any repairs or maintenance.
			<</if>>
			<<if $car['current_condition'] < $car['new_condition'] * 75 / 100>>
				The foreman inspects your car quickly but thoroughly.
				Here and there, he seems to be murmuring to himself, maybe assessing a defect. After only a few minutes, he returns to you and points out what needs to be fixed.
				<p>It would cost you normrem <b>₽</b>.</p>
				<<if $finances.cash >= $normrem>>
					<<actCLA 'Pay and wait while they repair the car'>>
						 						<<set $finances.cash -= $normrem>>
						<<set $time.minutes += 60>>
						<<setinit $car['current_condition'] = $car['new_condition']>>
						<<set $wrek = 0>>
						<<image "locations/city/industrial/CarServiceSta/autoservis2.jpg">>
						<p>Since he tells you that it's not gonna take long, you go into a waiting room with couches and a TV. After about an hour of flipping through channels, the car is ready, and you pay normrem <b>₽</b>.</p>
						<<actCLA 'Leave'>>
							<<set $time.minutes += 5>> <<gt 'city_industrial'>>
						<</actCLA>>
					<</actCLA>>
				<</if>>
			<</if>>
		<<elseif getvar("$wrek") == 1>>
			The foreman looks at your car, if this wreckage even qualifies as one, with a professional boredom that tells you he's seen vehicles in similar or worse states a million times over.
			<p>He quickly but thoroughly inspects it, murmuring all the while to take mental notes on what needs to be done, and, when he returns to you, simply states that it would cost normrem <b>₽</b> to repair the damage.</p>
			<<if $finances.cash >= $normrem>>
				<<actCLA 'Pay and wait while they repair the car'>>
					 					<<set $finances.cash -= $normrem>>
					<<set $time.minutes += 60>>
					<<setinit $car['new_condition'] = $car['new_condition'] / 2>>
					<<setinit $car['current_condition'] = $car['new_condition']>>
					<<set $wrek = 0>>
					<<image "locations/city/industrial/CarServiceSta/autoservis2.jpg">>
					<p>Since he tells you that it's not gonna take long - at first you think he is being sarcastic but then realize that his no-nonsense attitude doesn't leave much room for humour - you go into a waiting room with couches and a TV. After about an hour of flipping through channels, you are called back to the garage and can hardly believe your eyes.</p>
					<p>The car looks brand new! Not a single dent, not one scratch, and when you start the engine to make sure it's working, it sounds better than ever before. You ask the foreman how he and his crew managed to repair the car, and that quickly, but his only response is a shrug.</p>
					<p>Before he sends you back into the office to pay the normrem <b>₽</b>, he asks you to not bring them cars in this pitiable state anymore - you're not sure whether he is joking or not.</p>
					<<actCLA 'Leave'>>
						<<set $time.minutes += 5>> <<gt 'city_industrial'>>
					<</actCLA>>
				<</actCLA>>
			<</if>>
		<</if>>
	<</if>>
	<<if getvar("$cardrive") != 7>>
		<p>The foreman sighs. "Where is your car, girl? I need to look at your car to see if and what is wrong with it. Bring your car, and I'll examine it."</p>

	<</if>>
	<<if getvar("$wrek") == 1 and getvar("$cardrive") != 7 and getvar("$car") > 0>>
		<p>The garage offers a towing service for damaged cars to bring them to this service center. The price: 2500 <b>₽</b></p>
		<<if $finances.cash >= 2500>>
			<<actCLA 'Pay for the towing service (2,500 <b>₽</b>) (1:00)'>>
				 				<<set $menu_off = 1>>
				<<set $finances.cash -= 2500>>
				<<set $cardrive = 7>>
				<<set $time.minutes += 60>>
				<<image "locations/city/industrial/CarServiceSta/autoservis2.jpg">>
				You sit down and wait at the service station. It takes about an hour until your car arrives, but when it does, it is almost immediately moved into the garage, and it looks like the foreman is about ready to inspect it.
				<<act 'See what the foreman has to say'>>
					<<gt 'autoservisF' 'start'>>
				<</act>>
			<</actCLA>>
		<</if>>
	<</if>>
	<<actCLA 'Leave'>>
		<<set $time.minutes += 5>> <<gt 'city_industrial'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'is_open'>>
	<!-- FAILED TO CONVERT
		RESULT = hour >= 9 and hour <= 20 and week < 7
	-----
		<<set $result = ERROR: FAILED TO CONVERT LITERAL: """hour >= 9 and hour <= 20 and week < 7""">>

	-->
	<<warn "CONVERSION ERROR 14828490be5f0c129762ebf74deaeb0a">>
<</if>>
