You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Unrelated routine gets its own file
This commit is contained in:
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"
|
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/events/sacred_ash.asm"
|
||||||
INCLUDE "engine/tempmon.asm"
|
INCLUDE "engine/tempmon.asm"
|
||||||
INCLUDE "engine/types.asm"
|
INCLUDE "engine/types.asm"
|
||||||
|
INCLUDE "engine/routines/unreferenced_getgen1trainerclassname.asm"
|
||||||
INCLUDE "engine/mon_stats.asm"
|
INCLUDE "engine/mon_stats.asm"
|
||||||
INCLUDE "engine/routines/initlist.asm"
|
INCLUDE "engine/routines/initlist.asm"
|
||||||
INCLUDE "engine/experience.asm"
|
INCLUDE "engine/experience.asm"
|
||||||
|
Reference in New Issue
Block a user