fix: MW item substitution

This commit is contained in:
Randall Rupper
2023-11-22 13:13:44 -07:00
parent 687f6b25bd
commit 9ac2156945
2 changed files with 2 additions and 1 deletions

View File

@@ -1076,7 +1076,7 @@ RTS
;--------------------------------------------------------------------------------
AttemptItemSubstitution:
PHX : PHA
LDA.l !MULTIWORLD_ITEM_PLAYER_ID : BNE .exit
LDA.l !MULTIWORLD_SPRITEITEM_PLAYER_ID : BNE .exit
LDX.b #$00
-
LDA.l ItemSubstitutionRules, X

View File

@@ -185,6 +185,7 @@ RTL
; Randomize Zora King
;--------------------------------------------------------------------------------
LoadZoraKingItemGFX:
LDA.l ZoraItem_Player : : STA.l !MULTIWORLD_SPRITEITEM_PLAYER_ID
LDA.l $9DE1C3 ; location randomizer writes zora item to
JSL.l AttemptItemSubstitution
JSL.l ResolveLootIDLong