Commit Graph

5084 Commits

Author SHA1 Message Date
Annika
96e45efc59 Support /cleartext (#1572) 2020-07-26 15:33:37 -07:00
Annika
fcf50aab11 Don't show punishments twice (#1570) 2020-07-25 13:32:21 -07:00
Guangcong Luo
8ae2c71415 Support Battle prefix removal in server data
Renaming the client stuff will be a huge mess which I'm going to just
leave until later.
2020-07-24 12:46:56 -07:00
Annika
4b9562959b Show locked status in all trainer cards (#1568) 2020-07-24 11:14:27 -07:00
Guangcong Luo
57d239c128 Use <script nomodule> for polyfills (#1549)
This should make PS marginally slower on really old browsers,
marginally faster on modern browsers, neither of which should be
remotely noticeable.

The intended actual impact is to make it easier to maintain
(`battle-dex` is clearly the wrong place for polyfills) and easier
to reuse outside of PS.
2020-07-23 13:19:12 -07:00
Guangcong Luo
c1135497e0 Remove SoundManager dependency (#1563)
All sound stuff is now handled directly by BattleSound, using the
HTML5 audio API.

The main complicated thing we do with sound is loop music with an intro.
This is unfortunately not supported by ANY sound library out there
(I had to manually add support for it myself to soundManager!)

https://github.com/scottschiller/SoundManager2/pull/13

In the end, I don't think the existing libraries out there actually
give us anything I care about.
2020-07-23 12:51:47 -07:00
Guangcong Luo
54cbc51f39 Fix crash in downloaded replays 2020-07-23 14:16:04 -04:00
Kris Johnson
181f35518e Update help for /challenge (#1566) 2020-07-23 09:32:11 -07:00
Annika
5d6c88135c Collapse consecutive rename messages (#1565) 2020-07-23 00:01:30 -07:00
Kris Johnson
d50d6f41f4 Support challenging users with multiple rules (#1564) 2020-07-22 19:58:58 -07:00
Kirk Scheibelhut
36efd69996 Fix leftover origindomain reference 2020-07-21 23:17:17 -07:00
Guangcong Luo
e64848f4ce Fix soundManager crash 2020-07-21 19:26:42 -04:00
Annika
367ed82e56 Support configurable URLs (#1543) 2020-07-21 15:27:21 -07:00
Annika
3f169151d3 Replays: Display !details better (#1562) 2020-07-20 14:38:07 -07:00
Annika
b47c143b79 Add database schema for loginthrottle table (#1561)
Co-authored-by: Kirk Scheibelhut <kjs@google.com>

Co-authored-by: Kirk Scheibelhut <kjs@google.com>
2020-07-19 15:38:12 -07:00
Guangcong Luo
a1686e8bf2 Unify turn counters in battles
`updatePseudoWeatherLeft`, `updateToxicTurns`, and `clearTurnstatuses`
have now been merged into a new function `updateTurnCounters`, which
should simplify some things.

This should also allow OMs to use `|-singleturn|` during end-of-turn
switch-ins, as requested in
https://github.com/smogon/pokemon-showdown/issues/6996
2020-07-18 11:43:16 -04:00
Annika
ccb33eb981 Support renaming battles (#1559) 2020-07-18 03:29:56 -07:00
Dawnofares
7b204ed336 Remove mentions of ~ (#1558) 2020-07-16 05:50:41 -07:00
Kirk Scheibelhut
dfa89486c5 Also include a persistent auto ignore opponent toggle (#1557) 2020-07-15 02:43:01 -07:00
Annika
5bbd8e5827 Add autolock_ip to the example configuration (#1556)
PHP crashes otherwise.
2020-07-13 21:08:13 -07:00
Kirk Scheibelhut
393fa4768d Implement persistent server settings (#1553) 2020-07-13 04:18:51 -07:00
Kris Johnson
2db4e26e42 Tooltips: Fix interation with Galar starters' Gmax moves (#1550) 2020-07-12 23:39:04 -07:00
Kirk Scheibelhut
6f9034b708 Continue to show the player's team while trapped (#1554) 2020-07-12 23:25:32 -07:00
Kirk Scheibelhut
4aa46798c4 Ignore |t:| 2020-07-12 22:11:14 -07:00
Kirk Scheibelhut
2e8de2db3a Add persistent ignore specs and auto timer toggles (#1551) 2020-07-12 19:35:04 -07:00
Guangcong Luo
25afe30af0 Use Dark Mode theming for Main Menu
"Format/Team" and the spectator checkbox have too low contrast on
certain backgrounds.

I suspect we'll get a lot of complaints regarding the redesign, but
oh well, accessibility wins here.
2020-07-11 20:55:24 -07:00
Guangcong Luo
986841acd8 Improve styling for checkbox
(Alignment still needed more tweaking, and it needed more work to
look good in the Main Menu.)
2020-07-11 22:09:50 -04:00
Kirk Scheibelhut
99c1b7451f Introduce a "Don't allow spectators" checkbox (#1548) 2020-07-11 18:43:56 -07:00
Guangcong Luo
b51268ad23 Fix bugs in #1545
Fixes #1547
2020-07-10 09:34:30 -04:00
Guangcong Luo
d5cae3cb3b Support blank lines in PM commands 2020-07-10 08:06:46 -04:00
Kris Johnson
2a175be5d9 Add type and category support for <psicon> (#1545) 2020-07-09 23:34:31 -07:00
Annika
1717e14d53 Update database schemas (#1546) 2020-07-09 04:59:45 -07:00
Gitrman19
95d4013c8c Update recommended moves(#1544)
* add hp bug/flying to recommended moves in gens 2/3

* add iron defense and draining kiss to recommended moves
2020-07-07 18:03:36 -07:00
Guangcong Luo
24026ed06b Fix compatibility with older browsers 2020-07-04 04:49:08 -04:00
Annika
1bd36e48ab Fix HTML escaping for battle joins/leaves (#1542) 2020-07-03 22:26:43 -07:00
Guangcong Luo
fdca8fe5dc Support manually specifying replay password 2020-07-03 15:36:07 -04:00
Guangcong Luo
9fe419c0ed Add documentation for News API 2020-07-03 15:36:07 -04:00
Kris Johnson
943a7cee78 Update National Dex teambuilder support (#1541) 2020-07-03 01:27:51 +04:00
Annika
ed7d05381e Clean up join/leave messages (#1538) 2020-07-01 16:29:39 -07:00
Enigami
1ce0dad778 Fix RBY accuracy/evasion tooltips (#1534) 2020-07-01 12:48:03 -07:00
Annika
44d347cd75 Fix linter warning in battle-tooltips.ts (#1540) 2020-06-29 19:20:52 -07:00
Marty-D
b877b2dfe0 Update spritesheet for DLC1 2020-06-29 10:24:03 -04:00
Guangcong Luo
05853d203b Fix loop in addNews 2020-06-28 10:50:53 -07:00
Annika
bb9e60ff80 Use JSON API for addNews() (#1537) 2020-06-28 10:48:33 -07:00
Guangcong Luo
6be7495c32 Rename Leader to Administrator
Ideally we'll have more support for custom ranks on side servers,
but for now you'll have to deal with & and ~ having the same label,
if you still use ~.
2020-06-27 12:49:35 -04:00
Guangcong Luo
00a877333f Stop autodetecting serverid for loginserver rqs
The automatic server detection just loops through all registered
servers and tries each of them to find the correct one. This process
will hang if any registered server isn't responding to DNS queries,
which at the number we currently have, makes all servers not sending
serverid fail.

We now hard-require the Config.serverid setting, to prevent this
problem.
2020-06-27 12:46:38 -04:00
Guangcong Luo
be31237b96 Add shortcut for https://psim.us/devdiscord
This allows shortlinks in the form of <<devdiscord>> and is easier,
at least for me, than memorizing the spoink link.
2020-06-27 12:27:27 -04:00
urkerab
9de28f5f00 Don't require desktop notifications for disconnections (#1535) 2020-06-26 04:51:56 -07:00
Kris Johnson
bb24d2f3e3 Fix Urshifu-Rapid-Strike-Gmax in the teambuilder (#1536) 2020-06-25 16:15:48 -07:00
The Immortal
55032dde8f Add text for new G-Max moves 2020-06-24 16:26:46 +04:00