# korr2x
!2021/05/08

CLOSE ALL
if sound = 0:PLAY 'sound/korr.mp3',30
$loc_arg = ''
$loc = 'korr2x'
$loc_arg = ''
$menu_loc = 'korr2x'
$menu_arg = ''
menu_off = 0
$location_type = 'private'
killvar '$locclass'
clr
!!have to give Sveta ownership of plasma tv so she can get cable
TV = 2
popolaini = 0
saunaYouRoom = 0
boycherdaksex = 0
bonusZ = 0
music_on = 0
minut = minut + 1
elektro = elektro + 1
gs'stat'
gs 'themes', 'indoors'

if courtletter_date <= daystart and courtletter_date ! 0:
	gt 'sentence', 'letter'
end

'<center><b><font color = maroon>Corridor</font></b></center>'
'<center><img <<$set_imgh>> src="images/locations/pushkin/apartment/korr2x.jpg"></center>'

if umbrella > 0:'Your umbrella is on a hook.'
if krolik = 1:'Your rabbit <a href="exec:gt ''krol'', ''start''"><<$namekrol>></a> sits in it''s cage on the floor.'
if ParrotQW['Owned1'] = 1:'Your parrot <a href="exec:gt ''popu'', ''start''"><<$ParrotQW[''Name1'']>></a> sits in it''s cage.'
if parkday ! daystart and parkblackmail = 1:
	parkblackmail = 2
	parkday = daystart
	'A heavy envelope has arrived in the mail. When you open it, you''re horrified to find several pictures of you giving blowjobs to the guys in the park inside.'
	'A small note accompanying them says:'
	'"If you don''t want these pictures to be posted on your door and sent to your work place, then come to this address."'
	'"PS, if you don''t come today, these pictures will be hanging in your stairwell tomorrow."'
	'You check the address and find that it''s Aphrodite Photography in the City Center.'
elseif parkday ! daystart and parkblackmail = 2:
	parkblackmail = 0
	fotoyousuck = 1
	'You''re horrifed and embarrassed when you see photos of you with your face covered in cum with two dicks in your mouth covering your stairwell walls.'
end

act 'Go to the Bedroom':
	gt'bedr2x'
end
act 'Go to the Bathroom':
	gt'vanr2x'
end
act 'Go to the Kitchen':
	gt'kuhr2x'
end
act 'Go to the Living Room':
	gt'sitr2x'
end
act '<b><font color="maroon">Go outside</font></b>':
	cls
	if $clothingworntype = 'nude':
		'<b><font color="red">You need to get dressed before going out.</font></b>'
		xgt $curloc
	elseif sick > 72:
		'<b><font color="red">You''re too sick to walk around in the streets.</font></b>'
		xgt $curloc
	else
		xgt'liames'
	end
end
!!if rand (0,2) ! 0:gs 'din_bad' & dynamic $mobile_check

if hour >= 9 and hour <= 20 and santehnikDolg > 0 and money >= santehnikDolg:
	'<b><font color = red>The doorbell rings</font></b>'
	act 'Answer the door':
		cls
		gs'stat'
		'You go to the door and look through the peephole to see a dark male figure. "It''s me. Grisha, the plumber. You owe me some money, remember?" he says through the door.'
		act 'Open the door':
			cls
			money -= santehnikDolg
			santehnikDolg = 0
			gs'stat'
			'You open the door and Grisha smiles. "I thought you were hiding from me. So, do you have my money?" You nod and pay him the money you owe.'
			act 'Close the door':gt $curloc
		end
	end
end

if func('homes_properties', 'is_current_home') = 0:
	act 'Set this apartment as your main home':gs 'homes_properties', 'set_home' & gt 'korr2x'
else
	if $status['dog'] ! 'blocked' and menu_off = 0 and rex['owned'] = 1:
		if rex['status'] = 0:
			gt 'pet_dog', 'name'
		elseif hour > 5:
			'<br>Your dog <a href="exec: gt ''pet_dog'', ''start''"><<$rex[''name'']>></a> is lying on the floor.<br>'
		elseif hour < 6:
			'<br><<$rex[''name'']>> is sleeping in his dog basket.<br>'
		end
	end
end

if BurgerQW['IlyQW']  = 3 and hour >= 9 and hour <= 20:
	cls
	BurgerQW['IlyQW']  = 4
	if DolgRS <= moneySUM:
		money = moneySUM-650000
		karta = 0
		stolmoney = 0
		minut += 120
		'The police arrive and take you to court. You manage to pay off your debts and are released.'
		act 'Leave the courthouse':gt'city_center'
	elseif DolgRS > moneySUM:
		DolgRS = 650000-moneySUM-60000
		money = 0
		karta = 0
		stolmoney = 0
		vidage += 7
		year += 5
		age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
		money = 2000
		'The police arrive and take you to court. After standing trial, you are given five years of jail time and are required to pay your debt of <<DolgRS>>.'
		act 'Serve your time':
			cls
			srok_kolvo = 1
			srok_otsidki += 5
			salo = 10
			fat = 10
			if defcurly = 0:
				curly = 0
			else
				curly = 2147483647
			end
			straight = 0
			pcs_makeup = 1
			pcs_skin = 0
			pcs_tan = 0
			pcs_leghair = 12
			pcs_pubes = 30
			bfa = 0
			narkoman = 0
			nark = 0
			SLomka = 0
			work = 0
			workKafe['job'] = 0
			workhosp = 0
			worksalon = 0
			tanwork = 0
			workSec = 0
			preg = 0
			young_shop_work = 0
			gs 'uniutil', 'student', 'unenroll'
			gs'stat'
			'Time drags on slowly. Your life and work are tedious and monotonous. You''ve been sewing for five years, having meals in the dining room and going to sleep surrounded by other female inmates. 1,000 <b>₽</b> of your 2,000 <b>₽</b> per month salary goes towards your debt repayment.' 
			'As slow as it seems, time doesn''t stand still and your torment finally comes to an end. You are released and given 2,000 <b>₽</b>. You board the train and return to the city.'
			act 'Get off the train': gt 'city_industrial_train', 'outside'
		end
	end
	exit
end
if BurgerQW['IlyQWDay'] ! daystart and BurgerQW['IlyQW']  = 1 and hour >= 8 and hour <= 20:
	'<b><font color = red>The doorbell rings</font></b>'
	act 'Answer the door':
		cls
		gs'stat'
		'You walk up to the door and look through the peephole. You see a few men, and even in the dark, you recognize them from their caps. "<<$pcs_firstname>> <<$pcs_lastname>>! This is the police, open up!"'
		act 'Open the door':
			cls
			minut += 120
			BurgerQW['IlyQW']  = 2
			gs'stat'
			'You open the door, wondering what they want from you. There are several men in uniform and others in civilian clothes. A lean and skinny man with with a weeks worth of stubble and a pistol in a holster slung under his armpit speaks to you. "Please take a seat while we search the apartment. This is a warrant for your arrest and this is a search warrant for your apartment. You can read them." The men start searching your apartment and a few minutes later, one of them reappears. "Here are the keys. According to the description, these look like the keys to the office and the safe where the money was stolen." The detective frowns at you and nods to the officer, who pulls your hands behind your back and snaps the handcuffs around your wrists.'
			wait 1500
			'You''re escorted out of the building in handcuffs and pushed into a police car. After the door slams shut, the car starts up and drives through the city streets until it stops outside the police station and you''re pulled out and brought into an interview room where the dectective is waiting for you. He takes the handcuffs off you and offers you a seat. You sit in a hard and uncomfortable chair while the detective turns the TV on and inserts a video tape. On the screen is footage from a security camera in Bystroeshke showing you appear in the corridor and entering the office before exiting a few minutes later holding a thick envelope. The detective takes the tape out and inserts another one.' 
			'It shows Chubais'' office. The door opens and you walk in holding some keys. You go to the safe, open it with one of the keys and take the envelope with <<$BurgerQW[''IlySecurityCamDesc'']>> written on it. The detective turns the TV off, picks up a plastic bag with the keys inside and finally speaks. "Tests prove that the keys found in your apartment are those to the office and the safe of Bystroezhki. The tapes from the surveillance cameras clearly show you entering the office and taking 650,000 rubles." He takes out a pen and paper and begins to write. While writing, he looks up to you with gloomy eyes and says "A confession will help you in the court. Since this is a first time offense and provided you return the money, you may be given a suspended sentence if you admit your guilt."'
			act 'Sign the confession':
				cls
				minut += 60
				gs'stat'
				'You sign the confession and the detective signals for an officer, who enters the room as the detective nods in your direction. "Take her."'
				act 'Go with him':gt'kameraKPZ'
			end
			act 'Tell the truth':
				cls
				minut += 60
				gs'stat'
				'You tell the detective what actually happened and how Ilyushkin framed you, but he barely listens to you before he slams his fist on the table and yells at you. "I wasn''t born yesterday! If you will not cooperate, you''ll rot in prison!" An officer then enters the room and the detective nods in your direction. "Take her."'
				act 'Go with him':gt'kameraKPZ'
			end
		end
	end
	exit
end
if gopstop > 30: gt'police','1'

if sick > 0 and doktorday ! daystart: act 'Call a doctor':doktorday = daystart & dynamic $polidin

$drPP = {
	cla
	*clr
	'You answer the door. On the threshold is an older, balding man with a medical bag in his hand.'
	'"Hello, doctor."'
	'"Hello, dear. I''m the local doctor. Now please go back to bed and don''t stand in this cold air.'
	act 'Go back to bed':
		cla
		*clr
		'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/drpp1.jpg"></center>'
		'You walk back to the bedroom with the doctor. He sits on the edge of the bed and feels your forehead.'
		'"So Miss <<$pcs_lastname>>. What are your symptoms?'
		'"Ahem, ahem... Well, Doctor, I have a sore throat - very sore actually - and a high temperature."'
		'"And a nasty cough too I see. And judging by your voice, also a running nose."'
		'"Yes... Aachoo!!"'
		'"Miss <<$pcs_lastname>>, please remove your clothes so I can examine you."'
		act 'Undress':
			cla
			*clr
			minut += 5
			clr
			gs'stat'
			'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/drpp2.jpg"></center>'
			'You undress and the doctor listens to your lungs for a while.'
			'"Now let''s take a look at your throat. Open your mouth wide and say Aahh."'
			act 'Ahh':
				cla
				*clr
				'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/drpp3.jpg"></center>'
				'You open your mouth and the doctor looks in.'
				'"Mmmm, I see. Well, let''s take your temperature."'
				act 'Put the thermometer under your armpit':
					cla
					*clr
					'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/drpp4.jpg"></center>'
					'The doctor waits a few minutes, then looks at the thermometer and shakes his head.'
					act 'What''s wrong with me?':
						cla
						'You have the flu." he calmly replies. "Nothing too serious, I''ll just give you an injection and you''ll feel better soon. Stay in bed, drink plenty of fluids and try to rest as much as possible. When you feel better come to the clinic. Now please roll over so I can give you the injection."'
						act 'Roll over':
							cla
							*clr
							minut += 10
							sick = sick - 2
							lekarstvo += 3
							gs'stat'
							'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/drpp5.jpg"></center>'
							'The doctor jabs a needle into your ass and injects the contents.'
							'"Now remember. Stay in bed, drink lots of fluids and try to rest. When you feel better come by the clinic."'
							'"Thank you, Doctor, I will."'
							'You escort the doctor back to the entrace where he says goodbye and leaves. After shutting the door, you head back to bed.'
							act 'Go back to bed':gt'bedr2x'
						end
					end
				end
			end
		end
	end
}

$polidin = {
	cla
	*clr
	minut = minut + 15
	callrand = RAND(0,2)
	if callrand = 0:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/housecall.jpg"></center>'
	if callrand = 1:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/housecall.jpg"></center>'
	if callrand = 2:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/housecall.jpg"></center>'
	'You dial the number of the clinic several times, but it''s always busy.'
	act 'Keep trying':
		cla
		'Finally, a tired nurse''s voice answers. "Hello, this is the clinic. How can I help you?"'
		act 'Ask for doctor':
			cla
			'"Hello. Can I get a house call?" you manage to say between coughing fits.'
			'"Your name and address, please?" she asks.'
			act 'Give your address':
				cla
				'You have a coughing fit before you''re able to answer. "Sorry, it''s <<$pcs_firstname>> <<$pcs_lastname>>. Street Park House 4, apartment 69." you manage before sneezing.'
				'"One moment please." she responds before she puts you on hold.'
				act 'Wait':
					cla
					minut = minut + 5
					clr
					gs'stat'
					'You wait for five minutes, occasionally coughing and sneezing, until she finally returns. "So Miss <<$pcs_lastname>>, what are your symptoms?"'
					'You start to answer but end up coughing. "Sorry, I have a fever, sore throat, a cough and a runny nose."'
					'"Is your temperature high?"'
					'"Yes, quite so, 39.2°C." you tell her, followed by a sneeze.'
					'"Very well. A doctor will come see you at home."'
					'"How soon?"'
					'"As soon as one is free." she answers. "Yours isn''t an isolated case."'
					'"Thank you." you respond and hang up.'
					if ninelsex = 1:
						act 'Is Ninel available?':
							cla
							'"Is Doctor Pavlovna available? She is my regular doctor."'
							'"Let me check." The nurse puts you on hold for a few minutes before returning. "Yes, she is free and will make the house call."'
							'"Once again, thank you very much." you reply and hang up.'
							act 'Continue':gt'housecall','ninel3'
						end
					end
					act 'Go back to bed':
						cla
						*clr
						picrand = RAND(0,6)
						if picrand = 0:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick27.jpg"></center>'
						if picrand = 1:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick21.jpg"></center>'
						if picrand = 2:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick22.jpg"></center>'
						if picrand = 3:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick23.jpg"></center>'
						if picrand = 4:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick24.jpg"></center>'
						if picrand = 5:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick25.jpg"></center>'
						if picrand = 6:'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/sick26.jpg"></center>'
						timerand = RAND(0,5)
						if timerand = 0:minut = minut + 30
						if timerand = 1:minut = minut + 60
						if timerand = 2:minut = minut + 90
						if timerand = 3:minut = minut + 120
						if timerand = 4:minut = minut + 150
						if timerand = 5:minut = minut + 180
						'You lie in bed, shivering while wrapped in a blanket. Time drags by painfully slow. You can''t say how much time passes before the doorbell rings.'
						act 'Open the door':
							if ninelmet > 0 and sick <= 50:
								gt'housecall','ninel1'
							elseif ninelmet = 0 or sick > 50:
								doctrnd = RAND(0,1)
								if doctrnd = 0:dynamic $drPP
								if doctrnd = 1:gt'housecall','ninel0'
							end
						end
					end
				end
			end
		end
	end
}

--- korr2x ---------------------------------

