Commit Graph

1 Commits

Author SHA1 Message Date
livid washed
aa103be383
Old Gens Random Battles: Move data to JSON files (#9413)
* Add random-sets.json for old gens to store randbats data

* Use random-sets.json files for generating sets

* Use levels from data files in gens 3-7

* Remove levels from BDSP file

* Remove random battles data from formats-data.ts

* Remove unnecessary levelScales

* Rename species_set to data

* Update commands

* linting and syntax stuff

* Adapt randbats tests

* Forgot to remove levels from joltemons file

* Rename random-sets to random-data

* Add newlines at end of json files

* Fix description of /randbats command: defaults to gen 9

* Fix an issue with gmax

* Remove randomDoubleBattleLevel for mons without doubles sets

* Apply suggestions from code review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Rename randomBattleLevel to level

* Rename randomBattleMoves to moves

* Fix BDSP test

* Fix some gen 7-8 tests

* linting

* Gen 1-2: put custom levels in json file instead of customScale

* Gen 3: make Dunsparce level 88 (PUBL, it shouldn't be level 80)

* Type the JSON files

* revert a change that is no longer needed with typing

* moves should be IDs, not strings

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-03-07 11:50:02 -07:00