Commit Graph

4985 Commits

Author SHA1 Message Date
Guangcong Luo
8a1ddcd6e2 Rename new BattleSearch -> DexSearch
(Also fix a bunch of bugs.)

The new name `DexSearch` better represents its feature-set, and allows
its name not to clash with the old `BattleSearch`.
2020-05-04 19:07:37 -07:00
Guangcong Luo
779e796e52 Refactor battle-search.ts 2020-05-03 22:40:11 -07:00
Guangcong Luo
b815730c51 Improve teambuilder team selection layout 2020-05-03 22:40:11 -07:00
The Immortal
a2e6380c16 Add G-Max Chi Strike text 2020-05-03 18:38:20 +04:00
Guangcong Luo
e8b6a6760a Fix gmaxPower/zMovePower for Z/Max moves 2020-05-02 02:36:31 -04:00
Kris Johnson
d8d8ea8b52 Allow Unown formes to be selected in the teambuilder (#1501) 2020-04-29 17:24:04 -04:00
Marty-D
ebe975042a Add support for Unown minisprites 2020-04-29 17:13:33 -04:00
AnnikaCodes
8af0f9b7be Teambuilder: Implement exporting to PokePaste (#1497) 2020-04-28 22:22:26 -07:00
Guangcong Luo
007d58e698 Fix cosmetic formes in replays
Replays don't load BattleAliases but they do load BattlePokedex, making
the old BattleBaseSpeciesChart unnecessary. In its place, a new chart,
specifically for cosmetic formes!
2020-04-29 00:24:12 -04:00
Guangcong Luo
3d0fa80055 Update Dex.getSpecies for cosmetic formes
Now that `species.cosmeticFormes` contains the name rather than the ID,
we don't need to manually reconstruct it anymore.
2020-04-28 21:04:38 -07:00
Kris Johnson
ee601f1bb9 Update client for updates types of evos/prevo/etc (#1500) 2020-04-28 20:48:39 -07:00
Kris Johnson
97f73d63a1 Fix nextLearnsetid to always return an ID (#1499) 2020-04-28 09:14:02 -07:00
Mia
269f156410 Implement a /news command (#1498) 2020-04-27 23:45:36 -07:00
Guangcong Luo
ba52aab0ef Fix TypeScript error
It looks like TypeScript recently updated jQuery definitions from
`HTMLElement` to `Element`. There's probably a better long-term
solution, but for now, suffice to say these assertions are safe because
we don't use any non-HTML elements.
2020-04-27 23:45:09 -07:00
Guangcong Luo
14689a63ad Fix crash in getPokemon 2020-04-27 23:24:09 -07:00
Kris Johnson
70cc0a7380 Change inheritsFrom to changesFrom (#1496) 2020-04-27 07:48:10 -07:00
Kris Johnson
33b3d8d041 Fix National Dex teambuilder (#1495) 2020-04-24 21:24:45 -07:00
Kris Johnson
6c878a967f Add support for .data-dist (#1494) 2020-04-24 21:01:34 -07:00
Leonard Craft III
9cd1b7ea61 Fix display of Max Move used in doubles (#1493) 2020-04-22 01:38:09 -07:00
Kris Johnson
10c5c2cc31 Add smogon analysis support for more formats in smogdexLink (#1492) 2020-04-18 19:03:59 -07:00
Guangcong Luo
9d36853f95 Fix 'Content-Type' capitalization 2020-04-18 10:42:01 -04:00
Guangcong Luo
03b29d28d9 Fix Pikachu-Gmax learnset
This may or may not be the real fix, but considering Kris hasn't fixed this
for like a month I guess I have to fix this myself.
2020-04-18 10:40:40 -04:00
Guangcong Luo
34388e59f2 Improve and document replay search API 2020-04-16 03:53:00 -04:00
Guangcong Luo
03e88a187a Add JSON API for replays
recent:

https://replay.pokemonshowdown.com/search.json

by user:

https://replay.pokemonshowdown.com/search.json?user=zarel

by format:

https://replay.pokemonshowdown.com/search.json?format=gen8ou

pagination:

https://replay.pokemonshowdown.com/search.json?user=zarel&page=2
2020-04-16 03:53:00 -04:00
Kris Johnson
bfab55a5b8 Add client-side support for (DUber) (#1490) 2020-04-14 15:17:14 -07:00
Charlie Kobayashi
8431f3fc10 Disable battle chat upon disconnection (#1489)
- apply same "You are disconnected and cannot chat" message to battles upon disconnecting from a server.  Just a tiny pet peeve when testing code on localhost.
2020-04-09 16:45:23 -07:00
Guangcong Luo
4188f62310 Improve error message for macOS desktop permissions
Fixes #6485
2020-04-07 21:28:35 -04:00
Guangcong Luo
721eb5547f Add /chal alias for /chall 2020-04-07 21:28:35 -04:00
The Immortal
d6ee0a1d87 Remove references to isUnreleased 2020-04-06 21:52:25 +04:00
Kirk Scheibelhut
d76cd108dd Create test pages for sprites
Similar to styles/STYLING.html and styles/hpbartest.html, test pages
prove to be more robust and convenient for testing than the unit
tests (which are already broken).

These pages are primarily intended to help with delivering #1369,
but can be used to test improvements to sprites across the board.
2020-04-02 11:48:50 -07:00
Guangcong Luo
730d1ffd1a Use bigger Meloetta sprites
There are people who didn't know Meloetta was PS's mascot! They clearly
needs to be more noticeable. And now they definitely will be.

We're now using the full Gen 5 sprite instead of the minisprite,
overlapping with the buttons, and animated on hover. This might be a
bit over-the-top, but oh well, it's only on hover.
2020-04-01 16:11:10 -07:00
whales
97ca68f685 Stop uhtml from highlighting
oops
2020-04-02 00:17:16 +10:30
HoeenHero
305945e6ec Tinymaxing support (#1488) 2020-04-01 00:49:52 -07:00
Guangcong Luo
6c909c8c99 Fix cosmetic forme support 2020-03-31 02:51:07 -07:00
Guangcong Luo
b80d1c3938 Fix teambuilder pokemon icons 2020-03-29 07:30:27 -04:00
Guangcong Luo
7c708d7167 Support ports other than 443 for HTTPS
To support running Smogtours on HTTPS, we now support non-443 ports.

We also now set SameSite=None headers for the SID cookie, so it's once
again possible to stay logged in on servers other than Main.
2020-03-29 02:10:02 -04:00
Guangcong Luo
b730156490 Support format list sections/columns
This is probably about as much as I'll implement for now. We'll need to
deprecate the old client before we can implement any major reforms to
the formats list design.
2020-03-28 09:21:23 -07:00
Guangcong Luo
5e32181b89 Support creating, deleting, and renaming teams 2020-03-28 09:21:23 -07:00
Guangcong Luo
7857f4549d Support saving teams 2020-03-28 04:20:49 -07:00
Guangcong Luo
3c4df8bcb6 Fix teambuilder sprites 2020-03-27 22:19:45 -07:00
Kris Johnson
6a05e24967 FIx teambuilder (#1487) 2020-03-27 21:14:59 -07:00
Kris Johnson
e9c86ef27e Fix missed instances of renaming Pokemon#species (#1486) 2020-03-27 20:21:48 -07:00
Guangcong Luo
c9dd7fbe36 Fix bug loading data 2020-03-27 04:23:33 -07:00
Guangcong Luo
504ce3b384 Improve error message for recent Missingno crash 2020-03-26 23:05:13 -07:00
Guangcong Luo
a8f355d5ca Use better team keys for teambuilder
Team keys are now a sanitized version of the team name, which makes
them stable past refreshes, and also easier to read.
2020-03-26 05:16:45 -07:00
Guangcong Luo
99b07882db Fix a bunch of bugs in battling 2020-03-26 00:06:34 -07:00
Kris Johnson
f21bfe7f6a Rename Template to Species (#1484) 2020-03-25 23:29:05 -07:00
Guangcong Luo
a89429f9ec Refactor teambuilder folders list
The old approach was to convert the folder list into a string format
that would sort correctly, and then convert it back afterwards. This
was, of course, a huge hack that was difficult to maintain and broke
every new generation, and `PSUtils.sortBy` eliminates the need for it.
2020-03-25 16:56:33 -07:00
Guangcong Luo
a7622b3d95 Fix rating not appearing in battle list 2020-03-25 16:56:13 -07:00
Guangcong Luo
d589ac7fef Support user statuses and away status
Also includes a refactor to introduce a new `PSUtils.sortBy`, now
used to make sorting the user list a lot more readable.
2020-03-24 23:45:21 -07:00