ソースを参照

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 年 前
コミット
dfb0768f27
1 ファイル変更2 行追加2 行削除
  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'