mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-25 23:11:15 +02:00
chris (and all gen2) fix
This commit is contained in:
@@ -56,9 +56,6 @@ local MAP_GROUP_COUNT = 26 -- constants/map_constants.asm NUM_MAP_GROUPS
|
|||||||
-- "bank13" (../pokecrystal/main.asm:192-195).
|
-- "bank13" (../pokecrystal/main.asm:192-195).
|
||||||
local PAL_MAP_BANK = 0x02
|
local PAL_MAP_BANK = 0x02
|
||||||
local PAL_MAP_BANK_CRYSTAL = 0x13
|
local PAL_MAP_BANK_CRYSTAL = 0x13
|
||||||
-- LoadBallIconGFX.gfx (engine/battle/trainer_huds.asm:225-232); bank $0b
|
|
||||||
-- carries no manifest symbol to resolve it through.
|
|
||||||
local BALL_ICON_GFX = { 0x0b, 0x41a4 }
|
|
||||||
-- A tileset sheet is 96 tiles (128x48 at 8x8), and its PalMap packs two
|
-- A tileset sheet is 96 tiles (128x48 at 8x8), and its PalMap packs two
|
||||||
-- tiles per byte: low nibble first tile, high nibble second (`dn` in the
|
-- tiles per byte: low nibble first tile, high nibble second (`dn` in the
|
||||||
-- tilepal macro). The high bit of each nibble is the VRAM bank, not colour.
|
-- tilepal macro). The high bit of each nibble is the VRAM bank, not colour.
|
||||||
@@ -5716,8 +5713,8 @@ function RomExtractorGen2:extractMenuGfx()
|
|||||||
|
|
||||||
-- Four OAM tiles at $31 -- normal, statused, fainted, empty -- and OBJ
|
-- Four OAM tiles at $31 -- normal, statused, fainted, empty -- and OBJ
|
||||||
-- colour 0 is transparent (engine/battle/trainer_huds.asm:47-99, :225-232).
|
-- colour 0 is transparent (engine/battle/trainer_huds.asm:47-99, :225-232).
|
||||||
local balls = self.symbols["LoadBallIconGFX.gfx"] or BALL_ICON_GFX
|
local balls = self:symbol("LoadBallIconGFX.gfx")
|
||||||
self:write2bpp(self.rom:bytes(balls[1], balls[2], 4 * 16), 32, 8,
|
self:write2bpp(self.rom:bytes(balls.bank, balls.address, 4 * 16), 32, 8,
|
||||||
"battle/hud/balls.png", true)
|
"battle/hud/balls.png", true)
|
||||||
hud.balls = "assets/generated/battle/hud/balls.png"
|
hud.balls = "assets/generated/battle/hud/balls.png"
|
||||||
hud.ballsFirstTile = 0x31
|
hud.ballsFirstTile = 0x31
|
||||||
|
|||||||
@@ -778,6 +778,9 @@ REQUIRED_SYMBOLS = {
|
|||||||
# nine fill cells. "HP:" and the ten HP-bar cells come from
|
# nine fill cells. "HP:" and the ten HP-bar cells come from
|
||||||
# FontBattleExtra, which is already extracted.
|
# FontBattleExtra, which is already extracted.
|
||||||
"EnemyHPBarBorderGFX", "HPExpBarBorderGFX", "ExpBarGFX",
|
"EnemyHPBarBorderGFX", "HPExpBarBorderGFX", "ExpBarGFX",
|
||||||
|
# gfx/battle/balls.2bpp, the four party-ball OAM tiles
|
||||||
|
# (engine/battle/trainer_huds.asm LoadBallIconGFX).
|
||||||
|
"LoadBallIconGFX.gfx",
|
||||||
# gfx/stats/stats_tiles.png + gfx/stats/pages.pal, StatsScreen_LoadFont
|
# gfx/stats/stats_tiles.png + gfx/stats/pages.pal, StatsScreen_LoadFont
|
||||||
# and _CGB_StatsScreenHPPals (#1558)
|
# and _CGB_StatsScreenHPPals (#1558)
|
||||||
"StatsScreenPageTilesGFX", "StatsScreenPagePals",
|
"StatsScreenPageTilesGFX", "StatsScreenPagePals",
|
||||||
|
|||||||
@@ -17024,6 +17024,10 @@
|
|||||||
32,
|
32,
|
||||||
21684
|
21684
|
||||||
],
|
],
|
||||||
|
"LoadBallIconGFX.gfx": [
|
||||||
|
11,
|
||||||
|
16754
|
||||||
|
],
|
||||||
"LoadOpponentTrainerAndPokemon.resample": [
|
"LoadOpponentTrainerAndPokemon.resample": [
|
||||||
126,
|
126,
|
||||||
16418
|
16418
|
||||||
|
|||||||
@@ -15084,6 +15084,10 @@
|
|||||||
64,
|
64,
|
||||||
24169
|
24169
|
||||||
],
|
],
|
||||||
|
"LoadBallIconGFX.gfx": [
|
||||||
|
11,
|
||||||
|
16804
|
||||||
|
],
|
||||||
"LoadOrientedFrontpic": [
|
"LoadOrientedFrontpic": [
|
||||||
20,
|
20,
|
||||||
22948
|
22948
|
||||||
|
|||||||
@@ -15084,6 +15084,10 @@
|
|||||||
64,
|
64,
|
||||||
24169
|
24169
|
||||||
],
|
],
|
||||||
|
"LoadBallIconGFX.gfx": [
|
||||||
|
11,
|
||||||
|
16804
|
||||||
|
],
|
||||||
"LoadOrientedFrontpic": [
|
"LoadOrientedFrontpic": [
|
||||||
20,
|
20,
|
||||||
22948
|
22948
|
||||||
|
|||||||
Reference in New Issue
Block a user