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

Reduces AI_WhoStrikesFirst to the most essential parts #4978

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

AlexOn1ine
Copy link
Collaborator

Most checks in GetWhichBattlerFasterArgs are not relevant during ai calcs so I just copied the ones that are essential.
Also I removed the randomness when there is a tie and made it so that the AI thinks it is faster. This will help with consistency in tests and I don't think it is that bad for AI to think it is slower in this case since the player risks a speed tie.

@DizzyEggg
Copy link
Collaborator

Alex, could you check if the change is even worth it?

I would suggest setting up a Double Battle and comparing the frames with and without your fix. You can use this macro to check https://github.com/rh-hideout/pokeemerald-expansion/blob/master/include/config/debug.h#L12

@AlexOn1ine
Copy link
Collaborator Author

image
image

Discussed on discord bu for documentations sake. Improved by one frame.

@DizzyEggg DizzyEggg merged commit 0d0100d into rh-hideout:upcoming Jul 15, 2024
1 check passed
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