Commit Graph

27459 Commits

Author SHA1 Message Date
Guangcong Luo
d9ebe4a57b
CONTRIBUTING: Update dependencies and package-lock sections
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2025-01-16 12:17:28 -08:00
Guangcong Luo
fde2b1187f
PRNGSeed is now a string (#10826)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
This makes it so we no longer need to ad-hoc convert seeds from strings
to arrays when we get them from text protocols like the command line or
BattleStream's `reseed` command.

It also has the side benefit of making inputlogs very slightly smaller.
2025-01-15 15:51:28 -08:00
Guangcong Luo
ec7332b498 Import Utils from lib/utils
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
This mostly is just a step towards removing sim's dependency on Node's
stdlib.
2025-01-14 23:01:53 -08:00
Guangcong Luo
5ae7940e88 Test state on the new PRNG 2025-01-14 23:01:53 -08:00
shrianshChari
920c6f3e5c
PU: Ban Torterra (#10825)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
https://www.smogon.com/forums/threads/pu-council-updates.3718204/page-3#post-10405021
2025-01-13 14:31:31 -07:00
Kris Johnson
82ed1fb54d
STABmons: Re-ban Terastallization
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-13 00:04:06 -07:00
shrianshChari
4a1dd85b25
Monotype: Ban Zamazenta (#10819)
Some checks failed
Publish to npm / test (push) Has been cancelled
Publish to npm / get-version (push) Has been cancelled
Node.js CI / build (16.x) (push) Has been cancelled
Publish to npm / npm-publish (push) Has been cancelled
https://www.smogon.com/forums/threads/sv-monotype-suspect-10-who-let-the-dogs-out-zamazenta-suspect-test.3757205/#post-10401637
2025-01-11 19:01:39 -07:00
Mia
d3e60b31f7
Sim: Use a CSPRNG (#10806)
* Sim: Use a CSPRNG

* Add test

* fix test prng

* move prng test to others

* fix slight hack

* tf?

* Fuck this

* fucking lol

* fix crap

* i'm going to kill someone

* i hate state

* fix test

* Good work genius

* typo

* Fix exportinputlog

* Refactor for inputlog backwards compatibility

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

* Readability pass

* Readability (again)

* Remove sodium-native dependency

* Refactor to serialize seeds in hex strings

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

* Apparently << is 32-bit signed

* Readability

---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-01-11 13:56:34 -06:00
Kris Johnson
66792c9b41
Nature Swap: Remove unnecessary text from switch-in effect tag 2025-01-11 12:41:08 -07:00
RADU
5778f3ba1a
ORAS 1v1: Unban Mega Blaziken (#10811)
* ORAS 1v1: Unban Mega Blaziken

https://www.smogon.com/forums/threads/1v1-old-gens.3646875/post-10398391

* Update formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-11 12:38:09 -07:00
shrianshChari
d23498c164
BDSP: Update tiering for RU and NU Pokemon (#10816)
https://www.smogon.com/forums/threads/bdsp-nu-mesprit-ban-post-111.3697080/page-6#post-10400130
2025-01-11 12:36:22 -07:00
Kaen
20b0debcfb
Nature Swap: Update bans (#10817)
https://www.smogon.com/forums/threads/nature-swap.3757190/page-4#post-10390231
They also want to implement a new clause if anyone can look into that.
2025-01-11 12:36:09 -07:00
Kris Johnson
e4b36e9e4f Nature Swap: Add Nature Reveal Clause 2025-01-11 12:35:43 -07:00
André Bastos Dias
639b930d91
Fix Protean / Embody Aspect + Neutralizing Gas interaction (#10805)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-10 14:34:53 -06:00
André Bastos Dias
328e20dde1
Fix Gen 1 Substitute + Confusion interaction (#10802) 2025-01-10 13:49:11 -06:00
Dieter Reinert
8e250fb5e1
Translations: Add missing Dutch translations (#10794) 2025-01-10 12:53:29 -06:00
Leonard Craft III
b012054abb Fix build
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-10 00:53:24 -06:00
André Bastos Dias
dfcb64ec4c
Redo: Fix [from] message (#10798) 2025-01-10 00:36:13 -06:00
André Bastos Dias
2d9dc5d94f
Fix Protosynthesis + Cloud Nine interaction (#10804) 2025-01-10 00:31:04 -06:00
Karthik Bandagonda
c8bc6be7be
Auctions: Remove formatted bid messages + only send errors on bids to the bidder (#10813) 2025-01-09 23:04:33 -07:00
Karthik Bandagonda
a4c3528ef2
Auctions: Fix addplayer command + styling changes (#10795)
* Auctions: Fix addplayer command

* hijack pr for styling changes

* minor formatting change

* Add team name column to overall pricelist

* Add support for max players

* Don't send bid error messages to everyone

* Remove tiers hover text, add hover text of entire draft list when hovering over a teams player list
2025-01-09 22:56:49 -07:00
André Bastos Dias
041bf6a8b2
Fix Terastallization base power buff for priority moves called by Encore (#10808)
* Fix: Tera priority bump and Encore

* Line

* Fix check for multihit
2025-01-09 22:55:30 -07:00
Kris Johnson
03cda7fd8f
Mix and Mega: Unban Dragapult for suspect
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-08 21:08:10 -07:00
TomOfTomKat
c0d710350f
DPP Doubles OU: Unban Machamp (#10809)
Unban Machamp in DPP DOU
2025-01-08 21:05:26 -07:00
motogp-bit
4cca6dd174
Mafia: Add tracking of N0 actions. (#10771)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-08 18:09:45 -05:00
Kris Johnson
392ab2df4a
Revert "Fix [from] message (#10796)" (#10797)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
This reverts commit 5468a36da1.
2025-01-05 22:24:11 -07:00
André Bastos Dias
5468a36da1
Fix [from] message (#10796) 2025-01-05 22:23:06 -07:00
Kris Johnson
e93b15021c Remove Pet Mods ladders
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-05 12:14:46 -07:00
Dieter Reinert
101e221dd5
Tools: Reference dist/ folder in team-generation-benchmark script (closes #10644) (#10777)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
This PR addresses [#10644](https://github.com/smogon/pokemon-showdown/issues/10644).

Developers just need to run `node build` to rebuild the `dist` folder whenever the `.ts` files in `sim/` change.

## Other Considerations
- Add a watch script to rebuild when ``.ts`` changes.
- Convert the script itself to TypeScript & compile it with ``tsc``.
- Convert the script itself to TypeScript & use ``ts-node``  + ``nodemon``.
2025-01-04 13:18:51 -07:00
Alex "Mathy
11679e3cef
Gen 4: Fix Assist/Copycat/Metronome under Gravity/Heal Block (#10757)
* Gen 4: Fix Assist/Copycat/Metronome under Gravity/Heal Block

* Update data/mods/gen4/moves.ts

* Update data/mods/gen4/moves.ts

* Remove unnecessary checks

* prefer const

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 13:17:12 -07:00
Dirain1700
eb935a4aca
Tournaments: Hide toolbox if opponents get DQed (#10769) 2025-01-04 13:16:02 -07:00
dot-Comfey
69eac3893e
Trivia: Fix crash and Number mode game cap (#10753)
* Trivia: Fix crash and Number mode game cap

Discussed with Trivia auth.

Fixes an issue in Number mode where the game fails to end after a specified amount of questions, and fixes a crash caused by ending a game with no participation

* Update server/chat-plugins/trivia/trivia.ts

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

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 13:15:05 -07:00
larry-the-table-guy
b790eb8309
Remove dead code for dex initialization (#10793)
As of PR #10641, these are no longer necessary.
2025-01-04 13:14:22 -07:00
aQrator
d8689df5d0
Update /scavhelp staff to include /scav sethostpoints (#10788)
Purely textual change to help find commands for the scav room
2025-01-04 13:13:43 -07:00
Dieter Reinert
31934d775f
Calculator: Fix base prefix logic for zero results (#10778)
Previously, `/calculate` would fail to include the correct base prefix (`0x`, `0b`, `0o`) when the result was `0` because the code used a falsy check (`if (result)`). This commit replaces that condition with `if (Number.isFinite(result))`, ensuring zero is properly displayed in the requested base.
2025-01-04 13:13:31 -07:00
Karthik Bandagonda
d0e1b686f4
Auctions: Add Tiers Not Played + changes to bidding (#10787)
* Auctions: Add Tiers Not Played + changes to bidding

* Update server/chat-plugins/auction.ts

* Update server/chat-plugins/auction.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 12:29:55 -07:00
Kris Johnson
239fb17286
Move Palafin back to Uber 2025-01-04 12:29:02 -07:00
Kris Johnson
48b406e479
Godly Gift: Restrict Talonflame 2025-01-04 12:28:36 -07:00
Kaen
c4192109ac
Nature Swap: Fix bans (#10791)
* Nature Swap: Fix bans

* Update config/formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 12:27:21 -07:00
cat-colon-three
4e29808ab9
National Dex AAA: Ban Light Clay (#10792)
https://www.smogon.com/forums/threads/national-dex-almost-any-ability.3726510/post-10077505 - This happened a while back, but was never actually banned
2025-01-04 10:38:48 -07:00
Kris Johnson
0a3b449284 DPP OU: Ban Machamp
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-03 11:02:54 -07:00
Marty-D
98bd633e1b
Add new avatars
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-02 17:54:05 -05:00
Kris Johnson
f798777767
Nature Swap: Update bans
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-02 10:03:17 -07:00
Zachary Perlmutter
d89b44a679
National Dex Ubers UU: Quickban Groudon (#10785)
https://www.smogon.com/forums/threads/national-dex-ubers-uu-shifts-at-53.3742166/post-10387575
2025-01-02 09:53:00 -07:00
livid washed
e6a20f3414
Add January 2025 Randomized Format Spotlight (#10786)
* Add January 2025 Randomized Format Spotlight

* lint
2025-01-02 09:52:41 -07:00
livid washed
ad28a307a3
Randomized format set updates (#10789)
* Randomized format set updates

* fix errors

* oops

* Trailblaze Gumshoos vetoed by council
2025-01-02 09:51:30 -07:00
Kris Johnson
7c998568e1
Fix typo
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-01 16:51:11 -07:00
Kris Johnson
5253ceca19
Fix typo 2025-01-01 16:50:41 -07:00
Kris Johnson
db30af1b2b Update aliases 2025-01-01 16:08:55 -07:00
shrianshChari
7713fad816
National Dex RU: Update bans (#10783)
Alakazam: https://www.smogon.com/forums/threads/national-dex-ru-metagame-discussion.3713801/post-9618120

Blacephalon: https://www.smogon.com/forums/threads/national-dex-ru-metagame-discussion.3713801/post-9924236

Sableye-Mega: https://www.smogon.com/forums/threads/national-dex-ru-metagame-discussion.3713801/post-9845399
2025-01-01 16:04:05 -07:00