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

Item ratings/isNonstandard #2171

Closed
wants to merge 0 commits into from
Closed

Conversation

EnPassant4264
Copy link
Contributor

@EnPassant4264 EnPassant4264 commented Oct 25, 2023

As per this Issue (that I wish anyone had responded to), this code adds an overridable rating variable for items to determine which section of the default teambuilder list it appears in, rather than a lengthy, hardcoded switch statement. The Unreleased items section has been removed, since it was only coded to appear in Gen 6 and it would always be empty since its items were Illegal and therefore don't display in the list. Like the prior algorithm, it defaults to the Items section, and all items not in that section have been given ratings in the server PR. Pokemon-specific items continue to be determined by itemUser or megaStone, and Poke Balls and TRs are still automatically listed as Useless; both ignore the rating variable. Booster Energy has been made to be specific to Paradox Pokemon.

This code also collects and displays mods overriding an item's isNonstandard value on the client side, which is presently useful in Mix and Mega.

@Zarel
Copy link
Member

Zarel commented Jan 11, 2024

You seem to have closed the server PR?

@EnPassant4264
Copy link
Contributor Author

I physically couldn't update my Showdown repos until my PR was either accepted or my commits discarded due to merge conflicts. I guess it closed automatically when I did that. This is why I created that Issue I mention in the summary before coding and creating the PR. It has been sitting here untouched since before DLC1 dropped, and all the files I changed clientside have been moved to another folder anyway, so the odds of it being accepted were very low.

@Zarel
Copy link
Member

Zarel commented Jan 11, 2024

Oh, yeah. Sorry about that. I spent some time away and missed this PR.

In the future, to deal with the issue where you couldn't update, you should PR a branch rather than master.

@EnPassant4264
Copy link
Contributor Author

How would I PR a branch of the main repo? Wouldn't making a new branch on mine still need to be PR'd into an existing branch, or otherwise have the step of being merged afterward?

@urkerab
Copy link
Contributor

urkerab commented Jan 12, 2024

You make a branch in your repo before committing your changes. (If you're working locally, you push that branch to GitHub.) You can then PR that branch directly to here. (You need to do that anyway because this repo uses squash merges so you wouldn't have been able to merge your master back in even if your PR had been accepted.)

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