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

Added config to prevent unobtainable Pokemon from being shiny #4735

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

fdeblasio
Copy link

Description

Added P_ONLY_OBTAINABLE_SHINIES config to prevent unobtainable Pokemon (pre-Poke Balls and in Battle Pyramid) from being shiny

Discord contact info

Frankfurter0

@Sneed69
Copy link

Sneed69 commented Jun 7, 2024

Seems like this would cause your starter to never be shiny also.

@fdeblasio
Copy link
Author

Seems like this would cause your starter to never be shiny also.

I think the starter gets taken care of by ScriptGiveMonParameterized in script_pokemon_util.c

@pkmnsnfrn
Copy link
Collaborator

pkmnsnfrn commented Jun 7, 2024

imho

- //If TRUE, Pokémon that the player can't catch (such as before getting Poké Balls or in the Battle Pyramid) won't be shiny.
+ //If TRUE, Pokémon encountered when FLAG_ADVENTURE_STARTED is not set OR in the Battle Pyramid won't be shiny.

I didn't even know that flag existed until right now, so this would surprise me.

Alternatively, you could make it a flag define and the user would just use any flag for their specific game

this is not blocking feedback

Copy link
Collaborator

@Bassoonian Bassoonian left a comment

Choose a reason for hiding this comment

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

This is out of scope, but I feel like a logical analogy (one that will probably get activated a lot) is a separate config that disallows wild shiny Pokémon if your Poké Ball pocket is empty, even halfway the game. Up to you if you'd like to include it in this PR or not :)

@fdeblasio
Copy link
Author

This is out of scope, but I feel like a logical analogy (one that will probably get activated a lot) is a separate config that disallows wild shiny Pokémon if your Poké Ball pocket is empty, even halfway the game. Up to you if you'd like to include it in this PR or not :)

I added the functionality, but I'm not thrilled with the name of the config. If anyone has any better names, I'd love some recommendations

@AsparagusEduardo
Copy link

AsparagusEduardo commented Jun 7, 2024

Alternatively, you could make it a flag define and the user would just use any flag for their specific game

this is not blocking feedback

Tbh, I disagree with it being non-blocking. Flags are a lot of the time modified by the user, meaning that FLAG_ADVENTURE_STARTED might be gone in downstream hacks. I recommend implementing this as a flag define instead.

@fdeblasio fdeblasio force-pushed the preventUnobtainableShinies branch from 5ca36c5 to 67434e4 Compare June 14, 2024 17:07
@fdeblasio fdeblasio force-pushed the preventUnobtainableShinies branch from 67434e4 to b80e08e Compare June 15, 2024 22:47
@fdeblasio fdeblasio requested a review from Bassoonian June 17, 2024 18:20
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.

I'm going to merge this. @AsparagusEduardo Please make an issue if you would like any follow up on this.

@AlexOn1ine AlexOn1ine merged commit 103ed85 into rh-hideout:upcoming Jun 29, 2024
1 check passed
@fdeblasio fdeblasio deleted the preventUnobtainableShinies branch June 29, 2024 20:24
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.

6 participants