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

Cleaned up duplicate dynamic type functions #5338

Conversation

AsparagusEduardo
Copy link
Collaborator

Description

Consolidated both dynamic-type functions into a single one, separating logic based on gMain.inBattle.

Note: because gBattleStruct->ateBoost was being set during the "in battle" version of the function, this consolidated version has an ateBoost argument that accepts NULL to tell it to not do so in the summary in battles and such.

Images

Tested in-game that dynamic move types still worked in UIs.
image image
image image

Discord contact info

AsparagusEduardo

@AlexOn1ine
Copy link
Collaborator

labels

Copy link
Collaborator

@AlexOn1ine AlexOn1ine left a comment

Choose a reason for hiding this comment

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

Looks very clean, just a few nitpicks

src/battle_main.c Show resolved Hide resolved
src/battle_main.c Outdated Show resolved Hide resolved
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
@AlexOn1ine AlexOn1ine merged commit 6d020eb into rh-hideout:upcoming Sep 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants