summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pokered.asm38
1 files changed, 35 insertions, 3 deletions
diff --git a/pokered.asm b/pokered.asm
index 83f9a091..01a699bb 100644
--- a/pokered.asm
+++ b/pokered.asm
@@ -1620,9 +1620,41 @@ SECTION "bankD",DATA,BANK[$D]
INCBIN "baserom.gbc",$34000,$4000
SECTION "bankE",DATA,BANK[$E]
-INCBIN "baserom.gbc",$38000,$1D3B
-
-; trainer data: from 5D3B to 652E
+INCBIN "baserom.gbc",$38000,$1D22
+
+; trainer data: from 5D22 to 652E
+
+LoneAttacks: ; 5D22
+; these are used for gym leaders.
+; this is not automatic! you have to write the move you want to $D05C first.
+; e.g., erika's script writes 4 to $D05C to get mega drain.
+
+; first byte: pokemon in the trainer's party that gets the move
+; second byte: move
+; unterminated
+ db 1,BIDE
+ db 1,BUBBLEBEAM
+ db 2,THUNDERBOLT
+ db 2,MEGA_DRAIN
+ db 3,TOXIC
+ db 3,PSYWAVE
+ db 3,FIRE_BLAST
+ db 4,FISSURE
+
+TeamAttacks: ; 5D32
+; these are used for elite four.
+; this is automatic, based on trainer class.
+; don't be confused by LoneAttacks above, the two data structures are
+ ; _completely_ unrelated.
+
+; first byte: trainer (all trainers in this class have this move)
+; second byte: move
+; ff-terminated
+ db LORELEI,BLIZZARD
+ db BRUNO,FISSURE
+ db AGATHA,TOXIC
+ db LANCE,BARRIER
+ db $FF
TrainerDataPointers: ; 5D3B
dw YoungsterData,BugCatcherData,LassData,SailorData,JrTrainerMData