Bug Fix with Starter Icon Sprites along with adjustment for the Starter UI #1134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This took way too long 馃拃
If this Pull Request gets denied, solely because there are
//
...That's why it took so long, I had to figure shit it out. And I don't want people to have to figure too much shit out, so I put comments. I'd have put more documentation but, I kept it related to this Pull Request.
So, if you solely deny this Pull Request because there are
// comments that explain stuff
. Then something is wrong with you and you hate people. 馃憤聽
Okay, good.
聽
Explanation
Currently, in the game, when you turn a shiny Pokemon to a non-shiny then use the arrow keys to move to a different Pokemon. The Sprite resets back to shiny. (Only if you own a shiny)
With selection I mean this thing:
聽
So, I changed that, but it wouldn't make sense to solely change the icon not resetting back. If the entire statistics change back.
It's caused by
lastSpeciesIcon
. Because I have no clue why that existed, I've commented it out incase it was for something. But I doubt.With that I also had to comment out its
checkIconId
. I have absolutely no idea, what the hell the purpose ofcheckIconId
is.Changes
The starter selection will also remember the last value. So if I go back to, it will remain non-shiny.
Currently, it only remembers changes made to Shiny, because I am not sure how many would want the other values to remain when switching back. It shouldn't matter though, because the game, literally selects a Nature based on whatever you have unlocked. So something default doesn't really exist? 馃 Well, maybe for the Nature since all are the same if you have all. But not for the abilities.
However, I can easily add the other properties as well, since they're all stored in a goofy table called
customizedProps
. Similar to how starter values are stored when you have them added to the party, but all at one place.But note that if you have a chosen starter right here:
Currently the game will actually keep all the modifications you've set, which I think is nice. Like that you don't have to unselect the starter to make modifications. In the other hand, the selected sprite icon never updates. Which is another bug.
聽
Regardless though, I've made it so that it will forget all customized properties if you return to the main menu.