1年たつと きのみが育たなくなる理由:計算で忘れられた1年。
A loop that forgets the year 2000
To measure elapsed time, the game converts the cartridge clock's date into a day count. The clock counts years from 2000 (year 0). The loop that adds up past years stops one year early: it never counts year 0. While the clock is in 2000 nothing shows.
But when it rolls from 31 December 2000 to 1 January 2001, the counter drops from 366 to 1: for the game, time just went back a year. Everything waiting for days to pass — growing berries, daily events — stays frozen until the counter catches up, a year later.
The fix is one character: the loop condition goes from 'i > 0' to 'i >= 0'.
Sources : pokeruby src/rtc.c : ConvertDateToDayCount (#ifndef BUGFIX_BERRY), IsLeapYear, RtcCalcTimeDifference