tables.asm: Add GFX pointer to table in utilities.asm

This commit is contained in:
cassidoxa
2022-09-09 19:30:16 -04:00
parent 031e3965b2
commit f8d9be201a
2 changed files with 9 additions and 3 deletions

View File

@@ -1064,8 +1064,14 @@ db $00, $00, $00
org $308358
AllowAccidentalMajorGlitch:
db $00
;--------------------------------------------------------------------------------
; GFX pointer (0x180359 - 0x18035B)
; For 3rd party sprite stuff
;--------------------------------------------------------------------------------
org $308359
dl GfxPalettes
;================================================================================
; 0x180359 - 0x1814FF (unused)
; 0x18035C - 0x1814FF (unused)
;================================================================================
; $309500 (0x181500) - $309FFF (0x181FFF) original 0x39C bytes
; Replacement Ending Sequence Text Data

View File

@@ -175,7 +175,7 @@ GetSpritePalette:
PHX
PHB : PHK : PLB
;--------
TAX : LDA.l .gfxPalettes, X ; look up item gfx
TAX : LDA.l GfxPalettes, X ; look up item gfx
PLB : PLX
CMP.b #$F8 : !BGE .specialHandling
RTL
@@ -236,7 +236,7 @@ RTL
;DATA - Loot Identifier to Sprite Palette
{
.gfxPalettes
GfxPalettes:
db $00, $04, $02, $08, $04, $02, $08, $02
db $04, $02, $02, $02, $04, $04, $04, $08