Move code out of data/

This commit is contained in:
Remy Oukaour
2018-01-16 18:07:06 -05:00
parent 5407d8de92
commit 01ba6bed88
4 changed files with 54 additions and 52 deletions

View File

@@ -35,7 +35,7 @@ PrintMonTypes: ; 5090d
ld [hl], a
inc bc
add hl, bc
ld bc, 5
ld bc, NAME_LENGTH_JAPANESE - 1
jp ByteFill
; 5093a
@@ -91,9 +91,32 @@ GetTypeName: ; 50964
ld h, [hl]
ld l, a
ld de, StringBuffer1
ld bc, 13
ld bc, MOVE_NAME_LENGTH
jp CopyBytes
; 5097b
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"