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 @@
|
|||
AgathasRoom_Script:
|
||||
call AgathaShowOrHideExitBlock
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld hl, AgathaTrainerHeader0
|
||||
ld hl, AgathasRoomTrainerHeaders
|
||||
ld de, AgathasRoom_ScriptPointers
|
||||
ld a, [wAgathasRoomCurScript]
|
||||
call ExecuteCurMapScriptInTable
|
||||
|
|
@ -120,13 +120,15 @@ AgathasRoom_TextPointers:
|
|||
dw AgathaText1
|
||||
dw AgathaDontRunAwayText
|
||||
|
||||
AgathaTrainerHeader0:
|
||||
AgathasRoomTrainerHeaders:
|
||||
def_trainers
|
||||
AgathasRoomTrainerHeader0:
|
||||
trainer EVENT_BEAT_AGATHAS_ROOM_TRAINER_0, 0, AgathaBeforeBattleText, AgathaEndBattleText, AgathaAfterBattleText
|
||||
db -1 ; end
|
||||
|
||||
AgathaText1:
|
||||
text_asm
|
||||
ld hl, AgathaTrainerHeader0
|
||||
ld hl, AgathasRoomTrainerHeader0
|
||||
call TalkToTrainer
|
||||
jp TextScriptEnd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue