Prevent prizes dropping in dungeons where they shouldn't (including cave state) and fix rain state items/tablets.

This commit is contained in:
KrisDavie
2025-11-29 15:34:23 +01:00
committed by aerinon
parent 68c511d6be
commit 761365927f
3 changed files with 34 additions and 1 deletions

View File

@@ -246,6 +246,12 @@ LoadOutdoorValue:
PHP
REP #$20 ; set 16-bit accumulator
LDA.b OverworldIndex
; Rain state fix: In rain state DW, use LW screen ID for item lookup
BIT.w #$0040 : BEQ +
LDA.l ProgressIndicator : AND.w #$00FF : CMP.w #$0002
LDA.b OverworldIndex : BCS ++ : AND.w #$00BF
++
+
CMP.w #$03 : BNE +
LDA.b LinkPosX : CMP.w #1890 : !BLT ++
%GetPossiblyEncryptedItem(HeartPiece_Spectacle, HeartPieceOutdoorValues)