Commit Graph

12 Commits

Author SHA1 Message Date
Guangcong Luo
78439b4a02
Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00
ACakeWearingAHat
aa000fb8a2
Randomized format set updates (#10854)
* Gen 9 Battle Factory updates

* Force Stealth Rock on non-Uber teams

* update ru spreads for no conk

* Implement Mienshao NU ban

* Random Battles: January 2025 balance patch

* some work

* continued

* baby and lint

* lint and stuff

* Gen 5 Shuckle

* Fix doubles HP EVs

* Remove most terrain abilities from spotlight and add fur coat

* Fix Ursaring roles in old gens

* cacturne and seel

---------

Co-authored-by: livid-washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: adrivrie <adriaan.de.vries@hotmail.com>
2025-02-01 00:29:39 -07:00
Mia
d3e60b31f7
Sim: Use a CSPRNG (#10806)
* Sim: Use a CSPRNG

* Add test

* fix test prng

* move prng test to others

* fix slight hack

* tf?

* Fuck this

* fucking lol

* fix crap

* i'm going to kill someone

* i hate state

* fix test

* Good work genius

* typo

* Fix exportinputlog

* Refactor for inputlog backwards compatibility

This is a pretty major refactor which is mostly unrelated to the
feature, but it does make the code a lot simpler.

* Readability pass

* Readability (again)

* Remove sodium-native dependency

* Refactor to serialize seeds in hex strings

(Also removes the Buffer dependency from PRNG, and slightly improves
comments.)

* Apparently << is 32-bit signed

* Readability

---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-01-11 13:56:34 -06:00
livid washed
5e8e7aee91
Randomized format set updates (#10680)
* Randomized format set updates

* Update sets.json

add scale shot overqwil
add substitute zamazenta

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2024-11-18 15:13:23 -07:00
larry-the-table-guy
a86d04342d
Data: Fix huge perf bugs in randbat tests, part 1 (#10616) 2024-11-09 03:45:18 -08:00
ACakeWearingAHat
f2b538d8c2
Randomized format set updates (#10621)
* October midmonth update

* this one wasn't there when i got here

* i keep missing commas

* lint

* lint

* Make gen 4 Umbreon work

* add boots slither

* change clef fire move

* change suicune

* give supercell slam odd hp evs

* support pult + fix weird error

* unfix?? weird error

* hex pult

* -1 level silicobra

* more updates

* Prevent Shedinja from generating after bad weather setters in Gens 3-5

* remove taunt from stuff

---------

Co-authored-by: kcliu2 <85981834+kcliu2@users.noreply.github.com>
Co-authored-by: livid-washed <115855253+livid-washed@users.noreply.github.com>
2024-10-23 11:45:06 -06:00
livid washed
df2036b01b
Randomized format set updates (#10452)
* Randomized format set updates

* prevent booster wake

* update bssf

* lint hehe

* maybe this comma is the problem

* Gen 2: add Surf to Lickitung

* More baby rands set changes

* Gen 3 Entei: -HP ice

* Baby Rands level adjustments

* Thief Spinda Gens 6-7

* Gen 7 Lunala and Gen 6-7 Smeargle

* Gen 9 Qwilfish

* add av ampharos

* Simplify Rock STAB enforcement in gens 4-7

* Gen 2 Lickitung: remove mint berry

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2024-07-31 16:28:11 -06:00
ACakeWearingAHat
3049d4cf7a
Randomized format set updates (#10421) 2024-07-15 20:19:47 -04:00
livid washed
085839ca39
Revamp ability generation in Random Battles (#10392) 2024-07-12 00:06:30 -06:00
ACakeWearingAHat
77f6c9de2e
Randomized format set updates (#10376) 2024-07-01 08:48:29 -05:00
livid washed
7158ead19a
Randomized format updates (#10306) 2024-05-19 11:46:49 -06:00
livid washed
64c5951970
Move Random Battles files to a separate folder (#10285)
* Move Random Battles files to a new folder

* Fix bdsp test

* Move SSB back and move rands files into folders

* fix BF tests

* fix test

* fix bug

* fix SSB teamgen
2024-05-09 18:52:33 -06:00