From 2e2143d8bf9b2ff63e1430a4ce26047e555dc9de Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 13 Jun 2024 21:20:59 -0400 Subject: [PATCH] only allow debug in main game, require L+R+X --- Util/item_cheat.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Util/item_cheat.asm b/Util/item_cheat.asm index 64df59a..eef375a 100644 --- a/Util/item_cheat.asm +++ b/Util/item_cheat.asm @@ -60,7 +60,10 @@ org $068365 org $3CA62A ; Expanded space for our routine { - LDA $F2 : CMP #$30 : BEQ $03 : JMP END ; Check L and R button + LDA.l $7EF3C5 : CMP.b #$02 : BCS .continue ; Check if in main game + RTL + .continue + LDA $F2 : CMP #$70 : BEQ $03 : JMP END ; Check L, R and X button if !BetaRelease = 0 ; How many bombs you have. Can exceed 0x50, up to 0xff. @@ -150,7 +153,7 @@ endif LDA #$03 : STA !Flute LDA #$01 : STA !JumpFeather ; 0 - nothing. 1 - bow w/ no arrows. 2 - bow w/ arrows. 3 - silver arrows - LDA #$02 : STA !Bow + LDA #$03 : STA !Bow ; 0 - nothing. 1 - blue boomerang. 2 - red boomerang LDA #$02 : STA !Boomerang