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

Static Held Items Port (Starlight -> ExLaunch) #90

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

VeryTwistedSpoon
Copy link

  • Allows static encounters to have held items + modifies item rates based on if the player's first pokemon has the ability super luck or compound eyes.

  • Changed the 'magic number' declaration of the aforementioned abilities in the SL patch to instead be calculated through array_indexing from items.h. e.g array_index(ABILITIES, "Super Luck")

  • if (!firstPoke->IsEgg(2, nullptr)) updated to use the EggCheckType enum: PokePara::EggCheckType::BOTH_EGG from EggCheckType.h

  • Misc Change: I added the functions GetMonsNo() and GetFormNo() to Accessor.h. They don't contribute to this issue but may as well merge them in for future usage.

Rotom Battle:
image

@VeryTwistedSpoon VeryTwistedSpoon added the port Porting from Starlight label Mar 10, 2024
@VeryTwistedSpoon VeryTwistedSpoon self-assigned this Mar 10, 2024
@VeryTwistedSpoon VeryTwistedSpoon linked an issue Mar 10, 2024 that may be closed by this pull request
- Removed redundant code already covered by wild_held_items.cpp
- Added egg check to wild_held_items.cpp
@VeryTwistedSpoon VeryTwistedSpoon merged commit d77c29a into master Mar 11, 2024
@VeryTwistedSpoon VeryTwistedSpoon deleted the static_held_items_port branch March 11, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port Porting from Starlight
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port - Static Held Items
2 participants