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

Refactor PBESettings #195

Merged
merged 21 commits into from
Sep 7, 2019
Merged

Refactor PBESettings #195

merged 21 commits into from
Sep 7, 2019

Conversation

Kermalis
Copy link
Owner

@Kermalis Kermalis commented Jul 31, 2019

Closes #176

Done:

  • Ability to convert PBESettings to and from bytes and strings
  • PBESettings.Equals() and PBESettings.IsReadOnly
  • Store PBESettings in replays and team json files
  • PBETeamShell (Also uses a single PBESettings object for the entire team)
  • Do not use PBESettings.MaxLevel for stat/damage calculation
  • Listen for PBESettings changes in TeamBuilderView, PBEMovesetBuilder, PBEIndividualValueCollection, PBEEffortValueCollection, PBEPokemonShell, and PBETeamShell

TODO:

  • PBEPokemonShell should be able to function without a PBETeamShell and should still work after being removed from one
  • Add public setters for PBESettings in PBEMovesetBuilder, PBEEffortValueCollection, PBEIndividualValueCollection, PBETeamShell, and PBEPokemonShell
  • Settings editor in client
  • Settings can cause data overflow in extreme situations #200

@Kermalis Kermalis marked this pull request as ready for review September 7, 2019 21:25
@Kermalis Kermalis merged commit 08c5727 into master Sep 7, 2019
@Kermalis Kermalis deleted the refactor-settings branch September 7, 2019 21:25
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.

Settings should be convertable to a string
1 participant