From 7dc71cf1ac8b3eb19be601625364444890860a33 Mon Sep 17 00:00:00 2001 From: cassidoxa Date: Thu, 7 Sep 2023 11:53:24 -0400 Subject: [PATCH] Fix some stats counting --- inventory.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inventory.asm b/inventory.asm index cf660f8..c07eb52 100644 --- a/inventory.asm +++ b/inventory.asm @@ -159,15 +159,15 @@ AddInventory: JSR.w IncrementByOne JSR.w StampItem JSR.w IncrementYAItems - REP #$20 + REP #$30 LDA.l TotalItemCounter : INC : TAY - LDA.l BootsEquipment : BNE + + LDA.l BootsEquipment : AND.w #$00FF : BNE + TYA : STA.l PreBootsLocations + - LDA.l MirrorEquipment : BNE + + LDA.l MirrorEquipment : AND.w #$00FF : BNE + TYA : STA.l PreMirrorLocations + - LDA.l FluteEquipment : BNE + + LDA.l FluteEquipment : AND.w #$00FF : BNE + TYA : STA.l PreFluteLocations + TYA