瀏覽代碼

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'