Zarel/Pokemon-Showdown — pull request #122 by Dusk209 (2012-12-18 03:05:12+00:00)
Title: Massive overhaul of formats.js

I always felt like formats.js was a bit of a mess, and that the list of formats on PS could use some organization.

- Everything was re-ordered and re-categorized for ease of use
- Split the rules "pokemon" and "standard" into many separate legality rules
- Added rule sets which include lists of rules and clauses. These help quickly define the rules for a format.
- Added "Flat Battle" and "Nintendo" rules, which are meant for VGC and any other Nintendo-supported metagames
- Added Doubles Randbats to the search list
- Removed DW Ubers from the search list for obvious reasons
- Added "no restrictions," a format with no bans or clauses. This should be useful for those who want to play by their own banlists rather than Smogon's.
- Added "doublesteampreview" to the code which allows you to pick 2 leads. This was made for Doubles Custom Game because regular team preview does not work very well in doubles.