# WorkHosp
if $ARGS[0] = 'start':
	$metka = 'start'
	$loc = 'WorkHosp'
	$sexloc = 'WorkHosp'
    $location_type = 'event'
	gs 'stat'
	'<center><b><font color="maroon">Clinic</font></b></center>'
	'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/hospital.jpg"></center>'
	'The clinic are hard at work, patients sit in queues, doctors are receiving, nurses rush from office to office.'
	jobhosprand = rand(0, 9)

	act 'Work in the procedural':
		cla
		minut += 60

		if jobhosprand = 0:gt 'WorkHosp', '2'

		'You worked in the treatment room.'

		act 'Move away':gt 'WorkHosp', 'start'
	end

	act 'Help the doctor at the reception':
		cla
		minut += 60

		if jobhosprand = 0:gt 'WorkHosp', '3'

		'You helped a doctor at the reception.'

		act 'Move away':gt 'WorkHosp', 'start'
	end

	act 'Relax in nursing':
		cla
		minut += 30
		gs 'stat'
		'You relax.'

		act 'Masturbate (0:15)':
			mastrrand = rand(0, 2)

			if mastrrand = 0:
				gt 'WorkHosp', '1'
			else
				cla
				*clr
				if pcs_exhibition < 30:exhibition_exp += rand(1,3)
				picrand = 11
				'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/mastr11.jpg"></center>'
				'You masturbated.'
				$orgasm_or = 'custom'
				$orgasm_txt = 'Gradually a pleasant warmth and pulsation increases in the lower abdomen, then descend to the feeling you and your entire body covered hot waves of orgasm'
				gs 'arousal', 'masturbate', 15
				gs 'stat'
			end

			act 'Leave':gt 'WorkHosp', 'start'
		end

		act 'Move away':gt 'WorkHosp', 'start'
	end

	act 'Eat in the cafeteria (0:30)':gs 'food', 'm_meal'

	act 'Chat with Kat':
		cla
		minut += 30
		kat += 1

		if npc_rel['A219'] > 60 and military = 0:gt 'WorkHosp', 'milit'

		'You chatted with Kate.'


		if npc_rel['A219'] > 50:
			act 'Suggest to retire':gt 'WorkHosp', '0'
		end

		act 'Move away':gt 'WorkHosp', 'start'
	end

	if hour >= 16:
		cls
		'<center><b><font color="maroon">Clinic</font></b></center>'
		'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/hospital.jpg"></center>'
		'Your shift ended.'

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

if $ARGS[0] = 'milit':
	cla
	military = 1
	'"Listen, I immediately offered to earn the weekend, but I have plans. Overall the thing is close to the city are often held war games, well, according to the rules that need to be attended by doctors there. Do not be afraid you will be there with you doctor, so the maximum that you have to do is to stick patches. short if you decide on a Saturday bus at the clinic, he was waiting for from 6 to 9 hours. Yeah I almost forgot to pay for two days of 5000. "'


	act 'Move away':gt 'WorkHosp', 'start'
end

if $ARGS[0] = '0':
    $location_type = 'event'
	cla
	*clr
	katprorand = rand(0, 2)

	if katprorand = 0:
		girl += 1
		picrand = 11
		xgt 'lezbsex', 'var'
	elseif katprorand = 1:
		'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex7.jpg"></center>'
		'Only you and Kat began to fondle each other as to the treatment the patient is entered. You backed away from her trying to pretend that nothing happened, on the contrary, Kate did not hesitate and was lying on the couch with her legs spread wide, proudly showing off her wet pussy on your tongue, and looked appealingly at the guy look inviting him prisoedinitsa.'
		gs 'arousal', 'cuni_give', 10, 'lesbian'
		gs 'stat'
		act 'Leave':gt 'WorkHosp', 'start'

		act 'Amuse':
			girl += 1
			guy += 1
			picrand = 12
			sexpartkno = 1
			gs 'npcgeneratec', 0, 'Patient', rand(18,48)
			gs 'boyStat', $npclastgenerated
			gt 'podrsex', 'suck'
			gs 'arousal', 'cuni_give', 10, 'lesbian'
			gs 'arousal', 'vaginal', 10, 'unkown'
			minut -= 10
			gs 'arousal', 'end'
			gs 'stat'
		end
	elseif katprorand = 2:
		'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex8.jpg"></center>'
		'While your tryst with Kate was in full swing, two doctors came in. You were both so exited that you payed no attention to them until they started to caress you. You spread your legs wider, inviting them to join the fun.'

		act 'Entertain':
			gang += 1
			picrand = 11
			sexpartkno = 1
			gs 'WorkHosp', 'randdoc'
			$boy[1] = $boy
			$boydesc[1] = $boydesc
			if docfuck[randdoc] = 1:guy += 1
			:docloop
			gs 'WorkHosp', 'randdoc'
			if $boydesc = $boydesc[1]:docfuck[randdoc] -= 1 & jump 'docloop'
			if docfuck[randdoc] = 1:guy += 1
			xgt 'sexdvanadva', 'var'
			gs 'arousal', 'bj', 10, 'group'
			gs 'arousal', 'vaginal', 10, 'group'
			minut -= 10
			gs 'arousal', 'end'
			gs 'stat'
		end
	end
end

if $ARGS[0] = '1':
	cla
	*clr
	mastrrand = rand(0, 1)

	if mastrrand = 0:
		'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex9.jpg"></center>'
		'As you masturbate, you totally abandon yourself to the pleasure of your coming orgasm. The doctor enters the room but you are so absorbed that you only notice him when his hand starts to pull your head to his erection.'
		gs 'arousal', 'masturbate', 10
		gs 'stat'
		if pcs_horny < 50:act 'Break and run':gt 'WorkHosp', 'start'

		act 'Amuse':
			guy += 1
			picrand = 12
			gs 'WorkHosp', 'randdoc'
			if docfuck[randdoc] = 1:guy += 1
			gt 'sex', 'minet'
			gs 'arousal', 'vaginal', 10, 'sub'
			gs 'arousal', 'end'
			gs 'stat'
		end
	else
		picrand = rand(12, 13)
		'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex10.jpg"></center>'
		'As you lose yourself in pleasure, two doctors come into the room. You are so absorbed that you only notice them when they start to openly masturbate in front of you.'

		if pcs_horny < 50:
			act 'Leave':gt 'WorkHosp', 'start'
		end

		act 'Amuse':
			sexpartkno = 1
			gs 'WorkHosp', 'randdoc'
			$boy[1] = $boy
			$boydesc[1] = $boydesc
			if docfuck[randdoc] = 1:guy += 1
			:docloop2
			gs 'WorkHosp', 'randdoc'
			if $boydesc = $boydesc[1]:docfuck[randdoc] -= 1 & jump 'docloop2'
			if docfuck[randdoc] = 1:guy += 1
			xgt 'sexdvoe', 'var'
			gs 'arousal', 'bj', 10, 'group'
			gs 'arousal', 'vaginal', 10, 'group'
			minut -= 10
			gs 'arousal', 'end'
			gs 'stat'
		end
	end
end

if $ARGS[0] = '2':
	cla
	*clr
	picrand = rand(13, 15)
	'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex11.jpg"></center>'
	'To you and the patient comes from the doorway taking his pants demonstrates his flaccid penis and asks you to help him as you see it is not worth it. Mind you realize that it''s all just a silly gimmick that would fuck you, but you still feel sorry for him. And suddenly it does not worth it, and you will be able to pick it up, but what if he just no luck with girls and if today is not lucky, he will jump out of the window.'

	act 'Oust him':gt 'WorkHosp', 'start'
	act 'Pick up':guy += 1 & gt 'sex', 'minet'
end

if $ARGS[0] = '3':
	cla
	*clr
	'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex12.jpg"></center>'
	'It comes to you pretty patient until the doctor tries to examine her, and then she touches his trousers near term, the doctor glances at you with a question in his eyes.'

	act 'Make her remark':gt 'WorkHosp', 'start'

	act 'Amuse':
		guy += 1
		girl += 1
		lesbian += 1
		picrand = 13
		sexpartkno = 1
		gs 'WorkHosp', 'randdoc'
		if docfuck[randdoc] = 1:guy += 1
		gt 'podrsex', 'suck'
		gs 'arousal', 'cuni_give', 10, 'group'
		gs 'arousal', 'vaginal', 10, 'group'
		minut -= 10
		gs 'arousal', 'end'
		gs 'stat'
	end
end

if $ARGS[0] = 'randdoc':
	if $randdoc[0] = '':
		randdoc = rand(0,19)
		if randdoc = 0:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Ivanov'
			$npc_lastname[$npclastgenerated] = 'Ivanov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 1:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Smirnov'
			$npc_lastname[$npclastgenerated] = 'Smirnov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 2:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Kuznetsov'
			$npc_lastname[$npclastgenerated] = 'Kuznetsov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 3:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Popov'
			$npc_lastname[$npclastgenerated] = 'Popov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 4:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Vasiliev'
			$npc_lastname[$npclastgenerated] = 'Vasiliev'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 5:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Petrov'
			$npc_lastname[$npclastgenerated] = 'Petrov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 6:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Sokolov'
			$npc_lastname[$npclastgenerated] = 'Sokolov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 7:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Mikhailov'
			$npc_lastname[$npclastgenerated] = 'Mikhailov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 8:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Fedorov'
			$npc_lastname[$npclastgenerated] = 'Fedorov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 9:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Morozov'
			$npc_lastname[$npclastgenerated] = 'Morozov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 10:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Volkov'
			$npc_lastname[$npclastgenerated] = 'Volkov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 11:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Alexeev'
			$npc_lastname[$npclastgenerated] = 'Alexeev'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 12:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Lebedev'
			$npc_lastname[$npclastgenerated] = 'Lebedev'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 13:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Semenov'
			$npc_lastname[$npclastgenerated] = 'Semenov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 14:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Egerov'
			$npc_lastname[$npclastgenerated] = 'Egerov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 15:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Pavlov'
			$npc_lastname[$npclastgenerated] = 'Pavlov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 16:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Kozlov'
			$npc_lastname[$npclastgenerated] = 'Kozlov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 17:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Stepanov'
			$npc_lastname[$npclastgenerated] = 'Stepanov'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 18:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Nikolaev'
			$npc_lastname[$npclastgenerated] = 'Nikolaev'
			gs 'npcpreservec', $npclastgenerated
		elseif randdoc = 19:
			gs 'npcgeneratec', 0, 'Doctor', rand(28,48)
			$npc_usedname[$npclastgenerated] = 'Dr. Orlov'
			$npc_lastname[$npclastgenerated] = 'Orlov'
			gs 'npcpreservec', $npclastgenerated
		end
	end

	gs 'boyStat', $npclastsaved
	docfuck[randdoc] += 1
end

--- WorkHosp ---------------------------------

