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

Adds some gen9 moves #3147

Merged
merged 3 commits into from
Jul 19, 2023
Merged

Adds some gen9 moves #3147

merged 3 commits into from
Jul 19, 2023

Conversation

AlexOn1ine
Copy link
Collaborator

@AlexOn1ine AlexOn1ine commented Jul 18, 2023

Description

Adds:

  • EFFECT_COLLISION_COURSE
  • EFFECT_SPIN_OUT
  • EFFECT_MAKE_IT_RAIN

The EFFECT_MAKE_IT_RAIN script is basically a copy from Lunos but in doing so I also cleaned up some existing code, included the effect in sIgnoredPowerfulMoveEffects and added a Test for all three effects.

Also changed a score value when checking for Contrary to avoid situation like this:
pokeemerald-18
I think that +3 should be enough when Contrary is present.

And I removed EFFECT_OVERHEAT from HPAware. I don't think it is needed there since it is already present in sIgnoredPowerfulMoveEffects

Issue(s) that this PR fixes

Fixes #2492
Fixes #2501
Fixes #2502
Fixes #2503

Discord contact info

rainonline

@@ -432,6 +432,22 @@ gBattleScriptsForMoveEffects::
.4byte BattleScript_EffectInfernalParade @ EFFECT_INFERNAL_PARADE
.4byte BattleScript_EffectTakeHeart @ EFFECT_TAKE_HEART
.4byte BattleScript_EffectAxeKick @ EFFECT_AXE_KICK
.4byte BattleScript_EffectHit @ EFFECT_COLLISION_COURSE
.4byte BattleScript_EffectSpinOut @ EFFECT_SPIN_OUT
Copy link
Collaborator

Choose a reason for hiding this comment

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

tabs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

ASSUME(gBattleMoves[MOVE_MAKE_IT_RAIN].effect == EFFECT_MAKE_IT_RAIN);
}

SINGLE_BATTLE_TEST("Make It Rain lowers special attack by 1 stage1")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test should also have comparisions of dmg, to see if the the damage dealt after the stat loss is lower than before.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added

waitmessage B_WAIT_TIME_LONG
resultmessage
waitmessage B_WAIT_TIME_LONG
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

tabs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

@@ -9484,6 +9484,10 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
finalModifier = uq4_12_multiply(finalModifier, UQ_4_12(1.5));
}

// Collision Course, Electro Drift
if (gBattleMoves[move].effect == EFFECT_COLLISION_COURSE && typeEffectivenessModifier >= UQ_4_12(2.0))
finalModifier = uq4_12_multiply(finalModifier, UQ_4_12(1.33));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Showdown says it actually boosts by 1.3333 instead of 1.33.
https://dex.pokemonshowdown.com/moves/collisioncourse

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to 1.3333.

@DizzyEggg
Copy link
Collaborator

@AsparagusEduardo Should it go to upcoming or master actually? 🤔

@AsparagusEduardo
Copy link
Collaborator

@AsparagusEduardo Should it go to upcoming or master actually? 🤔

They're new move effects, so into upcoming they go.

@DizzyEggg DizzyEggg merged commit 6b5d1e7 into rh-hideout:upcoming Jul 19, 2023
@AlexOn1ine AlexOn1ine deleted the gen9_moves branch July 19, 2023 22:09
@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.

3 participants