"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.
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.
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.
- 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
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.
`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".