underwater tileset shit, brings number of errors down to 20

it's currently missing the custom palette but if I did I'd need to fuck with the code for it anyway when I add it properly when this stuff works so I dont think that's a big deal
This commit is contained in:
Zeta_Null 2024-12-29 16:50:30 -05:00
parent ef27eaf9ec
commit 29fc26f144
9 changed files with 78 additions and 1 deletions

View file

@ -227,4 +227,27 @@ LoadDesertPalette:
jp FarCopyWRAM
ret
INCLUDE "gfx/tilesets/desert.pal"
INCLUDE "gfx/tilesets/desert.pal"
LoadSpecialMapObjectPalette:
ld a, [wMapTileset]
cp TILESET_UNDERWATER
jr z, .underwater
jr .do_nothing
.underwater
call LoadUnderwaterObjectPalette
scf
ret
.do_nothing
and a
ret
LoadUnderwaterObjectPalette:
ld a, BANK(wOBPals1)
ld de, wOBPals1
ld hl, UnderwaterObjectPalette
ld bc, 8 palettes
call FarCopyWRAM
ret
UnderwaterObjectPalette:
INCLUDE "gfx/tilesets/underwater_sprites.pal"