diff --git a/CREDITS.txt b/CREDITS.txt index e340c28f..9de599d6 100644 --- a/CREDITS.txt +++ b/CREDITS.txt @@ -38,6 +38,7 @@ other parts of the project, feel free to add yourself to this file! - Chesyon - Xaklor - Caitemis +- Itred12 - The rest of the contributors to Project Pokémon's technical documentation for the NDS Mystery Dungeon games, which can be found here: https://projectpokemon.org/home/docs/mystery-dungeon-nds/ diff --git a/headers/functions/arm9.h b/headers/functions/arm9.h index da8530fc..183b4d55 100644 --- a/headers/functions/arm9.h +++ b/headers/functions/arm9.h @@ -1214,6 +1214,7 @@ void SetBaseStatsMovesGroundMonster(struct ground_monster* ground_monster); bool StrcmpMonsterName(char* string, enum monster_id monster_id); void InitializeTeamMemberFromMentry(struct team_member* team_member, struct ground_monster* ground_monster, int32_t slot_index); +void AddUniqueStarterMoveTo(struct ground_monster* ground_monster); void GetLvlUpEntry(struct level_up_entry* level_up_entry, enum monster_id monster_id, int level); uint8_t* GetEncodedHalfword(uint8_t* data_ptr, uint16_t* result); int GetEvoFamily(undefined* monster, undefined* evo_family); diff --git a/symbols/arm9.yml b/symbols/arm9.yml index ba72fb3b..652d901e 100644 --- a/symbols/arm9.yml +++ b/symbols/arm9.yml @@ -11556,6 +11556,25 @@ arm9: r0: team_member pointer r1: ground_monster pointer r2: team_member index + - name: AddUniqueStarterMoveTo + address: + NA: 0x2053568 + description: |- + Grants certain starter Pokemon a unique move that they cannot normally learn. + + Only called during InitMainTeamAfterQuiz, for both the hero and the partner. + Will skip granting any move if the target somehow already has four moves. + Gives the following: + - Vulpix: Faint Attack + - Eevee: Flail + - Phanphy: Ancient Power + - Shinx: Quick Attack + - Riolu: Bite + - Meowth: Hypnosis + - Munchlax: Zen Headbutt + - Skitty: Zen Headbutt + + r0: pointer to the ground_monster to attempt to grant a move to, as either the hero or the partner. - name: GetLvlUpEntry address: EU: 0x2053B18