Ver Fonte

[fixed] Wrong dispaly of grade in journal.

bgkjdgbizgblzdgbr há 1 ano atrás
pai
commit
435c324f0c
1 ficheiros alterados com 12 adições e 11 exclusões
  1. 12 11
      locations/journal.qsrc

+ 12 - 11
locations/journal.qsrc

@@ -463,23 +463,24 @@ if $ARGS[0] = 'uni':
 		'This semester, you are taking the following elective classes: <<$university[''elective1'']>>, <<$university[''elective2'']>>, <<$university[''elective1'']>>.'
 	end
 
-	i = 1
+	j = 1
 	:semester_loop
-	if university['semester_passed'] = i:
+	if university['semester_passed'] = j:
+		gs 'grades', 'assing_grade_description', 'uni_<<$university[''enrolled_in'']>>_semester_<<j>>'
 		*nl
 		'You passed the'+trim(MID('first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth', i*8-7,7))+' semester with the following grades:'
-		j = 0
+		k = 0
 		:class_loop
-		if $class_list_institution[j] = 'uni_<<$university[''enrolled_in'']>>_semester_<<i>>':
-			'<<$class_list_name[j]>>: <<$class[''<<$class_list_institution[j]>>_<<$class_list_name[j]>>_grade'']>>'
+		if $class_list_institution[k] = 'uni_<<$university[''enrolled_in'']>>_semester_<<j>>':
+			'<<$class_list_name[k]>>: <<$class[''<<$class_list_institution[k]>>_<<$class_list_name[k]>>_grade'']>>'
 		end
-		j += 1
-		if ARRSIZE('class_list_institution') >= j: jump 'class_loop'
-		killvar 'j'
+		k += 1
+		if ARRSIZE('class_list_institution') >= k: jump 'class_loop'
+		killvar 'k'
 	end
-	i += 1
-	if i < 8: jump 'semester_loop'
-	killvar 'i'
+	j += 1
+	if j < 8: jump 'semester_loop'
+	killvar 'j'
 
 	if university['semester_passed'] = university['enrolled_in_semester'] and university['diploma'] = 0:
 		'You need to register for your next semester at the university administration'