Commit b6f4b95
Minor Update 1.11.19 to Main
* fix(move): Life Dew now ignores Substitute (#7215)
* fix(ui): fix rendering/text issues in legacy ui (#7217)
* fix(ui): Expanding Force hits both targets in Psychic Terrain (#7189)
fix: Expanding Force animation does not hit both targets in Psychic terrain
Bug was fixed by changing the function start in class
move-effect-phase.ts, added a for loop to consider all
targets that need to be hit with the Expanding Force
animation, instead of only the first target.
* chore: update `pnpm` to `10.33.0`
* chore: update `CREDITS.md`
* fix: move-calling moves show their original type with Aerilate/etc
#7188
* fix: Update src/field/pokemon.ts
Changed, as recommended, from getAttrs to hasAttr in getMoveType().
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix: Update comment in src/field/pokemon.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* chore: update `lodash` sub-dep
* fix: splash text `itsBeenTotalRuns` will display properly (#7224)
* fix(ui): give legacy ui ability bars minimum size (#7218)
* dev: `.mts` files in `.github/` are now parsed by tsconfig (#7225)
* fix(types): `pr-title.mts` is now type checked
* Update pr-title.mts error handling
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix(move): Gravity displays a message when grounding Pokémon (#7187)
* Fix #6865: Gravity now displays a message when grouding a Pokémon.
When gravity is activated, display message regarding grounded Pokémon.
The fix required an addicional message on /locales/en/arena-tag.json.
* fix:proper sync to the locales folder
* fix: message display for Gravity is now conditional.
The message should only display for when a pokemon is successfully grounded.
* fix: updated logic on the previous condition.
A variable getting the pokemon initial "grounded" state was added, to ensure only the flying/floating pokemon are affected.
* misc: Remove no longer used Consent Pref menu option (#7230)
* fix(move): Court Change properly preserves entry hazard layers (#7164)
* Fix court change not applying layers properly
The "Court Change" move was implemented without checking for layers when an entry hazard was set on the field
-Added a variable to check for layers
-Added a for loop to account for each layer
* test: Updated the condition and removed unnecessary lines
* test: changed the condition for test to check different amounts of layers
refactor: cleaned unnecessary method to check for layer amount
* misc: make logging for attacks more readable
* misc: remove unnecessary `console.error` in `CommandPhase`
* dev: adjust ls-lint to allow `.local` dirs (#7234)
* chore: update submodules
* dev: add custom dev function for testing (#7229)
* fix: Infiltrator bypasses Mist, Mist activation message fixed (#7227)
* fix(move): Mist shows its message correctly
* add tests
* Update arena-tag.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update arena-tag.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update arena-tag.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update arena.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/phases/stat-stage-change-phase.ts
* Update src/data/arena-tag.ts
* Apply Biome
* Revert `apply(...args: never)` to `: unknown[]`
* Add Mist + Infiltrator interaction test
* Remove outdated comment
* Add `expect` to demonstrate Mist is active
* Update TSDoc
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* misc: Infiltrator is no longer "Partial"
* misc: add `68dddbc4` to git blame ignore list
This was a Biome formatting/linting commit
* fix(encounter): HA chance for MEs will be calculated correctly (#7237)
* fix(encounter): HA chance for MEs will be calculated correctly
* Replace `NumberHolder` with `ValueHolder` on modified lines
* fix(ability): Dazzling won't stop enemies from targeting their ally (#7236)
* dev: update `sample-movesets` to use `vite-node@5.3.0`
This is required until we update to Vite 8
* misc: remove obsolete Biome suppressions
* misc: remove unnecessary Biome suppression
The return value is never used,
we don't care if it changes from `null` to `undefined`
* dev: promote `lint/suspicious/noPrototypeBuiltins` to "error" (#7246)
* feat(ui): Display new cost when upgrading starter (#7245)
* Display new cost when upgrading starter
* Update locales submodule
* fix(biomes): biome weather will now activate correctly (#7250)
* misc: remove i18next console support msg (#7252)
* fix(move): Baneful Bunker now protects from status effects (#7159)
* fix(move): Baneful Bunker now protects from status effects
The "Baneful Bunker" move was implemented DamageProtectedTag, which does not protect against status moves.
- Introduced a new class `ContactSetPoisonProtectedTag` that blocks all moves (including status moves) and applies poison if the move makes contact.
- Added a test case to verify that "Baneful Bunker" blocks status moves like "Spore" and does not poison attackers, since status moves don't make contact.
* newline fix in test file
* refactor: use blockStatus in protect checks
* refactor protection checks to use ProtectedTag.blockStatus instead of subclass-based branching while preserving existing behaviour
* Improve maintainability of protection-check logic without intended gameplay changes
* Add regression tests for Protect and Burning Bulwark
* Remove now-obsolete `DamageProtectedTag` class
* Add some `readonly`s
* Update TSDoc for `blockStatus`
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update some TSDocs
* Add tests for Spiky Shield
---------
Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* fix(beta): Moves with post-target effects no longer softlock with no valid targets (#7240)
* Properly play post target animations
* Add test
* Update post-apply-effect.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Fix import
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* misc: add a 3 second delay to advance the endless end message (#7258)
* misc: prevent Rapidash from creating unfortunate fusion names (#7259)
* chore: update Biome to `2.4.9` (#7220)
* refactor: clean up game data methods part 2 (#7022)
* refactor: clean up game data methods part 2
* Revert typing change for now
* Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update game-data.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update game-data.ts
* Update pokemon-evolutions.ts
* Fix inverted call
* fix the function parameter comment
* Minor formatting change
* Fix exporting data
* Update game-data.ts
* Update game-data.ts
* Apply Biome
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* refactor: check date instead of bannerkey for april first logo (#7208)
check for date
Co-authored-by: damocleas <damocleas25@gmail.com>
* misc: minor comment updates, add a couple of `readonly`s
* refactor: clean up `egg-summary-phase.ts` (#7262)
* refactor: clean up `egg-summary-phase.ts`
* Undo the thingy
* fix: prioritize localstorage for language detection (#7261)
fix using cookie as language
* refactor: convert `Pokemon#levelExp` to a getter (#7267)
* dev: Upgrade to vite 8.0.0; add enum inline plugin (#7148)
* dev: Upgrade to vite 8.0.0; add enum inline plugin
* re-add
* Update package.json
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update package.json
* Update vitest.config.ts
* fix false alarm type test
* make the thing a dev dep
* Update all Vitest packages to `4.1.0`
* fix i18n build error
* Fix source map thing
* avoid needless Node module externalization + split plugin utils
* Update namespaces-i18n-plugin.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Remove outdated TODO comment
* Update Vite and Vitest
* Remove `vite-tsconfig-paths` plugin
* Remove version lock from `vite-node` in `sample-movesets` command
* fix the keep names
* Update vite.config.ts
* Fix import issue with phaser3 rex plugin
* Remove obsolete `<script>` tag and spammy `console.log`
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* refactor: remove `BattleSpec` enum (#7268)
* misc: Update sound effect file extension (#7264)
* misc: Update sound effect file extension
Battle anim SFX were converted to not use the mp3 format, so this needed correcting.
* Update assets submodule
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* chore: update Biome from `2.4.9` to `2.4.13` and apply to repo
* chore: update dependencies (#7271)
* chore: update `type-fest` to `5.6.0`
* chore: add override for `i18next-http-backend` min version to `3.0.5`
* chore: update `msw` to `2.13.5` and fix types
* chore: update `@material/material-color-utilities` to `0.4.0` (#7272)
* Move color utils from `common.ts` to `color-utils.ts`
* Update `@material/material-color-utilities` to `0.4.0`
- Re-create functions removed from the package in `color-utils.ts`
* Add `LICENSES/Apache-2.0.txt`
* Patch dep to fix broken imports
Thanks for leaving a broken package on npmjs for months Google :)
* Update `REUSE.toml`
* Fix test workflow
* chore: update Typescript to v6 (#7274)
* chore: update Typescript to v6
* Adjust `lib` field in `tsconfig.json`
`DOM.AsyncIterable` and `DOM.Iterable` are now part of `DOM`
* i18n: Add new summon message for Zero to Hero (#7253)
* misc: fix TSDoc in `overrides.ts`
* docs: minor typo fixes (#7276)
* docs: amend wording of tag type safety constants
they were inconsistent
Co-authored-by: Copilot <copilot@github.com>
* fix `toHaveTypes` specificity being reversed
Co-authored-by: Copilot <copilot@github.com>
* add `@internal`
---------
Co-authored-by: Copilot <copilot@github.com>
* chore: fix schema link in `biome.jsonc`
* misc: remove unnecessary `"options": {}` from `biome.jsonc`
The schema bug was fixed a while ago,
these were forgotten to be removed until now
* misc: change volume defaults to 50% instead of 100%, master vol to 30%
* misc: Update credits with head of art split (#7281)
update credits with art split
* misc: change tutorial overlay opacity to `60%` from `50%`
* misc: update TSDoc for `STARTER_FUSION_SPECIES_OVERRIDE`
* fix(challenge): prevent base stats from incorrectly changing for fused Pokemon in Flip Stat mode (#7284)
* chore: update `pnpm` to `10.33.2`
* github: fix PR title linting script
`prefix(scope)!: ...` will now be valid, in addition to `prefix!: ...`
* test: `FieldHelper#forceTera` now returns the spies it creates
Just in case any test wants to clear the mocks mid-test
* misc: add forgotten TSDoc `@returns` to `forceTera`
* misc: fix typo lol
* refactor: enforce usage of `Pokemon#isOfType` over `Pokemon#getTypes`
#6697
* fixed several instances of not checking tera types
* [Refactor] Enforced usage of `isOfType` over `getTypes`; made default values consistent
* Enforced matcher usage again
* Fixed trnasform tests
* more test fixes
* Added fail condition to Conversion
* fixed flower gift tests
* fixed syntax errors
* Update to-have-types.ts
* Update to-have-types.ts
* Fix even more assorted bugs with typing mismatches
* comment fix
* Fix import issue
* Tix flower-shield.test.ts
* Update game ingo get types call
* ran boime
* 1 fix stuff
* Apply the review comments
* Fix merge conflict eating like 5 move attrs
* Fixed fusion secondary typing
* fix import order
* fix shadow trap oversight
* Fix comment borkage
* Review changes
- Add/update some TSDocs/comments
- Fix type check in `mystery-encounter-requirements.ts`
to not falsely exclude Normal
- Add ability for `toHaveTypes` test matcher to check whether the
Pokemon has at least one of the expected types
- Add tests for Conversion and Conversion 2
* Add test for Terastallization STAB boosts
* Fix bug with tera stellar
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
* refactor(ui)!: simplify game speed options (#7280)
* rename speed settings
* Update speed hotkey code to new default min setting and new default index
* actually apply fixGameSpeed
* Update game version to 1.11.19 and move save migrator to `v1_11_19.ts`
* Update locales submodule
---------
Co-authored-by: Scooom <me@scooom.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* misc: reorganize plugins (#7275)
* Move most files out of `src/plugins/`
* Move files from `src/plugins/api/` to `src/api/`
* Remove `pokerogue-` prefix from api filenames
* Add `plugins/` directory to `REUSE.toml`
* Slight TSDoc change
* Fix typo
* chore: update Biome to `2.4.14`
* misc: remove unused `rextextedit` plugin (#7289)
This is not only unused, but also a security issue due to
pulling directly from a GitHub repo without even
being pinned to a SHA1 commit hash
* feat: add more data to `window.gameInfo` (#7290)
* refactor: clean up callsites to use `playTween` (#6886)
* [Refactor] Change some callsites to use `playTween`
* Update anim-utils.ts
* Update src/data/mystery-encounters/encounters/teleporting-hijinks-encounter.ts
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Update src/data/mystery-encounters/encounters/teleporting-hijinks-encounter.ts
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Update src/ui/containers/pokemon-info-container.ts
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Update teleporting-hijinks-encounter.ts
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* Minor formatting, add a couple of `public` modifiers
* Re-add early return, remove todo comment
---------
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* refactor: add strong typing to `Object.keys` and related methods
#7078
* dev: add strong typing to `Object.keys` and related methods
* Update global.d.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* add overloads for converting numbers to other numbers
* Fix type error in `scan-ivs-phase.ts`
* Update comment in `global.d.ts`
* fix pokeball counts assignment
* fix types
* fix type error
* remove import
* Add missing `readonly` in `@types/biomes.ts`
* Add future type safety
* Fix various `noImplicitAny` errors and minor denesting
* Add missing `as keyof typeof pokemonEvolutions`
* Remove stray newline
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* dev: add `RegularPokemonType` which excludes Stellar and Unknown types
* misc: temporarily fix `scripts/scrape-trainer-names/main.js`
Add `@ts-expect-error` until a proper fix can be done
* docs: standardize and fix up `#region` comments (#7294)
* docs: Standardize and fix up `#region` comments
* Standardize spacing, fix JS files and a couple missed in TS files
* Re-add nested regions
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix(ui): resolve candy bar count desync (#7239)
* refactor: convert `Pokemon#getTypes` and `#isOfType` to object params
#7298
* Convert `Pokemon#getTypes` to object param
- Add `ignoreThirdType` param to `getTypes`,
split from `bypassSummonData`, to determine whether to check
the type added from Forest's Curse or Trick-or-Treat
* Convert `Pokemon#isOfType` to use an object param
* fix: out of date save data will now be discarded (#7231)
- Replace hardcoded text with `i18next.t` calls
* refactor(ui): Delete Japanese-only font (#7291)
* Delete Japanese-only font
* Remove leftover Biome suppression comment
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix(item): MBH will no longer steal items when the holder is fainted
#7299
* fix(ai): Sunny Day will generate properly on NPC movesets (#7288)
* fix(move): stop crash when pivot move user faints from contact damage
#7233
* fix(move): prevent softlock when pivot move user faints from contact damage
* Update test/tests/abilities/ability-contact-damage.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update src/phases/faint-phase.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update src/phases/faint-phase.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Apply Biome
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* fix(ability): prevent softlock when Gulp Missile faints player pokemon
#7214
* fix: prevent softlock when QuietFormChangePhase runs on fainted pokemon
* Update src/phases/quiet-form-change-phase.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Update test/tests/abilities/gulp-missile.test.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
---------
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* feat(ui): show move revealed by forwarn in flyout (#7207)
* show move revealed by forewarn
* fix: use moves `ppUsed` instead of 0
* remember the opponent during the loop
* Remove unnecessary `!`, update some comments
---------
Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* feat(ui): implement option to disable skip move confirmation prompts
#7077
* add hideMoveSkipConfirm booleon
* Add Hide_Move_Skip_Confirm to the settings, and adjust hideMoveSkipConfirm; require reload to make turning it on slightly annoying
* End execution of rejectMoveAndEnd without prompt if hideMoveSkipConfirm is on
* add new language key
* Show the did not learn text if skipped
* Default new option to off
* Show the did not learn text if skipped
* enable the option when the setting is set to Off
* Add custo lables
* fix typo
* Update locales submodule
* remove accidential clipboard paste
* Add new test to ensure when hideMoveSkipConfirm is enabled (Skip), you can cancel out of learnng move and go direct to did not learn move
* Update test/test-utils/helpers/settings-helper.ts
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
* ?
* Revert "?"
This reverts commit 7a72798.
* Remove reload requirement for setting
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* refactor(move): clean up Move-calling Moves; add Nature Power locales
#6858
* Squashed changes
* fix test
* Remove duplicated test file
* Ran biome
* Update move.ts
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* Update move.ts
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
* run biome
* Apply review changes
* Fix a few assorted cases of useless `Pick` inside types
* fix index error
* Fix merge issue
* minor fixes to type errors
* Resolve bug from #7188
* fix the tests
* Use modern test matchers for Sap Sipper tests
* Minor TSDocs changes, add missing `readonly`, rename a param
* Enable Nature Power terrain tests, remove `await` from `setTurnOrder`
* Replace moveset override with manual moveset changing
* Remove inaccurate type assertion
* Minor test formatting
---------
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix(ui): add viewport flags to prevent double tap zooming (#7223)
* fix(ui): Fix iOS import data with visible upload button (#7222)
* Fix iOS import data with visible upload button
* Fix Lint Errors
* more lint fixes
* Correctly detect iPad
* Update src/system/game-data.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Rename `isIOS` to `isIoS` and update calls and imports, remove redundant comment
* Remove saveFile append to body. this is unneeded. perhaps from an older version of iOS
* Revert "Remove saveFile append to body. this is unneeded. perhaps from an older version of iOS"
This reverts commit 8ced377.
* Apply patchfile from @fabske0, Remove saveFile append to body. this is unneeded. perhaps from an older version of iOS
* Update touch-controls.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
Co-authored-by: Scooom <me@scooom.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* chore: update `ajv` to `8.20.0` and sub-dep `fast-uri` to `3.1.2`
* dev: replace default export in `overrides.ts` with named export (#7118)
* chore: fix weird UTF-8 nonsense
* refactor(audio): Stream BGM with HTML5 Audio (#7263)
* Remove manual bgm loads
* Split bgm into howler class
* Remove weird pseudo bgm
* Make heal and item_fanfare proper sfx
* Remove pseudobgm section from playSound
* Document BackgroundMusic
* Fix bgm looping
* Update play params
* Fix test files
* Apply review suggestions
* Update setVolume call
* Review fixes
* Fix heal, move sfx to se folder
* Play title music on unlock
* Stub out `BattleScene#playBgm` and `#replaceBgmUntilEnd` in tests
* PR Review
- Add TSDocs to `BattleScene` audio methods
- Fix volume bug with temp bgm in `BattleScene#replaceBgmUntilEnd`
due to missing volume assignment
- Move `this.bgm` volume assignment in `BattleScene#updateSoundVolume`
to before the early return checking for `!this.sound`
* Fix fixedInt issues
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* chore: update submodules
* fix(move): Pollen Puff no longer considered a status move (#7153)
* Finish intended bug fix
* Use biome to lint code changes
* Address reviews
* fix(move): resolve Parting Shot failing logic and switch out bugs (#7152)
* Fix #5379: Parting Shot failing logic and switch out bugs
Fixes bug where Parting Shot unconditionally fails if the user has
no eligible party members. Reconstructs PartingShotAttr to extend
StatStageChangeAttr, simulating stat immunity (Clear Body, etc)
internally before queueing the SwitchPhase. Also fixes existing
automated tests logic.
Signed-off-by: Eduardo Siqueira <eduardosiqueira@tecnico.ulisboa.pt>
* fix up test file
* Update TSDocs
---------
Signed-off-by: Eduardo Siqueira <eduardosiqueira@tecnico.ulisboa.pt>
Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* refactor: Rewrite script files from JS to TS (#7302)
* test: add test profiling script + `commander.js`
* fix type errors
* fix this one ranodm formatting issue in fabi's code
* Update profiling.js
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* add biome rule to ban importing from `commander` inside scripts dir
* Stopped using speedsrope which doesn't work
* fix import issue
* fix command crashing a bit
* fix
* Update process.js licensing info
* Update copyright yr
* fix type errors
* Merge remote-tracking branch 'upstream/beta' into flamegraph
* fix script issues
* fix dev dep issue
* add name args
* dev: convert JS script files into TS using `vite-node`
* convert even more stuff
* convert more scripts
* wip
* fix things
* Convert remaining JS script files to TS
* Delete enums + add subpath imports
* Fix up some stuff
* Add dependency cruiser rule
* Fix the tsconfigs
* PR Review
- Fix `.dependency-cruiser.cjs`
- Fix import in `global.d.ts`
- Add `vite-node`/`.ts` to missed `package.json` commands
- Remove `with { type: "json" }` from import in
`scripts/daily-seed/prompts/general.ts`
(this is not valid with our `tsconfig` settings)
- Change `number[]` to `MoveId[]` in
`scripts/daily-seed/prompts/pokemon.ts`
- Add biome suppression comment to `decrypt-save.ts`
(though it should probably be converted to `for (let k = 0; ...)`)
- Revert removal of `pool: "threads"` from the Vitest invocation
in `scripts/profiling/profiling.ts`
- Add missed types in `scripts/utils/process.ts`
- Re-order subpath imports so more specific paths
are before less specific paths
- Remove obsolete `*.js`/`.cjs`/`.mjs` excludes
from `tsconfig.json` files
- Remove `*.cts` from `includes` in `tsconfig.json` files;
we don't have any of those nor will we ever have any
- Remove redundant entries from `includes` in `tsconfig.json` files
* Add Biome rule to prevent `test/` imports in `src/`
This is in addition to the depcruise rule,
in order to show an error message in the editor
* Fix subpath imports in `scripts/tsconfig.json`
They were using old values
* reuse main daily seed types for script
* Update main.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Update main.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Bump create-test version
* fix some issues
* Fix overzealous depcruise and other issues
* PR review
- Remove `.mts` from non-`.github/` tsconfig includes
- Add `/` to scripts directory depcruise rules (as was done with test)
- Replace todo comment with TSDoc on `TestDialogueUiHandler`
- Add/update comments in tsconfig files
- Re-add `jsconfig.json` to cover the files
that cannot be converted to TS (e.g. external tool config files)
- Re-add JS typecheck step in linting workflow
- Update lint workflow filters
- Add missed type from JS->TS conversion
to `changelog-reader/format.mts`
- Add newline at end of `.github/scripts/tsconfig.json` file
* Add "s"
* Address stuff
* Remove newline
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* fix: terrain correctly modifies move power instead of damage (#7004)
* fix: terrain correctly modifies move power instead of damage
- Split `Arena#getAttackTypeMultiplier` into 2 methods and
remove redundant methods in `Terrain` class
- Add test for Hydro Steam
- Enable tests in `terrain.test.ts`
* Rename Hydro Steam attr and update TSDocs
`IgnoreWeatherTypeDebuffAttr` -> `OverrideWeatherMultiplierAttr`
Rename variable `weatherModifier` to `weatherMultiplier`
* Replace `NumberHolder`s with `ValueHolder`s
* fix(ability): fix boss bar + multihit interaction in Sturdy (#7266)
* fix: Fix import in changelog script (#7311)
fix file extension for import from `mjs` to `mts` in changelog script
* feat(ui): Allow chosing to not prefer Baton Pass (#7278)
* Add preferBatonPass
* Add a flag to the `push(PartyOption.PASS_BATON)` checking preferBatonPass. If true, display it before SEND_OUT
* Default true
* fix var name
* fix another var name
* sigh. another var. don't change var names halfway kids
---------
Co-authored-by: Scooom <me@scooom.com>
* github: fix duplicate changelog entries (#7312)
* fix file extension for import from `mjs` to `mts` in changelog script
* fix package.json script
* add option to specify branch for local running
* fix duplicate PRs for prs merged directly into hotfix branch
* update comment
* dev: add lint rule to prevent accidental imports from `node:test`
* refactor: remove unnecessary switch case (#7317)
remove switch case
* refactor(ui): Make level up UI iterative (#7287)
* Iteratively update level display
* Remove instant param on animation
* Remove lastLevelExp param
* Doc
* Remove extraneous updateInfo
* Remove leftover additions to addExp
* Set level display in LevelUpPhase in case of rare candy etc
* Review changes
* Replace `if` with `switch` in `level-up-phase.ts`
* Remove unnecessary console log in `PlayerPokemon#addExp`
* Properly respect currently displayed level when calculating level duration multiplier
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* fix(audio): Switch bgm to webaudio with proper eviction (#7303)
* Switch bgm to webaudio with proper eviction
* Wrap bgm methods to handle async loading
* Move audio to audio manager
* Add docs
* Allow fixed fade durations
* Apply suggestions from code review
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Apply biome
* Fix TSDoc
* Restore `FixedInt`s from before the previous PR
* Actually use BGM setting for BGM
* Properly call update sound method in settings
* Move `audio-manager.ts` to `src/audio/`, add `#audio` import subpath
* Add subpath import to the `scripts/tsconfig.json` file as well
* Manage pending operations within bgm and synchronously update active bgm in audio manager
* Fix weird comment
* Minor comment change
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* i18n: Vietnamese & Polish addition + Minor adjustments (#7305)
* Vietnamese addition
* Vietnamese addition
* Polish addition
* Extra adjustments
* Some numbers as text variables
* Japanese adjustment
* Corrections biome
* Correction biome
* Correction Biome
* Polish adjustments
* Changed Thai font
* New Thai font
* Update locales submodule
* Update locales submodule
* Update assets submodule
* Update locales submodule
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* chore: minor formatting
* balance: More Move Generation Filter Adjustments (#7279)
* Adjust move generation filters
* Update forbidden-moves.ts
* List situational moves / Moves to revisit towards the bottom
* Update signature-moves.ts
* Add Smack Down to Level Deny Poison Fang to STAB blacklist,
* Update forbidden-moves.ts
* Add Incinerate to STAB Blacklist, Remove some Recharge moves from Level Denylist
* Last Adjustments
* Update forbidden-moves.ts
* Push review changes
* fix(ui): Adjustments of Held items in Summary (#7320)
* Adjustments of Held items in Summary
* Update assets submodule
* Update locales
---------
Signed-off-by: Eduardo Siqueira <eduardosiqueira@tecnico.ulisboa.pt>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Izaan Kamal <izaankml@gmail.com>
Co-authored-by: Constança Fonseca <constancafonseca@gmail.com>
Co-authored-by: Maria Medvedeva <maria.medvedeva@tecnico.ulisboa.pt>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Afonso Bastos <afonso.bastos@tecnico.ulisboa.pt>
Co-authored-by: Jerald Johnson <97370685+Scoooom@users.noreply.github.com>
Co-authored-by: Lord-Claro <claro.duarte@gmail.com>
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
Co-authored-by: Pedro Veríssimo <verissimopedromiguel@gmail.com>
Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
Co-authored-by: Scooom <me@scooom.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: feelgooddd <fortuneryanc@gmail.com>
Co-authored-by: macwellbz <maxwellborgeszulauf@gmail.com>
Co-authored-by: Eduardo Fabrizio Siqueira <eduardosiqueira@tecnico.ulisboa.pt>
Co-authored-by: Blitzy <118096277+Blitz425@users.noreply.github.com>398 files changed
Lines changed: 9988 additions & 10048 deletions
File tree
- .github
- scripts
- changelog-reader
- workflows
- LICENSES
- patches
- plugins
- phaser
- typedoc
- vite
- scripts
- create-test
- daily-seed
- prompts
- enums
- helpers
- parse-egg-moves
- profiling
- scrape-trainer-names
- utils
- src
- @types
- configs
- ai
- api
- audio
- configs/inputs
- data
- abilities
- balance
- moves
- daily-seed
- moves
- mystery-encounters
- encounters
- utils
- pokemon
- trainers
- enums
- field
- modifier
- phases
- pipelines
- plugins
- sprites
- system
- ribbons
- settings
- version-migration
- versions
- ui
- battle-info
- containers
- handlers
- settings
- utils
- test
- @types
- framework
- helpers
- matchers
- mocks
- mock-console
- mocks-container
- reporters
- setup
- tests
- abilities
- ai
- api
- arena
- battle
- challenges
- game-modes
- items
- moves
- mystery-encounter/encounters
- phases
- pokemon
- system
- test-framework
- types
- ui
- utils
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
4 | 34 | | |
5 | 35 | | |
6 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 31 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 8 | + | |
53 | 9 | | |
54 | 10 | | |
55 | 11 | | |
| |||
70 | 26 | | |
71 | 27 | | |
72 | 28 | | |
73 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
Lines changed: 21 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
13 | 9 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
25 | | - | |
26 | | - | |
| 19 | + | |
| 20 | + | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
29 | 23 | | |
30 | | - | |
31 | | - | |
| 24 | + | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
| |||
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
| 59 | + | |
| 60 | + | |
68 | 61 | | |
69 | | - | |
| 62 | + | |
70 | 63 | | |
71 | 64 | | |
72 | 65 | | |
| |||
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
94 | 87 | | |
95 | | - | |
| 88 | + | |
96 | 89 | | |
97 | 90 | | |
98 | 91 | | |
| |||
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
120 | | - | |
121 | | - | |
| 113 | + | |
| 114 | + | |
122 | 115 | | |
123 | 116 | | |
124 | 117 | | |
125 | | - | |
| 118 | + | |
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
| |||
0 commit comments