Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the 6-bit Caught Level to record Pokemon > Level 63 #8

Merged
merged 2 commits into from
May 27, 2022

Conversation

vulcandth
Copy link
Collaborator

@vulcandth vulcandth commented May 27, 2022

We fix this by moving the CAUGHT_TIME_MASK bits (%11000000) to the first byte in MON_EXP. MON_EXP has three free bits that are never used. This gives MON_CAUGHTLEVEL a whole byte to itself, with one free bit.

This is related to pret#901

@vulcandth vulcandth merged commit c85fe6e into master May 27, 2022
@vulcandth vulcandth deleted the Fix-Caught-Level branch May 27, 2022 23:26
vulcandth added a commit that referenced this pull request May 30, 2022
* Fix Caught Level

* Change MON_EMPTY_BIT to rb_skip

Co-authored-by: Rangi <[email protected]>

Co-authored-by: Rangi <[email protected]>
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.

2 participants