Commit Graph

187 Commits

Author SHA1 Message Date
Kris Johnson
cc68e3e967 Linked: Fix modified-priority moves in a link 2026-03-09 12:00:37 -06:00
Slayer95
55f9e85172
Linked: Fix inconsistent implementations of twoturnmove, lockedmove (#11804)
* Linked: Fix inconsistent implementations of twoturnmove, lockedmove

* Linked: Sturdier implementation for Torment
2026-03-08 12:06:19 -06:00
Kris Johnson
4c8c7cbdef FIx lint 2026-03-02 21:15:53 -07:00
Kris Johnson
6545c74486 Linked: Fix bugs with Encore, Stalwart, Propeller Tail, and Snipe Shot 2026-03-02 21:14:50 -07:00
Kris Johnson
8ce95e4a2c Linked: Fix crash 2026-03-02 19:53:51 -07:00
livid washed
1d8968acdf
Randomized formats update (#11782)
* Randomized set updates

* fix some things

* add resttalk primarina gen 7

* Create Pokemon incompability system

* Simplify code

* tghost oinkolognes

* Give sash back to doubles smeargle

* Give sash back to doubles smeargle
2026-03-01 03:20:05 -07:00
ACakeWearingAHat
c3e0bbd61d
Revamp Gen 9 Free-For-All Random Battle (#11406)
* WIP free-for-all revamp

* bonus touches

* Create ffa-sets.json

* Most stuff besides items

* Fix plate distribution logic

* The Palafin thing

* Update teams.ts

* Update index.ts

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

Co-authored-by: pyuk-bot <21160928+pyuk-bot@users.noreply.github.com>

---------

Co-authored-by: MacChaeger <21160928+pyuk-bot@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-08-31 23:58:46 -06:00
dot-Comfey
b27ddb4ae2
Add BDSP HOME relearner and fix BDSP event legality (#11374)
* Allow BDSP moves to be learned via HOME relearner

* Update team-validator.ts

Commented out my changes to see if this was causing a test to fail; turns out my code isn't at fault.

* Update team-validator.ts

* Don't get learnset for Pokemon that don't exist in BDSP

Without the isNonstandard check, the learnset will be taken from the base learnsets.ts file, which could result in detecting moves that are actually not from BDSP.

* Fix BDSP legality

* Update team-validator.ts

* Fix test and learnsets

* Update data.js

* Prevent illegal transfers to/from BDSP

Nincada from outside BDSP cannot be sent to BDSP, Nincada from BDSP cannot be sent to other Switch games, and Spinda cannot be sent from or to BDSP. Currently this has no effect in regular Gen 9, but it technically does in Gen 9 Natdex (I have no idea if anything changes), and it may affect future generations.
2025-08-27 12:15:59 -06:00
André Bastos Dias
3a67660d9e
Fix Trace message timing (#11282)
Co-authored-by: Karthik99999 <bandagondak0217@gmail.com>
2025-08-13 14:11:49 -04:00
André Bastos Dias
f753dbfdf0
Refactor stat calculation (#11321)
* Refactor stat calculation

* Simplify conditions

* Preserve comments

* Fix Nature Swap
2025-08-04 20:50:49 -06:00
Slayer95
07b90b13cf
Refactor Team Preview to avoid code duplication (#11237)
DRY is particularly relevant because of the hardcodes,
which are unlikely to be kept in sync in OM code.
2025-07-12 20:57:05 -06:00
Kris Johnson
babf4f6576 Add July 2025 rotational formats 2025-07-01 01:15:44 -06:00
Kris Johnson
8dfed1fa21 Update runImmunity type for mods 2025-06-02 01:12:29 -06:00
Kris Johnson
87e6f20664
Implement Monkey's Paw (#11004) 2025-03-31 22:38:53 -06:00
pyuk-bot
285cf9e2e6
Prevent Toxic Spikes from activating after being absorbed (#10940) 2025-03-05 22:41:56 -06:00
Guangcong Luo
72bd8baf9e Add TypeScript types for sim requests 2025-02-26 00:00:23 -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
Kris Johnson
519fe2eb37 Add February 2025 rotational ladders 2025-02-01 00:27:11 -07:00
pyuk-bot
d286478fe0
OMs: Fix innate abilities and items when switching in (#10844) 2025-01-28 20:24:13 -06:00
André Bastos Dias
6d5970829a
Fix inherit for in-game mods (#10834) 2025-01-25 11:38:30 -07:00
Karthik Bandagonda
b68fc72b24
Add [Gen 9] Draft Factory (#10702)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
* Add [Gen 9] Draft Factory

* lint

* show tera types of captains

* fix tests

* why did it pass locally

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

* Update formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-12-03 17:30:24 -07:00
Kris Johnson
44b0f7d8c1
Battle Actions: Clean up runMove and useMove function args (#10492)
* Battle Actions: Clean up `runMove` and `useMove` function args

* sdfsdf
2024-08-18 09:00:13 -06:00
livid washed
085839ca39
Revamp ability generation in Random Battles (#10392) 2024-07-12 00:06:30 -06:00
Guangcong Luo
8e83905363
Improve code readability (#10374)
This is just a bunch of random changes to improve code readability.

The biggest change is `battle#go` -> `battle#turnLoop`.
2024-07-01 17:08:08 -07:00
Guangcong Luo
88be8d7b3c
Refactor types for Lowercase<string> (#10377)
TypeScript 4.8+ supports Lowercase for lowercase strings, which isn't
exactly what ID is, but can be used to type IDs in object keys and data
entries that previously required string. I'm calling it IDEntry in places
where it should be an ID but TypeScript doesn't support that.

Very conveniently, no additional casts will be needed when using ID
where IDEntry is expected.

It's caught at least a few bugs, which is also why I'm PRing: I didn't
write the code for the bugs it found, and don't know if it's the right
way to fix them.

This ballooned into several other type refactors.
2024-07-01 15:57:14 -07:00
LegoFigure11
1f3b2e40d3
Add Gen 9 BSS Factory (#10180)
* Add Gen 9 BSS Factory

Co-Authored-By: NO-VED <16705080+no-ved@users.noreply.github.com>

* Split and tweak sets per Cake & Livid's review

* Put sets with moves that aren't rolled on one line

Apologies in advance to my linter

* Last of Cake's changes

* Fix missing curly

That's what I get for copy pasting

* Address livid's review

* Address Livid's review

* Show Gen 9 BSSF in search

* Address Kris' review

* Move Gen 9 BSS Factory to Rands Spotlight

per ACakeWearingAHat

* Update config/formats.ts

---------

Co-authored-by: NO-VED <16705080+no-ved@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-06-01 14:13:14 -06:00
Kris Johnson
0884e45f73
SSB: Implement balance changes (#10301)
* SSB: Implement balance changes

* meowdy

* add tico

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

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

---------

Co-authored-by: HiZo <96159984+HisuianZoroark@users.noreply.github.com>
2024-05-17 21:16:45 -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
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
Karthik
76c2e598c6
Let's Go: Implement itemless megas (#10212) 2024-03-24 22:56:13 -04: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
efa3b8cdc0 Tera Donation: Fix mechanics 2023-12-17 13:56:40 -07:00
Kris Johnson
6239b39af3 Add November 2023 RoA Spotlight 2023-11-01 11:36:13 -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
Kris Johnson
6ff8a6839b Mix and Mega: Add support for Masks 2023-09-15 11:41:31 -06:00
dot-Comfey
cbfca624cf
Fix Pomeg glitch for event eggs (#9716) 2023-08-17 00:25:04 -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
dot-Comfey
01e35f4f2d
Add Pokemon GO support (#9646) 2023-07-31 19:27:06 -05:00
Karthik
e218cb9dbb
Properly implement Chloroblast recoil (#9648) 2023-07-15 14:54:49 -05:00
pyuk-bot
fe78b3fb18
The Card Game: Simplify mod (#9456)
* Simplify TCG mod by modifying Pokemon.hasType

* Remove unnecessary import

* Fix formatting
2023-03-11 16:35:04 -07:00
Kris Johnson
9a52e0d33b
Mix and Mega: Expand mechanics (#9452)
* Expand Mix and Mega mechanics

* more stuff

* Make the ability delta the ability name

* Final tweaks
2023-03-09 12:46:35 -07:00
Kris Johnson
df7d294b33 Add The Card Game 2023-02-26 01:50:46 -07:00
Kris Johnson
90888d394d Add Tera Donation 2023-02-25 02:17:44 -07:00
Kris Johnson
0ea903abd8 Update The Loser's Game to Gen 9 2023-01-15 20:40:51 -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
Hisuian Zoroark
58dcf59b9a
Update Partners in Crime to Gen 9 (#8987)
* PP from ally moves is no longer infinite in PiC

* add deductpp to modded pokemon

* eep

* Refactor when start effects activate upon switching in.

* Add new effects for leppa berry consumption

* I forgot about these items ngl

* add some new support for moves

* Restrict Wandering Spirit, add extra failsafe

* fix things

* Last minute bugfix

* Update banlist

* start working on gen 9

* update nextturn

* a

* more stuff

* Update formats.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-12-05 16:02:58 -07:00
Annika
ce201bb761 Gen IX: Add Challenge Cup formats 2022-12-04 16:21:23 -08:00
Karthik
625ebcf6b0
Use -copyboost for Costar (#9024) 2022-11-21 11:25:48 -05:00
Karthik
a9b9f7820c
Fix various Ability related issues (#9020)
* Fix various Ability related issues

* Silently end Protosynthesis/Quark Drive
2022-11-20 12:17:26 -07:00
Kris Johnson
d50c8c249b
Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00