Skip to content

Starter move struct - #423

Merged
UsernameFodder merged 15 commits into
UsernameFodder:masterfrom
itred12:StarterMoveStruct
Sep 13, 2026
Merged

Starter move struct#423
UsernameFodder merged 15 commits into
UsernameFodder:masterfrom
itred12:StarterMoveStruct

Conversation

@itred12

@itred12 itred12 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Upon recommendation, defined a struct for the array of moves read by AddUniqueStarterMoveTo, provided its (only NA) address, and fully documented both of these, including some very interesting notes about the choice of starters given unique moves in vanilla.

To avoid being too verbose, it may be worth removing the comment listing the moves given from AddUniqueStarterMovesTo, and instead only have it attached to this array.

I think it may also be worth researching whether these moves will "stick"– as in, if they're forgotten by any method, if they can be re-learned at the Electrivire Link Shop. The assembly behind that specific part of the game is still dizzying to me, so I haven't manged to glean too much regarding that myself.

Comment thread symbols/arm9.yml Outdated
The moves are as follows:
- Vulpix: Faint Attack
- Eevee: Flail
- Phanphy: Ancient Power

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: it's spelled "Phanpy", and "AncientPower" is one word in Gen 4.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my bad. Good catch!

…ueStarterMoveTo and the array it references.
I am quite silly, and only just realized that, indeed, as a few people have told me, these moves are egg moves from the respective pokemon's lines.
Clarified comments around the function and the array it references, and re-named the function and the data-type of the array (if that's okay)
Comment thread symbols/arm9.yml Outdated
NA: 0x20B3224
JP: 0x20B4A98
description: "[Runtime] The current PRNG sequence number for the system PRNG. See rand for more information on how the system PRNG works."
description: "[Runtime] The current PRNG sequence number for the system PRNG. See rand for more information on how the system PRNG works." No newline at end of file

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the newline at the end of the file

Comment thread symbols/arm9.yml Outdated
NA: 0x2053568
description: |-
Grants certain starter Pokemon a unique move that they cannot normally learn.
Grants certain starter pokemon an egg move from their line at the beginning of the game, adding it to the first available slot.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I won't be picky about the accent, but "Pokemon" should still be capitalized

Comment thread headers/types/common/common.h Outdated
};
ASSERT_SIZE(struct effect_control, 10148);

// Stores a pair of monster_id_16 to move_id_16, used for granting specific starter pokemon an egg move from their line.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is too long, it should be broken up into multiple lines.

In the future if you aren't sure what the formatter is complaining about, you can always download the properly formatted file from the format job that runs if the corresponding format-check fails (this is true for both symbols and headers).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll keep that in mind

Comment thread symbols/arm9.yml
Comment thread symbols/arm9.yml
@UsernameFodder
UsernameFodder merged commit d4fd403 into UsernameFodder:master Sep 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants