Sprite fixes
This commit is contained in:
22
newitems.asm
22
newitems.asm
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user