Skip to content

Commit 365340a

Browse files
committed
Remove crocomire red scrolls from left door in map rando
1 parent 0a1fbf1 commit 365340a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/enemy_rng.asm

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ org $A48753
283283
endif
284284
JSR hook_crocomire_rng
285285

286+
if !FEATURE_PAL
287+
org $A48A9F
288+
else
289+
org $A48A8F
290+
endif
291+
JSR hook_crocomire_scroll
292+
286293
if !FEATURE_PAL
287294
org $A48CED
288295
else
@@ -902,6 +909,23 @@ hook_crocomire_rng:
902909
RTS
903910
}
904911

912+
hook_crocomire_scroll:
913+
{
914+
LDA !ram_door_portal_flags : AND !DOOR_PORTAL_MODE_MASK
915+
CMP #$0002 : BNE .vanilla
916+
LDA !ram_door_destination : ASL : TAX
917+
LDA portals_right_vanilla_table,X : CMP #$93DE : BNE .vanilla
918+
919+
; In map rando when right door selected,
920+
; do not set red scrolls
921+
LDA $7ECD20
922+
RTS
923+
924+
.vanilla
925+
TDC
926+
RTS
927+
}
928+
905929
hook_crocomire_damage:
906930
{
907931
LDA !sram_suppress_flashing : BIT !SUPPRESS_BOSS_DAMAGE_FLASH : BNE .suppress

0 commit comments

Comments
 (0)