Open
Conversation
…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.
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 ;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.