More Battle Tower shenanigans

This commit is contained in:
PikalaxALT
2015-11-07 14:38:52 -05:00
parent eb39f6a339
commit 09603bf031
10 changed files with 523 additions and 503 deletions

View File

@@ -1,13 +1,13 @@
Function_LoadOpponentTrainerAndPokemons: ; 1f8000
ld a, [rSVBK]
push af
ld a, BANK(BT_OTrainer)
ld a, BANK(BT_OTTrainer)
ld [rSVBK], a
; Fill BT_OTrainer with zeros
; Fill BT_OTTrainer with zeros
xor a
ld hl, BT_OTrainer
ld bc, BT_OTrainerEnd - BT_OTrainer
ld hl, BT_OTTrainer
ld bc, BT_OTTrainerEnd - BT_OTTrainer
call ByteFill
; Write $ff into the Item-Slots
@@ -17,7 +17,7 @@ Function_LoadOpponentTrainerAndPokemons: ; 1f8000
ld [BT_OTPkmn3Item], a
; Set BT_OTTrainer as start address to write the following data to
ld de, BT_OTrainer
ld de, BT_OTTrainer
ld a, [hRandomAdd]
ld b, a