Fix the Y index for ShouldCountNormalPot
This commit is contained in:
@@ -157,12 +157,13 @@ RevealPotItem:
|
|||||||
.normal_secret
|
.normal_secret
|
||||||
STA $08
|
STA $08
|
||||||
|
|
||||||
PHY : PHX
|
PHX : PHY
|
||||||
; set bit and count if first time lifting this pot
|
; set bit and count if first time lifting this pot
|
||||||
LDA.b $A0 : ASL : TAY
|
LDA.b $A0 : ASL : TAY
|
||||||
TXA : ASL : TAX : LDA.l BitFieldMasks, X : STA $0A
|
TXA : ASL : TAX : LDA.l BitFieldMasks, X : STA $0A
|
||||||
TYX : LDA.l PotItemSRAM, X : BIT $0A : BNE .obtained
|
TYX : LDA.l PotItemSRAM, X : BIT $0A : BNE .obtained
|
||||||
ORA $0A : STA PotItemSRAM, X
|
ORA $0A : STA PotItemSRAM, X
|
||||||
|
PLY : PHY
|
||||||
JSR ShouldCountNormalPot : BCC .obtained
|
JSR ShouldCountNormalPot : BCC .obtained
|
||||||
; increment dungeon counts
|
; increment dungeon counts
|
||||||
SEP #$30
|
SEP #$30
|
||||||
@@ -174,7 +175,7 @@ RevealPotItem:
|
|||||||
+ REP #$30
|
+ REP #$30
|
||||||
LDA $7EF423 : INC : STA $7EF423 ; Increment Item Total
|
LDA $7EF423 : INC : STA $7EF423 ; Increment Item Total
|
||||||
.obtained
|
.obtained
|
||||||
PLX : PLY
|
PLY : PLX
|
||||||
|
|
||||||
PLA ; remove the JSL return lower 16 bits
|
PLA ; remove the JSL return lower 16 bits
|
||||||
LDA $08
|
LDA $08
|
||||||
|
|||||||
Reference in New Issue
Block a user