From a6087b0f9335d2445baf7bc3c5e07ee66c6e00be Mon Sep 17 00:00:00 2001 From: yenatch Date: Sat, 5 Jan 2013 00:33:21 -0500 Subject: [PATCH] trainer dvs --- main.asm | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/main.asm b/main.asm index 88f8850e5..fcadb57c1 100644 --- a/main.asm +++ b/main.asm @@ -4328,7 +4328,102 @@ NoEggMoves: SECTION "bank9",DATA,BANK[$9] -INCBIN "baserom.gbc",$24000,$28000 - $24000 +INCBIN "baserom.gbc",$24000,$270c4 - $24000 + +GetTrainerDVs: ; 270c4 +; get dvs based on trainer class +; output: bc + push hl +; dec trainer class so there's no filler entry for $00 + ld a, [OtherTrainerClass] + dec a + ld c, a + ld b, $0 +; seek table + ld hl, TrainerClassDVs + add hl, bc + add hl, bc +; get dvs + ld a, [hli] + ld b, a + ld c, [hl] +; we're done + pop hl + ret +; 270d6 + +TrainerClassDVs ; 270d6 +; AtkDef, SpdSpc + db $9A, $77 ; falkner + db $88, $88 ; bugsy + db $98, $88 ; whitney + db $98, $88 ; morty + db $98, $88 ; pryce + db $98, $88 ; jasmine + db $98, $88 ; chuck + db $7C, $DD ; clair + db $DD, $DD ; rival1 + db $98, $88 ; pokemon prof + db $DC, $DD ; will + db $DC, $DD ; cal + db $DC, $DD ; bruno + db $7F, $DF ; karen + db $DC, $DD ; koga + db $DC, $DD ; champion + db $98, $88 ; brock + db $78, $88 ; misty + db $98, $88 ; lt surge + db $98, $88 ; scientist + db $78, $88 ; erika + db $98, $88 ; youngster + db $98, $88 ; schoolboy + db $98, $88 ; bird keeper + db $58, $88 ; lass + db $98, $88 ; janine + db $D8, $C8 ; cooltrainerm + db $7C, $C8 ; cooltrainerf + db $69, $C8 ; beauty + db $98, $88 ; pokemaniac + db $D8, $A8 ; gruntm + db $98, $88 ; gentleman + db $98, $88 ; skier + db $68, $88 ; teacher + db $7D, $87 ; sabrina + db $98, $88 ; bug catcher + db $98, $88 ; fisher + db $98, $88 ; swimmerm + db $78, $88 ; swimmerf + db $98, $88 ; sailor + db $98, $88 ; super nerd + db $98, $88 ; rival2 + db $98, $88 ; guitarist + db $A8, $88 ; hiker + db $98, $88 ; biker + db $98, $88 ; blaine + db $98, $88 ; burglar + db $98, $88 ; firebreather + db $98, $88 ; juggler + db $98, $88 ; blackbelt + db $D8, $A8 ; executivem + db $98, $88 ; psychic + db $6A, $A8 ; picnicker + db $98, $88 ; camper + db $7E, $A8 ; executivef + db $98, $88 ; sage + db $78, $88 ; medium + db $98, $88 ; boarder + db $98, $88 ; pokefanm + db $68, $8A ; kimono girl + db $68, $A8 ; twins + db $6D, $88 ; pokefanf + db $FD, $DE ; red + db $9D, $DD ; blue + db $98, $88 ; officer + db $7E, $A8 ; gruntf + db $98, $88 ; mysticalman +; 2715c + +INCBIN "baserom.gbc",$2715c,$28000 - $2715c SECTION "bankA",DATA,BANK[$A]