mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Unrelated routine gets its own file
This commit is contained in:
parent
5db31feba9
commit
5e4fa42fa7
21
engine/routines/unreferenced_getgen1trainerclassname.asm
Normal file
21
engine/routines/unreferenced_getgen1trainerclassname.asm
Normal 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"
|
@ -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"
|
||||
|
1
main.asm
1
main.asm
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user