Fixed issue with vanilla HCBK acting like a small key

This commit is contained in:
codemann8
2024-10-30 10:20:51 -05:00
parent 4b98d44820
commit d3eb4c229f
2 changed files with 8 additions and 4 deletions

View File

@@ -228,6 +228,7 @@ DungeonIncrement:
LDA.w DungeonID : BMI .done LDA.w DungeonID : BMI .done
CMP.l BallNChainDungeon : BNE + CMP.l BallNChainDungeon : BNE +
CPY.b #$32 : BEQ .ballchain_bigkey CPY.b #$32 : BEQ .ballchain_bigkey
CPY.b #$9F : BEQ .ballchain_bigkey
+ +
CMP.b #$00 : BNE + CMP.b #$00 : BNE +
INC #2 INC #2

View File

@@ -432,8 +432,10 @@ CheckIfDropValid:
LDA.w SprSourceItemId, X : STA.w SpawnedItemID LDA.w SprSourceItemId, X : STA.w SpawnedItemID
LDA.w SprItemMWPlayer, X : STA.w SpawnedItemMWPlayer LDA.w SprItemMWPlayer, X : STA.w SpawnedItemMWPlayer
LDY.b #$01 ; trigger the small key routines LDY.b #$01 ; trigger the small key routines
LDA.w SpawnedItemID : STA.b Scrap00 : CMP.b #$32 : BNE + LDA.w SpawnedItemID : STA.b Scrap00
LDA.l StandingItemsOn : BNE + CMP.b #$32 : BEQ ++
CMP.b #$9F : BNE + ; HC BK check
++ LDA.l StandingItemsOn : BNE +
INY ; big key routine INY ; big key routine
+ +
PHX PHX
@@ -702,8 +704,9 @@ db $A0, $A0, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $AA, $AB, $AC, $AD
BigKeyGet: BigKeyGet:
LDY.w SprItemReceipt, X LDY.w SprItemReceipt, X
CPY.b #$32 : BNE + CPY.b #$32 : BEQ ++
STZ.w ItemReceiptMethod : LDY.b #$32 ; what we wrote over CPY.b #$9F : BNE + : LDA.l StandingItemsOn : BNE +; HC BK check
++ STZ.w ItemReceiptMethod : LDY.b #$32 ; what we wrote over
PHX : JSL Link_ReceiveItem : PLX ; what we wrote over PHX : JSL Link_ReceiveItem : PLX ; what we wrote over
CLC : RTL CLC : RTL
+ SEC : RTL + SEC : RTL