Commit Graph

122 Commits

Author SHA1 Message Date
André Bastos Dias
0f663cd46f Refactor White Herb activation (#11133) 2025-05-25 12:57:58 -07:00
André Bastos Dias
3db46c58eb Implement White Herb and Eject Pack like Mirror Herb (#10890)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-15 11:39:46 -07:00
André Bastos Dias
6b3d0eefbd Fix Sparkling Aria's interaction with Shield Dust (#10882)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-23 16:57:31 -07:00
Guangcong Luo
78439b4a02 Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

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. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00
pyuk-bot
7bb2fd1869 Overhaul 'SwitchIn' event for more accurate effect resolution order (#10766) 2025-01-28 16:51:17 -06:00
pyuk-bot
3666829c0a Gen II: Move HP berries' activations after Reflect, etc. (#10836)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2025-01-22 17:19:46 -05:00
Alex "Mathy
cb5bbe819d Fix Guard Dog / Mirror Armor / Clear Amulet event order (#10696) 2024-11-27 13:07:53 -07:00
Guangcong Luo
88be8d7b3c Refactor types for Lowercase<string> (#10377)
TypeScript 4.8+ supports Lowercase for lowercase strings, which isn't
exactly what ID is, but can be used to type IDs in object keys and data
entries that previously required string. I'm calling it IDEntry in places
where it should be an ID but TypeScript doesn't support that.

Very conveniently, no additional casts will be needed when using ID
where IDEntry is expected.

It's caught at least a few bugs, which is also why I'm PRing: I didn't
write the code for the bugs it found, and don't know if it's the right
way to fix them.

This ballooned into several other type refactors.
2024-07-01 15:57:14 -07:00
bilalafzalshafi
011ff74462 Fix Metronome (item) with calling moves (#10361) 2024-06-21 22:09:47 -05:00
Leonard Craft III
ccadd328df Fix more SV item legality 2024-04-11 20:25:22 -05:00
Leonard Craft III
33238e4e90 Make Dragon Scale obtainable 2024-01-15 15:34:15 -06:00
Leonard Craft III
4e15b260e9 Fix interaction of Me First and Assault Vest 2024-01-10 16:27:50 -06:00
Marty-D
2aeb3dfe68 Correct Metal Alloy 2023-12-18 21:41:30 -05:00
Karthik
f98aba0873 Unmark Soul Dew as nonstandard in Gen 9 (#9982) 2023-12-17 10:39:49 -07:00
Kris Johnson
a0f10ffa51 Add DLC2 data (#9963)
* DLC2 returning Pokemon

* Returning legendaries too

* Partially add Raging Bolt and Iron Crown (#10)

* Add remaining Pre-DLC2 event data

* Fix tests

* Last event before DLC + split learnset files

* Learnsets + secret returning pokemon

* Some DLC 2 stuff (#12)

* Add New Mons

* Add Electro Shot

* Give Dipplin Dex Evo

* Update data/moves.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* More tweaks

* formats

* Revealed moves (#11)

* Add Hard Press

* Add Psychic Noise

* Add Upper Hand

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* more things

* Fix typo

* a lot of other things

* MOVES! kinda

* b

* fickle beam confirmed chance

* Evo Item Undexit + Metal Alloy + Move Fixes (#19)

* Update move data

* Update Item Data

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Add message for Fickle Beam BP double (#18)

* Add some tests and implement Tera Shell (#15)

* add some tests and draft of tera shell

* add text

* .

* add improvements from feedback, change behavior of terashell

* use AfterMove instead of AfterMoveSecondary

* add confirmation to multi-hit interaction

* improve based on feedback and general cleanup

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Add Tera Shift and Teraform Zero (#16)

* Add Tera Shift and Teraform Zero

* Add short descriptions

* fixes

* More move changes

* Update unSketchable moves

List from Anubis

* more move things

* oops

* Implement new Neutralizing Gas/Paradox ability interaction (#17)

* Implement new Neutralizing Gas/Paradox ability interaction

* add test

* revert in dlc

* ok

* Update pastgens for Sketch (#20)

* Implement Stellar type (#13)

* Implement Stellar type

* stuff from research

* pain

* add tests for Dragon Cheer (#22)

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update move flags (#23)

* Fix flags for new moves

* update old moves

* remove sparkling aria changes

* update metronome description

* update other move descriptions

* more formatz stuff

* Add Poison Puppeteer (#24)

* Add Poison Puppeteer

* i'm bad

* still bad

* Fix build

* oops

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/items.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Fix Terapagos dex entries (#25)

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* FIX BUILD

* Fix Regulation E formats (#26)

* Fix Regulation E formats

* add move bans

* nevermind

* Add Regulation F formats (#27)

* Fix interaction between Adaptability and Tera Stellar (#28)

* reg f bo3 ladder

* Update config/formats.ts

Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>

---------

Co-authored-by: Smudge <smudgerox@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: tofa <79044321+im-tofa@users.noreply.github.com>
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
2023-12-15 21:35:01 -07:00
Karthik
ea3004ecab Fix Syrup Bomb messages with stat drop blocking effects (#9847) 2023-10-20 00:18:33 -05:00
pyuk-bot
5624137e43 Make Booster Energy wait for hazards (#9844) 2023-10-17 21:36:45 -05:00
Karthik
e406ca3abe Syrup Bomb fixes (#9836) 2023-10-14 23:37:36 -05:00
pyuk-bot
4e0abbe246 Sharing is Caring: Fix Big Root + healing berry (#9817) 2023-10-03 12:03:38 -06:00
Kris Johnson
e00a86fc15 Undexit evolution items 2023-09-21 22:27:35 -06:00
Karthik
4ab657de3c More Ogerpon fixes (#9784) 2023-09-16 17:27:27 -04:00
Kris Johnson
6ff8a6839b Mix and Mega: Add support for Masks 2023-09-15 11:41:31 -06:00
Elitemagikarp
cfdccbdd2a Implement power increase for STAB moves on Ogerpon masks (#9781) 2023-09-15 10:40:54 -05:00
Vertigo
a24511058d Fix berries legality in Teal Mask (#9780) 2023-09-14 23:09:21 -05:00
Kris Johnson
6bb3879e3a Add Teal Mask DLC data (#9762)
Co-authored-by: Karthik99999 <bandagondak0217@gmail.com>
Co-authored-by: smudgerox <smudgerox@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
2023-09-13 21:08:01 -04:00
Leonard Craft III
3eda4c7520 Correct Big Nugget's spritenum
Thanks Marty!
2023-09-06 21:54:12 -05:00
Leonard Craft III
91ca9dbaa9 Add Big Nugget (#9719) 2023-08-21 14:30:30 -05:00
Karthik
d99ee2a1bb Add Fling BP for Gen 9 items (#9663) 2023-07-18 16:37:45 -04:00
Marty
923144d4e7 Add new item sprites 2023-07-03 11:55:46 -04:00
Christopher Monsanto
0ec83ee966 Data: Unshare Strange Ball spritenum 2023-06-17 03:52:18 -04:00
Kris Johnson
b04b3d7eb0 Add Pokemon HOME 3.0.0 changes (#9573)
* Add Pokemon HOME 3.0.0 changes

* oop

* a

* OWOWOWOWOWWO
2023-05-30 09:08:02 -06:00
Sergio
238ecfaf35 Fix Mycelium Might and Quick Claw interaction (#9528) 2023-04-20 23:20:28 -05:00
Leonard Craft III
156a39405f Refactor some move lists to move flags (#9396) 2023-03-18 22:21:00 -05:00
pyuk-bot
e3b791f310 Fix changing, blocking, and reacting to stat boosts (#9322) 2023-01-21 12:17:22 -05:00
pyuk-bot
ac3647cba0 Remove unnecessary effect overrides from some mods (#9312) 2023-01-11 23:08:25 -06:00
Paul Roode
3bcf85def2 Alphabetize abilities Earth Eater and Limber, and item Black Sludge (#9306) 2023-01-10 21:11:27 -06:00
pyuk-bot
bca1a0018a Ensure Punching Glove overrides Unseen Fist (#9264) 2022-12-30 16:04:03 -06:00
Karthik
d1a10c589d Fix Room Service boost source (#9250) 2022-12-29 21:39:08 -06:00
Leonard Craft III
65951e3b69 Fix more SV item legality (#9236) 2022-12-27 13:43:34 -05:00
Karthik
65dcedc557 Implement proper Origin forme mechanics (#9227) 2022-12-26 12:20:44 -06:00
Karthik
6d773e639d Fix Punching Glove boost ratio (#9225) 2022-12-25 14:24:20 -06:00
Karthik
c58f667bd9 Fix Booster Energy activating under Sun/Electric Terrain (#9211) 2022-12-22 19:58:53 -05:00
pyuk-bot
e68346e702 Add an 'End' event for items (#9124) 2022-12-09 19:18:16 -06:00
pyuk-bot
eb79405b45 Mark more nonstandard items in Gen 9 (#9144) 2022-12-09 19:14:21 -06:00
Leonard Craft III
4f4854722f Fix Commander vs Transform and Eject items (#9126) 2022-12-06 22:16:46 -06:00
Sergio
fb0222f5c1 Wait for damage to activate Gluttony after Neutralizing Gas end (#8984) 2022-12-05 20:33:16 -06:00
pyuk-bot
7a6a8441cc Fix Protosynthesis/Quark Drive/Booster Energy (#9118) 2022-12-04 16:20:21 -05:00
Kris Johnson
f6ce117fad Fix Booster Energy TakeItem event 2022-12-03 00:29:01 -07:00
Kris Johnson
cc9bd858bc Fix Booster Energy + TrickKnock Off interaction 2022-12-03 00:26:18 -07:00
Kris Johnson
0b53ab2d5a Berry Juice isn't in Gen 9 2022-11-30 20:43:22 -07:00