mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-21 20:35:33 +13:00
Add table assertion to TrainerDataPointers (#403)
* Add table assertion to `TrainerDataPointers` * Add table assertion to `TrainerNamePointers`
This commit is contained in:
parent
53805947c3
commit
20ebfd079f
|
|
@ -2,6 +2,7 @@ TrainerNamePointers:
|
||||||
; These are only used for trainers' defeat speeches.
|
; These are only used for trainers' defeat speeches.
|
||||||
; They were originally shortened variants of the trainer class names
|
; They were originally shortened variants of the trainer class names
|
||||||
; in the Japanese versions, but are now redundant with TrainerNames.
|
; in the Japanese versions, but are now redundant with TrainerNames.
|
||||||
|
table_width 2, TrainerNamePointers
|
||||||
dw .YoungsterName
|
dw .YoungsterName
|
||||||
dw .BugCatcherName
|
dw .BugCatcherName
|
||||||
dw .LassName
|
dw .LassName
|
||||||
|
|
@ -49,6 +50,7 @@ TrainerNamePointers:
|
||||||
dw wTrainerName
|
dw wTrainerName
|
||||||
dw wTrainerName
|
dw wTrainerName
|
||||||
dw wTrainerName
|
dw wTrainerName
|
||||||
|
assert_table_length NUM_TRAINERS
|
||||||
|
|
||||||
.YoungsterName: db "YOUNGSTER@"
|
.YoungsterName: db "YOUNGSTER@"
|
||||||
.BugCatcherName: db "BUG CATCHER@"
|
.BugCatcherName: db "BUG CATCHER@"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
TrainerDataPointers:
|
TrainerDataPointers:
|
||||||
|
table_width 2, TrainerDataPointers
|
||||||
dw YoungsterData
|
dw YoungsterData
|
||||||
dw BugCatcherData
|
dw BugCatcherData
|
||||||
dw LassData
|
dw LassData
|
||||||
|
|
@ -46,6 +47,7 @@ TrainerDataPointers:
|
||||||
dw ChannelerData
|
dw ChannelerData
|
||||||
dw AgathaData
|
dw AgathaData
|
||||||
dw LanceData
|
dw LanceData
|
||||||
|
assert_table_length NUM_TRAINERS
|
||||||
|
|
||||||
; if first byte != $FF, then
|
; if first byte != $FF, then
|
||||||
; first byte is level (of all pokemon on this team)
|
; first byte is level (of all pokemon on this team)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue