Commit Graph

5074 Commits

Author SHA1 Message Date
fart
1513fc50c8
Increase autojoin limit to 15 (#1521) 2020-06-12 10:51:39 -07:00
Marty-D
5213c41cf5 Support CAP27 sprites 2020-06-12 13:46:59 -04:00
urkerab
d25aaedaf7
Prevent Enter from crashing during Pokémon level entry (#1528) 2020-06-12 10:06:41 -07:00
urkerab
4abfcc70a3
Fix display of Pokémon level in details form (#1527) 2020-06-12 10:05:15 -07:00
HoeenHero
9ed232d05f
Sanatise teambuilder clipboard (#1529) 2020-06-12 09:50:45 -07:00
Kirk Scheibelhut
bb8d4f268c Handle @pokemon-showdown/sets -> @smogon/sets change 2020-06-04 19:46:20 -07:00
SSlayer9
1364d76408
Remove the Pokemon Showdown Day link (#1525) 2020-06-01 10:51:14 -07:00
Guangcong Luo
a1610dd74c Limit /rank to battle format in battle rooms
Special thanks to @PartMan7 for the original code.

Closes #1524
2020-05-30 03:22:51 -04:00
Guangcong Luo
93d752dd10 Fix replay URLs in manage mode 2020-05-30 03:15:29 -04:00
Guangcong Luo
62694f04c4 Add more granular replay privacy controls 2020-05-30 02:03:30 -04:00
Guangcong Luo
df71047306 Fix sliders in Firefox
Quoting CSS tricks:

https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/

> Note that while we’re repeating code here, that’s necessary as you
> can’t comma-separate these type of selectors. Browsers will drop the
> entire selector if it doesn’t understand a part of it.

I really don't want to repeat my CSS three times, and Firefox's default
sliders don't look ugly, so we're just going to let Firefox use its
default sliders.

I'm annoyed that Firefox just takes `-webkit-appearance` without
also taking `-webkit-slider-thumb` etc, though. :/
2020-05-29 21:54:26 -07:00
Guangcong Luo
128d8bdc52 Improve CSS styling
This is modified from @StephenArg's original CSS in #1522. Thanks for
providing the original CSS for me to play around with!

Closes #1522
2020-05-29 21:41:48 -07:00
Guangcong Luo
54dce68ade Consistently wrap words in chat boxes
This makes battle chat work like chatrooms and PMs, wrapping
lines with no spaces that get too long.
2020-05-25 18:21:21 -04:00
Guangcong Luo
d480780c33 Fix tooltips causing layout deformation
Fixes smogon/pokemon-showdown#6737
2020-05-25 18:12:01 -04:00
Guangcong Luo
45f7392ce9 Add tooltip for field conditions
(Hover over the turn marker.)

Megas made hazards difficult to see, and gigantamaxes are making
weather difficult to see. This has been a constant problem which can
be fixed through careful changing of the graphics, but we'd probably
need something like this sooner or later anyway.

This also refactors the tooltip placement code, which was previously
a bit messy.
2020-05-23 13:01:44 -07:00
PartMan
1a272181fc
Fix replay redirect (#1519) 2020-05-16 18:44:50 -07:00
Kris Johnson
0b4bfcd065
Properly implement NFE teambuilder support (#1517) 2020-05-16 08:55:01 -07:00
Guangcong Luo
5f9ac54bc2 Remove source map reference from sockjs-client
SockJS-client _still_ isn't compatible with NW.js, leading to the
workaround we're currently using. The workaround breaks the
source-map, so there's been the source-map error unnecessarily
cluttering our consoles this entire time.
2020-05-16 11:51:34 -04:00
Guangcong Luo
5eddc4308d Fix build errors 2020-05-15 22:11:07 -07:00
Guangcong Luo
a76be69b76 Fix Gmax learnsets in teambuilder
Fixes #1516
2020-05-12 06:01:18 -04:00
Guangcong Luo
a4593c6bcb Fix crash in PSdex tier display 2020-05-12 06:01:18 -04:00
Wally
a97c287bf4
fix css visual bug on mobile (#1513)
.tablist .button "width" isn't good on mobile 
how it currently looks: http://prntscr.com/sdygem
how it should look: http://prntscr.com/sdygnr
2020-05-10 01:46:34 -07:00
Kris Johnson
2d65159250
Fix Let's Go!, Metronome, and National Dex teambuilders (#1515) 2020-05-10 01:38:39 -07:00
Marty-D
450ec3dc99
Fix Minior-Indigo and -Violet placement in the spritesheet 2020-05-09 11:10:57 -04:00
Guangcong Luo
a173827efb Don't show Zoroark warning for Max moves 2020-05-08 22:24:12 -04:00
Guangcong Luo
fb18721e82
Update "not useless" moves (#1511)
Viable moves no longer use the `isViable` flag. Instead, we start by
assuming moves with 75+ base power are not useless (and others are
useless), and manually list exceptions in the relevant dexsearch
function.

In general, the move viability system has been a bit too specific. I
don't want to hardcode species because it's nearly always also
hardcoding specific metagames. It may help to think of it as "would
this move be useful in any metagame ever?" rather than "would it be
useful in the current metagame".

We instead use a significantly lower bar of "not useless", although
this hasn't been made clear until now. The word "viable" is now
banished from the codebase as well as the teambuilder's actual text,
which may also help.

Select changes:

- doubles moves now have separate viability lists
- Rock Tomb
  - it's good on Groudon for reasons that don't seem Groudon-specific,
    and is also good with Technician and in Doubles, so we'll default
    to yes
- Belly Drum
  - viable with priority, high speed, or Trick Room: too many
    conditions, so we'll default to yes
- Reflect Type
  - viable on Latias and Starmie for reasons that aren't specific to
    them, we'll default to yes
- Transform
  - required on Ditto, useful in Doubles: default to yes
- Fake Out
  - no longer viable if you have Sheer Force, should hopefully make
    people choose it less
- Nature's Madness, Super Fang
  - viable in Doubles, has uses in Singles: default to yes
- Dragon Darts, Sparkling Aria
  - mistakenly categorized as unviable; fixed
2020-05-08 19:24:02 -07:00
Kris Johnson
de878b3c5b
Fix canLearn's filtering (#1512) 2020-05-08 19:23:23 -07:00
Guangcong Luo
715a1fa4d0 Show species-specific items in teambuilder 2020-05-08 05:30:56 -04:00
Guangcong Luo
43be8925b3 Fix past-gen move/etc support in teambuilder 2020-05-08 05:02:43 -04:00
Guangcong Luo
c913b7db4c Fix filters not disappearing in teambuilder 2020-05-08 04:50:44 -04:00
Guangcong Luo
0c19bb3c82 Fix Charge tag 2020-05-08 04:50:35 -04:00
Guangcong Luo
989d6a42ce Fix sorting moves in teambuilder
Fixes #1509
Fixes #1510
2020-05-08 04:38:01 -04:00
Kris Johnson
fe19d32b65
Fix Pokemon that inherit movesets from base formes (#1507) 2020-05-07 21:11:24 -07:00
Kris Johnson
b776011d19
Fix Z-Moves and Max Moves in tooltips (#1508) 2020-05-07 19:23:54 -07:00
Kris Johnson
d50e6b7235
Fix various bugs with the new teambuilder (#1505) 2020-05-06 19:52:38 -07:00
Guangcong Luo
6b33f40102 Show cosmetic formes list on non-base formes
The teambuilder expects species.cosmeticFormes to be available on all
cosmetic formes. This may or may not need to be changed, but for now
this seems like the simplest approach.
2020-05-06 18:41:01 -04:00
Guangcong Luo
de7b91fe09
Use DexSearch for the teambuilder search engine (#1503)
This will prevent us from needing to maintain two search engines in
the future.

The new DexSearch doesn't have too much in the way of new features so
far, but it does show filtered things in categories, and list illegal
results in-filter even after sorting.

These are really minor differences, though; the main thing is just that
its architecture should make it much easier to maintain, and in
particular, to add more filters.
2020-05-05 20:36:10 -07:00
Kris Johnson
27f04e48ce
Fix DPP Doubles teambuilder (#1504) 2020-05-05 15:22:36 -07:00
Leonard Craft III
d2e076c44f
Update <<bugs>> with new bug reports thread (#1502) 2020-05-04 19:35:07 -07:00
Guangcong Luo
8a1ddcd6e2 Rename new BattleSearch -> DexSearch
(Also fix a bunch of bugs.)

The new name `DexSearch` better represents its feature-set, and allows
its name not to clash with the old `BattleSearch`.
2020-05-04 19:07:37 -07:00
Guangcong Luo
779e796e52 Refactor battle-search.ts 2020-05-03 22:40:11 -07:00
Guangcong Luo
b815730c51 Improve teambuilder team selection layout 2020-05-03 22:40:11 -07:00
The Immortal
a2e6380c16 Add G-Max Chi Strike text 2020-05-03 18:38:20 +04:00
Guangcong Luo
e8b6a6760a Fix gmaxPower/zMovePower for Z/Max moves 2020-05-02 02:36:31 -04:00
Kris Johnson
d8d8ea8b52
Allow Unown formes to be selected in the teambuilder (#1501) 2020-04-29 17:24:04 -04:00
Marty-D
ebe975042a
Add support for Unown minisprites 2020-04-29 17:13:33 -04:00
AnnikaCodes
8af0f9b7be
Teambuilder: Implement exporting to PokePaste (#1497) 2020-04-28 22:22:26 -07:00
Guangcong Luo
007d58e698 Fix cosmetic formes in replays
Replays don't load BattleAliases but they do load BattlePokedex, making
the old BattleBaseSpeciesChart unnecessary. In its place, a new chart,
specifically for cosmetic formes!
2020-04-29 00:24:12 -04:00
Guangcong Luo
3d0fa80055 Update Dex.getSpecies for cosmetic formes
Now that `species.cosmeticFormes` contains the name rather than the ID,
we don't need to manually reconstruct it anymore.
2020-04-28 21:04:38 -07:00
Kris Johnson
ee601f1bb9
Update client for updates types of evos/prevo/etc (#1500) 2020-04-28 20:48:39 -07:00