mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-23 14:07:34 +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:
+4
-3
@@ -609,9 +609,10 @@ function Game:draw()
|
||||
-- ...and for the same reason the UI's own scale has to know the world is
|
||||
-- still the backdrop while an opaque menu covers it. Renderer:uiScale
|
||||
-- steps the UI down with the survey zoom only while a world is behind it,
|
||||
-- gated on this frame's world pass -- which the party menu and the bag end
|
||||
-- by being opaque. Without this hold they lose the step-down and blit at
|
||||
-- full fit scale over a battle drawn at the zoomed-out one.
|
||||
-- gated on this frame's world pass -- which the party menu ends by being
|
||||
-- opaque (the bag's item box shows the map around it, #1521). Without
|
||||
-- this hold it loses the step-down and blits at full fit scale over a
|
||||
-- battle drawn at the zoomed-out one.
|
||||
Renderer.uiWorldHold = Renderer.battleDim ~= nil
|
||||
-- ...and a battle keeps its dialogue box and YES/NO inside its own screen
|
||||
-- instead of letting them dock to the window edge.
|
||||
|
||||
@@ -220,6 +220,9 @@ function Save.newGame(opts)
|
||||
phoneContacts = {},
|
||||
tradeFlags = {},
|
||||
pokedex = { seen = {}, caught = {} },
|
||||
-- wLastDexMode (engine/pokedex/pokedex.asm:59-61): the sort mode the
|
||||
-- #DEX reopens in. NEW_MODE is the cart's zero byte.
|
||||
lastDexMode = "NEW",
|
||||
-- wUnownDex: the distinct Unown FORMS caught, in catching order. A second
|
||||
-- record beside the #DEX because the #DEX knows only the species
|
||||
-- (src/core/gen2/Unown.lua).
|
||||
@@ -685,6 +688,12 @@ function Save.validate(save)
|
||||
scrubEvents(save, report)
|
||||
scrubMapScenes(save, report)
|
||||
scrubPlayerState(save, report)
|
||||
-- wLastDexMode: only the three modes the #DEX has (PokedexMenu MODES);
|
||||
-- a hand-edited value falls back to NEW_MODE, the cart's zero byte
|
||||
if save.lastDexMode ~= "NEW" and save.lastDexMode ~= "OLD"
|
||||
and save.lastDexMode ~= "A-Z" then
|
||||
save.lastDexMode = "NEW"
|
||||
end
|
||||
-- The `mailmsg` structs get the same treatment for the same reason: their
|
||||
-- `type` byte is an item id nothing else in the save vouches for, and a
|
||||
-- party key outside 1..6 or a MAILBOX past MAILBOX_CAPACITY is a region the
|
||||
|
||||
Reference in New Issue
Block a user