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

Photon Geyser and (restored) Shell Side Arm effects work for physical moves #4923

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

Sneed69
Copy link

@Sneed69 Sneed69 commented Jul 7, 2024

Restored EFFECT_SHELL_SIDE_ARM and made it and EFFECT_PHOTON_GEYSER work when used with a physical move.

Discord contact info

duke5614

@AlexOn1ine
Copy link
Collaborator

doesn't matter but it would be good to also remove the BP mul from the shellsidearm func

@Sneed69
Copy link
Author

Sneed69 commented Jul 7, 2024

doesn't matter but it would be good to also remove the BP mul from the shellsidearm func

I'm not sure how to do this and have identical results in 100% of situations.

@AlexOn1ine
Copy link
Collaborator

AlexOn1ine commented Jul 7, 2024

doesn't matter but it would be good to also remove the BP mul from the shellsidearm func

I'm not sure how to do this and have identical results in 100% of situations.

That means we can't use an effect for shell side arm though because the base power requirement for other moves might be wrong..

@AsparagusEduardo
Copy link
Collaborator

That means we can't use an effect for shell side arm though because the base power requirement for other moves might be wrong..

I have an idea. What if we modify the function such that it takes the first of EFFECT_SHELL_SIDE_ARM's move available in a mon's moveset? It's unlikely that a mon will have multiple of these moves and we need the calculation to be done before the beginning of the turn, so while not fully matching official functionality, it will at least make it easier to make clones of it.

@AlexOn1ine
Copy link
Collaborator

AlexOn1ine commented Jul 7, 2024

That means we can't use an effect for shell side arm though because the base power requirement for other moves might be wrong..

I have an idea. What if we modify the function such that it takes the first of EFFECT_SHELL_SIDE_ARM's move available in a mon's moveset? It's unlikely that a mon will have multiple of these moves and we need the calculation to be done before the beginning of the turn, so while not fully matching official functionality, it will at least make it easier to make clones of it.

how do you handle metronome, me fist, mirror move and such?

@Sneed69
Copy link
Author

Sneed69 commented Jul 7, 2024

The simplest way (that behaves exactly like it does now) is to store attacker level, attack and sp. atk, defender def and sp.def and do the calcs later

Copy link
Collaborator

@AlexOn1ine AlexOn1ine left a comment

Choose a reason for hiding this comment

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

Based on a conversation with Duke on discord. I believe it is fine to be merged.

@AlexOn1ine AlexOn1ine merged commit 6aa308e into rh-hideout:upcoming Jul 14, 2024
1 check passed
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