Sprite fixes

This commit is contained in:
cassidoxa
2023-08-25 01:38:32 -04:00
parent 247128b9f6
commit 1cbcd1d5ff
7 changed files with 89 additions and 46 deletions

View File

@@ -626,7 +626,12 @@ ItemBehavior:
.pendant
SEP #$20
LDA.l PendantCounter : INC : STA.l PendantCounter
LSR
SEC : SBC.b #$37
TAX
LDA.w PendantMasks,X : AND.l PendantsField : BNE +
LDA.l PendantCounter : INC : STA.l PendantCounter
+
RTS
.dungeon_crystal
@@ -645,9 +650,12 @@ ItemBehavior:
DEX
BPL -
SEP #$20
ORA.l CrystalsField : STA.l CrystalsField
LDA.l CrystalCounter : INC : STA.l CrystalCounter
TAX
AND.l CrystalsField : BNE +
TXA
ORA.l CrystalsField : STA.l CrystalsField
LDA.l CrystalCounter : INC : STA.l CrystalCounter
+
.done
RTS
@@ -657,7 +665,7 @@ ResolveReceipt:
JSL.l PreItemGet
LDA.w ItemReceiptID
.get_item
JSR.w AttemptItemSubstitution
JSL.l AttemptItemSubstitution
JSR.w HandleBowTracking
JSR.w ResolveLootID
.have_item
@@ -1013,7 +1021,7 @@ AttemptItemSubstitution:
BRA -
.exit
PLA : PLX
RTS
RTL
;--------------------------------------------------------------------------------
CountBottles:
PHX
@@ -1121,3 +1129,5 @@ dw $0004 ; EP
dw $0002 ; HC
dw $0000 ; Sewers
PendantMasks:
db $04, 01, 02