Distinguish Elite 4 "meta" constants from event constants

Fixes #390
This commit is contained in:
Rangi 2022-09-15 18:10:45 -04:00
parent d809d3d59c
commit 3520a4c99a
3 changed files with 6 additions and 4 deletions

View file

@ -715,7 +715,8 @@
; Indigo Plateau events
const_next $8E0
const ELITE4_EVENTS_START
DEF INDIGO_PLATEAU_EVENTS_START EQU const_value
const_skip
const EVENT_BEAT_LORELEIS_ROOM_TRAINER_0
const_skip 4
const EVENT_AUTOWALKED_INTO_LORELEIS_ROOM
@ -735,7 +736,8 @@
const_skip
const EVENT_BEAT_CHAMPION_RIVAL
const_skip 5
const ELITE4_CHAMPION_EVENTS_END
const_skip
DEF INDIGO_PLATEAU_EVENTS_END EQU const_value - 1
; Victory Road 1F events
const_next $910

View file

@ -40,7 +40,7 @@ HallofFameRoomScript2:
ld [wLancesRoomCurScript], a
ld [wHallOfFameCurScript], a
; Elite 4 events
ResetEventRange ELITE4_EVENTS_START, ELITE4_CHAMPION_EVENTS_END, 1
ResetEventRange INDIGO_PLATEAU_EVENTS_START, INDIGO_PLATEAU_EVENTS_END, 1
xor a
ld [wHallOfFameCurScript], a
ld a, PALLET_TOWN

View file

@ -11,7 +11,7 @@ IndigoPlateauLobby_Script:
res 1, [hl]
ret z
; Elite 4 events
ResetEventRange ELITE4_EVENTS_START, EVENT_LANCES_ROOM_LOCK_DOOR
ResetEventRange INDIGO_PLATEAU_EVENTS_START, EVENT_LANCES_ROOM_LOCK_DOOR
ret
IndigoPlateauLobby_TextPointers: