Commit Graph

1942 Commits

Author SHA1 Message Date
TwiSteorra
611a351ec1
Update Battle Factory description (#10231) 2024-03-31 21:58:41 -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
singiamtel
f2d02ea02c
Remove old command from /help (#10232) 2024-03-31 21:29:33 -06:00
ACakeWearingAHat
2900dc167f
Delete Gen 7 Random Doubles Battle (#10224)
* Delete Gen 7 Random Doubles Battle

* also the tests

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

* Update multi-random-runner.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-03-25 21:00:25 -06:00
Mia
98b4d2ed40 Wifi: Log all joining userids to roomstaff when giveaways end
Requested.
2024-03-16 20:21:11 -05:00
Kris Johnson
67b0ac9854 Deprecate Sample Teams 2024-02-14 11:59:32 -07:00
Mia
993a052f05 Teams: Make it clearer what the manage section does 2024-02-14 12:36:04 -06:00
Lionyx
6b191a9765
Help tickets: Link to password reset form (#10157) 2024-02-05 08:56:29 -06:00
Kris Johnson
c22a17821e Re-Evolution: Fix evolving into exclusive formes 2024-01-31 16:13:27 -07:00
ACakeWearingAHat
cc0d2c2b6b
Randomized format set updates (#10146) 2024-01-31 11:50:55 -06:00
adrivrie
e7dc692743
Randbats Stats: Properly deal with ties (#10145) 2024-01-30 14:53:57 -06:00
Kris Johnson
059365de32
Announcements: Allow editing to be multiline 2024-01-29 22:13:34 -07:00
Mia
d2026f2c96 Helptickets: Fix titles on retrieved battles 2024-01-29 18:37:02 -06:00
Mia
3f68a259d0 Helptickets: Account for changes to replay schema 2024-01-29 18:34:22 -06:00
Mia
d49f1da641 Teams: Ensure item icons do not replace pokemon icons 2024-01-24 00:24:48 -06:00
Guangcong Luo
cec317671e Cleanup RoomGame implementations again
This reinstates the recently-reverted RoomGame refactor/cleanup, but
with the bugs (forfeiting BestOfGame, and autojoin) fixed.

This reinstates:

- 6bccd4f622 Fix crash in bestof when expiring battles
- 2a48cbd064 Cleanup more RoomGame implementations

The latter fixes these, in addition to refactoring:
- Fix a race condition when destroying bestof games
- Fix `/tour settings scouting off` error message
2024-01-16 15:54:38 +09:00
Leonard Craft III
5252aa7d7e Revert "Cleanup more battle implementations"
This reverts commit 2a48cbd064.
2024-01-15 13:38:01 -06:00
Guangcong Luo
2a48cbd064 Cleanup more battle implementations
This is mostly just refactoring, but the refactor caught a few bugs:

- Fix a race condition when destroying bestof games
- Fix `/tour settings scouting off` error message
2024-01-15 23:58:46 +09:00
singiamtel
ed62ad108b
Fix itemsearch when specifying both gen and show all (#10113)
* Fix itemsearch when specifying both gen and show all

* Update server/chat-plugins/datasearch.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-01-14 11:25:12 -07:00
Karthik
73041e4137
Refactor noMetronome lists to metronome flag (#10110) 2024-01-13 14:00:19 -06:00
Karthik
1eed1b9f33
Show Unobtainable moves in /nms (#10105) 2024-01-11 07:59:47 -07:00
Mia
bffbe0382b Youtube: Fix crash 2024-01-10 19:32:05 -06:00
Mia
6328576b7f Fix typo 2024-01-10 18:27:38 -06:00
Mia
390585326b Youtube: Validate links properly 2024-01-10 18:25:35 -06:00
Mia
d483618dc0 Youtube: Overhaul groupwatch 2024-01-10 18:11:57 -06:00
Guangcong Luo
eb0ef53e0e
Remove unlinkUser (#10101)
This refactor removes `player.unlinkUser()` which was used for several
unrelated use cases.

These have been split apart into:

- at the end of a game, `game.setEnded()` now clears `user.games`,
  while leaving `player.id` untouched
- when trying to change the user associated with the player, we now
  consistently use the higher-level `game.updatePlayer()`

There's a good chance this fixes the lagspikes currently affecting PS.
2024-01-08 20:49:34 -08:00
Annika
27a9150dba
Trivia: Log questions during acceptance 2024-01-07 18:42:46 -08:00
Annika
280745a9f4
Trivia: Implement command to search for questions with 2 spaces 2024-01-07 18:36:03 -08:00
Annika
a8104067ef
Trivia: Make /trivia move accept multiline input 2024-01-07 17:58:42 -08:00
Hisuian Zoroark
200aa09d1d
Randbats Stats: Properly check for winner (#10093) 2024-01-07 19:36:07 -05: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
Mia
0b6b5efd1c /quote: Add deprecation notice 2024-01-05 14:15:49 -06:00
Mia
466d6420ab Fix typo 2024-01-05 14:14:26 -06:00
Mia
2443799415 Quotes: Make /quote return help 2024-01-05 14:12:28 -06:00
Mia
c493ceda47 Quotes: Make /quote [num] return /viewquote [num] 2024-01-05 13:48:48 -06:00
Mia
40881ca342 Chatlog: Add roomlog, rl, and roomlogs as aliases for /chatlog 2024-01-03 13:20:41 -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
Alexander B
9221e643f4
/randbats: Show the Pokemon's level (#10068) 2024-01-02 15:17:28 -07:00
singiamtel
53cd6b5383
Fix /randpoke and /randmove not finding newer moves in old rooms (#10052) 2024-01-01 17:38:39 -07:00
Kris Johnson
e8c106ea1e Remove all mentions of "Nintendo" 2023-12-21 11:44:43 -07:00
Mia
43a04d3220 Scavs: Fix crash 2023-12-20 01:50:19 -06:00
Karthik
034ae7ce4d
Allow Announcements to be edited (#9932)
* Allow Announcements to be edited

* actually save the edit + change wording

* rearrange stuff
2023-12-18 20:48:54 -08:00
Mia
9c5932c4f8 Chat-monitor: Update evasion detection substitutions table 2023-12-18 17:38:36 -06:00
livid washed
02b00792af
Random Battles: Combine Alcremie winrates (#9970) 2023-12-15 23:32:37 -07:00
Sergio
a1ced8d4b3
Implement /viewquote last (#9952) 2023-12-11 12:32:31 -06: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
Distrib
aace270df8
Friends: Add class for the 'add friend' input (#9901) 2023-12-08 04:28:31 -06:00
Mia
39295329b6 Teams: Fix crash in access validation 2023-12-07 20:38:57 -06:00
Kris Johnson
e56b0cbe68 FIx /tiershift 2023-12-01 12:13:18 -07:00
Kris Johnson
48eeb35e4b Add December 2023 tier shifts 2023-12-01 10:44:36 -07:00