Commit Graph

3173 Commits

Author SHA1 Message Date
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
Guangcong Luo
88fbafb64b Refresh Watch Battle when clicking Watch Battle
If Watch Battle is open, trying to open it again will refresh it
in addition to focusing it. Previously, it would only refresh if it's
been over 60 seconds since the previous refresh.
2016-03-08 05:08:26 -05:00
Guangcong Luo
07a339f62c Improve commenting/layout of two-column layout
In addition to adding a lot of comments, this also hardcodes the
width interaction of a left battle with right chat.
2016-03-08 05:07:28 -05:00
Guangcong Luo
714a5f47ed Rearrange Chat button in low-res battles
Before, the Chat and Battle buttons were both in the top left. This
moves the Chat button to the top right, and also makes them bigger and
adds icons, to make them easier to find.
2016-03-08 05:06:32 -05:00
Guangcong Luo
42c9b8b0d6 Pass spread targets to graphics in reverse order
This fixes the issue where older code would make spread moves look
like they were hitting your ally.
2016-03-07 16:04:19 -05:00
Guangcong Luo
385c284c96 Support sorting pokemon in teambuilder 2016-03-05 22:46:22 -06:00
Guangcong Luo
e1c06311f7 Support side-by-side battles on lower res
Previously, battles required 955 pixels each to appear side by side. Now,
we still guarantee 955 (well, 956 now) pixels for the left battle, but
we'll show a mini (320px) battle on the right side if it fits.
2016-03-05 21:44:49 -06:00
Ivo Julca
a62e85b822 Build: remove sugar dependency 2016-03-05 22:30:15 -05:00
Marty-D
1e1b6952ae Use -singleturn for Powder 2016-03-05 22:29:31 -05:00
Ivo Julca
0f5810a054 Lint: check githooks folder 2016-03-05 22:10:32 -05:00
Ivo Julca
c73ef9ed39 Git: ignore npm-debug.log 2016-03-05 22:09:16 -05:00
The Immortal
39dcad0389 Teambuilder: Set Cherrim-S as banned 2016-03-05 17:20:01 +04:00
Guangcong Luo
3570ce70e3 Merge pull request #665 from Teremiare/patch-11
Add link visited to dark mode
2016-03-05 06:15:56 -06:00
Teremiare
39a43db971 Add link visited to dark mode 2016-03-05 13:08:23 +01:00
Guangcong Luo
f75d47550c Fix reversion of 47b3689 in #660 2016-03-05 06:14:34 -05:00
Guangcong Luo
43fd00f0cf Fix bugs in build scripts 2016-03-05 06:01:11 -05:00
Guangcong Luo
573c8ae351 Merge pull request #662 from QuiteQuiet/ani
Support animating several Pokemon in spread moves
2016-03-05 03:43:40 -06:00
Quite Quiet
3892d15ba3 Support animating several Pokemon in spread moves 2016-03-05 10:17:26 +01:00
Guangcong Luo
4623698ac1 Merge pull request #660 from Slayer95/build-update
Update build system: clean up and turn on linting of data
2016-03-05 01:01:51 -06:00
Ivo Julca
8918aa2aab Test client: add fallback if local data is unavailable 2016-03-04 19:20:25 -05:00
Ivo Julca
96f722fe14 Lint: check data files for errors 2016-03-04 19:20:15 -05:00
Ivo Julca
7ac9d92190 Build: Fix input files for learnsets processing 2016-03-04 18:47:42 -05:00
Ivo Julca
4f5aa8cecf Git: Ignore automatically built data files 2016-03-04 18:47:27 -05:00