0
0
فهرست منبع

[fixed] move call to function to update legacy university vars to saveupdater (the file for updating vars when loading a save) instead of having it run as part of every call to get the player's current university enrollment status

Spackled Lanturn 3 سال پیش
والد
کامیت
5e0d471864
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 0
      locations/saveupdater.qsrc
  2. 0 4
      locations/uniutil.qsrc

+ 5 - 0
locations/saveupdater.qsrc

@@ -869,5 +869,10 @@ end
 if npc_sex['A14'] > 1: npc_sex['A14'] = 1
 if npc_sex['A16'] > 1: npc_sex['A16'] = 1
 
+!! University related vars update
+if student >= 0:
+	gs 'uniutil', 'transfer_legacy_vars'
+end
+
 --- saveupdater ---------------------------------
 

+ 0 - 4
locations/uniutil.qsrc

@@ -165,10 +165,6 @@ end
 
 if $ARGS[0] = 'student':
 	if $ARGS[1] = 'status':
-		if student >= 0:
-			gs 'uniutil', 'transfer_legacy_vars'
-		end
-
 		if student > 0:
 			uni_semvdateres = func('uniutil', 'check_semester_vs_date')