Unrelated routine gets its own file

This commit is contained in:
Remy Oukaour 2018-01-21 17:45:56 -05:00
parent 5db31feba9
commit 5e4fa42fa7
3 changed files with 22 additions and 23 deletions

View File

@ -0,0 +1,21 @@
Unreferenced_GetGen1TrainerClassName: ; 50a28
ld hl, Gen1TrainerClassNames
ld a, [TrainerClass]
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
ld de, StringBuffer1
.copy
ld a, [hli]
ld [de], a
inc de
cp "@"
jr nz, .copy
ret
INCLUDE "data/unused/gen_1_trainer_names.asm"

View File

@ -97,26 +97,3 @@ GetTypeName: ; 50964
INCLUDE "data/types/names.asm"
Unreferenced_GetGen1TrainerClassName: ; 50a28
ld hl, Gen1TrainerClassNames
ld a, [TrainerClass]
dec a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
ld de, StringBuffer1
.copy
ld a, [hli]
ld [de], a
inc de
cp "@"
jr nz, .copy
ret
INCLUDE "data/unused/gen_1_trainer_names.asm"

View File

@ -253,6 +253,7 @@ INCLUDE "engine/events/basement_key.asm"
INCLUDE "engine/events/sacred_ash.asm"
INCLUDE "engine/tempmon.asm"
INCLUDE "engine/types.asm"
INCLUDE "engine/routines/unreferenced_getgen1trainerclassname.asm"
INCLUDE "engine/mon_stats.asm"
INCLUDE "engine/routines/initlist.asm"
INCLUDE "engine/experience.asm"