Commit Graph

187 Commits

Author SHA1 Message Date
asgdf
d843455588 Tooltips: Fix Flower Gift (#1247) 2019-03-09 12:27:19 +01:00
Guangcong Luo
06a9b34125 EV guesser: Fix Modest/Adamant spreads
Modest/Adamant spreads were accidentally more common than intended,
due to a simplification that went the wrong way.
2019-03-08 09:53:36 -06:00
Guangcong Luo
f94a242c63 Tooltips: Don't count copied/Z moves for limit 2019-03-07 16:36:29 -06:00
Guangcong Luo
c88d2a2ecb Stop showing stats for Transformed Pokémon 2019-03-06 13:49:17 -06:00
Guangcong Luo
a9b8155b5d Implement EV guesser test
Also improve existing battle test.
2019-03-06 13:49:17 -06:00
Guangcong Luo
30c57c1a42 Correctly handle renames in BattleLog 2019-03-06 10:24:34 -05:00
Guangcong Luo
5b850cb1f5 EV guesser: Fix detection for Fast Bulky Support 2019-03-06 10:24:34 -05:00
Guangcong Luo
e88285a20f Refactor unlinkNodeList
This prevents the need for a closure, and also adds support logs
without preempt elements in BattleLog.
2019-03-04 15:38:05 -06:00
TheMezStrikes
df43f1f1f8 Update battle userlist on user rename (#1244) 2019-03-04 13:25:47 -06:00
Guangcong Luo
9c3a9addcd Improve EV guesser
"Suggested spread" is now renamed "Guessed spread", to make it clearer
that it's not exactly a suggestion, more of a guess of what might be a
good spread.

Speed EVs are now suggested a lot more often, with the new basic
threshold at 80+ Spe instead of 95+. (71+ Spe is still enough to get
Spe EVs on a non-bulky stat spread.)

EV spreads are now guessed based on post-Mega stats (so e.g. Mega
Metagross gets Spe EVs).

In addition, Speed EVs are now suggested for support spreads above 110
base Spe (mostly for support Starmie sets).

I wouldn't call the EV guesser _good_ by any means, but I still
strongly believe it's better than nothing.
2019-03-04 13:20:00 -06:00
Guangcong Luo
331a129644 Move EV suggester to battle-tooltips.ts
I mostly wanted this to be in TypeScript before I did any further work
on it, and also with the teambuilder at 3k lines, it needs to be broken
apart anyway.

I feel mildly bad about introducing ~600 lines of code that replays
will never need, but the EV suggester does fall under the general
category of "set insights" and is relevant to tooltips.
2019-03-04 13:20:00 -06:00
urkerab
ebdd1b9075 Fix Protean and Color Change for replays (#1243) 2019-03-03 04:40:03 -06:00
MacChaeger
5a4d4da3a8 Tooltips: Fix Normalize (#1242) 2019-03-01 02:50:48 -06:00
asgdf
4ccc7cd3ce Tooltips: Fix items boosts not showing up (#1239) 2019-02-25 18:35:11 -06:00
asgdf
abad76ee81 Fix Pokemon being shown as having their current abilities in older gens (#1238) 2019-02-23 15:54:29 -06:00
Guangcong Luo
6417436d1d Fix detection of battle-only formes 2019-02-20 19:35:38 -06:00
Guangcong Luo
f782ba807c Fix Z-Crystal + Judgment type 2019-02-20 16:08:41 -06:00
Guangcong Luo
4f5fdcd4cb Remember Team Preview item after switch-in 2019-02-20 16:08:41 -06:00
Guangcong Luo
59c6c3328a Fix sprites sometimes not appearing after skip 2019-02-20 16:38:48 -05:00
Guangcong Luo
54535213e0 Fix mobile device tooltip support
For the first time since original tooltips, we have a pressed-down
animation for move/switch buttons!

More importantly, long-presses are no longer weird, and now just
lock in the tooltip instead of also opening a context menu.

In addition, clicking on a locked tooltip dismisses it, which should
help address complaints about locked tooltips being hard to dismiss.
This makes it slightly harder to select text in locked tooltips, but
clicking and dragging on desktop still works.
2019-02-20 03:09:47 -05:00
asgdf
3e4fe5fa1d Tooltips: Fix Rivalry and Power Trip/Stored Power (#1231) 2019-02-19 15:22:17 -06:00
asgdf
f6038e7083 Tooltips: Only show 2 digits max after decimal point (#1232) 2019-02-19 15:05:03 -06:00
Guangcong Luo
f83a686073 Fix build errors 2019-02-19 00:26:51 -05:00
Guangcong Luo
e372b6f24b Fix bugs in tooltip refactor 2019-02-19 00:17:58 -05:00
Guangcong Luo
5c983df6d3 Massively improve tooltips
- Tooltips work in replays now
- Calculation is better (correctly handles more corner cases)
- Explanations are better (better messages for Magic Room etc)
- Tooltips for sidebar pokemon
- Support "locking" tooltips with long-click / long-tap
- Can copy/paste from locked tooltips
- Increased font size
2019-02-18 22:38:13 -06:00
Guangcong Luo
a9d5937a04 Support past gens in Dex
Now, like the server, it will be possible to use
`Dex.mod('gen5').getTemplate("Butterfree")` or the equivalent.
2019-02-18 22:38:13 -06:00
Guangcong Luo
2b1400631d Properly fix Damp/Dazzling messages
Fixes #1194
2019-02-18 14:26:13 -06:00
Guangcong Luo
b0b014fdda Remove types/node dependency
Any Node stuff we use (mostly, NWjs and pseudo-UMD) is an ugly hack
that TypeScript has trouble with, anyway.
2019-02-18 13:45:52 -06:00
Guangcong Luo
1e39effb59 Update dex-data
This fixes an issue where Sheer Force and a few other abilities weren't
working in tooltips, and also a few other issues in PSDex.
2019-02-16 16:41:40 -06:00
Guangcong Luo
def2f7f296 Fix forme-changed icon support 2019-02-16 14:03:57 -06:00
Guangcong Luo
9b7f3f8a4c Add a little contrast in fainted pokemon icons
This should be a slight change to make it slightly easier to identify
which Pokémon a fainted Pokémon is, while still making them easily
distinguishable from unrevealed Pokémon in VGC.
2019-02-11 15:13:25 -06:00
Konrad Borowski
48eb1aad76 Fix PP counting for Trick Room/Pressure interaction (#1225) 2019-02-07 11:50:32 -06:00
Guangcong Luo
f2e13cf005 Update avatar IDs 2019-02-01 15:31:30 -05:00
Guangcong Luo
30cf438bde Support SPL mode 2019-02-01 15:31:30 -05:00
Marty-D
efe6c52d32
Fix Crasher Wake and Maylene avatar numbers 2019-02-01 08:15:03 -05:00
Guangcong Luo
990cf20b58 Support new avatars (by name instead of number) 2019-01-31 10:20:32 -06:00
Guangcong Luo
e1bb9f64f9 Fix chat message timing 2019-01-25 19:21:01 -05:00
Guangcong Luo
03a62d5a55 Improve Roost messages
Roost now displays a hint message, making it clearer that it isn't just
a heal. This should cut down on the confused "bug reports" about it.
2019-01-25 19:21:01 -05:00
Guangcong Luo
d1d26d3720 Support grace time
We're adding support for a new server-side feature: Grace time. This
is time that's used instead of total time, on the first turn.
2019-01-25 03:16:07 -06:00
asgdf
81af2da87b Clear statbar of lingering expired turn statuses (#1213) 2019-01-15 10:52:36 -06:00
urkerab
320711ae6f Fix Fairy Lock for replays (#1212) 2019-01-13 13:22:16 -06:00
asgdf
4562f4fc2b Re-implement unlinking in battle chat (#1206) 2019-01-12 11:17:45 -06:00
Guangcong Luo
adccb29971 Add Berry weaken message 2019-01-12 07:44:05 -06:00
Guangcong Luo
ead82b99ee Hide "Trapped" volatile display
Currently we don't properly track when trapping (like from Mean Look)
disappears, so the message needs to be hidden.
2019-01-11 07:56:21 -05:00
Guangcong Luo
9ffbde2fd3 Animate -clearallboost faster
This makes all the time offsets for -clearallboost simultaneous.
2019-01-10 04:56:10 -06:00
Guangcong Luo
ea8d9b611d Add partial trapping moves to status table 2019-01-09 03:20:06 -06:00
Guangcong Luo
d276400937 Move makeLoadTracker from battle-dex to storage
`makeLoadTracker` is deprecated in favor of `PSObservable` in the new
client, and has no reason to remain in battle-dex, which is now has a
specific role rather than its previous role as "random useful
functions".
2019-01-09 02:33:52 -06:00
Guangcong Luo
a6bb8a47c5 Fix cosmetic forms in teambuilder 2019-01-09 02:22:24 -06:00
Kris Johnson
e8e347a8f7 Add a getTier function for the teambuilder (#1208) 2019-01-08 23:24:22 -06:00
Guangcong Luo
4e37bd0e8d Fix block messages 2019-01-07 22:46:56 -05:00