diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2021-04-13 18:24:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 18:24:37 -0400 |
commit | 506a14084e32d7532b8400a6457f46492bbc47ab (patch) | |
tree | 60ce89cfa9dc1158c5e8a8353ef96fba810c929c /scripts/PewterGym.asm | |
parent | 2954013da1f10e11db4ec96f9586b7c01706ae1a (diff) |
The 'def_trainers' macro checks that trainers' event flag bits are correct (#318)
Diffstat (limited to 'scripts/PewterGym.asm')
-rw-r--r-- | scripts/PewterGym.asm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/PewterGym.asm b/scripts/PewterGym.asm index ba0bdd00..f65d5506 100644 --- a/scripts/PewterGym.asm +++ b/scripts/PewterGym.asm @@ -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 |