summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorlibjet <libj3t@gmail.com>2020-05-21 16:26:10 +0100
committerlibjet <libj3t@gmail.com>2020-05-21 16:26:10 +0100
commit768e0477f947e96737940812ce54fc4bebc0dc32 (patch)
tree4c10f0d70d7a64e8bd0e3f044b96864090aba54a /engine
parenteb88ad0d1917b6e2b4ab8ed6b4544fd7cd7da570 (diff)
Add getgen1trainerclassname.asm
Diffstat (limited to 'engine')
-rwxr-xr-xengine/battle/unreferenced_getgen1trainerclassname.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/engine/battle/unreferenced_getgen1trainerclassname.asm b/engine/battle/unreferenced_getgen1trainerclassname.asm
new file mode 100755
index 00000000..04532523
--- /dev/null
+++ b/engine/battle/unreferenced_getgen1trainerclassname.asm
@@ -0,0 +1,21 @@
+Unreferenced_GetGen1TrainerClassName:
+ ld hl, Gen1TrainerClassNames
+ ld a, [wTrainerClass]
+ 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, wStringBuffer1
+.copy
+ ld a, [hli]
+ ld [de], a
+ inc de
+ cp "@"
+ jr nz, .copy
+ ret
+
+INCLUDE "data/text/unused_gen1_trainer_names.asm"