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

EFFECT_MORNING_SUN and EFFECT_MOONLIGHT are redundant #2444

Open
BuffelSaft opened this issue Nov 7, 2022 · 5 comments
Open

EFFECT_MORNING_SUN and EFFECT_MOONLIGHT are redundant #2444

BuffelSaft opened this issue Nov 7, 2022 · 5 comments
Labels
category: move effect Pertains to move effects

Comments

@BuffelSaft
Copy link
Collaborator

This seems to be junk leftover from gen 2, where these moves were actually different (they each healed different amounts based on the time of day). From gen 3 onwards, they're identical to EFFECT_SYNTHESIS, so they could all use the same move effect.

This would simplify checks like this:

if (HasMoveEffect(battlerDef, EFFECT_MORNING_SUN) 
|| HasMoveEffect(battlerDef, EFFECT_SYNTHESIS) 
|| HasMoveEffect(battlerDef, EFFECT_MOONLIGHT))

into if (HasMoveEffect(battlerDef, EFFECT_SYNTHESIS)

@BuffelSaft BuffelSaft added the category: move effect Pertains to move effects label Nov 7, 2022
@AsparagusEduardo
Copy link
Collaborator

Comparing the Bulbapedia page, Moonlight doesn't state what happens in Strong Winds, compared to the other two moves.

@AsparagusEduardo
Copy link
Collaborator

Confirmed that in USUM all three moves have the exact same effect.

@DizzyEggg
Copy link
Collaborator

We could always keep the effects and add a config for the GEN2 behaviour.

@AsparagusEduardo
Copy link
Collaborator

We could always keep the effects and add a config for the GEN2 behaviour.

I remember there were discussions about emulating Gen 1/2's battle quirks via config once we caught up to the latest Gen and had nothing else to do, but didn't go too far.

At one point I tested the possibility of adding mid-gen configs, including Gen 1/2 ones, but ended up being too convoluted. Maybe we could start looking into it again 👀

@DizzyEggg
Copy link
Collaborator

We could always keep the effects and add a config for the GEN2 behaviour.

I remember there were discussions about emulating Gen 1/2's battle quirks via config once we caught up to the latest Gen and had nothing else to do, but didn't go too far.

At one point I tested the possibility of adding mid-gen configs, including Gen 1/2 ones, but ended up being too convoluted. Maybe we could start looking into it again 👀

Yeah, I noticed you even started with one PR for Shuckle gen2 behavior. I think having them as available, but set to FALSE by default, is a good option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: move effect Pertains to move effects
Projects
None yet
Development

No branches or pull requests

3 participants