Bladeren bron

[chenged/added] Added a varible to check it the university is on break or not.

bgkjdgbizgblzdgbr 11 maanden geleden
bovenliggende
commit
d1214afce5
2 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 1 1
      locations/journal.qsrc
  2. 6 0
      locations/uni_lessons.qsrc

+ 1 - 1
locations/journal.qsrc

@@ -618,7 +618,7 @@ if $ARGS[0] = 'uni':
 		*nl
 		'You need to register for your next semester at the university administration'
 
-	elseif university['semester_week'] <= 0 and university['exam_week'] = 0:
+	elseif university['break'] = 1:
 		*nl
 		'You currently have a break between semesters.'
 		if university['semester_week'] = -1:

+ 6 - 0
locations/uni_lessons.qsrc

@@ -64,6 +64,12 @@ if $ARGS[0] = 'cikl':
 			end
 		end
 	end
+	!! Sets the variable university['break'] to 1 if it is in the break between semesters, 0 otherwise.
+	if university['exam_week'] > 0 or university['semester_week'] > 0:
+		university['break'] = 0
+	else
+		university['break'] = 1
+	end
 end
 
 if $ARGS[0] = 'short_break':