Browse Source

[changed] Changed cardial numbers to ordinal numbers.

bgkjdgbizgblzdgbr 2 years ago
parent
commit
c98cfd153d
1 changed files with 9 additions and 3 deletions
  1. 9 3
      locations/journal.qsrc

+ 9 - 3
locations/journal.qsrc

@@ -1469,11 +1469,13 @@ if $ARGS[0] = 'outcasts':
 end
 
 if $ARGS[0] = 'uni':
+	*clr & cla
+	'<center><h2>University</h2></center>'
 	
 	if university['diploma'] > 0:
 		'You have graduated from The University of St. Petersburg with degree in '+func('uni_programs', 'program_name')+'.'
 	else
-		'You have are enrolled in semester <<university[''enrolled_in_semester'']>> of the '+func('uni_programs', 'program_name')+' at The University of St. Petersburg.'
+		'You have are enrolled in the '+trim(MID('  first, second,  third, fourth,  fifth,  sixth,seventh, eighth,  ninth,  tenth', university['enrolled_in_semester']*8-7,7))+' semester of the '+func('uni_programs', 'program_name')+' at The University of St. Petersburg.'
 	end
 
 	if $university['elective1'] ! '' or $university['elective2'] ! '' or $university['elective3'] ! '':
@@ -1485,7 +1487,7 @@ if $ARGS[0] = 'uni':
 	:semester_loop
 	if university['semester_passed'] = i:
 		*nl
-		'You passed semester <<i>> with the following grades:'
+		'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
 		:class_loop
 		if $class_list_institution[j] = 'uni_<<$university[''enrolled_in'']>>_semester_<<i>>':
@@ -1515,7 +1517,11 @@ if $ARGS[0] = 'uni':
 		'Thursday: '+func('uni_programs', 'uni_period_first', 'thursday')+' '+func('uni_programs', 'uni_period_second', 'thursday')+' '+func('uni_programs', 'uni_period_third', 'thursday')
 
 	elseif university['semester_week'] > 0:
-		'You are in the <<university[''semester_week'']>> week of the semester which last 15 weeks.'
+		if university['semester_week'] < 11:
+			'You are in the '+trim(MID('  first, second,  third, fourth,  fifth,  sixth,seventh, eighth,  ninth,  tenth', university['semester_week']*8-7,7))+' week of the semester which last 15 weeks.'
+		else
+			'You are in the '+str(university['semester_week'])+'th week of the semester which last 15 weeks.'
+		end
 
 		'<center><h2>Class schedule</h2></center>'