From fa484ec987a345493331ac47c030c323766f07ad Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Mon, 4 Sep 2023 17:59:42 -0500 Subject: [PATCH] Fix picked up items not going in inventory --- hardmode.asm | 2 +- hooks.asm | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hardmode.asm b/hardmode.asm index af1300a..d6f54b6 100644 --- a/hardmode.asm +++ b/hardmode.asm @@ -82,7 +82,7 @@ GetItemDamageValue: LDA.l SpecialWeapons : AND.b #$7F : CMP.b #$02 : BNE .normal TXA : AND.b #$78 : CMP.b #$28 : BNE .normal - LDA.l $8DB8F1, X : BEQ .noDamage + LDA.l $0DB8F1, X : BEQ .noDamage LDA.b #$01 RTL diff --git a/hooks.asm b/hooks.asm index 07d1fb9..f03acd7 100755 --- a/hooks.asm +++ b/hooks.asm @@ -1012,6 +1012,13 @@ LDA.w AddReceivedItemExpanded_item_target_addr+1, X org $09861F ; 4861F - ancilla_init.asm:724 (LDA .item_values, Y) LDA.w AddReceivedItemExpanded_item_values, Y +org $098627 ; 48627 - ancilla_init.asm:731 (LDA .item_target_addr+0, X) +LDA.w AddReceivedItemExpanded_item_target_addr+0, X +org $09862C ; 4862C - ancilla_init.asm:722 (LDA .item_target_addr+1, X) +LDA.w AddReceivedItemExpanded_item_target_addr+1, X +org $098635 ; 48635 - ancilla_init.asm:727 (LDA .item_values, Y) +LDA.w AddReceivedItemExpanded_item_values, Y + org $0986AA ; 486AA - ancilla_init.asm:848 (LDA .item_masks, X) LDA.w AddReceivedItemExpanded_item_masks, X