Commit Graph

3195 Commits

Author SHA1 Message Date
Ridaz
7acfc3ccef Fix typo on recoil animation 2016-04-01 13:32:04 +01:00
Ridaz
b2ea631604 Fix and improve some move animations slightly 2016-04-01 10:23:24 +01:00
Guangcong Luo
37d8313e8e Improve teambuilder zoom support
This gives one pixel of horizontal space as overflow buffer for the
stats button in the teambuilder. It doesn't seem to improve the range
of zoom values in Chrome, but perhaps it'll help Firefox or something.
2016-03-29 17:44:19 -04:00
Guangcong Luo
5d6127c0b1 Remove Gen 1 modified stat tooltips
Gen 1's paralysis/burn stat drops are too complicated for the current
tooltip code to model. TODO: manually create volatiles for their stat
changes.
2016-03-29 17:44:19 -04:00
Guangcong Luo
4eae149f07 Teambuilder: Improve search aliases
We now support searching by first letter and second word, so for instance
"rslide" in addition to "rs" will match "rock slide"

We now also support "mega" and "m" as the first word, so "mega scizor"
and "mscizor" will match "scizor-mega".
2016-03-29 17:44:18 -04:00
Guangcong Luo
0505f65d84 Merge pull request #678 from Teremiare/patch-12
Add ignorelist command
2016-03-26 22:07:27 -07:00
Marty-D
a2738e225d Merge pull request #679 from Teremiare/patch-13
Add Fur Coat to modified stats tooltip
2016-03-26 17:12:37 -04:00
Teremiare
9a270159c9 Add Fur Coat to modified stats tooltip 2016-03-26 22:09:29 +01:00
Teremiare
be41d13189 Add ignorelist command 2016-03-26 20:43:17 +01:00
Guangcong Luo
402a09d9bb Merge pull request #676 from urkerab/watch-battles-format-refresh
Stop reinitialising the battles room when formats change
2016-03-26 09:39:30 -07:00
Guangcong Luo
430268e209 Merge pull request #677 from urkerab/mark-stolen-item-on-victim
Update the victim when an item is stolen from it
2016-03-26 09:38:47 -07:00
urkerab
daccf12765 Update the victim when an item is stolen from it 2016-03-25 12:12:04 +00:00
urkerab
50167a243c Stop reinitialising the battles room when formats change 2016-03-25 11:45:28 +00:00
Ridaz
1f87d0b3b5 Merge branch 'master' of https://github.com/Zarel/Pokemon-Showdown-Client into Zarel/master 2016-03-24 00:34:41 +00:00
Ridaz
e4b718353c Add animation for knocking off an item 2016-03-24 00:30:47 +00:00
Guangcong Luo
ab0c2c3b42 Merge pull request #675 from bumbadadabum/imageupdates
Add the mafia goon sprite
2016-03-23 15:07:07 -05:00
Bär Halberkamp
04ae161091 Add the mafia goon sprite 2016-03-23 20:51:49 +01:00
Ridaz
249080352a Add block animation 2016-03-23 16:39:02 +00:00
Guangcong Luo
d1a746721f Merge pull request #674 from Ridaz/animations
Fix Meteor Mash animation
2016-03-23 06:13:30 -05:00
Ridaz
8709f2ac4b Fix Meteor Mash animation 2016-03-23 10:35:10 +00:00
Guangcong Luo
b014c2bfe5 Merge pull request #673 from Ridaz/animations
Update move animations, round 9
2016-03-22 16:44:58 -05:00
Ridaz
0c7063f1ba Update move animations, round 9 2016-03-22 21:43:00 +00:00
Guangcong Luo
d4ecb8a4ff Merge pull request #672 from Layell/patch-3
Cawmodore dimensions added
2016-03-21 22:34:18 -05:00
Marty-D
2c3a79f685 Fix tooltip stat mods for Guts/Quick Feet 2016-03-21 23:23:25 -04:00
Layell
6af04b45e6 Cawmodore dimensions added 2016-03-21 20:30:53 -04:00
The Immortal
9894ac2e55 Teambuilder: Update viable moves
Sort alphabetically, add Belly Drum, add Focus Blast exception to HP
Fighting, and add Giga Drain exception to HP Grass.
2016-03-22 02:31:47 +04:00
Marty-D
02b0067afb Mark Focus Punch on focus 2016-03-20 10:07:20 -04:00
Guangcong Luo
1d63d25c56 Merge pull request #670 from Ridaz/animations
Update move animations, round 8
2016-03-19 13:20:46 -05:00
Marty-D
2084669339 Fix tooltip stat mods with generational differences 2016-03-19 14:11:26 -04:00
Ivo Julca
f74584f365 Fix cross-origin postMessage usage in Chrome Canary 2016-03-19 00:22:37 -05:00
Ridaz
e0681ee974 Update move animations, round 8 2016-03-18 17:56:49 +00:00
Guangcong Luo
898debcd09 Update ntbb_ladder.sql 2016-03-18 11:43:04 -04:00
Guangcong Luo
f27111036b Add image-rendering:pixelated to icons 2016-03-17 10:43:49 -04:00
Guangcong Luo
477c60ea13 Add rel="noopener" for user links
Protects against certain attacks. Supposedly.
2016-03-17 10:43:49 -04:00
Guangcong Luo
0530899609 Graphics engine: Fix .leftof
.leftof used to be relative to slot 0 instead of being relative to
the actual pokemon like it was intended to be.
2016-03-17 10:43:49 -04:00
Guangcong Luo
45137e9038 Fix hazards with no opponent
Most hazards would animate to the wrong place if the opponent had
fainted. This fixes it so they still go in the right place.
2016-03-17 10:43:49 -04:00
Marty-D
04ffe82142 Fix Slow Start's tooltip stats 2016-03-15 16:37:13 -04:00
Marty-D
cae2ab21ba Fix various calculations in tooltip stats 2016-03-15 16:25:21 -04:00
Guangcong Luo
7cd3058542 Fix warnings in npm test 2016-03-15 15:44:07 -04:00
Guangcong Luo
40ddeda613 Refactor stat modifier tooltip
findModifier has been merged into calculateModifiedStats.

This also fixes a bug with Pure Power.
2016-03-15 15:44:07 -04:00
Marty-D
b35a9c6b1f Fix stat tooltips with Pure Power 2016-03-15 14:32:02 -04:00
Guangcong Luo
25f4e23517 Merge pull request #668 from Ridaz/animations
Update move animations, round 7
2016-03-15 03:03:24 -05:00
Ridaz
28d8894781 Update move animations, round 7 2016-03-15 00:31:42 +00:00
Guangcong Luo
d1b357f113 Merge pull request #666 from brandongeren/patch-1
Add stat boosts in tooltip
2016-03-13 18:14:26 -05:00
Guangcong Luo
2e9ffceec6 Merge pull request #667 from QuiteQuiet/ani
Fix bug with spread move animations
2016-03-13 03:29:43 -05:00
Quite Quiet
c530bdc34a Fix bug with spread move animations 2016-03-13 09:15:21 +01:00
Brandon Geren
f92fbeb478 Add stat boosts in tooltip
Created a new line displayed in a pokemonToolTip which mirrors the line showing the pokemon's stats. However, this new line contians stats mulitplied by their respective boosts, following Pokemon's in-game formula.

Update client-battle-tooltips.js
Update battle.js to include Unburden as a volatile. Previously, there was no way for the client to know that a Pokemon had boosted speed from Unburden. The Unburden volatile is added to a pokemon regardless of that Pokemon's ability. This is because the Pokmeon object passed into Battle.runMinor in battle.js does not have an Ability so there is no way to check if the Pokemon has Unburden.

Made all changes suggested by Zarel: Only show modified stats if there is a modified stat; bold any boosted stats; re-structure findBoost into the improved calculateModifiedStat which finds the whole group of stats rather than just one stat; include modifiers from: paralysis, burn, unburden, pure power, slow start, defeatist, swift swim, unburden, choice items, iron ball, light ball, and a rock type's Special Defense boost in the sand.

The code written does not support Gen 1 methods of stat calculation. That is a feature which requires far more research on my end in order to implement.

I am an inexperienced Javascript developer (I had never written anything in Javascript prior to starting to work on this feature a few days ago), so feel free to let me know how I could do things better.
2016-03-12 17:30:13 -06:00
Guangcong Luo
8dc23233fa Teambuilder: Fix sort labels in filters
The default sort for filters is dex number, and this is now reflected
in the sort bar.
2016-03-08 05:09:50 -05:00
Guangcong Luo
ecafe4b779 Save name capitalization changes
Name capitalization and spacing used to reset to their previous value
on login. Changes are now stored long-term.
2016-03-08 05:08:26 -05:00
Guangcong Luo
04b7e7ff27 Refactor tabcomplete shortName into Tools.getShortName
The name filter used for tab completion has been refactored into
Tools.getShortName, where anyone can use it for whatever reason
they need.
2016-03-08 05:08:26 -05:00