fix: minor drops shouldn't drop if outside of proper dungeon

This commit is contained in:
aerinon
2024-03-14 13:28:54 -06:00
parent 0d18000070
commit 364fd81a93

View File

@@ -433,9 +433,7 @@ RevealSpriteDrop:
JMP DoNormalDrop JMP DoNormalDrop
CheckIfDropValid: CheckIfDropValid:
LDA.l SprItemFlags, X : BIT #$80 : BNE .do_the_drop ; it's a minor item
JSR CheckIfDropsInThisLocation : BCC DoNormalDrop JSR CheckIfDropsInThisLocation : BCC DoNormalDrop
.do_the_drop
;This section sets up the drop ;This section sets up the drop
LDA.b #$02 : STA.l SpawnedItemFlag LDA.b #$02 : STA.l SpawnedItemFlag
STX.w SpawnedItemIndex STX.w SpawnedItemIndex