Commit Graph

3661 Commits

Author SHA1 Message Date
Ridaz
18aa9e449d Add a few move animations 2016-12-22 02:47:13 +00:00
Marty-D
f07ad0254f Add Dark Void failure message 2016-12-17 12:23:29 -05:00
Marty-D
ef56dd4a83 Add Spectral Thief and Speed Swap messages 2016-12-17 10:44:01 -05:00
Guangcong Luo
2321074e2f Fix Hyper Training level detection for VGC
In VGC/Battle Spot, it's possible to Hyper Train level 50 pokemon since
they can be level-changed from level 100 in the games, but this
detection was broken.
2016-12-17 04:53:53 -05:00
Marty-D
a29e88bf85 Add Burn Up message 2016-12-16 21:30:40 -05:00
urkerab
b4c8b280a9 Client-side messages for Z-Memento and Z-Parting Shot (#842) 2016-12-16 18:20:55 -08:00
Guangcong Luo
72e795f0f8 Fix Hyper Training HP IV support 2016-12-14 19:57:48 -05:00
Guangcong Luo
cf47ed9645 Fix showing names in teambuilder Move menu 2016-12-14 19:57:22 -05:00
Guangcong Luo
f65669168f Remove superfluous "pokemonicon" class
This commit consolidates all Pokemon icons in 'picon'.

Perhaps now we'll be able to rename picon -> pokemonicon now that the
old name is no longer used... but I guess that can be reserved for a
future commit.
2016-12-14 19:57:22 -05:00
Layell
9198e808de Update Gen 1-3 backgrounds (#841) 2016-12-14 16:05:19 -08:00
HoeenHero
c0f55b9919 Fix Smeargles learnsets in past gens (#821)
Dont use Tools.getMove
2016-12-14 12:18:27 -08:00
The Immortal
4ef9348aec Add COIL for Mix and Mega 2016-12-14 00:20:21 +04:00
asgdf
c5e843c4e5 Fix BW sprites option not working in gen 7 formats (#840) 2016-12-12 20:13:05 -08:00
urkerab
e3dff81ec9 Add some activation messages for the new Abilities (#838) 2016-12-12 19:55:54 -05:00
asgdf
a2d09e8ac3 Teambuilder: Show typing in set details (#824) 2016-12-12 13:22:35 -08:00
asgdf
edf6451e72 Fix opponent's speed tooltip in gen1/2 Random Battle (#839) 2016-12-12 12:48:13 -08:00
The Immortal
ddf5f99355 Teambuilder: Update Hidden Type exception to gen 7 2016-12-13 00:08:50 +04:00
Ivo Julca
899cd96922 Remove trailing comma 2016-12-12 13:13:05 -05:00
Ivo Julca
2172349374 Tooltips: Fix move type calculation 2016-12-12 13:12:42 -05:00
Ivo Julca
f16342ab64 Tooltips: Finish standardizing pokemonData usage 2016-12-12 13:10:15 -05:00
Ridaz
e4ff94aae5 Remove repeating code 2016-12-12 04:24:56 +00:00
Ridaz
42c47dd1a8 Update Sacred Sword move animation 2016-12-12 04:15:16 +00:00
Ridaz
27a3bec2fc Add Spotlight tag & message 2016-12-12 04:14:39 +00:00
Marty-D
a51ff3662f Add Laser Focus message 2016-12-11 21:22:59 -05:00
Ridaz
3afd36900e Actually add Laser Focus tag 2016-12-12 02:18:33 +00:00
Ridaz
393fe4fc90 Add Lazer Focus tag 2016-12-12 02:16:29 +00:00
Ridaz
9ab808db4a Update placeholder animations 2016-12-12 02:16:29 +00:00
Ivo Julca
7bb9b63764 Tooltips: Standardize myPokemon for Pokemon instances, pokemonData otherwise 2016-12-11 21:05:34 -05:00
Guangcong Luo
2788fcaac6 Update replay embed URLs
This forces a recache for the new cry URLs.
2016-12-11 21:08:44 -05:00
Guangcong Luo
a2f3db9c56 Remove unused variable 2016-12-11 21:08:44 -05:00
Guangcong Luo
80dda89c4d Make front sprites 1.5x size in gen 1-4
PS makes back sprites larger than front sprites, which is standard for
Gen 5 (although we do it slightly differently - Gen 5 makes backsprites
2x size; we make backsprites 1.5x size) and onwards (where the games do
a 3D engine with real perspective, and we fake perspective by making
backsprites 1.5x size).

This is, of course, wrong for gens 1-4, where the games fake perspective
by drawing pokemon in backsprites bigger, but making the image sizes the
same. This fixes it so the front sprites are the same size as the back
sprites, using the same fake perspective system.
2016-12-11 21:08:44 -05:00
Guangcong Luo
ae3071f1ef Fix Zygarde forme sprites in replays 2016-12-11 21:08:44 -05:00
Guangcong Luo
c893f37b0a Battles: Make Pokemon cry when fainting
This uses the wrong Pikachu cry, but we'll deal with that later I guess.
2016-12-11 21:08:44 -05:00
Guangcong Luo
b11409bad1 Battles: Make Pokemon cry when megaing 2016-12-11 21:08:44 -05:00
Guangcong Luo
79048f8934 Fix cries in replays
Cry URLs depended on forme capitalization, which isn't available in
replays. This commit changes it to work on formeids.
2016-12-11 21:08:44 -05:00
Ivo Julca
16a6de258c Tooltips: Fix crash when reading slot of a fainted Pokémon 2016-12-11 20:57:30 -05:00
urkerab
c462690b60 Don't display side condition ids in replays (#830)
* Don't display side condition ids in replays

* Pass the effect in directly and use its id and name appropriately
2016-12-11 12:02:55 -08:00
Guangcong Luo
f229736b4d Finish converting session lib to prepared statements 2016-12-11 05:34:52 -05:00
Guangcong Luo
763cfb01f0 Fix background music stuttering
I finally got to reading the SM2 documentation more closely, and saw:

> precision can vary between 20 msec to perhaps 0.5 seconds and the
> sound's position property will reflect this delta when the
> onPosition() callback fires

Emphasis on "this.position will reflect this delta".

Anyway, this new system should have significantly less noticeable
stuttering.
2016-12-11 05:33:41 -05:00
Guangcong Luo
d66779e7e7 Update to new audio format
All audio is now stored as mp3/ogg, and cries now use the same filename
format as sprite IDs.

All cries have been updated to Gen 7, and at much higher quality and
lower filesize, too. They're roughly the same size of the old ones, e.g.
bulbasaur.mp3 is 8KB, same as the old bulbasaur.wav, but with much
better fidelity since the source file is a 159KB wav file.

Music is now also available in mp3/ogg, making it playable in the desktop
client.

I still mildly dislike Vorbis for being more CPU-intensive and not
hardware-accelerated, but we don't seem to have any other choice for the
desktop client.

TODO: Feature detection for ogg support. Browsers make this ridiculously
hard for some reason. The main problem is that SM2 supports MP3 a whole
lot of different ways, so MP3 should still be playable even without the
corresponding HTML5 support.
2016-12-11 05:33:41 -05:00
Guangcong Luo
b08916e951 Make Gen 7 the default teambuilder tier 2016-12-11 05:33:41 -05:00
Guangcong Luo
7213a56a05 Battle list: Add Elo filter 2016-12-11 05:33:41 -05:00
asgdf
8c6c157054 Refocus on originally focused element on popup close (#837) 2016-12-09 15:06:57 -05:00
Marty-D
72b3f5ebfb Fix Hoopa Unbound's cry 2016-12-09 13:50:58 -05:00
asgdf
b68dc54c52 Allow cycling through tabcomplete candidates in reverse (#834)
Using Shift-Tab.
2016-12-09 00:23:41 -05:00
Marty-D
93985c6534 Stop Z-Baton Pass from clearing volatiles 2016-12-07 10:33:00 -05:00
Guangcong Luo
d06ff1b31a Make sprite IDs consistent
Previously, mega-x and mega-y formes were an exception to the usual
[basespeciesid]-[formeid] format, but this wasn't reflected in the
server's getTemplate function anyway. This consistency just makes
everything easier.
2016-12-07 05:24:26 -05:00
Guangcong Luo
b406ae6eb1 Refactor baseSpeciesChart to array
It doesn't seem to actually benefit from being an Object, and the
Array is more readable and performant.
2016-12-07 05:24:26 -05:00
Guangcong Luo
b6515662c2 Support Z-Move targeting
Z-Move targeting was previously a bad hack but is now a better hack!

Specifically, now it's actually sent from the server, but also in place
is a better hack for backwards compatibility with old servers.
2016-12-07 05:24:26 -05:00
urkerab
a978465dca Show the underlying move name when reviewing a player's choice (#832) 2016-12-05 02:58:26 -06:00