# restoran
if $ARGS[0] = 'start':
	cla
	clr
	*clr
	minut += 5
	gs 'stat'
	'<center><b><font color="maroon">Restaurant</font></b></center>'
	'<center><img src="images/etogame/restoran.jpg"></center>'
	fcolor = rgb(0, 0, 0)
	bcolor = rgb(255, 255, 255)
	lcolor = rgb(106, 90, 205)

	!!eto there_were glamur > 1 and vnesh > 50
	if $clothingworntype = 'formal' and mop > 1 and hapri = 1 and sweat <= 0:
		'A man at the entrance table politely interested in what you prefer in the VIP room or in the common room'

		if money >= 5000:
			act 'VIP room (5,000 <b>₽</b>)':
				cla
				money -= 5000
				gt 'restoran', 'vip'
			end
		end

		act 'Common room':gt 'restoran', 'zal'
	else
		'It suits you man and politely informs you that customers must be well presented and wear formal clothing if they wish to dine here.'
	end

	act 'Leave the restaurant':
		cla
		minut += 5
		gt 'down'
	end

	if vladimirday = daystart and vladimirQW = 21 and hour = 20:gt 'qwmeet'
end

if $ARGS[0] = 'zal':
	cla
	clr
	*clr
	minut += 5
	gs 'stat'
	fcolor = rgb(0, 0, 0)
	bcolor = rgb(255, 255, 255)
	lcolor = rgb(106, 90, 205)
	'<center><b><font color="maroon">restaurant, common room</font></b></center>'
	'<center><img src="images/etogame/restoran2.jpg"></center>'
	'The room was pretty good atmosphere. Soft lighting and light furniture. Until you hear the sounds of music, the clink of glasses and female laughter. It seems you can finally relax a little.'
	!!etogame
	nastjarand = rand(0, 100)

	if nastjarand > 80 and nastjaqw = 0 and energy > 15 and nastjaday ! daystart:
		cls
		nastjaday = daystart
		gs 'stat'
		'<center><img src="images/etogame/nastja1.jpg"></center>'
		'In the hall you notice a pretty girl, wondering why she was sitting alone. She looks pretty good. While you looked at prekrastno stranger she caught your eye on himself and suddenly looked at you.'

		act 'Look down':
			cla
			'She turned away'

			act 'Leave':gt 'restoran', 'zal'
		end

		act 'Smile at her':gt 'nastja', 'pos1'
	end

	if money >= 5000:
		act 'Eat (5,000 <b>₽</b>)':
			cla
			minut += 60
			energy += 60
			fat += 2
			water = 100
			willpower += 30
			manna += 80
			health += 20
			money -= 5000
			'On the recommendation of a chef, a wonderful dish you ordered and ate with pleasure in a noisy restaurant hall.'

			act 'Leave':gt 'restoran', 'zal'
		end
	end

	act 'Leave':minut += 5 & gt 'restoran', 'start'
end

if $ARGS[0] = 'vip':
	cla
	clr
	*clr
	minut += 5
	gs 'stat'
	fcolor = rgb(0, 0, 0)
	bcolor = rgb(255, 255, 255)
	lcolor = rgb(106, 90, 205)
	'<center><b><font color="maroon">Restaurant, VIP room</font></b></center>'
	'<center><img src="images/etogame/restoran3.jpg"></center>'
	'Caught in the vip box you caught yourself thinking that smile involuntarily. In the bed of a calm and friendly atmosphere. Soft lighting and furniture in the Empire style. You hear soft music. Finally, your new weak feminine essence, albeit briefly, but can feel safe.'

	if money >= 5000:
		act 'Eat (5,000 <b>₽</b>)':
			cla
			minut += 60
			energy += 60
			fat += 2
			water = 100
			willpower += 30
			manna += 80
			health += 20
			money -= 5000
			gs 'stat'
			'On the recommendation of a chef, a wonderful dish you ordered and ate with pleasure in the cozy vip room of the restaurant.'

			act 'Leave':gt 'restoran', 'vip'
		end
	end
	act 'Leave':
		cla
		minut += 5
		gt 'restoran', 'start'
	end
end
--- restoran ---------------------------------

