Browse Source

[Fix/added] You will now actually have to pay for the prepatory classes, but are also getting the option to use you card in instead of only cash. Pllus some more restriction on some options.

bgkjdgbizgblzdgbr 2 years ago
parent
commit
064da7086a
1 changed files with 17 additions and 3 deletions
  1. 17 3
      locations/uni_admin.qsrc

+ 17 - 3
locations/uni_admin.qsrc

@@ -48,14 +48,14 @@ if $ARGS[0] = 'start':
 		gt 'uni_grounds', 'main'
 	end
 
-	if university['prep_enrolled'] = 1 and month = 8:
+	if university['prep_enrolled'] = 1 and university['entrance_exam_passed'] = 0 and month = 8:
 		act 'Attend preparatory class (1:00)': gt 'uni_admin', 'take_prep'
 	end
 	!!if graduated school with good grade or 
 	if university['entrance_exam_passed'] = 0 and university['prep_enrolled'] = 1 and month = 8: 
 		act 'Take the entrance exam (1:00)': gt 'uni_admin', 'take_test'
 	end
-	if university['student'] = 0 and university['diploma'] = 0 and age >= 17 and (storyline ! 1 or SchoolAtestat = 1) and month < 9:
+	if (university['entrance_exam_passed'] = 1 or university['prep_enrolled'] = 0) and university['student'] = 0 and university['diploma'] = 0 and age >= 17 and (storyline ! 1 or SchoolAtestat = 1) and month < 9:
 		act 'Enroll at the University': gt 'uni_admin', 'enrollment'
 	end
 	!!the if below should only show up if Sveta tried to enroll and didn''t or couldn''t pay for the classes before
@@ -133,9 +133,23 @@ end
 
 if $ARGS[0] = 'prep_pay':
 	if money >= 15000:
-		act 'Pay for the preparatory classes 15000<b>₽</b>)':
+		act 'Pay for the preparatory classes 15000<b>₽</b>) (Cash)':
 			cla & *clr
 			minut += 10
+			money -= 15000
+			gs 'stat'
+			university['prep_enrolled'] = 1
+			'<center><b><font color="maroon">Enrollment office</font></b></center>'
+			'<center><img <<$set_imgh>> src="images/locations/city/island/university/admin/payment.jpg"></center>'
+			'You go back to the enrollment office, paying 15000<b>₽</b> for the preparatory classes. They are held every weekday until <b>21:00</b>.'
+			act 'Leave':gt 'uni_admin', 'start'
+		end
+	end
+	if karta >= 15000:
+		act 'Pay for the preparatory classes 15000<b>₽</b>) (Card)':
+			cla & *clr
+			minut += 10
+			karta -= 15000
 			gs 'stat'
 			university['prep_enrolled'] = 1
 			'<center><b><font color="maroon">Enrollment office</font></b></center>'