diff options
author | Idain <luiscarlosholguinperez@outlook.com> | 2022-02-20 18:59:00 -0400 |
---|---|---|
committer | Idain <luiscarlosholguinperez@outlook.com> | 2022-02-20 18:59:00 -0400 |
commit | 1a6fb0170ea0cb3c42cf1618634cc17ba8d37911 (patch) | |
tree | 36878356079c2d562cc5519788fe2bf2046f59fc | |
parent | d7e34709be68f0b176ad14a1aae134f5704af648 (diff) |
Add `table_width` macro in step 5
-rw-r--r-- | Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md b/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md index a0eeff1..7de8404 100644 --- a/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md +++ b/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md @@ -856,7 +856,7 @@ If you're adding more trainers, *and* more data for those trainers, you'll proba Edit [wram.asm](../blob/master/wram.asm) again: ```diff -wOtherTrainerType:: db + wOtherTrainerType:: db +wTrainerGroupBank:: db - ds 3 + ds 2 @@ -869,15 +869,17 @@ Edit [data/trainers/party_pointers.asm](../blob/master/data/trainers/party_point ```diff TrainerGroups: ; entries correspond to trainer classes (see constants/trainer_constants.asm) +- table_width 2, TrainerGroups - dw FalknerGroup - ... - dw MysticalmanGroup ++ table_width 3, TrainerGroups + dba FalknerGroup + ... + dba MysticalmanGroup ``` -We're just replacing `dw` with `dba` everywhere. Each table entry now has a third byte to declare which bank it's in, instead of expecting all the entries to be in `BANK(Trainers)`. +We're just replacing `dw` with `dba` everywhere along with changing the table's length defined by the `table_width` macro. Each table's entry now has a third byte to declare which bank it's in, instead of expecting all the entries to be in `BANK(Trainers)`. Edit [engine/battle/read_trainer_party.asm](../blob/master/engine/battle/read_trainer_party.asm) again: |