From 1a6fb0170ea0cb3c42cf1618634cc17ba8d37911 Mon Sep 17 00:00:00 2001 From: Idain Date: Sun, 20 Feb 2022 18:59:00 -0400 Subject: Add `table_width` macro in step 5 --- ...ividual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md | 6 ++++-- 1 file 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: -- cgit v1.2.3