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

Optimized Intimidate's code #2452

Merged
merged 3 commits into from
Dec 12, 2022
Merged

Conversation

LOuroboros
Copy link
Collaborator

@LOuroboros LOuroboros commented Nov 12, 2022

Description

Remember how I optimized Bad Dreams a few days ago (#2434) and mentioned how Intimidate was similarly complex even though it didn't need to?
I decided to fix that because I wanted to so that's another battle script command freed to use moving forward.
As far as I tested, everything's working normally, but more tests are always welcomed.

Before:
https://user-images.githubusercontent.com/4485172/201494549-5f1e810f-95a5-4a27-ab8c-d73297852b49.mp4

After (this PR):
https://user-images.githubusercontent.com/4485172/201494560-f1a46ee3-8627-4d54-8ab3-73cb0b1c71d4.mp4

"But... doesn't that look exactly the same?"
I know! Isn't it awesome? Less code to deal with which means manipulating or copying Intimidate is super easy now! teddiawwrsa

Discord contact info

Lunos#4026

data/battle_scripts_1.s Show resolved Hide resolved
data/battle_scripts_1.s Show resolved Hide resolved
@ghoulslash ghoulslash merged commit 340278c into rh-hideout:upcoming Dec 12, 2022
@@ -158,7 +158,6 @@ struct SpecialStatus
u8 statLowered:1;
u8 lightningRodRedirected:1;
u8 restoredBattlerSprite: 1;
u8 intimidatedMon:1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to submit this comment that I had pending:

Change to an unused name variation, as there's // End of byte below.

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.

3 participants