forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Convert move flags and bans into GCC bitfields #2952
Merged
DizzyEggg
merged 62 commits into
rh-hideout:upcoming
from
AsparagusEduardo:RHH/pr/feature/extendMoveFlags
Jul 3, 2023
Merged
Convert move flags and bans into GCC bitfields #2952
DizzyEggg
merged 62 commits into
rh-hideout:upcoming
from
AsparagusEduardo:RHH/pr/feature/extendMoveFlags
Jul 3, 2023
+1,906
−2,107
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…e/extendMoveFlags
AsparagusEduardo
changed the title
[WIP] Convert move flags and bans into GCC bitfields
Convert move flags and bans into GCC bitfields
May 31, 2023
Ready for review, updated description with all changes. |
Updated description again because I forgor more stuff I did. |
Closed
# Conflicts: # include/constants/battle_move_effects.h # src/data/battle_moves.h
Conflicts solved. |
New conflicts 👀 |
# Conflicts: # src/battle_ai_util.c # test/ability_damp.c # test/move_effect_beak_blast.c
Conflicts solved 👀 |
DizzyEggg
reviewed
Jul 1, 2023
DizzyEggg
approved these changes
Jul 3, 2023
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR converts all move flags and banned moves into GCC bitfields.
Based on @SBird1337's suggestion
This PR also:
BattleScript_EffectStomp
andEFFECT_FLINCH_MINIMIZE_HIT
.BattleScript_FlinchEffect
EFFECT_TWISTER
which was a copy ofEFFECT_FLINCH_HIT
.B_UPDATED_MOVE_FLAGS
.MOVE_UNAVAILABLE
inbattle_ai_util.c
sMovesNotAffectedByStench
in favor of checking for moves with Flinch chanceIS_MOVE_RECOIL
to help recoil move checks.flags
field being removed alongsideTestMoveFlags
andTestMoveFlagsInMoveset
HasSoundMove
HasHighCritRatioMove
HasMagicCoatAffectedMove
HasSnatchAffectedMove
CHECK_MOVE_FLAG
macrosParentalBondBannedEffects
to streamline adding new moves.EFFECT_GEOMANCY
toIsTwoTurnsMove
.Discord contact info
AsparagusEduardo#6051