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 @@
|
|||
LancesRoom_Script:
|
||||
call LanceShowOrHideEntranceBlocks
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld hl, LanceTrainerHeader0
|
||||
ld hl, LancesRoomTrainerHeaders
|
||||
ld de, LancesRoom_ScriptPointers
|
||||
ld a, [wLancesRoomCurScript]
|
||||
call ExecuteCurMapScriptInTable
|
||||
|
|
@ -128,13 +128,15 @@ LanceScript3:
|
|||
LancesRoom_TextPointers:
|
||||
dw LanceText1
|
||||
|
||||
LanceTrainerHeader0:
|
||||
LancesRoomTrainerHeaders:
|
||||
def_trainers
|
||||
LancesRoomTrainerHeader0:
|
||||
trainer EVENT_BEAT_LANCES_ROOM_TRAINER_0, 0, LanceBeforeBattleText, LanceEndBattleText, LanceAfterBattleText
|
||||
db -1 ; end
|
||||
|
||||
LanceText1:
|
||||
text_asm
|
||||
ld hl, LanceTrainerHeader0
|
||||
ld hl, LancesRoomTrainerHeader0
|
||||
call TalkToTrainer
|
||||
jp TextScriptEnd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue