Various GFX fixes
This commit is contained in:
@@ -160,12 +160,9 @@ HPItemReset:
|
|||||||
.skip
|
.skip
|
||||||
PLA
|
PLA
|
||||||
.done
|
.done
|
||||||
PHA : PHY
|
PHA
|
||||||
LDY.b #$0F
|
JSL HeartPieceSetRedraw
|
||||||
- LDA.w SpriteAITable,Y : BEQ +
|
PLA
|
||||||
LDA.b #$01 : STA.w SprRedrawFlag, Y
|
|
||||||
+ DEY : BPL -
|
|
||||||
PLY : PLA
|
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
MaybeMarkDigSpotCollected:
|
MaybeMarkDigSpotCollected:
|
||||||
|
|||||||
@@ -182,8 +182,15 @@ FreeOWGraphics:
|
|||||||
; Returns with Carry flag set if gfx drawing was skipped
|
; Returns with Carry flag set if gfx drawing was skipped
|
||||||
DrawPotItem:
|
DrawPotItem:
|
||||||
PHA
|
PHA
|
||||||
|
; TODO: Figure out a better way to stop items during transitions, or figure
|
||||||
|
; out how to get narrow items to continue drawing narrow during transitions
|
||||||
|
; This has a side effect of ItemID $00 (unused in rando currently)
|
||||||
|
; disappearing during various submodule uses, like dialogue/trap door actions
|
||||||
|
CMP.b #$00 : BNE +
|
||||||
|
LDA.b GameSubMode : BEQ +
|
||||||
|
PLA : SEC : RTL
|
||||||
; TODO: allow drawing if gfx are not using a VRAM slot that changes during medallion
|
; TODO: allow drawing if gfx are not using a VRAM slot that changes during medallion
|
||||||
LDA.b IndoorsFlag : BEQ + ; OW current doesn't occupy any slots that medallion gfx do
|
+ LDA.b IndoorsFlag : BEQ + ; OW current doesn't occupy any slots that medallion gfx do
|
||||||
LDA.w GfxChrHalfSlotVerify : CMP.b #$03 : BCC +
|
LDA.w GfxChrHalfSlotVerify : CMP.b #$03 : BCC +
|
||||||
PLA : SEC : RTL
|
PLA : SEC : RTL
|
||||||
+
|
+
|
||||||
@@ -245,11 +252,10 @@ DrawPotItem:
|
|||||||
+ ; narrow
|
+ ; narrow
|
||||||
LDA.w SpriteTypeTable, X : AND.w #$00FF : CMP.w #$003B : BEQ .draw ; bonk item
|
LDA.w SpriteTypeTable, X : AND.w #$00FF : CMP.w #$003B : BEQ .draw ; bonk item
|
||||||
LDA.b RoomIndex : CMP.w #$0120 : BNE +
|
LDA.b RoomIndex : CMP.w #$0120 : BNE +
|
||||||
LDA.b IndoorsFlag : BNE .draw ; good bee statue
|
LDA.b IndoorsFlag : BEQ .draw ; good bee statue
|
||||||
+
|
+
|
||||||
; TODO: Figure out how to target bottle vendor fish item better than this
|
LDA.b OverworldIndex : AND.w #$00FF : CMP.w #$0018 : BNE +
|
||||||
LDA.b OverworldIndex : AND.w #$00FF : CMP.w #$0018 : BNE +
|
LDA.w SpriteTypeTable, X : AND.w #$00FF : CMP.w #$00E4 : BEQ .draw ; bottle vendor key
|
||||||
LDA.b IndoorsFlag : BEQ .draw ; bottle vendor key
|
|
||||||
+
|
+
|
||||||
LDA.w #$0004
|
LDA.w #$0004
|
||||||
STA.w SpriteDynamicOAM : STA.w SpriteDynamicOAM+8
|
STA.w SpriteDynamicOAM : STA.w SpriteDynamicOAM+8
|
||||||
|
|||||||
Reference in New Issue
Block a user