Browse 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 4 năm trước cách đây
mục cha
commit
dfb0768f27
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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'