# Mall
hour += 1
horny += 1
clr
gs 'stat'
'<center><b>Market</b></center>'
'<center><img src="images/etogame/rinok2.jpg"></center>'
'Bustling market, you can buy in the market place to buy clothes or for 30,000 rubles and receive income from the outlet, but for the purchase and delivery of course need to have a car. You can trade yourself or hire a saleswoman.'

if car = 0:
	money -= 20
	'You get on the shuttle bus and pay the fare of 20 rubles.'
elseif car > 0 and benzin > 0:
	benzin -= 1
	gs 'stat'
	'You reached into your <<$marka>>.'
elseif car > 0 and benzin <= 0:
	money -= 20
	gs 'stat'
	'You ran out of gas and you had to go on the bus, paying the fare of 20 rubles.'
end
act 'Buy':gt 'RynokP', 'selection'
act 'Go home':gt 'street'

if rinwork > 0 and hour < 9:
	act 'Salesmen':
		cla
		clr
		*clr
		hour = 17
		fat += 5
		vnesh -= 1
		monrand = rand(500, 2000)
		money += monrand

		gs 'stat'
		'You all day selling things in the market and earned <<monrand>> rubles'
		rinrand = rand(1, 100)

		if rinrand < 70 and palevorin = 0 and rinhoz = 0:
			act 'Go home':gt 'street'
		elseif rinrand >= 70 and palevorin = 0 and rinhoz = 0:
			'To you approached the owner of the tent and began to pester you, promising to write premium'

			act 'Refuse':
				cla
				money -= 2000
				'The owner imposes on you a fine of 2, 000 rubles'

				act 'Go home':gt 'street'
			end

			act 'Ogle':gt 'RynokHoz', 'beginning'
		elseif rinrand < 60 and palevorin = 0 and rinhoz = 1:
			act 'Go home':gt 'street'
		elseif rinrand >= 60 and palevorin = 0 and rinhoz = 1:
			'To you approached the owner of the tent and began to pester you, promising to write premium'

			act 'Refuse':
				cla
				money -= 2000
				'The owner imposes on you a fine of 2, 000 rubles'

				act 'Go home':gt 'street'
			end

			act 'Ogle':gt 'RynokHoz', 'beginning'
		elseif rinrand < 60 and palevorin = 1:
			'On the market there is a rumor among the sellers that you fucks boss tray'

			act 'Go home':gt 'street'
		elseif rinrand >= 60 and palevorin = 1:
			'To you approached the owner of the tent and began to pester you, promising to write premium'

			act 'Refuse':
				cla
				money -= 2000
				'The owner imposes on you a fine of 2, 000 rubles'

				act 'Go home':gt 'street'
			end

			act 'Ogle':gt 'RynokHoz', 'beginning'
		elseif rinrand < 40 and palevorin = 2:
			'On the market there is a rumor among the sellers that you fucks boss tray with buddies'
			slutrand = rand(1, 100)

			if slutrand >= 70:
				'After work, you came to the Armenian and tried to persuade you a blowjob.'

				act 'Agree':gt 'RynokHoz', 'opusteha2'
			end

			act 'Go home':gt 'street'
		elseif rinrand >= 40 and rinrand < 70 and palevorin = 2:
			'To you approached the owner of the tent and began to pester you, promising to write premium'

			act 'Refuse':
				cla
				money -= 2000
				'The owner imposes on you a fine of 2, 000 rubles'

				act 'Go home':gt 'street'
			end

			act 'Ogle':gt 'RynokHoz', 'beginning'
		elseif rinrand >= 70 and palevorin = 2:
			'To you approached the owner of the tent c already familiar to you guys and they began to entice you to perform oral sex, promising to write premium'

			act 'Refuse':
				cla
				money -= 2000
				'The owner imposes on you a fine of 2, 000 rubles'

				act 'Go home':gt 'street'
			end

			act 'Ogle':gt 'RynokHoz', 'opusteha'
		end
	end

	act 'Resign':
		cla
		work = 0
		rinwork = 0
		'You are fired.'

		act 'Go home':gt 'street'
	end
end

if busRinok = 0 and money >= 30000 and car > 0:
	act 'Buy a place in the market for a month (30,000 rubles)':
		cla
		busRinok = 30
		money -= 30000
		'You bought a place in the market for 30, 000 rubles. You need the goods'

		act 'Go home':gt 'street'
	end
end

if busRinok > 0 and tovarR > 0 and rinhour ! number:
	act 'Trade independently':
		cla
		clr
		fat -= 2
		rinhour = number
		torghour = 16 - rinhour
		torgrand = rand(1, 50)

		if tovarR >= torgrand:tovarR -= torgrand
		if tovarR < torgrand:torgrand = tovarR & tovarR = 0

		torgmoney = torgrand * 200
		money += torgmoney
		hour = 17
		torgmoney = 0
		gs 'stat'
		'You''ve earned a day <<torgmoney>> rubles, sold out <<torgrand>> pieces of the item, you have <<tovarR>> units of goods.'
		act 'Go home':gt 'street'
	end

	if rinokTorg = 0 and rinhour ! number:
		act 'Hire a saleswoman':
			cla
			rinokTorg = 1
			'You hired saleswoman 1000 rubles per day'

			act 'Go home':gt 'street'
		end
	elseif rinokTorg = 1 and rinhour ! number and tovarR > 0:
		act 'Release the goods saleswoman.':
			cla
			rinokTorgW = 1
			rinhour = number
			torghour = 16 - rinhour
			torgrand = rand(1, 50)

			if tovarR >= torgrand:tovarR -= torgrand
			if tovarR < torgrand:torgrand = tovarR & tovarR = 0

			torgmoney = torgrand * 200
			'You have given goods saleswoman, she can trade on their own.'

			act 'Go home':gt 'street'
		end
	end
end

if rinokTorg = 1 and rinhour ! number:
	act 'Dismiss saleswoman':
		cla
		rinokTorg = 0
		'You fired saleswoman'

		act 'Go home':gt 'street'
	end
end

--- Mall ---------------------------------
