# WorkHosp

if $ARGS[0] = 'start':
	$metka = 'start'
	$loc = 'WorkHosp'
	$sexloc = 'WorkHosp'
    $location_type = 'event'
	$menu_loc = 'WorkHosp'
	$menu_arg = 'start'
	menu_off = 0
	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 hospital staff are hard at work, with many patients waiting in the lobbies. Doctors and nurses rush from office to office trying to keep the flow of patients going as quickly as possible.'
	jobhosprand = rand(0, 9)

	act 'Work in the Operating Room (1:00)':
		cla
		minut += 60
		medcn_exp += rand (0,2) 

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

		'You were part of the operating team, helping the doctors with whatever tasks they requested of you.'

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

	act 'Help the doctor at the Emergency Room (1:00)':
		cla
		minut += 60
		medcn_exp += rand (0,2)

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

		'You spent a frenzied hour helping patients that came into the Emergency room.'

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

	act 'Relax in the nurse station':
		cla
		minut += 30
		gs 'stat'
		'You relax a little while pretending to be busy.'

		if pcs_inhib > 20:
			act 'Masturbate (0:15)':
				mastrrand = rand(0, 2)

				if mastrrand = 0:
					gt 'WorkHosp', '1'
				else
					cla
					*clr
					gs 'exhibitionism', 1
					picrand = 11
					'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/mastr11.jpg"></center>'
					'You begin to secretly masturbate whenever nobody is watching.'
					$orgasm_or = 'yes'
					$orgasm_txt = 'Gradually a pleasant warmth and sensation radiates from your needy sex, culminating in a powerful orgasm that sends waves of pleasure through your entire body.'
					gs 'arousal', 'masturbate', 15
					gs 'stat'
				end

				act 'Leave':gt 'WorkHosp', 'start'
			end
		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 spent some time chatting with Kat.'


		if npc_rel['A219'] > 50:
			act 'Suggest going to an empty room together':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 has ended.'

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

if $ARGS[0] = 'milit':
	cla
	military = 1
	'"Listen, I am scheduled to work this weekend, but I have plans. Here''s the deal, War games are often held not far from the city and well, according to the rules, they need doctors on site before they can begin. Don''t worry, you will have a doctor with you, so the most you''ll need to do is apply some bandages. If you feel up to it, on Saturday you can catch a bus at the clinic between 6 and 9. Oh yeah, I almost forgot! The pay for two days is 5000 <b>₽</b>. So what do you say?" asks Kat.'

	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>'
		'You and Kat just began to fondle each other when a patient entered the room. You backed away from her trying to pretend that nothing was happening. On the contrary, Kat did not hesitate and was lying on the couch with her legs spread wide, proudly showing off her wet pussy. She guides you back down to her pussy, leaving no doubt what she expects your tongue to be doing, while looking hungrily at the guy and inviting him to join in the fun.'
		gs 'arousal', 'cuni_give', 10, 'lesbian'
		gs 'stat'
		act 'Leave':gt 'WorkHosp', 'start'

		act 'Sounds like fun':
			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, 'unknown'
			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 Kat and you are in full swing, two doctors enter the room. You are both engrossed with each other, that you didn''t even notice them until they started to caress you. You both spread your legs wider, inviting them to join the fun.'

		act 'Entertain them':
			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
			gs 'arousal', 'bj', 10, 'group'
			gs 'arousal', 'vaginal', 10, 'group'
			minut -= 10
			gs 'arousal', 'end'
			gs 'stat'
			xgt 'sexdvanadva', 'var'
		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. A doctor enters the room but you are so absorbed in your own pleasure that you only notice him when his hand starts to guide your head to his erect cock.'
		gs 'arousal', 'masturbate', 10
		gs 'stat'
		
		gs 'willpower', 'sex', 'resist'
		if will_cost <= pcs_willpwr:
			act 'Break and run (<<will_cost>> Willpower)':
				gs 'arousal', 'end'
				gs 'willpower', 'pay', 'resist'
				gt 'WorkHosp', 'start'
			end
		else
			act 'Break and run (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
		end	
			
		act 'Go along with it':
			guy += 1
			picrand = 12
			gs 'WorkHosp', 'randdoc'
			if docfuck[randdoc] = 1:guy += 1
				
			gt 'sex', 'minet'
		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 distracted, that you only notice them when they start to openly masturbate in front of you.'
		gs 'arousal', 'masturbate', 10
		gs 'stat'
					
		act 'Leave':
			gs 'arousal', 'end'
			gt 'WorkHosp', 'start'
		end
		
		gs 'willpower', 'sex', 'self'
		if will_cost <= pcs_willpwr:
			act 'Play with them (<<will_cost>> Willpower)':
				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
				gs 'arousal', 'bj', 10, 'group'
				gs 'arousal', 'vaginal', 10, 'group'
				minut -= 10
				gs 'willpower', 'pay', 'self'
				gs 'arousal', 'end'
				gs 'stat'
				xgt 'sexdvoe', 'var'
			end
		else
			act 'Play with them (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
		end
	end
end

if $ARGS[0] = '2':
	*clr & cla
	picrand = rand(13, 15)
	'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex11.jpg"></center>'
	'A patient comes through the door and takes off his pants to show you his flaccid penis. He asks you to help him, as he can''t seem to get an erection and it''s causing him depression. You realize that it''s all just a silly game and that he hopes to fuck you, but you still feel sorry for him. You wonder what caused him to come up with this plan, and decide it might just be that he has no luck with girls, and if today is not his lucky day, he may jump out of the window.'
	
	act 'Oust him':
		medcn_exp += rand (0,1) 
		gt 'WorkHosp', 'start'
	end
	
	gs 'willpower', 'sex', 'self'
	if will_cost <= pcs_willpwr:
		act 'Give him what he wants (<<will_cost>> Willpower)':
			guy += 1
			gs 'willpower', 'pay', 'self'
			gt 'sex', 'minet'
		end
	else
		act 'Give him what he wants (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
	end
end

if $ARGS[0] = '3':
	*clr & cla
	'<center><img <<$set_imgh>> src="images/locations/city/residential/clinic/sex/hospsex12.jpg"></center>'
	'A pretty patient comes into the room and the doctor tries to examine her. Then she touches his trousers near his poorly hidden erection. The doctor glances at you with a question in his eyes.'
	
	act 'Ask if she actually needs treatment':medcn_exp += rand (0,1) & gt 'WorkHosp', 'start'
    
	gs 'willpower', 'sex', 'self'
	if will_cost <= pcs_willpwr: 
		act 'Play along (<<will_cost>> Willpower)':
			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 'willpower', 'pay', 'self'
			gs 'arousal', 'end'
			gs 'stat'
		end
	else
		act 'Play along (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
	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 ---------------------------------

