Commit Graph

223 Commits

Author SHA1 Message Date
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
Guangcong Luo
973b01c1e4 Refactor Crazyhouse rule implementation
Previous implementation was quite wonky and doesn't really need to be.
2024-07-01 01:01:40 -07:00
Kris Johnson
89128dee97
Utils#Multiset: Redefine get to remove undefined return (#10329) 2024-06-06 17:16:59 -06:00
Kris Johnson
192572f216 Fervent Impersonation: Fix Mimikyu/Cramorant/Eiscue 2024-06-06 16:11:12 -06:00
Kris Johnson
23b3ff962d Fervent Impersionation: Fix ability bugs 2024-06-05 23:19:56 -06:00
Kris Johnson
cf7584ae0d Fervent Impersonation: Fix nickname legality 2024-04-15 20:17:30 -06:00
Kris Johnson
b22c85cb5d Put Min Source Gen = 9 into Standard OMs 2024-04-14 10:16:46 -06:00
Kris Johnson
35c0270a09 Fervent Impersonation: Fix HP bug 2024-04-13 23:11:26 -06:00
Kris Johnson
4c7eba228e Add Fervent Impersonation 2024-04-13 15:53:22 -06:00
Yoshiblaze
cfb71f27b3
Add New Pet Mod of the Season & Leader's Choice (April-July) (#10229)
* PMOTS April 2024

* Update formats.ts

* Update formats-data.ts

* Update items.ts

* Update moves.ts

* Update rulesets.ts

* Create rulesets.ts

* Update scripts.ts

* Update formats-data.ts

* Update formats-data.ts

* Update rulesets.ts

* Update formats.ts

* Update formats.ts

* Update formats.ts

* Update rulesets.ts

* Update moves.ts

* Update formats-data.ts

* Update formats.ts

* Update moves.ts

* Update formats-data.ts

* Update pokedex.ts

* Update formats-data.ts

* DLC2 Learnsets

* Update formats-data.ts

* Update formats-data.ts

* Update pokedex.ts

* Update pokedex.ts

* Update pokedex.ts

* Delete data/mods/donotuse/rulesets.ts

* Update formats.ts

* Delete data/mods/donotuse/formats-data.ts

* Delete data/mods/donotuse/scripts.ts

* Delete data/mods/moderngen2/moves.ts

* Delete data/mods/moderngen2/items.ts

* Update scripts.ts

* Update scripts.ts

* Update formats-data.ts

* Update scripts.ts

* Update rulesets.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-03-31 22:04:48 -06:00
Theia
d582160079
Update Chimera 1v1 Mod description (#10172) 2024-02-15 09:30:10 -07:00
Distrib
3c31c0fa45
Add Force Monocolor rule (#9931)
* Rules: Add forcemonocolor

* update

* Update data/rulesets.ts

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

* Update data/rulesets.ts

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

* Update rulesets.ts

* Update rulesets.ts

* Update data/rulesets.ts

---------

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-02-06 22:46:45 -07:00
Kris Johnson
437c476759 Add Force Tera Type rule 2024-02-06 22:21:51 -07:00
Kris Johnson
c22a17821e Re-Evolution: Fix evolving into exclusive formes 2024-01-31 16:13:27 -07:00
Kris Johnson
a5208f665e Rename Draft formats 2024-01-19 16:31:56 -07:00
Alexander B
fa1b5fd98b
STABmons: Fix NatDex validation (#10123) 2024-01-18 22:03:13 -07:00
Kris Johnson
ac06f291be ADV LC: Add Accuracy Moves Clause 2024-01-14 11:24:44 -07:00
Kris Johnson
6bb9c97551 DPP OU: Add Focus Energy to Baton Pass Clause 2024-01-11 20:35:22 -07:00
Guangcong Luo
3c51f8aa1f
Refactor BestOfGame (#10026)
This replaces some pretty jank code with much cleaner code.
Anything that would be more cleanly implemented by iterating the
players array is now done by iterating the players array.

Some instances of p1/p2 are lying around but we should slowly deprecate
them.
2024-01-07 01:45:23 -08:00
Karthik
409f512bfd
Fix Zacian/Zamazenta Crowned formes in Hackmons (#10075) 2024-01-03 18:00:29 -07:00
Karthik
e51cb1b80b
Fix Event Moves Clause banning Hidden Power types (#10070) 2024-01-02 15:17:17 -07:00
Kaen
b53ab4cd66
Rework Protean Palace (#10036)
https://www.smogon.com/forums/threads/protean-palace.3726834/post-9909685
2023-12-29 12:22:32 -07:00
Theia
5bc763002d
Update Evasion Items Clause description (#10038) 2023-12-28 21:02:38 -06:00
Leonard Craft III
b6704374b8
Add Blueberry Prologue (#10024)
* Add Blueberry Prologue

* Minor formatting
2023-12-27 12:56:29 -07:00
Kris Johnson
e8c106ea1e Remove all mentions of "Nintendo" 2023-12-21 11:44:43 -07:00
Kris Johnson
243b3b0b9a DPP: Add another new Baton Pass Clause variant 2023-12-18 15:43:35 -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
Guangcong Luo
eb60769cd3
Refactor learnset checking (#9951)
After seeing fifty different ways we use `getLearnset`, most of which
are just "haphazardly assemble a movepool", I decided to write
`getFullLearnset` and `getMovePool`, which centralizes the
implementations and prevents weird bugs like 9713dc6db5 which
we spent two years trying to figure out.
2023-12-08 22:45:47 -06:00
Guangcong Luo
9713dc6db5 Fix crash in Rulesets
Crash introduced in #8195 and has been plaguing us with thousands of
crashes per month for the past two years, but 9cd64cba15 finally
let us track it down.

Special thanks to everyone who spent so much time and effort trying
to identify the source of this crash over the past few years. It's
over. It's finally over.
2023-12-07 16:34:51 -05:00
Kris Johnson
b43fb07a54 Add December 2023 OMotM/RoA Spotlight 2023-12-01 00:07:24 -07:00
Alexander B
c77aed8877
Add Illusion Level Mod (#9859) 2023-10-31 10:12:02 -06:00
Kris Johnson
86ceaf750a Rework Godly Gift 2023-10-21 22:45:23 -06:00
Karthik
d3cb797867
Send Open Team Sheets to client in packed format (#9832) 2023-10-17 21:15:09 -05:00
Kris Johnson
0fae2dfc9d Fix build 2023-10-15 11:09:57 -06:00
Mia
429379e184 Disable Max Team Size for Computer-generated Teams 2023-10-03 11:45:39 -05:00
Marty
7f95d251e8 Add Kitakami Prologue Online Competition 2023-10-01 22:03:18 -04:00
Karthik
3c07681ec5
Fix Force OTS not revealing sheets to spectators in tour games (#9802) 2023-09-24 20:22:38 -05:00
Karthik
94179bb203
Force OTS: Don't reveal OTS to spectators in rated battles (#9798) 2023-09-23 10:32:59 -05:00
Mia
53c97cfd6d
Implement Bo3 (#9793) 2023-09-22 20:53:23 -05:00
Kris Johnson
5b4050d10f Illuminate acts like Keen Eye 2023-09-21 22:17:40 -06:00
Kris Johnson
35035c2038 Frantic Fusions: Fix bugs 2023-08-31 23:44:00 -06:00
Kaen
a7ce85cb6c
Add Protean Palace Mod (#9731)
* Add Protean Palace Mod

https://www.smogon.com/forums/threads/protean-palace.3726834/

* prevent libero/protean from activating twice

* oops

* Update data/rulesets.ts

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

* Update data/rulesets.ts

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

* Update data/rulesets.ts

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

* Update data/rulesets.ts

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

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-27 19:30:26 -06:00
Kaen
0dd9d7dc14
Frantic Fusions Mod: Replace aliases with species names (#9713)
This avoids confusion when someone uses an alias, like smogonbird to access to Talonflame.
2023-08-26 22:15:30 -06:00
Hisuian Zoroark
f7ba9226d9
Frantic Fusions: Fix validation errors (#9699)
* Frantic Fusions: Fix validation errors

* fix long line

* Update sim/team-validator.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-06 13:56:16 -06:00
Kris Johnson
2557b66715 Fix Frantic Fusions bugs 2023-08-04 01:18:04 -06:00
Kris Johnson
8d3f9f3b52 Add Frantic Fusions Mod and command 2023-08-04 00:52:17 -06:00
Kris Johnson
2e8b9a2863 BH: Fix Xerneas-Neutral 2023-08-01 09:54:36 -06:00
Kris Johnson
e304e07a93 Bonus Type: Fix bug 2023-08-01 01:14:23 -06:00
Kris Johnson
7b8255eb34 Balanced Hackmons: Fix validation 2023-08-01 00:56:26 -06:00
pyuk-bot
8dc70cc701
Gen 9: Allow Hacked Megas, etc. to Tera (#9684) 2023-07-31 23:12:46 -05:00