|
@@ -0,0 +1,16 @@
|
|
1
|
+#include <agb_debug.h>
|
|
2
|
+#include <pokeagb/pokeagb.h>
|
|
3
|
+
|
|
4
|
+extern pchar name_rival_male[5];
|
|
5
|
+extern pchar name_rival_female[5];
|
|
6
|
+
|
|
7
|
+void name_set_hero_rival(bool naming_turn_rival, u8 name_rival) {
|
|
8
|
+ if (!naming_turn_rival) {
|
|
9
|
+ pstrcpy(&saveblock2->name[0],
|
|
10
|
+ (saveblock2->gender == GENDER_MALE) ? &name_rival_male[0] : &name_rival_female[0]);
|
|
11
|
+ } else {
|
|
12
|
+ (void)name_rival;
|
|
13
|
+ pstrcpy(&saveblock1->rival_name[0],
|
|
14
|
+ (saveblock2->gender == GENDER_MALE) ? &name_rival_female[0] : &name_rival_male[0]);
|
|
15
|
+ }
|
|
16
|
+}
|