Toggle for having mushroom in past

Used the empty bit in INVENTORY_SWAP to add a toggle for mushroom in past
This commit is contained in:
Jonathan Hanon
2019-02-18 02:54:45 -05:00
committed by GitHub
parent 49e2d54155
commit d29448b393

View File

@@ -3,12 +3,12 @@
;================================================================================
!INVENTORY_SWAP = "$7EF38C"
; Item Tracking Slot
; brmp-skf
; brmpnskf
; b = blue boomerang
; r = red boomerang
; m = mushroom
; m = mushroom current
; p = magic powder
; -
; n = mushroom past
; s = shovel
; k = fake flute
; f = working flute
@@ -209,6 +209,7 @@ AddInventory:
BRL .incrementCounts
+ CPY.b #$29 : BNE + ; Mushroom
LDA !INVENTORY_SWAP : ORA #$20 : STA !INVENTORY_SWAP
LDA !INVENTORY_SWAP : ORA #$0F : STA !INVENTORY_SWAP
BRL .incrementCounts
+ CPY.b #$0D : BNE + ; Magic Powder
LDA !INVENTORY_SWAP : ORA #$10 : STA !INVENTORY_SWAP