pokemon-showdown/test
Guangcong Luo c11dccb032
Rename and fix maxTeamSize (#8266)
`maxTeamSize` is a bad variable name (not that `teamLength.battle` is
any better, but that'll get fixed in a future refactor).

- Rename `maxTeamSize` to `chosenTeamSize`, to better indicate that
  this is the size after Team Preview, and that it is also the minimum
  size after Team Preview.

- Don't limit team sizes to 6 if `teamLength.battle` isn't specified.
  This removes an unnecessary `teamLength.battle` requirement in all
  Custom Game formats.

- Stop requiring `maxTeamSize` as a parameter for `battle.getRequests`.
  It's not even used except as a hint to the Preact client, and was
  never state in the first place.

- Stop supporting partial `side.chooseTeam`. This is an unused feature
  and removing it massively simplifies the code and fixes a bug in
  `cupLevelLimit` which definitely was not written with the
  understanding that `chooseTeam` could be partial.

- Fix a bug in #7929 which seemed to misunderstand what `teamsize` was
  for.
2021-05-04 00:31:05 -07:00
..
lib Add more style linting rules (#7537) 2020-10-19 02:42:28 -07:00
random-battles Random Battles: Fix STAB enforcement 2021-05-03 15:16:57 -07:00
replays Tests: Add a function to save a battle replay (#7692) 2020-11-29 22:08:01 +00:00
server Trivia: Support games with fewer than 3 players 2021-05-02 21:36:22 -07:00
sim Rename and fix maxTeamSize (#8266) 2021-05-04 00:31:05 -07:00
tools/modlog Modlog: FIx converter bug in action-taker regex 2021-02-06 11:42:07 -08:00
assert.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
common.js Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
main.js Chat monitor: Support unit tests (#7710) 2020-11-26 01:33:09 -08:00
users-utils.js Support destroying rooms in unit tests 2021-01-10 03:39:01 -08:00