Commit Graph

252 Commits

Author SHA1 Message Date
Kris Johnson
2640f8c658
Fix National Dex teambuilder support for National Dex UU (#1530) 2020-06-15 15:43:21 -07:00
Guangcong Luo
6aaee16be0 Build formats.js
PS officially doesn't use this, but some bots used to read this
directly from GitHub, and building it is nontrivial, so this lets
bots read it from our webserver instead.

It's available at:

https://play.pokemonshowdown.com/data/formats.js

(And as usual, feel free to use HTTP if your language's HTTPS
implementation is hard to use.)
2020-06-13 14:41:33 -07:00
Kirk Scheibelhut
bb8d4f268c Handle @pokemon-showdown/sets -> @smogon/sets change 2020-06-04 19:46:20 -07:00
Kris Johnson
0b4bfcd065
Properly implement NFE teambuilder support (#1517) 2020-05-16 08:55:01 -07:00
Kris Johnson
27f04e48ce
Fix DPP Doubles teambuilder (#1504) 2020-05-05 15:22:36 -07:00
Kris Johnson
ee601f1bb9
Update client for updates types of evos/prevo/etc (#1500) 2020-04-28 20:48:39 -07:00
Kris Johnson
33b3d8d041
Fix National Dex teambuilder (#1495) 2020-04-24 21:24:45 -07:00
Kris Johnson
6c878a967f
Add support for .data-dist (#1494) 2020-04-24 21:01:34 -07:00
Kris Johnson
bfab55a5b8
Add client-side support for (DUber) (#1490) 2020-04-14 15:17:14 -07:00
The Immortal
d6ee0a1d87 Remove references to isUnreleased 2020-04-06 21:52:25 +04:00
Guangcong Luo
504ce3b384 Improve error message for recent Missingno crash 2020-03-26 23:05:13 -07:00
Kris Johnson
f21bfe7f6a
Rename Template to Species (#1484) 2020-03-25 23:29:05 -07:00
Guangcong Luo
9e80ee72b5 Make overrideTypeChart builder more readable 2020-03-20 23:53:18 -07:00
Kris Johnson
b1282465c5
Add teambuilder support for (NU) (#1483) 2020-03-20 20:49:51 -07:00
Kirk Scheibelhut
81c99f66c6
Add getType to ModdedDex and populate correctly (#1478) 2020-03-20 16:06:54 -07:00
The Immortal
f1d21b8853 Teambuilder: Fix empty moves 2020-03-21 01:17:24 +04:00
Guangcong Luo
64e451fa61 Stop tracking past learnsets-g6
`learnsets-g6` has always been versioned because in Gen 6, it contained
START move order.

For instance, Clefairy in BW2 has the following level-up moveset:

- START: Pound
- START: Growl
- L4: Encore
- L7: Sing
- L10: Double Slap

If you catch a wild level-10 Clefairy, its moveset will be: Growl,
Encore, Sing, Double Slap. A level-10 wild Clefairy will always have
Growl and never have Pound, because the order of its first two moves
matters.

PS's regular learnsets file doesn't take this into account, so we
tracked a `learnsets-g6` file that did, but also needed to keep in sync
with new game updates.

Well, these are no longer necessary. We've updated to Gen 7 and now
Gen 8, and we've never had START ordering for any of them. Anyone who
wants START ordering for Gen 6 can find it here:

https://github.com/Zarel/Pokemon-Gen-6-Learnsets

For this repo, though, `learnsets-g6` is still around (used only by
PSdex), but it can now be automatically built from `learnsets` without
losing anything, and so it can finally be `.gitignore`d.
2020-03-17 16:55:25 -07:00
Guangcong Luo
e85cb9d0a6
Simplify the NFE teambuilder and fix bugs (#1470) 2020-03-05 15:51:47 -08:00
The Immortal
e4e55fbeb9
Room Service is not a great item 2020-02-21 04:08:36 +04:00
petuuuhhh
326bad861c
Add Heavy Duty Boots, Expert Belt, and Room Service to Popular items (#1466) 2020-02-20 16:00:17 -08:00
Kris Johnson
ad5b8abd2e
Add teambuilder support for Metronome Battle (#1443) 2020-02-19 16:11:50 -08:00
The Immortal
9d561a987a
Teambuilder: Move TRs to bad items 2020-02-18 01:13:35 +04:00
Kris Johnson
4033a75f50
Add teambuilder support for NFE (#1464) 2020-02-15 08:23:20 -08:00
Kris Johnson
bf91ff78fd
Add (Uber) support (#1465) 2020-02-13 01:55:35 +04:00
Kris Johnson
adf70defb2 National Dex: Add Item Support (#1449) 2020-01-25 17:05:37 -08:00
Kris Johnson
3cdc6b9c24 Fix Gmax formes in the National Dex teambuilders (#1441) 2020-01-09 11:03:42 +04:00
The Immortal
95e2bc5336 Fix spacing errors 2019-12-26 18:33:40 +04:00
Kris Johnson
89c7c9419b Add viability checks for various moves (#1428) 2019-12-24 13:19:30 +09:00
Kris Johnson
a51fcba53f Teambuilder: Fix learnset and tier issues for National Dex metas (#1431)
* Teambuilder: Fix learnsets for National Dex metas

* Fix issue with banned Pokemon still showing as OU

* remove space
2019-12-22 17:39:06 +04:00
Kris Johnson
aee6b3f73c Add support for NatDex metas (#1426) 2019-12-21 06:11:22 +04:00
Guangcong Luo
683f95dade Fix misc Gen 8 issues 2019-12-13 05:57:04 -05:00
The Immortal
90eeada557
Teambuilder: Show Unreleased Pokemon in gen 8 2019-12-07 22:08:28 +04:00
Kris Johnson
586f6efa87 Fix AG in the teambuilder (#1416) 2019-12-04 10:09:22 +09:00
Kris Johnson
f8fea33334 Fix typo (#1413) 2019-12-02 15:02:14 +09:00
Kris Johnson
64e74c1ba4 Fix Ferroseed's Gen 7 Teambuilder placement for LC (#1411) 2019-12-01 23:33:37 +13:00
Kris Johnson
0d88b6baf3 Teambuilder: Restrict learnsets to pre-Home versions (#1403) 2019-11-20 22:13:55 +13:00
Kris Johnson
74ade19d95 Fix Doubles teambuilder (#1397) 2019-11-18 11:24:06 +13:00
Guangcong Luo
f3539b4dd2 Support past-gen Ability descriptions
Fixes #1396
2019-11-17 11:20:15 +13:00
Marty-D
cab7c4eab5
Fix build 2019-11-16 16:33:59 -05:00
Kris Johnson
aaaa967ba8 Fix tiering for arbitrary battleOnly formes (#1395) 2019-11-17 01:12:20 +04:00
Guangcong Luo
e8a3cd55ac Fix Darmanitan-Galar tiering 2019-11-17 09:31:45 +13:00
Guangcong Luo
cfd29205d5 Fix misc bugs in Gen 8 migration 2019-11-16 02:07:40 -05:00
Guangcong Luo
1eecc0b567 Fix Gen 8 learnsets 2019-11-15 13:54:56 -05:00
Guangcong Luo
c624c6709b Update client for Gen 8
This isn't necessarily a complete update, but it adds everything I'm
aware of. The rest will come down to testing.
2019-11-16 07:25:27 +13:00
Kirk Scheibelhut
5ba0790750 Import @pokemon-showdown/sets during build (#1368) 2019-09-13 02:38:00 -07:00
Kirk Scheibelhut
db6c938007 Standardize file/directory names in sprites/ (#1370)
#1369
2019-09-13 00:55:55 -07:00
Kirk Scheibelhut
a9bf84ba2a Fix HEAD vs. origin dupe check
git rev-parse --short sometimes returns less than 8 characters,
meaning the dedup logic is off. One alternative is just to check
origin.startsWith instead, but making them both a uniform 8 works as
well.
2019-06-16 14:10:49 -07:00
Kirk Scheibelhut
a2bbae3b35 Include origin hash in Config.version if different 2019-06-15 21:51:00 -07:00
Kirk Scheibelhut
bbad2828b0 Include commit hash in client config version (#1303) 2019-06-16 13:02:38 +09:00
Guangcong Luo
0757f3c1fa Update for new Dex API 2019-05-16 01:59:18 +04:00
Kirk Scheibelhut
575bad1cf9 toId -> toID
Zarel/Pokemon-Showdown#5479
2019-05-14 09:54:18 -07:00
asgdf
91e84d49da Teambuilder: Fix changed hidden abilities in older gens (#1266) 2019-04-20 15:08:51 +09:30
Dan Huang
2e2852f35c Add server build step to client build (#1262) 2019-04-03 11:40:45 +08:00
Guangcong Luo
e6e65dde4f Update AFD 2019 implementation
AFD messages are now disabled by `/afd off`
2019-04-01 19:18:28 +08:00
Guangcong Luo
27061397e0 Update item viability 2019-04-01 00:53:38 +08:00
asgdf
689c741526 Don't display illegal HMs as legal in Teambuilder (#1253) 2019-03-19 10:45:14 +09:00
Kris Johnson
0cb0056dae Fix teambuilder headers (#1254) 2019-03-18 22:29:47 +04:00
Guangcong Luo
eb38544200 Support serving the Preact client
If you want to access it, I'm sure you can figure out how from this
code. ;)
2019-03-17 06:21:49 -04:00
Guangcong Luo
c9e46593ba Update build tools for Sim TypeScript 2019-02-28 03:08:31 -05:00
Kris Johnson
567c7e16b8 Change Untiered to (PU) and (DUU) (#1230) 2019-02-25 01:11:06 -06:00
Kris Johnson
c9dbb4d5ae Change (PU) to Untiered (#1226) 2019-02-15 17:28:45 -06:00
Kris Johnson
e62302417c Support Untiered as a Doubles tier in teambuilder (#1216) 2019-01-22 19:00:12 -06:00
Kris Johnson
e3bc453210 Fix the gen number for teambuilder tables (#1215) 2019-01-16 15:59:58 -06:00
asgdf
3402a79466 Teambuilder: Properly label healing berry usefulness in gen 7 (#1211) 2019-01-13 21:47:00 -06:00
Kris Johnson
e8e347a8f7 Add a getTier function for the teambuilder (#1208) 2019-01-08 23:24:22 -06:00
Kris Johnson
0f3145b1ef Let's Go: Fix learnsets and happiness value (#1197) 2018-12-20 09:46:32 -08:00
Guangcong Luo
eff5359fb4 Rename Tools to Dex
This has already been done server-side, and there's no use delaying
client.
2018-12-05 21:11:47 -06:00
The Immortal
1ef228ebcb
Let's Go: Remove UUBL classification 2018-12-04 17:16:49 +04:00
Kris Johnson
7b65496bed Let's Go: Update tiers (client-side) (#1189) 2018-12-04 01:22:20 -06:00
Guangcong Luo
9024ce99be Fix minidex building 2018-11-29 16:12:00 -05:00
Kris Johnson
460ee1ad26 Add learnset support for Let's Go (#1177) 2018-11-25 15:56:50 -06:00
Guangcong Luo
096f037a07 Put battle text in battledata.js
This makes it so a regular build will rebuild battle text, instead of
requiring a full build.

battle text is under active development, so this is pretty useful,
even if conceptually, text is purely a graphical thing and not actually
needed by headless battles.
2018-11-24 01:14:28 -06:00
Guangcong Luo
01bdf7808b Don't build minidex if no sprites folder
This prevents PS from disabling sprite animations if someone runs
`./build full` without having sprites.
2018-11-24 01:14:28 -06:00
Kris Johnson
44d669f74d Add more teambuilder support for Let's Go (#1169) 2018-11-22 00:10:23 -06:00
Guangcong Luo
f6c03e0370 Implement new battle-text-parser
All battle text messages have been moved out of `src/battle.ts` and
into its own file `data/text.js`.

Code for handling this is in the new files `src/battle-log.ts` and
`src/battle-text-parser.ts`.

`data/text.js` is now extremely self-contained, and nearly ready for
translation support!

This is a significant modernization of battle.ts. In addition to moving
messages out:

Functions for getting names (`pokemon.getLowerName()` etc) have been
removed.

`battle.minorQueue` has been removed. Minor lines are now processed
directly on the main queue, with a new `battle.waitForAnimations`
flag to decide whether or not the main queue should wait for animations
to finish before moving on to the next line.

`battle.waitForResult()` and `battle.endPrevAction()` have been
removed. These confusingly-named functions closed the messagebar (and
flush the minor queue). They've been replaced with
`scene.maybeCloseMessagebar()`.

`pokemon.markMove()` and `pokemon.markAbility()` have been renamed
`pokemon.rememberMove()` and `pokemon.rememberAbility()`.
2018-11-15 18:52:53 -06:00
Guangcong Luo
5f05adc856 Split battle-log.ts off from battle-dex.ts
This splits battle-dex.ts up into:

- `battle-dex.ts`
  - dex data access, misc tools
- `battle-log.ts`
  - manipulating HTML, especially in battle logs

This turned out to be a pretty significant portion of what was
previously battle-dex.
2018-11-15 18:52:53 -06:00
Guangcong Luo
25712419c7 Dex: Support multi-word article titles 2018-10-29 01:50:25 -04:00
Guangcong Luo
654abc3162 Fix errors caught by LGTM 2018-10-27 04:32:11 -05:00
Guangcong Luo
f86245febb Add mocha tests to npm test 2018-10-16 03:31:27 -05:00
Guangcong Luo
9019543dc1 Don't build graphics.js by default
graphics.js will still be built by `./build full`, and once it already
exists, `./build` will rebuild it when it's modified.

Fixes #1150
2018-10-16 03:26:51 -05:00
Guangcong Luo
f09d917110 Support incremental builds
`./build` should run a lot faster now.
2018-10-16 00:31:07 -05:00
Kris Johnson
22aedd4471 Support ZU in the teambuilder (#1152) 2018-10-07 15:52:42 +04:00
Guangcong Luo
11b3022250 Clean up more unused variables 2018-09-06 05:35:18 -05:00
The Immortal
c5d34374ae
Add Zeraora to mythicals 2018-07-14 13:46:55 +08:00
asgdf
ae4ed26a0b Oldgens: Don't show abilities the Pokemon didn't have at the time (#1113) 2018-05-20 11:24:48 -05:00
Guangcong Luo
4e7f998afa TypeScript data/graphics.js 2018-05-18 17:10:58 -05:00
Guangcong Luo
399f1735b6 Fix build tools
It should now be possible to build from a fresh checkout with
`node build`.
2018-05-17 11:52:32 -05:00
asgdf
6933d5a6e6 Fix build script on Windows (#1118) 2018-05-14 17:50:24 -05:00
Guangcong Luo
b3c6c2a308 Make eslint ignore compiled files 2018-05-14 12:53:34 -05:00
Guangcong Luo
a15ec64d1d Move battledata.js to TypeScript
This is the first step of moving the entire client over to
TypeScript + Preact!!!!

The main change here is that battledata.js has been split into three
files:
- `src/battle-dex.ts`
- `src/battle-dex-data.ts`
- `src/battle-dex-misc.js`

These are concatenated back into `battledata.js` in the client, so
third parties (and specifically, old replay files) should be
unaffected. Also, this makes sure that we don't have more than two
dependencies right now.

The compilation is done with Babel 7 beta, because no stable version
of Babel supports TypeScript. We're not using `tsc` because it can't
compile to ES3 and it doesn't support preserving line numbers.

`toRoomid` has been moved from client.js to battle-dex.ts.
2018-05-14 12:53:34 -05:00
The Immortal
74859843ab
Teambuilder: Hide gen 7 battle formes and Totems 2018-05-03 21:42:50 +08:00
asgdf
a592beffe3 Avoid duplicate execution of override checks in build-indexes (#1109) 2018-04-26 18:23:07 -05:00
Marty-D
55a094c5be Support new BL names 2018-04-24 20:29:44 -04:00
Marty-D
2657b3a658
Teambuilder: Update useless items 2018-04-24 01:28:31 +00:00
asgdf
cd6cfd4b67 Teambuilder: Fix CAP LC list (#1105) 2018-04-17 19:39:58 -04:00
KrisXV
729cfa322f Add property for battle-only formes (#1088) 2018-03-10 00:11:15 +09:00
Zachary Perlmutter
dc7340cc2d Classify EV boosting items as "usually useless" (#1086) 2018-03-03 22:09:02 -05:00
The Immortal
2842b5c586
Teambuilder: Remove Gems from popular items 2018-02-03 01:19:36 +08:00
KrisXV
ee8c812f9b Support DOU by technicality (#1074) 2018-01-27 07:50:40 -06:00
Guangcong Luo
af5dcc8551 Teambuilder: Fix Doubles tier list 2018-01-26 21:17:33 -05:00
Guangcong Luo
8f68538947 Update build script for doublesTier 2018-01-26 18:15:03 -05:00
Guangcong Luo
15c73c922f Refactor build system
We no longer have the relevant Githook for automatic building, so
putting it in `githooks/` no longer makes much sense. It's now manually
called with a build script `./build`, like other PS websites (most
notably PSDex and the damagecalc).
2017-12-04 17:37:01 -05:00