Commit Graph

28 Commits

Author SHA1 Message Date
Marty
df969fceb6 Update Pokemon icons sheet
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2026-03-15 18:15:56 -04:00
André Bastos Dias
cedd472222
[Client] Implement Mega Stones as {key: value} pairs (#2590)
* [Client] Implement Mega Stones as pairs {key: value}

* Simplify conditions

* Fix

* Update play.pokemonshowdown.com/js/client-teambuilder.js

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2026-01-08 15:04:54 -07:00
Kris Johnson
366873a315 Add filler minisprite locations for spritesheet
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-12-17 12:03:30 -07:00
Marty
7ab0dbec92 Update Pokemon icons sheet
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-10-25 18:54:43 -04:00
Kris Johnson
a1f3f059d1 Add teambuilder support for Legends Z-A OU 2025-10-20 23:05:31 -06:00
Spammernoob69
7c9b69dc6f
Update spritesheet and move animations for CAP 36 (#2472) 2025-07-13 08:30:04 -04:00
André Bastos Dias
917855a0ec
Add Home sprites (#2430)
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-05-22 17:41:30 -07:00
André Bastos Dias
73ea84c0d0
Don't force Tera types because of Hackmons (#2324)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-05-13 14:45:16 -07:00
Guangcong Luo
bfb2813c72 Preact minor updates batch 19
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Battles
- Fix move types in battle controls
- Warn about Gen 1 Substitute self-KOs in tooltips
- Hide controls until animations are finished

Teambuilder
- Implement uploading teams
- Fix adding pokemon in teambuilder text mode
- Uploaded team management
- Automatic Atk/Spe IVs
  - IV spread chooser also has an auto button

Trivial
- Constrain teambuilder width better
2025-05-13 18:56:16 +00:00
Guangcong Luo
45f8880807 Preact teambuilder: Defensive coverage overview
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-05-06 15:59:30 +00:00
shrianshChari
18665151e8
Properly type Item.naturalGift (#2370)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-04-18 15:58:35 -06:00
pyuk-bot
ec92955748
Teambuilder: Update popular items for gen 9 & add doubles support (#2321)
* Teambuilder: Customize Metronome Battle's popular items

* Teambuilder: Update popular items for gen 9 & add doubles support

* Fixes

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-02-26 13:40:49 -07:00
Guangcong Luo
a10821ab8b
Update to ESLint 9 (#2326)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This finally removes the tslint dependency and switches to eslint.

There are a lot of other changes here, too, to bring the codebase up to
server standards. TSLint never had much in the way of indentation
enforcement.

Not very happy about eslint splitting itself up over 6 dependencies,
or its documentation over three websites, nor how poorly documented the
new flat config is, but I mean, eslint's gonna eslint. Customizing
would be even harder if we tried to use Biome or something. They mostly
seem to go full Prettier.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed (except in ES3
  code). We otherwise now consistently use template strings for this.
2025-02-25 20:05:32 -08:00
Guangcong Luo
3f23c5a738 Refactor TypeScript files to modules
Due to the specific way we implement everything, none of these files
are actually modules. But thanks to `babel-plugin-remove-import-export`,
there's no reason why the code can't be written as modules.

I wouldn't say I like modules, but it's what's popular and it's what
people are used to and it's what tooling is built around.
2025-02-19 14:46:12 -08:00
Marty
38d29ff660 Update Pokemon icons sheet
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-02-11 20:48:03 -05:00
Marty
565a057a5d Update Pokemon icons sheet
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-12-01 21:48:12 -05:00
Leonard Craft III
1019ac1b59
Convert noSketch to move flag (#2261) 2024-07-14 23:45:43 -05:00
dot-Comfey
0b2844f66b
Fix teambuilder move display for formes (#2258)
* Fix teambuilder move display for formes

https://www.smogon.com/forums/threads/bug-report-teambuilder.3746541/
This bug was caused by my assumption that the client gets changesFrom the same way the server does.

* Update battle-dex-search.ts

Linter got upset
2024-07-07 13:07:57 -06:00
Kris Johnson
b399117bd0 CAP: Add Chuggalong minisprite index 2024-05-19 11:35:59 -06:00
Karthik
877bda4378
Teambuilder: Add EV optimization checker (#2240)
---------

Co-authored-by: pyuk-bot <msaimrkon@gmail.com>
2024-04-05 23:33:26 -05:00
Kris Johnson
c6cff325da Teambuilder: Fix viability of DLC2 moves 2024-01-22 16:06:08 -07:00
Karthik
17eef20bcf
Support new ability flags (#2210) 2024-01-08 18:10:58 -06:00
Marty-D
392eb3a60f
Fix some icon sheet positioning 2023-12-27 17:49:05 -05:00
Karthik
07efb0ff40
Tooltips: Fix issues with Stellar type (#2199) 2023-12-25 22:53:35 -07:00
Marty
4c5c6d6f9c Update Pokemon icons sheet 2023-12-18 21:07:47 -05:00
Kris Johnson
79970ed2d2
Add DLC2 client support (#2196)
* Add DLC2 client support

* vgc :-P
2023-12-15 21:34:41 -07:00
Marty
6d55434cb8 Update Pokemon icons sheet 2023-11-20 21:54:06 -05:00
Guangcong Luo
5d41f3ec93
Reorganize directories (#2187)
Files meant to be served have been moved into
`play.pokemonshowdown.com/` and `pokemonshowdown.com/`.

We now have three directories for the three subdomains handled by this
repo:

- `pokemonshowdown.com/`
- `play.pokemonshowdown.com/`
- `replay.pokemonshowdown.com/`

Naming them after the subdomains will make it much easier to tell where
the files for each go.

The diff is probably useless; it'll be easier if you just look at the
new tree:
https://github.com/smogon/pokemon-showdown-client/tree/reorganize
2023-11-16 03:39:29 -08:00