smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.64k stars 2.71k forks source link

Improve code readability #10374

Closed Zarel closed 4 days ago

Zarel commented 1 week ago

This is just a bunch of random changes to improve code readability.

The biggest change is battle.gobattle.turnLoop and battle.commitDecisionsbattle.commitChoices.

PRing on the off chance someone hooks into these functions.

Zarel commented 1 week ago

Oof this is what I get for running test and not full-test