Skip to content

Conversation

@SomeGuyEight
Copy link
Contributor

Hey! Here is my best shot at updating the README with the changes. If you end up including my commits in the main project, feel free to edit this as you see fit!

SomeGuyEight and others added 4 commits June 8, 2024 17:10
ChallengeCommand:
- Refactored ChallengeRequest record with min/max level & handicap
- Refactored ChallengeCommand.register to have 12 versions (TODO: Refactor to be more flexible & concise)
- Refactored ChallengeCommand.challengePlayer to include min/max level & handicap
- Added check in ChallengeCommand.challengePlayer to clamp minLevel to maxLevel
- Refactored notification format in ChallengeCommand.challengePlayer to display level range & handicap to challengedPlayer

ChallengeUtil:
- Refactored ChallengeUtil.createChallengeRequest to intake min/maxLevel & handicap
- Added method ChallengeUtil.getBattlePokemonAdjustedLevel to handle each individual pokemon level according to min/maxLevel, handicap, & clamp to (1,100)

LeadPokemonSelectionSession:
- Refactored LeadPokemonSelectionSession.beginBattle to use min/maxLevel & handicap to pokemon

LeadPokemonMenuProvider:
- Refactored LeadPokemonMenuProvider.setupPokemonRepresentation to apply min/maxLevel & handicap to pokemon

ChallengeBattleBuilder:
- Refactored ChallengeBattleBuilder.lvlxpvp to intake & pass min/maxLevel & handicap to ChallengeBattleBuilder.createBattleTeamFromParty
- Refactored ChallengeBattleBuilder.createBattleTeamFromParty to apply min/maxLevel & handicap to pokemon

(cherry picked from commit 16970ff)
Modified README including min/maxLevel & handicap explanations.
@SomeGuyEight
Copy link
Contributor Author

Sorry, small formatting issue with the command order. I updated the README here.

https://github.com/SomeGuyEight/Cobblemon-Challenge/blob/ce95d01a867f5cc60b5736dd7e47e5480ba8ba2f/README.md

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.

1 participant