Skip to content

Feature/implement mystery gift#24

Open
risingPhil wants to merge 6 commits intomainfrom
feature/implement-mystery-gift
Open

Feature/implement mystery gift#24
risingPhil wants to merge 6 commits intomainfrom
feature/implement-mystery-gift

Conversation

@risingPhil
Copy link
Owner

@risingPhil risingPhil commented Jan 9, 2026

This pull request implements mystery gift in PokeMe64.

I think it was /u/CoochieWrecker who suggested this as a feature for PokeMe64 to avoid the usual restrictions based on trainer ID.

PokeMe64 allows you to get 5 mystery gifts per day, but it will fill all mystery gift slots for that day, meaning that if you get all 5, you won't be able to get any more through stadium 2 or other gameboys either for that day.

…eed the RNG

We were already using the entropy generated by the libdragon bootloader, trainer id, trainer name and the number of cpu
ticks before we loaded the main menu to seed the random number generator.

Now -for gen II- I also grab the current RTC values and add them to this RNG seed.

This should theoretically give us enough entropy to guarantuee random values for mystery gift and shiny pokémon chances.
@risingPhil
Copy link
Owner Author

If anyone finds this pull request early, here's an early build of this feature too, you magnificent bastard ;)

Feel free to play around with it ;)

PokeMe64.zip

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.

1 participant