shithub: pokered

Download patch

ref: e076ee0a40b2a21183e2cc535519e64b706b5407
parent: 20ebfd079f1331af5cc4f0edea35163b5b35612d
author: dannye <33dannye@gmail.com>
date: Wed Dec 28 16:48:55 EST 2022

Add list assertion to TrainerNames

--- a/data/trainers/names.asm
+++ b/data/trainers/names.asm
@@ -1,48 +1,50 @@
 TrainerNames::
-	db "YOUNGSTER@"
-	db "BUG CATCHER@"
-	db "LASS@"
-	db "SAILOR@"
-	db "JR.TRAINER♂@"
-	db "JR.TRAINER♀@"
-	db "POKéMANIAC@"
-	db "SUPER NERD@"
-	db "HIKER@"
-	db "BIKER@"
-	db "BURGLAR@"
-	db "ENGINEER@"
-	db "JUGGLER@"
-	db "FISHERMAN@"
-	db "SWIMMER@"
-	db "CUE BALL@"
-	db "GAMBLER@"
-	db "BEAUTY@"
-	db "PSYCHIC@"
-	db "ROCKER@"
-	db "JUGGLER@"
-	db "TAMER@"
-	db "BIRD KEEPER@"
-	db "BLACKBELT@"
-	db "RIVAL1@"
-	db "PROF.OAK@"
-	db "CHIEF@"
-	db "SCIENTIST@"
-	db "GIOVANNI@"
-	db "ROCKET@"
-	db "COOLTRAINER♂@"
-	db "COOLTRAINER♀@"
-	db "BRUNO@"
-	db "BROCK@"
-	db "MISTY@"
-	db "LT.SURGE@"
-	db "ERIKA@"
-	db "KOGA@"
-	db "BLAINE@"
-	db "SABRINA@"
-	db "GENTLEMAN@"
-	db "RIVAL2@"
-	db "RIVAL3@"
-	db "LORELEI@"
-	db "CHANNELER@"
-	db "AGATHA@"
-	db "LANCE@"
+	list_start TrainerNames
+	li "YOUNGSTER"
+	li "BUG CATCHER"
+	li "LASS"
+	li "SAILOR"
+	li "JR.TRAINER♂"
+	li "JR.TRAINER♀"
+	li "POKéMANIAC"
+	li "SUPER NERD"
+	li "HIKER"
+	li "BIKER"
+	li "BURGLAR"
+	li "ENGINEER"
+	li "JUGGLER"
+	li "FISHERMAN"
+	li "SWIMMER"
+	li "CUE BALL"
+	li "GAMBLER"
+	li "BEAUTY"
+	li "PSYCHIC"
+	li "ROCKER"
+	li "JUGGLER"
+	li "TAMER"
+	li "BIRD KEEPER"
+	li "BLACKBELT"
+	li "RIVAL1"
+	li "PROF.OAK"
+	li "CHIEF"
+	li "SCIENTIST"
+	li "GIOVANNI"
+	li "ROCKET"
+	li "COOLTRAINER♂"
+	li "COOLTRAINER♀"
+	li "BRUNO"
+	li "BROCK"
+	li "MISTY"
+	li "LT.SURGE"
+	li "ERIKA"
+	li "KOGA"
+	li "BLAINE"
+	li "SABRINA"
+	li "GENTLEMAN"
+	li "RIVAL2"
+	li "RIVAL3"
+	li "LORELEI"
+	li "CHANNELER"
+	li "AGATHA"
+	li "LANCE"
+	assert_list_length NUM_TRAINERS