Parcourir la source

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 il y a 4 ans
Parent
commit
dfb0768f27
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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'