ref: 5e4fa42fa7e2405760efc77f8c2e7167e67990ac
parent: 5db31feba93b10a2d629cf88a9ca7096d4b1c9ae
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Sun Jan 21 12:45:56 EST 2018
Unrelated routine gets its own file
--- /dev/null
+++ b/engine/routines/unreferenced_getgen1trainerclassname.asm
@@ -1,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"
--- a/engine/types.asm
+++ b/engine/types.asm
@@ -97,26 +97,3 @@
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"
--- a/main.asm
+++ b/main.asm
@@ -253,6 +253,7 @@
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"