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

SwitchType enum to clean up GetMostSuitableMonToSwitchInto #6184

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

Pawkkie
Copy link
Collaborator

@Pawkkie Pawkkie commented Feb 4, 2025

Description

I've meant to do this during some of the recent switching refactors and kept forgetting. Alex accidentally reminded me about this today.

For the last while, GetMostSuitableMonToSwitchInto takes a TRUE or FALSE to handle whether a switch is after a KO or not. In the spirit of getting rid of passing in booleans that are less readable where it makes sense, this PR refactors the affected functions to use an enum instead.

Discord contact info

@Pawkkie

@Pawkkie Pawkkie added category: battle-ai Pertains to Battle Engine Upgrade's AI type: cleanup labels Feb 4, 2025
@AlexOn1ine AlexOn1ine merged commit 4359cbb into rh-hideout:upcoming Feb 5, 2025
1 check passed
@Pawkkie Pawkkie deleted the switch-type-enum branch February 5, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: battle-ai Pertains to Battle Engine Upgrade's AI type: cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants