-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Allow PP Ups to be edited #10167
Open
dot-Comfey
wants to merge
21
commits into
smogon:master
Choose a base branch
from
dot-Comfey:moveppups
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Allow PP Ups to be edited #10167
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0dafd30
Allow PP Ups to be edited
dot-Comfey c777c20
Update pokemon.ts
dot-Comfey 0e2b91b
Update trumpcard.js
dot-Comfey 65f8ed6
Merge branch 'smogon:master' into moveppups
dot-Comfey ac69b4b
Update TEAMS.md and fix unpacking
dot-Comfey b5a51ce
Move PP Up check outside of the validator
dot-Comfey abc0116
Update teams.ts
dot-Comfey 8725d3e
Merge branch 'master' into moveppups
Zarel f95a7dc
Update for modern lint rules
Zarel 86a003a
Update sim/teams.ts
dot-Comfey abf10f4
Revert "Update sim/teams.ts"
dot-Comfey ad0dac2
Use default value of 0 for Trump Card
dot-Comfey 1071da2
Update pokemon.ts
dot-Comfey 81a1a2e
Fix Trump Card unpacking
dot-Comfey cddcad4
Simplify unpacking
dot-Comfey c748050
Fix PP Ups for 40 PP moves in Gens 1/2
dot-Comfey ad8e07a
Default Trump Card PP Ups to 0 everywhere
dot-Comfey f170206
Update teams.ts
dot-Comfey d7560e3
Update teams.ts
dot-Comfey b19e8b1
Update teams.ts
dot-Comfey bad76e6
Update pokemon.ts
dot-Comfey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we could still default Trump Card to 0 unless overridden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A simple implementation on the client side only would be to automatically set a move slot's PP Ups to 0 if Trump Card is selected. Otherwise, the import format would have to be edited to make an exception for Trump Card.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could modify
noPPBoosts
toPPBoosts
, allowing it to accept either a number or false, with false indicating things that can't be PP boosted. The default value would be 3.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although that is not really move data, so it's probably better to just add a condition for Trump Card.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added exceptions for Trump Card on the server and client-side. It should be backwards-compatible for all regular teambuilder usage, but it wouldn't be for direct usage of packed format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I don't think it would be backwards-compatible in general.