mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-07 16:15:23 +13:00
The 'def_trainers' macro checks that trainers' event flag bits are correct (#318)
This commit is contained in:
parent
2954013da1
commit
506a14084e
71 changed files with 274 additions and 149 deletions
|
|
@ -1,7 +1,7 @@
|
|||
BrunosRoom_Script:
|
||||
call BrunoShowOrHideExitBlock
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld hl, BrunoTrainerHeader0
|
||||
ld hl, BrunosRoomTrainerHeaders
|
||||
ld de, BrunosRoom_ScriptPointers
|
||||
ld a, [wBrunosRoomCurScript]
|
||||
call ExecuteCurMapScriptInTable
|
||||
|
|
@ -117,13 +117,15 @@ BrunosRoom_TextPointers:
|
|||
dw BrunoText1
|
||||
dw BrunoDontRunAwayText
|
||||
|
||||
BrunoTrainerHeader0:
|
||||
BrunosRoomTrainerHeaders:
|
||||
def_trainers
|
||||
BrunosRoomTrainerHeader0:
|
||||
trainer EVENT_BEAT_BRUNOS_ROOM_TRAINER_0, 0, BrunoBeforeBattleText, BrunoEndBattleText, BrunoAfterBattleText
|
||||
db -1 ; end
|
||||
|
||||
BrunoText1:
|
||||
text_asm
|
||||
ld hl, BrunoTrainerHeader0
|
||||
ld hl, BrunosRoomTrainerHeader0
|
||||
call TalkToTrainer
|
||||
jp TextScriptEnd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue