Commit Graph

1764 Commits

Author SHA1 Message Date
Lucas-Meijer
d4070c0300
Mafia: Prevent incorrect alignment. (#9368)
A new theme includes a role that can change someone's alignment as a discard.
Players should not be informed according to their old alignment.
2023-01-28 19:33:52 -05:00
Mia
388bfdfb96 Winrates: Support toggleable sorting 2023-01-14 21:50:13 -06:00
Mia
af1bb8f5b4 Winrates: Sort properly on display 2023-01-14 21:19:46 -06:00
Mia
3de84dd8bc
Randbats: Add a chat plugin to track winrates (#9321) 2023-01-14 19:08:12 -06:00
Leonard Craft III
16092e4469 Fix addhosts grammar 2023-01-14 14:22:17 -06:00
Mia
d40fee34b9 Smogtours: Don't add all commands to Chat.multiLinePattern 2023-01-11 12:57:42 -06:00
motogp-bit
b819032ce6
Mafia: Fix a bug with cohosts and the sublist (#9300) 2023-01-09 19:21:23 -05:00
Mia
eccd2f1ea0 Smogtours: Add buttons for mobile navigation
Folders don't display on mobile, so here are buttons for mobile users to use.
2023-01-06 08:50:25 -06:00
Mia
080963bb37 Smogtours: Don't double escape descriptions 2023-01-05 16:25:25 -06:00
Mia
72f42fd1ef Smogtours: Actually fix newlines in edits 2023-01-05 14:31:00 -06:00
Mia
3e3f01a2f8 Smogtours: Fix newlines in edits 2023-01-05 14:15:11 -06:00
Mia
84b9107d19 Smogtours: Fix editing 2023-01-05 14:10:32 -06:00
Mia
b3fcbe150f Smogtours: Don't refresh all pages on tour deletion 2023-01-05 14:03:46 -06:00
Mia
2e06b88b50 Smogtours: Improve whitelist display 2023-01-05 13:50:06 -06:00
Mia
d31fcdbd6f Smogtours: Don't show edit list to non-whitelisted moderators 2023-01-05 13:30:11 -06:00
Mia
cd3e873247
Add a plugin to view Smogon tours (#9183) 2023-01-05 13:24:51 -06:00
Mia
2f12192e4d Chatlog: Properly respect Config.disableripgrep 2023-01-05 12:57:34 -06:00
Austin Couturier
01511984a2
Friends: Allow users to toggle /blockpms friends etc. in settings (#9265)
https://www.smogon.com/forums/threads/friends-settings-allow-friends-to-message-you-when-you-block-pms-optional.3713439/
2023-01-03 17:31:18 -06:00
Alexander B
c37152d8f7
Datacenters: Fix typo in help (#9276) 2023-01-02 13:30:01 -08:00
Austin Couturier
60a5441c19
friends.ts: Fix grammar (#9263) 2022-12-30 16:04:44 -06:00
Mia
b11177d530
Migrate to esbuild for compilation (#9203) 2022-12-22 15:19:29 -06:00
Mia
8cd51c909e Chatlog: Support linking to specific times in chat
Previously, the colons in times assured it couldn't be linked (colons can't be in links). I swapped it to use just the numbers in the time - since it's a 24-hour timestamp, it should work fine. Tested and ensured it was linkable/etc.
2022-12-16 08:03:17 -06:00
Alexander B
ca8e17109b
Datasearch: Show formes if sorted (#9190) 2022-12-15 19:52:42 -08:00
Mia
a96ad73bb8 Chatlog: Support linking to specific times
With this, chatlog is now up to parity with /roomlog.
2022-12-15 21:18:56 -06:00
Annika
589d0689ef Computer-Generated Teams: Initial fixes 2022-12-14 18:45:52 -08:00
Annika
06ad1838b4 Add [Gen 9] Computer-Generated Teams 2022-12-14 17:46:20 -08:00
Alexander B
0f971b047a
Update /setodds and /randbats (#9181) 2022-12-14 12:48:06 -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
Mia
34a01d55e4 Thing-of-the-Day: Ensure custom keys can be updated in /-otd set
This had a hardcoded list of keys and disallowed any outside of that. This removes the latter part and ensures custom keys get a basic check.
2022-12-13 11:07:34 -06:00
Mia
5dd1493a24 Chat: Ensure onTicketCreate handler always runs 2022-12-12 21:19:49 -06:00
Mia
f353ff0884 Chat: Add a ticket create handler 2022-12-12 15:55:45 -06:00
Annika
1222e9deff Fix CI 2022-12-09 18:21:14 -08:00
Jacob McLemore
c42bbe171a
Polls: Allow escaping separators (#9074) 2022-12-09 17:49:47 -08:00
motogp-bit
33c1811645
Mafia: Fix a bug with resetgame (#9129) 2022-12-09 17:44:40 -08:00
Annika
c44840e282
Add /generateteam command 2022-12-09 17:27:33 -08:00
Alexander B
40c2dca47c
Jeopardy: Escape HTML in question (#9150) 2022-12-09 18:49:15 -06:00
Kris Johnson
2b2819eec3 Add more Sheer Force support in /dt and /ms 2022-12-03 13:23:01 -07:00
Annika
0b8ec41d4f Trivia: QW bug fixes 2022-12-01 20:45:21 -05:00
Mia
5c73b3632a Admin: Add a command to disable ripgrep
Requested (and okayed) by Marty as a stopgap. Ripgrep lags usage stats all to hell.
2022-12-01 17:38:21 -06:00
Kaen
baba846ca4
Re-Evolution: Add functionality for battle-only formes (#8967)
* Re-Evolution mod now works with battle form changes

Re-evolution mod, /showevo and /reevo now check for the base species to not lose track of the pre-evolution after changing forms, /showevo now also shows the stats changes a battle form gives.

* Made previous reevo code conditional

While fixing battle form changes I forgot about regional forms of pre-evolved Pokémons like Meowth, now it only uses the new code if the current form has no unique pre-evolution.

* Fixing reevo code

Made the npm changes for the new code.

* just removed an empty line

* Update rulesets.ts

* Fixing /reevo comand

* Apply suggestions from code review

* Fixing Typo

* Update server/chat-plugins/othermetas.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-11-30 14:01:59 -07:00
Mia
682e55c574 RPS: Add pause game button 2022-11-26 22:11:14 -06:00
Alexander B
1d5334432e
Hangman: Prevent impossible guesses, escape HTML (#9033)
* Prevent guessing words with incorrect already revealed indexes

* Clarify hint length and use consts

* Escape HTML on words

* lint

* Hangman: Better testing for invalid guesses

* Hangman: Escape HTML characters

Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
2022-11-23 12:50:09 -08:00
Annika
68b98695e6 Trivia: Add old AE/SG/SH/Pokémon categories 2022-11-23 12:17:51 -08:00
Alexander B
33d43fcf40
Movesearch: Fix learnsets (#9043)
* Movesearch: Fix learnsets

* more futureproof
2022-11-23 09:08:29 -07:00
Alexander B
47d66cbc22
Datasearch: Fix hardcoded gen 8 (#9022) 2022-11-20 12:13:44 -07:00
Kris Johnson
8553f93751 Datasearch: Update /ds and /ms for Gen 9 2022-11-19 16:33:51 -07:00
motogp-bit
998a3a225d
Mafia: Add /mafia resetgame command and some other minor stuff. (#8981) 2022-11-18 13:31:00 -05:00
Kris Johnson
d50c8c249b
Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
Annika
8d086728c9
/setodds: Allow <<randombattles>> Voices to use 2022-11-15 10:34:06 -08:00
Mia
7f9398f2b3 Abuse-monitor: Add a command to ignore modlog actions in punishment calculation
Requested by US.
2022-11-14 21:00:11 -06:00