Fix bonk key double count
This commit is contained in:
@@ -65,11 +65,9 @@ GiveBonkItem:
|
|||||||
PHY : LDY.b #$24 : JSL.l AddInventory : PLY ; do inventory processing for a small key
|
PHY : LDY.b #$24 : JSL.l AddInventory : PLY ; do inventory processing for a small key
|
||||||
LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys
|
LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys
|
||||||
LDA.b #$2F : JSL.l Sound_SetSfx3PanLong
|
LDA.b #$2F : JSL.l Sound_SetSfx3PanLong
|
||||||
JSL CountBonkItem
|
|
||||||
RTL
|
RTL
|
||||||
.notKey
|
.notKey
|
||||||
PHY : TAY : JSL.l Link_ReceiveItem : PLY
|
PHY : TAY : JSL.l Link_ReceiveItem : PLY
|
||||||
JSL CountBonkItem
|
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
LoadBonkItem:
|
LoadBonkItem:
|
||||||
|
|||||||
19
stats.asm
19
stats.asm
@@ -146,25 +146,6 @@ CountChestKey:
|
|||||||
PLX : PLA
|
PLX : PLA
|
||||||
RTS
|
RTS
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
CountBonkItem: ; called from GetBonkItem in bookofmudora.asm
|
|
||||||
LDA.b RoomIndex
|
|
||||||
CMP.b #115 : BNE +
|
|
||||||
LDA.l BonkKey_Desert
|
|
||||||
BRA ++
|
|
||||||
+
|
|
||||||
CMP.b #140 : BNE +
|
|
||||||
LDA.l BonkKey_GTower : BRA ++
|
|
||||||
+
|
|
||||||
LDA.b #$24
|
|
||||||
++
|
|
||||||
CMP.b #$24 : BNE +
|
|
||||||
PHY
|
|
||||||
TAY
|
|
||||||
JSR CountChestKey
|
|
||||||
PLY
|
|
||||||
+
|
|
||||||
RTL
|
|
||||||
;--------------------------------------------------------------------------------
|
|
||||||
IncrementAgahnim2Sword:
|
IncrementAgahnim2Sword:
|
||||||
PHA
|
PHA
|
||||||
JSL.l IncrementBossSword
|
JSL.l IncrementBossSword
|
||||||
|
|||||||
Reference in New Issue
Block a user