-
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
EFFECT_CHILLY_RECEPTION #3379
EFFECT_CHILLY_RECEPTION #3379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review.
Also since you change the Parting Shot script, would you be interested in writing tests for it?
data/battle_scripts_1.s
Outdated
waitmessage B_WAIT_TIME_LONG | ||
attackstring | ||
ppreduce | ||
jumpifhalfword CMP_COMMON_BITS, gBattleWeather, B_WEATHER_SUN_PRIMAL, BattleScript_ExtremelyHarshSunlightWasNotLessened |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user is supposed to still switch out even if the weather can't be changed.
Also, these three jumps appear 8 times in this file. You should make a macro so you don't need to duplicate even more code than already is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was actually a mistake, but what I wanted to do didn't work anyway... Oops! I've updated the logic for this portion to always switch though. There might still be a better way to do what I did. I'm all ears!
I also went ahead and made a macro for those other instances of this jump even though I don't use it here anymore.
…expansion into chilly-reception
* Created CheckPrimalWeather macro for Weather Effects * Updated Chilly Reception logic to switch even if weather doesn't change Testing Updates
…expansion into chilly-reception
* Move Chilly Reception animation to always play (even when weather change fails)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please solve conflicts.
Description
Implements MOVE_CHILLY_RECEPTION. Animation borrows from a bunch of other moves in combination and could maybe use some refinement. I copied the base tests from U-Turn and I'm not sure if I covered everything that's necessary in the modifications; please let me know.
First PR, so please let me know if there are issues on the administrative side! Feel free to be critical of coding standards etc. so I can better learn going forward!
Images
Issue(s) that this PR fixes
Fixes #2505
Discord contact info
rapidnutcracker