Closed KiwiFlavoredApollo closed 5 months ago
Awesome work, thanks for the contribution! I think it could be better to use a BattleStartError in PokemonUtility.startBattle than custom exceptions, startBattle is kind of a misleading name I should have called it startTrainerBattle.
Thank you for the feedback. I'll try rewriting exception handling part using BattleStartError. My rough guess is that PartyEmptyException
could be replaced with BattleStartError.Companion.insufficientPokemon
.
Added option to set maximum level restriction on player party. The maximum level will range from 1 to 100 and the default value is set to 100.