forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Trainer Slides, added automated Trainer Slide tests, add new Enemy Critical Hit Slide #6018
Open
pkmnsnfrn
wants to merge
56
commits into
rh-hideout:upcoming
Choose a base branch
from
PokemonSanFran:trainerSlide
base: upcoming
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+964
−301
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
Moved trainer slide check conditions to their own functions
Made each trainer a member of the trainerSlides struct Removed iterating over the entire struct
…STABMoveTrainerSlide Fixed bug where STAB Trainer Slide was being set too eagerly
IsTrainerSlidePlayed InitalizeTrainerSlide MarkTrainerSlideAsPlayed
Moved ShoudldRun from header to main file Deleted DebugPrintFlippedBits Added sShouldRunTrainerSlideFunctions Table Added checking for frontier trainers in DOesTrainerHaveSLideMessage Created SetTrainerSlideMessage Changed all aruguments for ShouldRun functions to be unified Created SetTrainerSlideParamters Removed switch statement from ShouldDoTrainerSlide and replaced with function table
Added first working test
This reverts commit 15a2f1a.
lhearachel
reviewed
Jan 13, 2025
pkmnsnfrn
added
type: documentation
Improvements or additions to documentation
category: battle-mechanic
Pertains to battle mechanics
type: cleanup
category: battle-tests
Related to the automated test environment
type: refactor
type: big feature
A feature with big diffs and / or high impact / subjectivity / pervasiveness
labels
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category: battle-mechanic
Pertains to battle mechanics
category: battle-tests
Related to the automated test environment
type: big feature
A feature with big diffs and / or high impact / subjectivity / pervasiveness
type: cleanup
type: documentation
Improvements or additions to documentation
type: refactor
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
trainerSlideFirstCriticalHitMsgState
,trainerSlideFirstSuperEffectiveHitMsgState
,trainerSlideFirstSTABMoveMsgState
,trainerSlidePlayerMonUnaffectedMsgState
,trainerSlideHalfHpMsgDone
,trainerSlideMegaEvolutionMsgDone
,trainerSlideZMoveMsgDone
,trainerSlideBeforeFirstTurnMsgDone
,trainerSlideDynamaxMsgDone
, andtrainerSlideLowHpMsgDone
intoslideMessageStatus
.src/battle_message.c
and into its own file,trainer_slide.c
.TrainerSlideType
enum to be more clear.src/battle_script_commands.c
andsrc/battle_util.c
.Images
People who collaborated with me in this PR
@AlexOn1ine, @hedara90, @AsparagusEduardo, @mrgriffin
Feature(s) this PR does NOT handle:
#5565
Things to note in the release changelog:
Discord contact info
pkmnsnfrn
There is a discussion thread: https://discord.com/channels/419213663107416084/1325604832337465426