WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit cf51c28

Browse files
authored
Merge pull request #573 from AsparagusEduardo/pret/pr/sinjoh/monData
Sync `MON_DATA` names with pokeheartgold and pokeplatinum
2 parents 718ce25 + 5721640 commit cf51c28

File tree

10 files changed

+503
-502
lines changed

10 files changed

+503
-502
lines changed

arm9/src/daycare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ BOOL Save_Daycare_MasudaCheck(Daycare *daycare) {
6767
// Uses language as a proxy for country, even though it
6868
// only accounts for European languages and Japanese.
6969
// If true, shiny odds are increased.
70-
return GetBoxMonData(&daycare->mons[0].mon, MON_DATA_GAME_LANGUAGE, NULL) != GetBoxMonData(&daycare->mons[1].mon, MON_DATA_GAME_LANGUAGE, NULL);
70+
return GetBoxMonData(&daycare->mons[0].mon, MON_DATA_LANGUAGE, NULL) != GetBoxMonData(&daycare->mons[1].mon, MON_DATA_LANGUAGE, NULL);
7171
}
7272

7373
void DaycareMon_Copy(DaycareMon *dest, const DaycareMon *src) {

arm9/src/hall_of_fame.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ void Save_HOF_RecordParty(struct HallOfFame *hof, struct Party *party, RTCDate *
3535
hof_party->party[j].level = (u8)GetMonData(mon, MON_DATA_LEVEL, NULL);
3636
hof_party->party[j].form = (u8)GetMonData(mon, MON_DATA_FORM, NULL);
3737
hof_party->party[j].personality = GetMonData(mon, MON_DATA_PERSONALITY, NULL);
38-
hof_party->party[j].otid = GetMonData(mon, MON_DATA_OTID, NULL);
38+
hof_party->party[j].otid = GetMonData(mon, MON_DATA_OT_ID, NULL);
3939
hof_party->party[j].moves[0] = (u16)GetMonData(mon, MON_DATA_MOVE1, NULL);
4040
hof_party->party[j].moves[1] = (u16)GetMonData(mon, MON_DATA_MOVE2, NULL);
4141
hof_party->party[j].moves[2] = (u16)GetMonData(mon, MON_DATA_MOVE3, NULL);
4242
hof_party->party[j].moves[3] = (u16)GetMonData(mon, MON_DATA_MOVE4, NULL);
4343
if (str != NULL) {
44-
GetMonData(mon, MON_DATA_NICKNAME_3, str);
44+
GetMonData(mon, MON_DATA_NICKNAME_STRING, str);
4545
CopyStringToU16Array(str, hof_party->party[j].nickname, POKEMON_NAME_LENGTH + 1);
46-
GetMonData(mon, MON_DATA_OT_NAME_2, str);
46+
GetMonData(mon, MON_DATA_OT_NAME_STRING, str);
4747
CopyStringToU16Array(str, hof_party->party[j].otname, PLAYER_NAME_LENGTH + 1);
4848
} else {
4949
hof_party->party[j].nickname[0] = EOS;

arm9/src/message_format.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ void BufferSpeciesNameWithArticle(MessageFormat *messageFormat, u32 idx, u32 spe
155155
}
156156

157157
void BufferBoxMonNickname(MessageFormat *messageFormat, u32 idx, struct BoxPokemon *mon) {
158-
GetBoxMonData(mon, MON_DATA_NICKNAME_3, messageFormat->buffer);
158+
GetBoxMonData(mon, MON_DATA_NICKNAME_STRING, messageFormat->buffer);
159159
SetStringAsPlaceholder(messageFormat, idx, messageFormat->buffer, NULL);
160160
}
161161

162162
void BufferBoxMonOTName(MessageFormat *messageFormat, u32 idx, struct BoxPokemon *mon) {
163-
GetBoxMonData(mon, MON_DATA_OT_NAME_2, messageFormat->buffer);
163+
GetBoxMonData(mon, MON_DATA_OT_NAME_STRING, messageFormat->buffer);
164164
SetStringAsPlaceholder(messageFormat, idx, messageFormat->buffer, NULL);
165165
}
166166

arm9/src/pokedex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ void Pokedex_SetMonCaughtFlag(struct Pokedex *pokedex, struct Pokemon *pokemon)
601601
u16 species; // r6
602602

603603
species = (u16)GetMonData(pokemon, MON_DATA_SPECIES, NULL);
604-
language = GetMonData(pokemon, MON_DATA_GAME_LANGUAGE, NULL);
604+
language = GetMonData(pokemon, MON_DATA_LANGUAGE, NULL);
605605
personality = GetMonData(pokemon, MON_DATA_PERSONALITY, NULL);
606606
gender = GetMonGender(pokemon);
607607
GF_ASSERT(pokedex->magic == 0xBEEFCAFE);

0 commit comments

Comments
 (0)