# fit
if $ARGS[0] = 'start':
	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">Fitness Center</font></b></center>'
	'<center><img src="images/etogame/fit.jpg"></center>'
	'Subscribe to the 30 classes worth 3,000 rubles'
	'Be sure to come to class in sportswear.'

	if abonement > 0:'Subscription is valid for <<abonement>> Occupation'

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

	if money >= 3000:
		act 'Buy a subscription (3,000 rubles)':
			cla
			money -= 3000
			abonement += 30
			'You bought a ticket for 30 lessons'

			act 'Move away from cash':gt 'fit', 'start'
		end
	end

	if abonement > 0 and fitday ! day:
		act 'Walk in dressing room':
			cla
			frost = 0
			abonement -= 1
			fitday = day
			razdtumbler = 1
			gt 'fit', 'razd'
		end
	end
end

if $ARGS[0] = 'razd':
	$metkaM = $ARGS[0]
	$locM = $CURLOC
	clr
	minut += 5
	gs 'stat'
	'<center><b><font color="maroon">Dressing</font></b></center>'
	'<center><img src="images/etogame/razd.jpg"></center>'
	'Classifieds'
	'Recruited girls section races, the winners of the competition receive cash prizes.'
	'Attention, visit the sports section razreshaetsya only with tracksuits.'

	if razdrand = 0 and tanznak = 0 and tanday ! day:
		tanday = day
		'In the locker room you notice <a href="exec:gt ''fitgirl''">cute girl</a>.'
	elseif tanznak = 2:
		cls
		tanznak = 3
		tanga = 0
		nude = 1
		tanya += 5
		'<center><img src="images/img/centr/razd4.jpg"></center>'
		'"You at least as name, maniac, and then raped her and Chesney did not even had the" asked the girl caught her breath.'
		'"I am the <<$name>>, and I will not rape you herself was not against" you said trying to find the eyes of her panties.'
		'"Looking for this?" asked the girl twirling on his finger your panties "I''m Tanya, and yet you seduced me, I did not have before the girls, and as it turned out a very good reason, I live here with my parents, if you want to come for a visit."'
		'"Okay as anything the race, briefs is true" you said holding out his hand.'
		'"Nope, do not return, there must me something to stay on the memory of the first girl." With these words, Tanya slipped your panties in his pocket and left.'

		act 'Further':gt 'fit', 'razd'

		exit
	end

	if begsec = 0:act 'Join section running':gt 'fit', '1'
	if begsec > 0 and razdtumbler = 1 and sport > 0:act 'Go to section':gt 'beg', 'start'
	if begsec > 0 and razdtumbler = 1 and sport > 0 and beg >= 20 and week = 6:act '<b>Competitions on the run</b>':gt 'beg1', 'start'

	act 'Take a shower (0:15)':
		cla
		*clr
		minut += 15
		sweat = -3
		horny += 1
		hapri = 0
		mop = 1
		dynamic $showerdin
		'<center><img src="images/pics/dush.jpg"></center>'
		'You got into the bathroom and turned on the shower. Lathered body and washed off in the shower.'

		act 'Get out of the shower':gt 'fit', 'razd'
	end

	act 'Mirror':
		cla
		fitMir = 1
		gt 'mirror', 'start'
	end

	act 'Cabinet':
		cla
		fitLoker = 1
		gt 'loker', 'start'
	end

	if razdtumbler = 1 and sport > 0:
		act 'Go to the gym':
		cla
		gt 'fit', 'raz'
	end

	act 'Go to the dance studio.':
		cla
		gt 'danceclass'
		end
	elseif razdtumbler = 0 or sport = 0:
		act 'Exit of the locker room':
			cla
			gt 'fit', 'start'
		end
	end
end

if $ARGS[0] = 'raz':
	cla
	clr
	*clr
	minut += 5
	razdtumbler = 0
	sportzalrand = rand(0, 20)
	gs 'stat'
	fcolor = rgb(0, 0, 0)
	bcolor = rgb(255, 255, 255)
	lcolor = rgb(106, 90, 205)
	'<center><b><font color="maroon">Fitness Center</font></b></center>'
	'<center><img src="images/etogame/fit.jpg"></center>'
	'In the fitness center a lot of different programs for the physical development of the organism.'

	act 'Aerobics (Squeegee fat)':
		cla
		*clr
		minut += 120
		fat -= 10
		reakt += rand(1, 3)
		manna -= 5
		sweat += 3
		gt 'zal', '<<sportzalrand>>'
		'<center><img src="images/etogame/fit1.jpg"></center>'
		'You are very vigorously the exercises for the music ebbs fat.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Trenazhorka (in force)':
		cla
		*clr
		minut += 120
		stren += rand(1, 3)
		fat -= 1
		manna -= 5
		sweat += 3
		gt 'zal', '<<sportzalrand>>'
		'<center><img src="images/etogame/fit2.jpg"></center>'
		'Did you do with iron for strength.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Trenazhorka (endurance)':
		cla
		*clr
		minut += 120
		vital += rand(1, 3)
		manna -= 5
		fat -= 2
		sweat += 3
		gt 'zal', '<<sportzalrand>>'
		'<center><img src="images/etogame/fit3.jpg"></center>'
		'Trainers were you doing on the development of endurance.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Tennis testing of protection (skill)':
		cla
		*clr
		minut += 120
		agil += rand(1, 3)
		fat -= 5
		manna -= 5
		sweat += 3
		TenisDef += 1
		gt 'zal', '<<sportzalrand>>'
		'<center><img src="images/etogame/fit4.jpg"></center>'
		'You do tennis practicing defensive actions.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Tennis working out attacks (velocity)':
		cla
		*clr
		minut += 120
		speed += rand(1, 3)
		manna -= 5
		fat -= 5
		sweat += 3
		TenisAt += 1
		gt 'zal', '<<sportzalrand>>'
		'<center><img src="images/etogame/fit4.jpg"></center>'
		'You do practicing tennis attacking actions.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Section kickboxing':gt 'fit', 'kik'
end

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

	act 'Testing jabs on pear':
		cla
		*clr
		minut += 120
		speed += rand(1, 3)
		manna -= 5
		fat -= 4
		sweat += 3
		Jab += rand(1, 3)
		'<center><img src="images/etogame/kik1.jpg"></center>'
		'You practiced on pear jab, straight punches with long step forward. These strikes are not so powerful as the police, but they are faster.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Testing power beats on a pear':
		cla
		*clr
		minut += 120
		stren += rand(1, 3)
		manna -= 5
		fat -= 4
		sweat += 3
		Punch += rand(1, 3)
		'<center><img src="images/etogame/kik1.jpg"></center>'
		'You practiced on pear powerful force capable of hitting an opponent shake. These impacts are powerful, but they are hard to get.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Testing of kicks':
		cla
		*clr
		minut += 120
		stren += rand(1, 3)
		manna -= 5
		fat -= 4
		sweat += 3
		Kik += rand(1, 3)
		'<center><img src="images/etogame/kik1.jpg"></center>'
		'You practiced on pear powerful kicks able to cut down an opponent. These impacts are powerful, but are very difficult to hit.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Testing of protection':
		cla
		*clr
		minut += 120
		agil += rand(1, 3)
		manna -= 5
		fat -= 4
		sweat += 3
		KikDef += rand(1, 3)
		'<center><img src="images/etogame/kik1.jpg"></center>'
		'You practiced defense movements.'

		act 'Leave':gt 'fit', 'razd'
	end

	act 'Sparing (training bout in the ring)':
		cla
		*clr
		round = 0
		'You need to choose a rival for sparring'

		act 'Rival':
			minut += 120
			manna -= 5
			fat -= 4
			sweat += 3
			strenV = rand(10, 20)
			speedV = rand(10, 20)
			agilV = rand(10, 20)
			reactV = rand(10, 20)
			vitalV = rand(10, 20)
			intelV = 10
			willV = 10
			!!skills
			JabV = rand(5, 20)
			PunchV = rand(5, 20)
			KikV = rand(5, 20)
			KikDefV = rand(5, 20)
			!!parameters
			healthV = vitalV * 10 + strenV * 5
			$nameV = 'Sparring partner'
			formula = 3
			sparing = 1
			gt 'kikbox', 'start'
		end
	end

	if week >= 5:
		'You can spend an amateur fight.'

		act 'Amateur fight':
			round = 0
			minut += 120
			manna -= 5
			fat -= 4
			sweat += 3
			razrand = rand(0, 1)

			if razradKik + razrand = 0:
				strenV = rand(10, 20)
				speedV = rand(10, 20)
				agilV = rand(10, 20)
				reactV = rand(10, 20)
				vitalV = rand(10, 20)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(10, 30)
				PunchV = rand(10, 30)
				KikV = rand(10, 30)
				KikDefV = rand(10, 30)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival without discharge'
				formula = 3
				amateur = 1
			elseif razradKik + razrand = 1:
				strenV = rand(15, 25)
				speedV = rand(15, 25)
				agilV = rand(15, 25)
				reactV = rand(15, 25)
				vitalV = rand(15, 25)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(15, 35)
				PunchV = rand(15, 35)
				KikV = rand(15, 35)
				KikDefV = rand(15, 35)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival c third discharge'
				formula = 3
				amateur = 1
			elseif razradKik + razrand = 2:
				strenV = rand(20, 30)
				speedV = rand(20, 30)
				agilV = rand(20, 30)
				reactV = rand(20, 30)
				vitalV = rand(20, 30)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(30, 50)
				PunchV = rand(30, 50)
				KikV = rand(30, 50)
				KikDefV = rand(30, 50)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival co second discharge'
				formula = 3
				amateur = 1
			elseif razradKik + razrand = 3:
				strenV = rand(30, 40)
				speedV = rand(30, 40)
				agilV = rand(30, 40)
				reactV = rand(30, 40)
				vitalV = rand(30, 40)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(40, 60)
				PunchV = rand(40, 60)
				KikV = rand(40, 60)
				KikDefV = rand(40, 60)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival c first discharge'
				formula = 3
				amateur = 1
			elseif razradKik + razrand = 4:
				strenV = rand(40, 60)
				speedV = rand(40, 60)
				agilV = rand(40, 60)
				reactV = rand(40, 60)
				vitalV = rand(40, 60)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(60, 80)
				PunchV = rand(60, 80)
				KikV = rand(60, 80)
				KikDefV = rand(60, 80)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival CCM'
				formula = 3
				amateur = 1
			elseif razradKik + razrand >= 5:
				strenV = rand(60, 100)
				speedV = rand(60, 100)
				agilV = rand(60, 100)
				reactV = rand(60, 100)
				vitalV = rand(60, 100)
				intelV = 10
				willV = 10
				!!skills
				JabV = rand(80, 110)
				PunchV = rand(80, 110)
				KikV = rand(80, 110)
				KikDefV = rand(80, 110)
				!!parameters
				healthV = vitalV * 10 + strenV * 5
				$nameV = 'Rival MS'
				formula = 3
				amateur = 1
			end

			gt 'kikbox', 'start'
		end
	end
end

if $ARGS[0] = '1':
	cla
	*clr
	minut += 5
	begsec = 1
	'You signed up for the run section'

	act 'Leave':gt 'fit', 'razd'
end

--- fit ---------------------------------
