Commit Graph

3534 Commits

Author SHA1 Message Date
Ridaz
bfdfc8d4fc Add Never-Ending Nightmare move animation
And a few placeholder move animations
2016-11-18 03:56:48 +00:00
Ridaz
cb25369a42 Remove unfinished Twinkle Tackle animation 2016-11-17 23:58:19 +00:00
Ridaz
1e05a28675 Update move animations, round 14 2016-11-17 23:54:24 +00:00
Guangcong Luo
c564abf094 Update teambuilder for gen 7
The default gen for a format is still gen 6, but gen 7 formats are now
supported.
2016-11-17 16:47:25 -06:00
Marty-D
ae7316a051 Support SM minisprites 2016-11-17 17:43:18 -05:00
Ivo Julca
f9350b79f8 Pass npm test: Remove offending trailing commas 2016-11-17 15:18:47 -05:00
Ivo Julca
60c7025229 Build: Support moves starting with numbers in learnsets 2016-11-17 15:14:05 -05:00
The Immortal
fbe80f48dc Remove Return'd COIL 2016-11-17 10:03:19 +04:00
panpawn
2d132963cd Make /R an alias of /r and /reply (#802) 2016-11-14 19:46:09 -07:00
Guangcong Luo
bea318dff2 Improve new timer appearance 2016-11-13 23:09:16 -05:00
Guangcong Luo
c182ddbd7f Battles: Fix bug in team preview
Previously, a race condition would make the team preview selector appear
before we knew how many pokemon needed to be selected (e.g. 4 in VGC).

This new UI patches over that problem, although the real fix (mentioned
in the TODO comment) is to send that information in the request object.
2016-11-13 23:09:16 -05:00
Guangcong Luo
90b55aaa33 Update search code for Dex improvements
- introduce overrideType, overrideMoveType teambuilder tables
- support displaying search filters outside of results
2016-11-13 23:09:16 -05:00
Guangcong Luo
067a8ec36c Add article support to search-indexes
See
https://github.com/Zarel/Pokemon-Showdown-Dex/commit/2e39278905
2016-11-13 23:06:44 -05:00
urkerab
46654d9074 Show the timer when switching and during team preview (#801) 2016-11-13 18:45:52 -08:00
urkerab
91b5c97602 Make the battle timer tick every second (#798)
Also fix a bug in `updateControls`
2016-11-13 05:20:52 -08:00
urkerab
18851bbbee Tweak a couple of messages (#800) 2016-11-12 08:47:37 -08:00
Guangcong Luo
36b6e9b88a Redesign battle UI
The timer was always kind of ugly and text-based, which is awkward on
non-wide screens, where you couldn't see it at all without switching
into the battle log.

The new version gives the timer a home at the upper right of the battle
choice screen (where the active Pokémon's HP used to be) (the active
Pokémon's HP has been moved next to "What will [pokemon] do?").

The spectator UI has also been updated, and now supports jumping to the
beginning/end of the battle, as well as forward/backward 1 turn,
regardless of whether the battle has ended.

In addition, a lot of other button layouts/appearances have been
improved.
2016-11-08 07:17:15 -08:00
Quinton Lee
896829faf6 Fix crashes in showing player actions
Also show the correct Pokemon for switches
2016-11-08 03:30:30 -06:00
Quinton Lee
e633418c7c Fix autojoin crash 2016-11-08 01:51:01 -06:00
Shashwat Chandra
dbd8cdbda6 Add coloration to modified stats (#794) 2016-11-07 23:39:57 -08:00
QuiteQuiet
9ae59de342 Fix choice display with mega evolution (#797) 2016-11-07 23:15:48 -08:00
QuiteQuiet
ebc580b326 Show player actions while waiting for opponent (#796) 2016-11-07 05:43:20 -08:00
Ben Davies
0d5ab6515c Autojoin regardless of window width (#795)
This fixes autojoin not working because of the window width being too narrow.
This was from before chatrooms besides Lobby were implemente, but nowadays it
depends on the window layout of a desktop giving the browser enough width,
isn't consistent with autojoining via routing or server-side autojoin, and for
mobile users makes the function dependent on the screen resolution and whether
or not the phone's in profile or landscape mode.

Fixes #742
2016-11-07 03:01:24 -08:00
Guangcong Luo
074781dffa Increase rank symbol font size in trainercard 2016-11-06 01:23:06 -04:00
QuiteQuiet
84e69bf1e8 Fix Pokemon name when trapped (#793) 2016-11-04 17:53:06 -07:00
panpawn
834327825b Fix indentation in style/client.css (#792) 2016-11-04 17:35:09 +00:00
Guangcong Luo
0db20da40a Improve Dark Mode button colors
This merges the CSS for buttons and tabbars the way they're merged in
regular light mode, making them more consistent with each other and in
general making them look nicer.

It's, in all, a matter of taste, but while I don't think this looks
_great_, I do think it's an improvement on what it looked like before.
2016-11-04 08:26:15 -04:00
Guangcong Luo
7104f3617d Fix build errors 2016-11-04 06:18:22 -04:00
Guangcong Luo
0529b95ffe Fix bugs in dark roomtabs 2016-11-04 06:16:44 -04:00
Guangcong Luo
836b076eee Sync learnsets 2016-11-04 05:39:27 -04:00
Guangcong Luo
fc636400b9 Support showing room rank in trainer cards 2016-11-04 05:39:27 -04:00
Guangcong Luo
3084bce157 Teambuilder: Redesign pokemon/move sorting 2016-11-04 05:39:27 -04:00
Guangcong Luo
0ae5999701 Fix UTF-8 support in database 2016-11-04 05:39:27 -04:00
Guangcong Luo
69e20c0309 Battles: Support multi-type typechange 2016-11-04 05:39:27 -04:00
Guangcong Luo
547e8eb1e7 Update build script for new Tools 2016-11-04 05:39:27 -04:00
QuiteQuiet
0159762959 Update battle log when ignoring something (#784) 2016-11-02 13:06:10 -07:00
Ridaz
bdff3a3eb2 Update some move animations
- Added rotated fist particle;
- Added Revelation Dance and Guardian of Alola move animations;
- Updated Memento & Hammer Arm move animation;
- Darkest Lariat will use the Flare Blitz move animation;
- Updated a few animation backgrounds to use gradients instead of a
solid color
2016-11-01 22:31:09 +00:00
Marty-D
99c034a5a3 Teambuilder: Fix Gen 4 LC list 2016-10-31 13:46:30 -04:00
panpawn
c77ba68099 Darkmode: Change HL roomtab border color (#790)
This makes it so that if you were to get highlighted in two rooms next to each other, so that they will be separated better - more light lightmode.
2016-10-29 22:48:45 -05:00
urkerab
2ff7cbb523 Change dark topbar button colour scheme from default (#789) 2016-10-29 22:48:21 -05:00
urkerab
3cb8aacb16 Switching battle tabs should honour the 'noanim' pref (#788) 2016-10-29 00:03:19 -05:00
Marty-D
09271dada9 Add Psychic Terrain messages 2016-10-27 16:34:53 -04:00
Marty-D
e09381b6fe Update battle messages 2016-10-27 16:33:53 -04:00
panpawn
2cbfce527b Darkmode: Change roomtab color scheme from default (#781) 2016-10-26 18:32:54 -05:00
Ridaz
205a365d1a Update Aerial Ace move animation 2016-10-22 11:30:06 +01:00
urkerab
660f1d24c4 Show the move affected by Grudge as having 0 PP (#787) 2016-10-20 20:15:32 -05:00
Guangcong Luo
638c117db0 Refactor database to use prepared statements
Prepared statements are much better than manually constructing queries,
but PHP's MySQLi prepared statement syntax sucks.

So does PDO's, but we're abstracting it out so we can make it not suck,
and give it the syntax it should always have had. Which is what this
does.

Yay, finally.
2016-10-20 21:12:06 -04:00
Guangcong Luo
fc547732a6 Refactor ntbb-database to PDO
A hack is required to keep Database::escape's API the same, but
otherwise this API lends itself to having the internals swapped out
surprisingly well.
2016-10-20 20:34:52 -04:00
Guangcong Luo
9ea444aeea Fix bugs/crashes in ntbb-session 2016-10-20 20:34:07 -04:00
Guangcong Luo
82e7a917ab Move session library inside repository
For too long, ntbb-session and ntbb-database have been maintained
outside of this repo, but no longer! All these files are now part of the
repository, making it significantly more self-contained.

If I had to say why it took this long, I think it was mostly inertia. It
was easier leaving them where they were than having to audit them for
private keys in the wrong places, etc.

I'm starting to think of PS more as sim first, website secondary than
the other way around, now. Especially now that we don't have a forum,
the website itself isn't really important... Maybe one day I'll get rid
of the landing page and make the sim itself the first thing you see when
you hit pokemonshowdown.com... but today is not that day!

The repo is still not "batteries-included" since I am not going to teach
anyone how to set up PHP and MySQL or even get the config files working.
But for anyone who wanted their own client, well, it gets a lot easier
to do now.
2016-10-20 13:16:06 -04:00