Moved doorrando code. Fixed a multiclient issue with pot switches.

This commit is contained in:
aerinon
2022-04-27 13:47:12 -06:00
parent f0b767885c
commit eb0bc2b7f6
15 changed files with 8 additions and 2 deletions

View File

@@ -222,7 +222,7 @@ org $A38000
incsrc stats/main.asm incsrc stats/main.asm
incsrc menu/overworldmap.asm ; overwrites some code in bank 0A incsrc menu/overworldmap.asm ; overwrites some code in bank 0A
incsrc doorrando.asm ; bank 27 likely A7 in the future incsrc doorrando/doorrando.asm ; bank 27 likely A7 in the future
;bank 28/A8 for keydropshuffle / standing items ;bank 28/A8 for keydropshuffle / standing items
incsrc keydrop/standing_items.asm incsrc keydrop/standing_items.asm
incsrc enemizer/main.asm ; this is originally in bank 36, but is currently in migratory status in bank 37 incsrc enemizer/main.asm ; this is originally in bank 36, but is currently in migratory status in bank 37

View File

@@ -168,12 +168,18 @@ RevealPotItem:
STZ.w SpawnedItemIsMultiWorld STZ.w SpawnedItemIsMultiWorld
BIT.b $08 BIT.b $08
BVS LoadMultiWorldPotItem BVS LoadMultiWorldPotItem
BMI LoadMajorPotItem BMI .major
BRA .normal_secret
.major
JMP LoadMajorPotItem
.normal_secret .normal_secret
STA $08 STA $08
PHX : PHY PHX : PHY
INY : INY
LDA.b [$00],Y : AND.w #$00FF
CMP #$0088 : BEQ .obtained ; skip this step for switches
; set bit and count if first time lifting this pot ; set bit and count if first time lifting this pot
LDA.b $A0 : ASL : TAY LDA.b $A0 : ASL : TAY
TXA : ASL : TAX : LDA.l BitFieldMasks, X : STA $0A TXA : ASL : TAX : LDA.l BitFieldMasks, X : STA $0A