Jelajahi Sumber

Fix the birthyear calculation on character creation

When creating a character, the logic goes that entering in a birthday
after June 1st will cause the year to go one lower, unfortunately the
logic for going within June will never work, as it takes into account
the wrong variable, using day rather than birthday. This fixes that.
Joshua Gwinn 4 tahun lalu
induk
melakukan
dfb0768f27
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      locations/preSYS.qsrc

+ 2 - 2
locations/preSYS.qsrc

@@ -144,7 +144,7 @@ if $ARGS[0] = 'CSBStart':
 		
 		if date_toggle ! 1:
 			if birthmonth >= 7: birthyear -= 1
-			if birthmonth = 6 and day > 1: birthyear -= 1
+			if birthmonth = 6 and birthday > 1: birthyear -= 1
 		end
 		
 		killvar '$startdob'
@@ -299,7 +299,7 @@ if $ARGS[0] = 'SGStart2':
 		!!This is to account for the school year not matching up with the calendar year.
 		if date_toggle ! 1:
 			if birthmonth >= 7: birthyear -= 1
-			if birthmonth = 6 and day > 1: birthyear -= 1
+			if birthmonth = 6 and birthday > 1: birthyear -= 1
 		end
 		killvar '$startdob'
 		killvar 'date_toggle'