Commit Graph

39 Commits

Author SHA1 Message Date
Kris Johnson
48727c319d Fix typo! 2026-01-01 02:52:08 -07:00
Kris Johnson
61a7a3a675 Add January 2026 rotational formats 2026-01-01 02:47:40 -07:00
Kris Johnson
305fff4049 Fix failed tests 2026-01-01 02:28:28 -07:00
Kris Johnson
cacd9a80bb Fix block scoped variable duping 2026-01-01 02:24:58 -07:00
Kris Johnson
af4110abee Fix build again 2026-01-01 02:19:26 -07:00
Kris Johnson
e54906fe2c Add Likeshop ladders 2026-01-01 00:46:06 -07:00
Karthik Bandagonda
1a0953ffb6
VGC/BSS: Add Regulation I (#11003) 2025-03-31 19:17:33 -05:00
Guangcong Luo
0cb51158aa
Make "All Pokemon" rules more convenient (#10932)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Make "All Pokemon" rules more convenient

Previously, "+All Pokemon" did nothing except override "-All Pokemon",
which switched from a default-allow to default-deny system.

They still do that, but they now also override all previous pokemon
bans/unbans. This makes it easier to replace a banlist/whitelist
from an inherited ruleset without needing to reverse every previous
ban/unban.

This also adds an error if you use `+All Pokemon` in a ruleset where
it doesn't do anything.

Fixes #10772
2025-03-02 14:47:30 -08:00
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
f984fb10d9
Battle Factory set updates (#10710)
* Battle factory set updates

* weighting

* quaquaval taxel

* bugfixes

* zacian

* Fix Zacian-Crowned test

---------

Co-authored-by: livid-washed <115855253+livid-washed@users.noreply.github.com>
2024-11-30 10:32:06 -07:00
livid washed
b107d77f5c
Implement [Gen 9] Battle Factory (#10689)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
* Implement Gen 9 Battle Factory

* Make OU mons female when possible for Cute Charm Enamorus

* delete yanmega

* Update data/random-battles/gen9/teams.ts

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

* Apply suggestions from code review

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

* Apply more suggestions from code review

* Simplify two lines

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-11-26 10:12:39 -07:00
larry-the-table-guy
71fe7bdfcb
Test: Correct several format IDs (#10633) 2024-10-29 05:14:19 -07:00
ACakeWearingAHat
6040194540
Randomized format set updates (#10552)
* Randomized format set updates

* add fairy

* patch some issues

* last fix hopefully

* boolean oopsie

* i hate alolan ninetales

* more fixes

* add sneak to webs nect

* Tidy up some aurora veil code

* Fix sash with webs condition

* Update data/random-battles/gen9/teams.ts

---------

Co-authored-by: Kelvin Liu <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-09-17 10:34:07 -06:00
livid washed
085839ca39
Revamp ability generation in Random Battles (#10392) 2024-07-12 00:06:30 -06:00
livid washed
b2f346344c
Add July 2024 Randomized Format Spotlight (#10379)
* Add July 2024 Randomized Format Spotlight

* description

* clear out spotlight section, move to normal

* lint

* Update config/formats.ts

* Update data/random-battles/gen9/teams.ts

* Update data/random-battles/gen9/teams.ts

* last minute set changes thanks quziel

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-07-01 10:50:34 -06:00
livid washed
5345fe9f07
Improve and simplify Random Battles tests (#10366) 2024-06-27 23:32:21 -05:00
Kris Johnson
9f9749dcb1 BSS Factory: Prettify JSON file 2024-06-02 00:36:51 -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
Kris Johnson
d97a17e4ce
Add Super Staff Bros: Ultimate (#10279)
* Add Phoopes (#16)

* Add Scotteh (#17)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Mad Monty (#18)

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

* don't be lazy

* add snake_rattler (#11)

* Add Irpachuza (#14)

* Add sharp_claw (#19)

* Add zee (#20)

* Add ironwater (#21)

* Remove problematic code

Honestly we might just need to remake this later

* Add Kolochu and Rumia (#23)

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add deftinwolf (#22)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Create getRoomauth function (#3)

* Add Coolcodename (#26)

* Fix Anfield Atmosphere crash (#25)

* Update moves.ts

* Fix Sire Switch not protecting (#28)

* Fix Hat-Trick not criting on 3rd hit (#31)

* Properly display opponent's name for Irpachuza (#29)

* Fix Cacophony making all sound moves fail (#30)

* Rumia's Custom Stats (#33)

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

* Add Mex (#27)

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Add violet (#24)

* Add havi (#34)

* Add Krytocon (#32)

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

* Add custom lines for BreadLoeuf vs Mad Monty
by request of BreadLoeuf

* Add Mathy (#35)

* Add Zalm (#36)

* Add Eli (#37)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add hsy (#38)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Lumari (#41)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Add spoo (#40)

* Fix some alphabetization

* Add Cake (#39)

* Add ReturnToMonkey (#42)

* Add smely socks (#43)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Theia (#45)

* Add HisuianZoroark to codeowners for ssb

* Add Yellow Paint (#44)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Peary (#46)

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

* Add in the hills (#48)

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

* Add Blitz (#49)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add HoeenHero (#50)

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

* Add Isaiah (#47)

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

* Fix Blitz, update sun

* Add Dawn of Artemis (#54)

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Add Swiffix (#53)

* Add Pyro (#52)

* Add enemyStaff function (#57)

* Fix animation

* Update conditions.ts

* Fix debug teams not always having 6 pokemon (#60)

* Add Chloe (#59)

* Add Lalaya (#56)

* Add Venous (#55)

* Add WigglyTree (#61)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Ganjafin (#62)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Archas (#64)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add neycwang (#63)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Krytocon fixes (#65)

* Refactor Sharp_Claw's forme change to an innate (#58)

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Add DaWoblefet (#67)

* Add Aelita (#66)

* Rename mod to gen9ssb

* Fix file for ssb in codeowners

* Swiffix: Fix typo in description (#70)

* Make some changes for client support down the line (#75)

* Remove HisuianZoroark as a codeowner for Staff Bros.

Due to an unfortunately swamped college schedule and other IRL responsibilities, I do not have the time nor the energy to contribute to this format. Incredibly delayed commit as I mentioned this a while ago but better late than never.

* espacio

* Readd HiZo as CODEOWNER for SSB

* Remove questionable users

* Refactor a fuckton, prep for revival

* oops

* Add Loethalion (#80)

* Rename users

* Add Meteordash

* Add WarriorGallade

* Add Notater517

* Add HiZo (#81)

* Add Isaiah + tweak Ney

* Add berry

* Add kenn

* Add Lasen

* Fix move type

* Add aQrator (#82)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Teclis (#83)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Lily

* Add Xprienzo

* Add Aegii

* this fucking sucks lmao

* Revert "this fucking sucks lmao"

This reverts commit e15eef6a025af42d1d090d7c958513586b494a28.

* properly make quote less hacky

* Add Alex

* I am a dumbass

* Redo Violet (#84)

* Add Sulo (#90)

* Add Quite Quiet (#89)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Hydrostatics (#87)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Lunell (#85)

Co-authored-by: HoeenHero <HoeenCoder@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Waves (#96)

* Add Siegfried (#93)

* Add PartMan (#86)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add YveltalNL (#97)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Arya (#94)

* Fix things

* Add Kiwi (#91)

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

* Add zoro (#101)

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

* Add J0rdy004 (#103)

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

* Add Artemis (#102)

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

* Add Frozoid (#100)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add Monkey (#98)

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

* Add Two of Roses (#95)

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

* Add Emboar02 (#99)

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

* Add Appletun a la Mode (#92)

* Add ptoad

* Add Lionyx (#104)

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

* Add chaos (#105)

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

* Add Ransei (#106)

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

* Add Karthik (#107)

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

* Add Zarel (#108)

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

* Add Corthius (#111)

* Add Fame (#109)

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

* Add Alexander489 (#110)

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

* Add Alpha (#114)

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

* Add Tico (#115)

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

* Add skies (#113)

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

* Add Valerian (#116)

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

* Add Klmondo (#117)

* Add xy01 (#118)

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

* Add Lets go shuckles (#119)

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

* Add Pissog (#120)

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

* Add Kalalokki (#121)

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

* Add Solaros & Lunaris (#122)

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

* Add AuzBat (#124)

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

* Add Soft Flex (#123)

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

* Add Struchni (#125)

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

* Add autumn (#126)

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

* Update move name

* Update random-teams.ts

* Add Elliot (#129)

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

* Add Akir (#127)

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

* Add Arsenal (#128)

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

* Add Billo (#130)

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

* Add Frostyicelad (#131)

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

* Add kingbaruk (#132)

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

* Add maroon (#133)

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

* Add avarice (#136)

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

* Tweak HiZo, Update Irpachuza

* fix vio anim

* fix crash

* Add Clouds (#134)

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

* Add Clefable (#135)

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

* Add za (#140)

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

* Add Haste Inky (#138)

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

* Add Nyx (#137)

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

* Update Emboar02 (#141)

* Add Froggeh (#139)

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

* Add Cake (#142)

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

* Add ken (#143)

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

* Add ausma (#144)

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

* Add Tenshi (#146)

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

* Add spoo (#148)

* Add Arcueid (#147)

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

* Add nya (#152)

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

* Add RSB (#149)

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

* Add Kaede (#151)

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

* Add Beowulf (#150)

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

* Add pokemonvortex (#112)

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

* Rename Kris

* Add Ciran and keys and do tweaks

* Krytocon, eva, Clementine

* Fix initial bugs/crashes

* Fix Bugs, optimize stuff

* Some bugfixes

* Fix boost

* Tweak some cosmetics (#153)

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>

* Add protocol for vivi custom move

* teehee

* fug

* Tweaks

* Update Rumia, Artemis, UT and Kry (#157)

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

* Add MyPearl (#154)

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

* Add marillvibes (#156)

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

* Add R8 (#155)

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

* Fix some bugs

* Update (s)poo

* Fix build

* Add Sificon/Goro Yagami, bugfixes

* EWPS!

* Fix Artemis crash

* Update /ssb

* Remove Alpha

* Add Felucia (#158)

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

* Add PenQuin / update Sificon (#159)

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

* Nuke image quotes (#160)

* Add blazeofvictory (#165)

* Add Rainshaft (#166)

* Add vmnunes (#164)

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

* Add SexyMalasada (#167)

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

* Add quziel (#163)

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

* Update ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

* Live debugging me on prod

* Fix crash

* Fix bugs

* Fix typo

* Oops :-3

* im so stupid

* Add Opple (#169)

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

* Add Pulse_kS (#171)

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

* Add Aethernum (#172)

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

* Add DianaNicole (#170)

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

* Update Hizo + plenty of desc additions (#168)

* Update ausma, MadMonty (#162)

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

* Nerf Waves

* Fix dhelmise x4

* Fix violet move accuracy

* Stop forcing my mon every time

* Fix build

* Add EasyOnTheHills / Update Valerian (#161)

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

* Add Lyna (#173)

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

* Add Vistar (#174)

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

* Bugfixes vol. 1 (#175)

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

* Re-add some stuff

* More bugfixes

* Update PartMan's messages to add aQrator (#176)

* Fix bug with Scapegoat

* More Bugfixes/QoL changes (#177)

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

* Some buffs

* Put bite flag on RSB sig move

* Fix illusion master

* Fix storm surge desc

* FIX BUILD D:DPDODKEIKFIFWFDFSDF

* Fix meteordash agAIN

* Fix anfield

* Some fixes + temporary chat plugin

* meow

* Fix build

* kolohe namechange

* Update html script

* Super Staff Bros: Grammar & Polishing (#178)

* Add Hidden Format and fix aesthetics (#179)

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

* Fix some bugs

* Fix stuff

* Temporarily remove Hidden format team generation

* Fix Arcueid quotes, remove leftover code

* uhh meow

* Adjust J0rdy's stats

* Move SSB chat stuff into its own plugin

* Add a command to disable sets (#180)

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

* Update article URL

---------

Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com>
Co-authored-by: TomOfTomKat <73961857+TomOfTomKat@users.noreply.github.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: ausmacon <107449244+ausmacon@users.noreply.github.com>
Co-authored-by: Alexander B <4866817+MathyFurret@users.noreply.github.com>
Co-authored-by: HoeenHero <HoeenCoder@users.noreply.github.com>
Co-authored-by: PartMan <47669599+PartMan7@users.noreply.github.com>
Co-authored-by: WarriorGallade <100499523+WarriorGallade@users.noreply.github.com>
Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2024-05-04 12:01:51 -06:00
livid washed
a16ed3f4c4
Add May 2024 Randomized Format Spotlight (#10274)
* Add May 2024 Randomized Format Spotlight

* add desc

* caps in broadcast

* add clauses

* fix test

* Fix level adjustment test

* Update config/formats.ts

* Update config/formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-05-01 10:07:22 -06:00
livid washed
cf5ba80ca4
Revamp [Gen 2] Random Battle (#10220)
* Gen 2 revamp

* Fix test

* RIP the meme

* victreebel

* vic again
2024-03-31 21:33:54 -06:00
livid washed
647ebea024
Revamp [Gen 3] Random Battle (#10056)
* Set up framework for Gen 3 rands

* Fixing code from other gens, tests, incompatibilities

* Get Multiple Preferred types working

* Berry Sweeper

* STAB enforcement

* Abilities

* Abilities pt 2

* Items

* more abilities

* Removing teamgen limits (council decisions)

* oops

* simplify tests

* Remove unnecessary PType

* Fuse unnecessary set split

* HP EVs finetuning

* More HP EVs fiddling

* role tinkering

* Remove isDoubles from past gens code

* Remove lingering code from gen 4

* improve tests

* Psychic on Staller Lugia

* Update data/mods/gen3/random-teams.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-01-02 23:32:32 -07:00
Kris Johnson
a0f10ffa51
Add DLC2 data (#9963)
* DLC2 returning Pokemon

* Returning legendaries too

* Partially add Raging Bolt and Iron Crown (#10)

* Add remaining Pre-DLC2 event data

* Fix tests

* Last event before DLC + split learnset files

* Learnsets + secret returning pokemon

* Some DLC 2 stuff (#12)

* Add New Mons

* Add Electro Shot

* Give Dipplin Dex Evo

* Update data/moves.ts

---------

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

* More tweaks

* formats

* Revealed moves (#11)

* Add Hard Press

* Add Psychic Noise

* Add Upper Hand

* Apply suggestions from code review

---------

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

* more things

* Fix typo

* a lot of other things

* MOVES! kinda

* b

* fickle beam confirmed chance

* Evo Item Undexit + Metal Alloy + Move Fixes (#19)

* Update move data

* Update Item Data

* Apply suggestions from code review

---------

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

* Add message for Fickle Beam BP double (#18)

* Add some tests and implement Tera Shell (#15)

* add some tests and draft of tera shell

* add text

* .

* add improvements from feedback, change behavior of terashell

* use AfterMove instead of AfterMoveSecondary

* add confirmation to multi-hit interaction

* improve based on feedback and general cleanup

* Apply suggestions from code review

---------

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

* Add Tera Shift and Teraform Zero (#16)

* Add Tera Shift and Teraform Zero

* Add short descriptions

* fixes

* More move changes

* Update unSketchable moves

List from Anubis

* more move things

* oops

* Implement new Neutralizing Gas/Paradox ability interaction (#17)

* Implement new Neutralizing Gas/Paradox ability interaction

* add test

* revert in dlc

* ok

* Update pastgens for Sketch (#20)

* Implement Stellar type (#13)

* Implement Stellar type

* stuff from research

* pain

* add tests for Dragon Cheer (#22)

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

* Update move flags (#23)

* Fix flags for new moves

* update old moves

* remove sparkling aria changes

* update metronome description

* update other move descriptions

* more formatz stuff

* Add Poison Puppeteer (#24)

* Add Poison Puppeteer

* i'm bad

* still bad

* Fix build

* oops

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/items.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Fix Terapagos dex entries (#25)

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* FIX BUILD

* Fix Regulation E formats (#26)

* Fix Regulation E formats

* add move bans

* nevermind

* Add Regulation F formats (#27)

* Fix interaction between Adaptability and Tera Stellar (#28)

* reg f bo3 ladder

* Update config/formats.ts

Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>

---------

Co-authored-by: Smudge <smudgerox@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: tofa <79044321+im-tofa@users.noreply.github.com>
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
2023-12-15 21:35:01 -07:00
livid washed
84ac9e9e3e
Revamp [Gen 4] Random Battle (#9883) 2023-11-05 17:28:02 -06:00
livid washed
cb3935aabc
Revamp [Gen 5] Random Battle (#9822)
* Preserve Gen 4 rands

* Set up move arrays

* Create framework for new system

* Remove some gen 6 stuff

* Implement Spinner role code

* make Priority Pokemon work

* Fix castform level

* Remove random-data.json

* Remove more gen 6 abilities

* Treat Nature Power like eq

* More gen 6 removing

* knockoff nostab

* Prioritise non-speed setup moves on setup roles

* Enforce recovery on Spinner

* Bisharp blackglasses

* Add comment re. Nature Power

* Remove duplicate comment

* Update tests for gen 5

* Add tests

* fix some things in json file

* formatting

* fill out random-teams

* adjustments

* remove roost raptor

* pt psychic celebi set 1

* lint

* nostab chatter

* Expert Belt conditions

* Fix some incompatibilities

* Item generation

* Formatting

* fix Unaware Clefable

* Refactor some items

* Remove unnecessary code

* Prevent tinted lens night shade noctowl

* Thundurus

* reun

* Pressure tomb

* remove gen 6 setup moves

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2023-10-06 19:58:51 -06:00
livid washed
ab59e1d86c
Revamp [Gen 6] Random Battle (#9744) 2023-09-03 17:46:35 -05:00
ACakeWearingAHat
118d114bd1
Revamp [Gen 7] Random Battle (#9692)
* Create framework for Gen 7 rands revamp

* Shuffle moves and deal with Z-Conversion Porygon-Z

* Add isDoubles as a input for STAB enforcement

* Undo previous

* Move gen 7 doubles code to a separate file

* fill out moves

* revamp abilities

* minor moveset updates

* prevent technician alolan persian

* mostly linting

* Revamp setup moves

* Male Greninja

* Further clean up Setup lists

* More Z-move stuff

* Tweak move and ability incompatibilities

* enforce shadow sneak on kecleon

* Add Geomancy to setup and prevent evasion abilities by default

* items

* more minor set updates

* linting

* add more z-move users

* soundproof kommonium clanger

* rockium kabutops

* Weak Armor adjustments + some syntax

* refactor and fix /setodds and /randbats and /randdubs

* improve item generation code

* Allow plot sucker houndoom

* Allow Power Construct on Zygarde and homogenize gen 6 ability generation code

* Don't apply new noSTAB list to gen 7 doubles

* Fix -ate abilities

* comment

* Rework shed skin a bit

* Abilities tweaking/simplifying

* simplify Magnet Pull, since Probopass always has earth power

* Enforce U-turn on some Bug types

* Rework specific ability rejections into enforcements

* Prevent Oblivious on Pokemon with no Status moves, since infatuation doesn't exist

* Remove unnecessary item generation code

* Remove Petaya Berry from HP EVs adjustments

* prevent scarf lanturn

* scarf physical changes

diggersby/medicham

* Give Genesect-Douse its level

* Bug fixes and minor set changes

* Split raichu-alola

* Remove unnecessary preferred types

* Don't enforce HP flying on flying types

* make 4 atks jirachi av

* Actually give Jirachi AV and prevent swift swim kingdra with focus energy

* remove another unnecessary ptype

* Drain Punch/CC incompatibility

* Enforce recovery on support Mew

* Prevent Life Orb with Sturdy

* add preferred type(s) to /randbats for gen7

* lint

* forgot semicolon oops

* Remove kangaskhan PT

* Fix u-turn enforcement

* Enforce recovery on Volbeat

* Don't give Honchkrow Black Glasses

* Setup Solgaleo should get Weakness Policy

* Add Bulk Up to guts hariyama

* make Kingler setup sweeper

* Stoutland set update

* Prevent Sash Mismagius and double fire move Volcarona

* Prevent Choice Scarf on Wallbreaker

* Enforce recovery on Ledian

* Remove Ice Beam from Absol-Mega

* Adjust Seviper PTs

* PT normal Heliolisk

* Add PUP to nostab

* Future-proof Nihilego's SpD EVs in case of level changes/Hidden Power IVs

* Change Shaymin PT to Flying

* Prevent lead Focus Sash with Defog or Regenerator

* Remove unnecessary condition for sash

* Move pivotingMoves to the top

* Support Max Move Count tests for gens 7 and 9

* Move general incompatibilites to incompatiblePairs array

* Create a type for roles

* Make Gen 7 no longer inherit from Gen 7 doubles

* Remove unnecessary hardcode

* Remove now unnecessary code (after doubles/singles separation)

* Move hardcodes into incompatiblePairs array

* Split ability enforcement into species and non/species conditions, and fix up some minor things

* Convert ability enforcements that only apply to one Pokemon to species-based

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Update random-teams.ts

* make types for role and preferredType explicit in function definitions

* Update test/random-battles/gen7.js

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

* Update data/mods/gen6/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen6/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* finish snake casing the gen 7 file

* snake case gen 8, hopefully

* Update random-teams.ts

* lint please

* missed a snake

* Fix an incompatibility

* Add types for randomSets

* Simplify /randbats data retrival for Gen 7 random doubles

* Further simplify gen 7 randdubs command

---------

Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: adrivrie <adriaan.de.vries@hotmail.com>
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-10 12:09:09 -06:00
livid washed
928cd3e79a
Implement Gen 9 Random Doubles Battle (#9601) 2023-06-16 12:35:11 -05:00
Guangcong Luo
06ec143d34
Speed up npm test
Randbat tests take up around 2/3 of the `npm test` runtime for me, so
we're now marking them all as slow.
2023-04-10 20:17:05 +09:00
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
Alexander B
b40a7dfe8d
Add Randomized Format Spotlight for March (#9427)
* Add Randomized Format Spotlight for March

* ope

* fix test

* alphabetize

* Allow using (un)banlist in custom HC formats

* fix crash
2023-02-28 15:36:07 -08:00
Mia
b11177d530
Migrate to esbuild for compilation (#9203) 2022-12-22 15:19:29 -06:00
Alexander B
dc84b385d9
Random Battle fixes and updates (#9200)
* Add test for new random sets

* Fix illegal moves + more updates

* Prevent T-Wave + Yawn

* Require movepools in alpha order
2022-12-16 23:12:39 -07:00
ACakeWearingAHat
686a020e2c
Implement Gen 9 Random Battle (#9169)
* Move gen 8 rands code to gen8 folder

* Add test data file

* Remove hidden power from random-teams

* Remove BDSP

* Remove item selection for now

* Remove ability culling for now

* Remove move culling for now

* Obtain allowed pokemon from random-sets.json

* Add tera blast counter

* linting

* Remove Dynamax from random-teams

* Remove unnecessary check

* Add role and tera type + fix data format

* remove gmax

* Disable tier for now

* movePool should have move ids not names

* linting

* Add required moves

* Create an individual function for moveset generation

* Return moves early if <= 4 moves available

* Add counter for individual STABS, including tera

* Tera Blast is tera stab

* Add some moves (help with testing)

* Remove culling moves from moveset

* Add new hazard removing moves

* Test STAB and recovery moves

* Cull movepool each time a move is added

* Black Sludge only if tera type is Poison

* teratype and role to functions

* Test some 'High Priority' items

* Move ability selection to its own function

* Fix ability sorting/selection

* No need to go through the move adding process if number of moves in set + movepool is 4

* lint

* Remove some pokemon that aren't in gen 9 randbats

* Tera STAB example

* Allow for forcing abilities

* Silvally not in gen 9

* Move level calculation to getLevel

* Tier-based levelling and doubles coverage

* Sitrus Berry default item for doubles

* Avoid hard-coding for species frequency

* Linting + replace hail with snow

* Change a comment slightly

* Fix STAB moves: need to check that they do damage

* minor thing

* Comment out tera type requirement

* comments

* Add gen 9 randbats format

* STAB counter

* Remove setupType

* Add cullMutlaExclusive()

* Remove unnecessary functions

* Move CC/HC to the bottom

* Allow movesA and movesB to be overlapping

* Initialization of fill-out

* linting

* Setup moveEnforcementCheckers

* Type/STAB counter only updates for moves that aren't in noSTAB

* Account for type changing abilities earlier

* STAB enforcement

* Setup moves array

* linting

* Revert Setup change

* More fillout

* move tweaks

* Tera STAB enforcement

* Remove rest from recovery moves

* Enforce setup

* Add Facade if Guts

* Misc enforced moves

* Enforce more moves

* Enforce STAB priority

* Setup forced on tera blast user

* check if there are moves of the desired kind before sampling

* move tweaks

* Need to check if setupMoves is empty

* fix brute bonnet

* fix scream tail

* Finish up move incompatibilities

* fix scream tail harder

* Formatting

* Fix some things

* End culling early if movepool gets too small

* Paired moves: end culling early if movepool gets too small

* Remove 'stop cull' for testing purposes

* If 2/4 moves are filled, remove single unpaired move

* Remove now unnecessary hardcodes

* Use MovePairs instead of hardcoding pairs

* addMove function for adding moves to moveset

* Move updates

* Extra check is unnecessary, moves and movePool should never have moves in common

* Mach Punch required on Breloom

* lint

* Remove Synthesis from Brute Bonnet (5 enforced moves)

* adjust oranguru tera types

* finish up moves

* Force abilities

* Update my favorite pokemon

* linting

* Add shouldCullAbility

* fix setup counter

* Move sorting abilities below hardcoding

* minor change

* Add fields

* fix sawsbuck typo

* Improve the species generation + remove Basculegion and Houndstone as possible leads

* Fix Species frequency

* Linting

* veluza can actually run sharpness

* code all ability rejections

* Update random-sets.json

* EVs/IVs tinkering change

* fix capitalization error

* Perform small fixes

* fix moves that don't exist

* linting

* Magnezone hardcode

* Items

* Update random-teams.ts

* linting

* prep for leveling

* long list for ditto

* comment out a line of text

* finish individualizing levels and also melop sucks

* add lokix thing

* revavroom

* updates from testing

* komala probably shouldn't have dark as an option

* tropius fix

* intim mence is ok

* kleavor should not get sheer force

* why did we give hydre earth power lmao

* why did we put leech seed on toed

* forgot to sitrusify cheek pouch mons

* fix enamorus

* Syntax error

* Change Zoroark lastmon condition to level >= 72

* Fix Zoroark-level constraint to allow for level forcing

* Fix singles vs doubles definition

* Use species.id as much as possible for set generation

* updates from testing

* allow flash fire heatran

* additional sash parameters

* reject stakeout if the user has zero attacks

* fixes

* update pawmot abilities

* Change iron fist counter to a number

* Force Own Tempo on Petal Dance Lilligant

* Add T-wave to SD groudon set

* Slush Rush guaranteed with Snowscape + possible if team has snow

* Rework ability sorting: find list of non-culled abilities before sorting and selecting

* Move S/V rands to The Forefront

* fix regidrago

* Small fix to choosing allowed abilities

* update aliases

* Update Arcanines

* Change from forEach to for, since index is no longer being used

* first impression is bug stab now

* set updates from the randscord

* Update /randbats to gen 9

* Add Tera Type to /randbats output

* things to do with steel

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Apply suggestions from code review

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

* Move Battle Factory and BSS Factory to mods/gen8 folder

* Remove gen8 factory sets test

* Copy over random-sets.json when building

* add missing heatran-based incompatibility

* fix sableye not always getting Recover

* set updates

* start movin' cap 1v1

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

* finish movin' cap 1v1

* Update random-battles.ts

* Update random-teams.ts

* Update random-teams.ts

Co-authored-by: livid washed <liuc.kelvin9901@hotmail.com>
Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: Alexander B <4866817+MathyFurret@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-12-13 17:56:29 -07:00
Annika
d6f3a66484 Attempt to fix CI 2022-03-30 23:05:16 -07:00
Annika
4d73b897b6 Random Battles: Support more value rules
This adds support for `Max Move Count` and `Adjust Level`
2022-03-30 21:56:43 -07:00
Annika
7e7f25457e Test team validity for all randomized formats 2021-11-23 16:10:18 -08:00
Annika
c134195915
Use ts-node instead of Sucrase (#8369) 2021-07-09 19:59:22 -07:00
Annika
27764ef5bf Random Battles: Unify tests 2021-05-07 10:19:45 -07:00