mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-23 05:58:26 +02:00
CLOSES #1478, CLOSES #1479, CLOSES #1488, CLOSES #1510, CLOSES #1511, CLOSES #1514, CLOSES #1521, CLOSES #1522, CLOSES #1545, CLOSES #1557, CLOSES #1563, CLOSES #1565, CLOSES #1566, CLOSES #1577, CLOSES #1594, CLOSES #1596, CLOSES #1606, CLOSES #1608
This commit is contained in:
@@ -1382,7 +1382,8 @@ end
|
||||
-- wTimeOfDay, as the cart numbers it: MORN 0, DAY 1, NITE 2, DARK 3.
|
||||
function Pokegear:timeOfDayIndex()
|
||||
local world = self.game and self.game.world
|
||||
local daytime = (world and world.daytime)
|
||||
-- the unpinned clock split, not the palette pin (pokegear.asm:1456, :1957)
|
||||
local daytime = (world and (world.tod or world.daytime))
|
||||
or Palettes.clockDaytime(self.clock and self.clock.hour or nil)
|
||||
return (Palettes.DAYTIME_ID[daytime] or 2) - 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user