The 'def_trainers' macro checks that trainers' event flag bits are correct (#318)

This commit is contained in:
Rangi 2021-04-13 18:24:37 -04:00 committed by GitHub
parent 2954013da1
commit 506a14084e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 274 additions and 149 deletions

View file

@ -4,7 +4,7 @@ PewterGym_Script:
res 6, [hl]
call nz, .LoadNames
call EnableAutoTextBoxDrawing
ld hl, PewterGymTrainerHeader0
ld hl, PewterGymTrainerHeaders
ld de, PewterGym_ScriptPointers
ld a, [wPewterGymCurScript]
call ExecuteCurMapScriptInTable
@ -86,6 +86,8 @@ PewterGym_TextPointers:
dw PewterGymText5
dw PewterGymText6
PewterGymTrainerHeaders:
def_trainers 2
PewterGymTrainerHeader0:
trainer EVENT_BEAT_PEWTER_GYM_TRAINER_0, 5, PewterGymBattleText1, PewterGymEndBattleText1, PewterGymAfterBattleText1
db -1 ; end