Attempt to re-write standing items using the new decompressed gfx.

Fix a few bus left over from merge
This commit is contained in:
aerinon
2023-08-23 16:06:31 -06:00
parent 2a789b04e4
commit f1dda4a8c0
6 changed files with 21 additions and 26 deletions

View File

@@ -32,19 +32,22 @@ RequestStandingItemVRAMSlot:
STA.w SprItemGFX,X
; decompress graphics
PHX
LDX.w DynamicDropQueue
REP #$20
LDA.w #DynamicDropGFX-$7E9000
STA.l TileUploadOffsetOverride
SEP #$20
LDA.w DynamicDropQueue
JSL.l GetSpriteID
JSL.l GetAnimatedSpriteTile_variable
; unsure about substitution rules here, because they aren't skipped properly for MW yet
; JSL AttemptItemSubstitutionLong
JSL ResolveLootIDLong
ASL : TAX : LDA.l StandingItemGraphicsOffsets,X
LDX.w ItemQueuePtr
STA.w ItemGFXQueue,X
PLX : PHX
REP #$20
LDA.l FreeUWGraphics,X
LDX.w ItemQueuePtr
STA.w ItemTargetQueue,X
SEP #$20
TXA : INC #2 : STA.w ItemQueuePtr
SEP #$30
PLX