summaryrefslogtreecommitdiff
path: root/misc/battle_tower_47.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-11-20 15:15:32 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2015-11-20 15:15:32 -0500
commit7b3090e22aefffa464570ac34665ee8e43df873d (patch)
treedf5bc383b2f1ed2a8ebdd358306f3f9742f41d5c /misc/battle_tower_47.asm
parent812976cee6ba39d50583921273ad85195e77be37 (diff)
Annotate battle tower text bug
Diffstat (limited to 'misc/battle_tower_47.asm')
-rwxr-xr-xmisc/battle_tower_47.asm12
1 files changed, 9 insertions, 3 deletions
diff --git a/misc/battle_tower_47.asm b/misc/battle_tower_47.asm
index 91efccc1b..58f527868 100755
--- a/misc/battle_tower_47.asm
+++ b/misc/battle_tower_47.asm
@@ -11,6 +11,12 @@ IF DEF(CRYSTAL11)
ld hl, BT_OTTrainerClass
ELSE
ld hl, BT_OTName + 5
+; BUG ALERT
+; Instead of loading the Trainer Class, this routine
+; loads the 6th character in the Trainer's name, then
+; uses it to get the gender of the trainer.
+; As a consequence, the enemy trainer's dialog will
+; always be sampled from the female array.
ENDC
ld a, [hl]
dec a
@@ -2888,7 +2894,7 @@ Function11d323: ; 11d323
ld a, $5
ld [rSVBK], a
ld hl, Palette_11d33a
- ld de, wMapPals
+ ld de, UnknBGPals
ld bc, 16 * 8
call CopyBytes
pop af
@@ -3015,7 +3021,7 @@ Function11d3ef: ; 11d3ef
ld a, [hli]
ld b, a
push hl
- ld hl, wMapPals
+ ld hl, UnknBGPals
add hl, de
ld a, [wcd2d]
ld e, a
@@ -4174,7 +4180,7 @@ Unknown_11f23c:
db $ac, $05, $15, $00
db $00, $00, $09, $00
-BTTrainerClassGenders:
+BTTrainerClassGenders: ; 11f2f0
db MALE ; FALKNER
db FEMALE ; WHITNEY
db FEMALE ; BUGSY