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

Add backwards compatible updated base shiny odds #4667

Closed

Conversation

kittenchilly
Copy link

Description

This adds a config P_BASE_SHINY_ODDS. I implemented it in a way that should make it backwards compatible with existing pokemon, as the config is only applied during the CreateBoxMon process.

Issue(s) that this PR fixes

Fixes #3910

Discord contact info

kittenchilly

@AsparagusEduardo
Copy link
Collaborator

Interesting...
We need to check what other places use GET_SHINY_VALUE and see if they need to be updated as well.

@kittenchilly
Copy link
Author

Interesting... We need to check what other places use GET_SHINY_VALUE and see if they need to be updated as well.

I checked and all the other places are only in CreateBoxMon, so its fine I believe.

@Sneed69
Copy link

Sneed69 commented Jun 5, 2024

I would define the 8s as GEN_3_SHINY_ODDS or something similar.

@tertu-m
Copy link
Collaborator

tertu-m commented Jul 13, 2024

My concern with this is that it’s backwards compartible with Gen 3, and not whatever SHINY_ODDS was previously. People can and do change that value in their hacks, and presumably if the shiny odds were already higher they would want Pokémon that used to be shiny to remain that way (say somebody was migrating from pre-BoxMon refactor)

@mrgriffin
Copy link
Collaborator

My concern with this is that it’s backwards compartible with Gen 3, and not whatever SHINY_ODDS was previously. People can and do change that value in their hacks, and presumably if the shiny odds were already higher they would want Pokémon that used to be shiny to remain that way (say somebody was migrating from pre-BoxMon refactor)

This is a good point... I wonder if the best place to address it would be in the changelog? We could say something like "if you have made a change to SHINY_ODDS, please copy that change to BOXMON_SHINY_ODDS in src/pokemon.c". (Assuming we #define BOXMON_SHINY_ODDS 8 and use that instead of literal 8 in MON_DATA_IS_SHINY)

@hedara90 hedara90 added the type: data Changes focus on data label Jul 26, 2024
@pkmnsnfrn
Copy link
Collaborator

I think the changelog is a perfectly good place to address this. Should we just edit the PR desc to make sure there's a note for the changelog so it doesn't get missed on generation?

@pkmnsnfrn
Copy link
Collaborator

Separate question, how do we test that this actually works?

@AlexOn1ine
Copy link
Collaborator

AlexOn1ine commented Sep 3, 2024

Separate question, how do we test that this actually works?

We merge it and if some user finds a bug revert it after

Though I generally don't see why we wouldn't merge this.

@AlexOn1ine
Copy link
Collaborator

AlexOn1ine commented Sep 3, 2024

I would define the 8s as GEN_3_SHINY_ODDS or something similar.

@kittenchilly can you do this?

Also can you address this comment at the top of the description?

@kittenchilly
Copy link
Author

I would define the 8s as GEN_3_SHINY_ODDS or something similar.

@kittenchilly can you do this?

Also can you address this comment at the top of the description?

Alright, done. Tried to make it clear but it could probably be better

@Bassoonian Bassoonian added the status: on hold delayed until some decision later label Oct 12, 2024
@AlexOn1ine
Copy link
Collaborator

Hey kitten, the majority of the maintainers aren't fond of this solution so it was decided to close the PR. The following reasons were mentioned

  • Can't verify if it works
  • Potentially there is a better solution to this problem
  • Assumes users don't change shiny odds which can be dangerous

@AlexOn1ine AlexOn1ine closed this Oct 14, 2024
@kittenchilly
Copy link
Author

Fair enough, but I do want to say that it's gonna be hard to verify if any changes to shiny odds work without someone shiny hunting multiple times and checking probability, which obviously would take a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: on hold delayed until some decision later type: data Changes focus on data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants