Commit Graph

35 Commits

Author SHA1 Message Date
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