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

Prevent certain status moves when item is known + Fake Out changes #3219

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

AlexOn1ine
Copy link
Collaborator

@AlexOn1ine AlexOn1ine commented Aug 10, 2023

Description

  • Make more use of AI_GetHoldEffect to prevent the AI from going for unfavorable moves if hold effect becomes known
  • ShouldFakeOut changes. Mostly new additions that prevent flinching but also removed ShouldTryToFlinch from this function
  • A small ShouldTryToFlinch addition and now returns zero if conditions don't apply. I personally think that a move shouldn't get an increase if there is only a chance (unless the chance is increased) for the effect to occur because it might mess with the highest damage move which is likely better in most cases
  • Added minor EFFECT_EARTHQUAKE and EFFECT_MAGNITUDE check

@ghoulslash
Copy link
Collaborator

ghoulslash commented Aug 10, 2023

There should be an AI_DATA->holdEffects array to use instead ofAI_GetHoldEffect, which is computed up front for efficiency

fix ShouldTryToFlinch

fix some mess up

fix of fix of mess up
@AlexOn1ine
Copy link
Collaborator Author

There should be an AI_DATA->holdEffects array to use instead ofAI_GetHoldEffect, which is computed up front for efficiency

Changed to AI_DATA->holdEffects

@AlexOn1ine AlexOn1ine changed the title Make more use of AI_GetHoldEffect + Fake Out changes Make more use of AI_DATA->holdEffects + Fake Out changes Aug 10, 2023
@AlexOn1ine AlexOn1ine changed the title Make more use of AI_DATA->holdEffects + Fake Out changes Prevent certain status moves when item is known + Fake Out changes Aug 10, 2023
@ghoulslash ghoulslash merged commit 4490e98 into rh-hideout:upcoming Aug 28, 2023
1 check passed
@AlexOn1ine AlexOn1ine deleted the omniscient branch August 31, 2023 08:48
@AsparagusEduardo AsparagusEduardo mentioned this pull request Sep 27, 2023
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