Browse Source

[added] preg check for the implant renewal

julzor 4 years ago
parent
commit
473530125b
1 changed files with 23 additions and 13 deletions
  1. 23 13
      locations/medical_din.qsrc

+ 23 - 13
locations/medical_din.qsrc

@@ -46,7 +46,7 @@ if $ARGS[0] = 'birth_control':
 				'"All done! You should be good to go for three years."'
 			else
 				money -= 650
-				'"I''m sorry, but we can''t give you the shot, because you''re pregnant."'
+				'"I''m sorry, but we can''t give you the implant, because you''re pregnant."'
 				'After the initial shock subsides you pay the 650 <b>₽</b> for the test and leave.'
 				thinkpreg = 1
 				knowpreg = 1
@@ -76,21 +76,31 @@ if $ARGS[0] = 'birth_control':
 		end
 			
 		if bc_implant['status'] < 3 and money >= 19650:
-			act 'Renew your birth control implant for 19,650 <b>₽</b> (0:20)':
+			act 'Renew your birth control implant for 19,650 <b>₽</b> (0:35)':
 				*clr & cla
 				menu_off = 1
-				minut += 20
-				money -= 19650
-				bc_implant['status'] = 3
-				bc_implant['timer'] = 1095
-				pillcon += ((pillcon + 15000) / 25) + 4000
-				pillcon2 += ((pillcon2 + 15000) / 25) + 4000
+				minut += 15
 				'<center><img <<$set_imgh>> src="images/locations/shared/clinic/poli.jpg"></center>'
-				'"Everything looks great." She says and gives you a reassuring smile. "Please lie down, the procedure won''t take long."'
-				'She numbs part of your upper arm with a local anesthetic. You have to wait for a few minutes for it to take a effect, before she makes a tiny incision, takes out your old implant and pushes a new one inside your arm.'
-				'"All done! You should be good to go for three years."'
-				
-				act 'Leave': gt $loc, $metka
+				'You are escorted into an examination room, where you are told that say have to do a small test before inserting the implant into your left arm. You wait for fifteen minutes before the nurse comes back in.'
+				if preg = 0:
+					minut += 20
+					money -= 19650
+					bc_implant['status'] = 3
+					bc_implant['timer'] = 1095
+					pillcon += ((pillcon + 15000) / 25) + 4000
+					pillcon2 += ((pillcon2 + 15000) / 25) + 4000
+					'"Everything looks great." She says and gives you a reassuring smile. "Please lie down, the procedure won''t take long."'
+					'She numbs part of your upper arm with a local anesthetic. You have to wait for a few minutes for it to take a effect, before she makes a tiny incision, takes out your old implant and pushes in a new one.'
+					'"All done! You should be good to go for three years."'
+				else
+					bc_implant['status'] = 0
+					bc_implant['timer'] = 0
+					money -= 1650
+					'"I''m sorry, but we can''t give you the implant again, because you''re pregnant."'
+					'After the initial shock subsides you pay the 1650 <b>₽</b> for the test and the removal of your old implant leave.'
+					thinkpreg = 1
+					knowpreg = 1
+				end
 			end
 		elseif bc_implant['status'] < 3 and money < 19650:
 			act 'Renew your control implant for <font color="red">19,650 <b>₽</b></font> (0:35)': '<br><font color="red">You don''t have enough money to renew your birth control implant.</font>'