Przeglądaj źródła

[Fixed] Schoolgirl TG defaulting to wrong birthyear also changed the date format to DD/MM/YYYY

Awesome 2 miesięcy temu
rodzic
commit
1067ac66ef

+ 1 - 9
locations/intro_city_select.qsrc

@@ -90,16 +90,8 @@ if $ARGS[0] = 'start2':
 !!make sure this image shows up above the text that shows your birthday
 	!date_toggle = args[1]
 	'<center><img <<$set_imgh>> src="images/system/1_openings/shared/pre_2.jpg"></center>'
-	if birthday < 10 and birthmonth < 10:
-		$startdob = 'Your birthday: <B>0<<birthmonth>>/0<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday < 10 and birthmonth >= 10:
-		$startdob = 'Your birthday: <B><<birthmonth>>/0<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday >= 10 and birthmonth < 10:
-		$startdob = 'Your birthday: <B>0<<birthmonth>>/<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday >= 10 and birthmonth >= 10:
-		$startdob = 'Your birthday: <B><<birthmonth>>/<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	end
 
+	$startdob = 'Your birthday: <B><<mid(100 + birthday, 2, 2)>>/<<mid(100 + birthmonth, 2, 2)>>/<<birthyear>></B> (DD/MM/YYYY)'
 	'<a href="exec:gt ''intro_customization'', ''birthday''"><<$startdob>></a>.'
 
 	act 'Confirm':

+ 3 - 9
locations/intro_sg_select.qsrc

@@ -76,15 +76,9 @@ if $ARGS[0] = 'SGStart2':
 !!make sure this image shows up above the text that shows your birthday
 	!date_toggle = args[1]
 	'<center><img <<$set_imgh>> src="images/system/1_openings/shared/pre_2.jpg"></center>'
-	if birthday < 10 and birthmonth < 10:
-		$startdob = 'Your birthday: <B>0<<birthmonth>>/0<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday < 10 and birthmonth >= 10:
-		$startdob = 'Your birthday: <B><<birthmonth>>/0<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday >= 10 and birthmonth < 10:
-		$startdob = 'Your birthday: <B>0<<birthmonth>>/<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	elseif birthday >= 10 and birthmonth >= 10:
-		$startdob = 'Your birthday: <B><<birthmonth>>/<<birthday>>/<<birthyear>></B> (MM/DD/YYYY)'
-	end
+
+	$startdob = 'Your birthday: <B><<mid(100 + birthday, 2, 2)>>/<<mid(100 + birthmonth, 2, 2)>>/<<birthyear>></B> (DD/MM/YYYY)'
+
 
 	'<a href="exec:gt ''intro_customization'', ''birthday''"><<$startdob>></a>.'
 

+ 2 - 2
locations/intro_sg_tg.qsrc

@@ -15,9 +15,9 @@ if $ARGS[0] = 'start':
 
 	if birthmonth = 0: birthmonth = 4
 	if birthday = 0: birthday = 1
-	if birthyear = 0: birthyear = 1969
+	if birthyear = 0: birthyear = 1999
 	!date_toggle = args[1]
-	$startdob = 'Your birthday: <B><<mid(100 + birthmonth, 2, 2)>>/<<mid(100 + birthday, 2, 2)>>/<<birthyear>></B> (MM/DD/YYYY)'
+	$startdob = 'Your birthday: <B><<mid(100 + birthday, 2, 2)>>/<<mid(100 + birthmonth, 2, 2)>>/<<birthyear>></B> (DD/MM/YYYY)'
 	'<a href= "exec:gt ''intro_customization'', ''birthday''"><<$startdob>></a>.'
 
 	act 'Continue':