Use BANK("Pics #") for Pokémon and trainer pics

This commit is contained in:
Rangi 2021-05-06 23:04:00 -04:00
parent bb8fdd7f42
commit c8626595b4
3 changed files with 15 additions and 15 deletions

View file

@ -6308,6 +6308,7 @@ LoadPlayerBackPic:
ld de, OldManPicBack
.next
ld a, BANK(RedPicBack)
assert BANK(RedPicBack) == BANK(OldManPicBack)
call UncompressSpriteFromDE
predef ScaleSpriteByTwo
ld hl, wOAMBuffer
@ -6880,7 +6881,7 @@ _LoadTrainerPic:
ld d, a ; de contains pointer to trainer pic
ld a, [wLinkState]
and a
ld a, BANK(TrainerPics) ; this is where all the trainer pics are (not counting Red's)
ld a, BANK("Pics 6") ; this is where all the trainer pics are (not counting Red's)
jr z, .loadSprite
ld a, BANK(RedPicFront)
.loadSprite