summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-nicknames,-variable-teams,-etc..md6
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: