Commit Graph

6035 Commits

Author SHA1 Message Date
Sirz Benjie
e8b1d0fd71
[Bug] Fix evil team admin randomization (#6830) 2025-12-18 19:41:32 -08:00
Bertie690
8f4243853d
[Refactor] Make phaseManager#unshiftPhase and #pushPhase variadic
https://github.com/pagefaultgames/pokerogue/pull/6776
2025-12-18 19:11:11 -08:00
Bertie690
c7bdfe7ed8
[Bug] Reset hit-related turn data inside MoveEndPhase (#6637)
* Reset hit-related turn data inside `MoveEndPhase` 
and remove `extraTurns` field

* Fixed FS edge case

* Fixed test hit count checks going past move end phase

* fixed PB tests

* Put `default` switch case last again
2025-12-18 19:07:48 -08:00
Lugiad
a6554acfe3
[i18n] Indonesian & Hindi addition (#6850) 2025-12-18 18:57:37 -08:00
NightKev
a47633a779 [Misc] Update submodules 2025-12-18 18:54:23 -08:00
Bertie690
49d89d469a
[Test] Cache arena tag matcher types; fix BattlerTag matcher distributiveness (#6821) 2025-12-18 18:52:23 -08:00
NightKev
4545f9aae3
[Misc] Remove | null from user param of PokemonAttackCondition
https://github.com/pagefaultgames/pokerogue/pull/6859
2025-12-18 13:54:38 -08:00
NightKev
e6de0fb95d
[UI/UX] Split login and register into separate menus (#6851)
* [UI/UX] Split login and register into separate menus

* Resize the container for the "Login" and "Register" buttons

* Make container width dynamic

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* Make logo position dynamic

* Apply suggestions

- Consolidate code in `LoginPhase`

- Use `truncateString` utility function in `form-modal-ui-handler.ts`

- Move login form to match location of register form

- Swap `x` values of username and download buttons

* Apply suggestions

---------

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-18 13:49:21 -08:00
Bertie690
b381d196cf
[Test] Improve error message + typing on toHaveUsedMove (#6681)
* [Test] Improve error message on `toHaveUsedMove`

* Fixed typing on test stuff + added caching on `toHaveArenaTagOptions`

* Fixed matcher breaking with single move arguments

* Fixed typing errors in `vitest.d.ts`

* Fixed typing importing from the wrong file

* Fixed wish test type errors

* Reverted type changes to battler tag matchers by request
2025-12-17 18:57:34 -08:00
Bertie690
f48ec4c51e
[Dev] Ensure i18n module is initialized immediately when imported (#6317)
* [Dev] Ensure `i18n` module is initialized immediately when imported

* Fixed missing await?

* Update src/main.ts

* Update init.ts

* Update src/main.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Update src/plugins/i18n.ts

* Update trainer-config.ts

* ran biome & made `@module` comment

* Update src/plugins/i18n.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Update src/plugins/i18n.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Fixed import typo

* flubber

* Ran Biome

* foo

* Remove default re-export of `i18next`

* Update i18n.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* fixde import issues

* Move `i18n` initialization to `main.ts` from `init.ts`

* Remove some redundant & incorrect comments from `trainer-config.ts`

* Fix tests

* Apply Biome

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-12-17 18:39:30 -08:00
Bertie690
b2b8150856
[Dev] Add biome rules noProto and useFind (#6838) 2025-12-17 19:31:00 +00:00
Fabi
7280b997e8
[Docs] Dynamic copyright year in Typedoc footer (#6854) 2025-12-17 11:19:36 -08:00
NightKev
bde0f65eed
[Dev] Enable typechecking for Vite config files (#6853) 2025-12-16 21:36:39 -08:00
Bertie690
943ddf8afc
[Dev] Enable type-checking for typedoc.config.js (#6818) 2025-12-16 11:02:33 -08:00
Fabi
86c1c5f68d
[Bug] Stop AI from Terastallizing after reviving (#6848) 2025-12-16 00:18:36 -05:00
NightKev
0db8454af1 [i18n] Update locales submodule 2025-12-15 14:40:17 -08:00
damocleas
37fdb18391 Update Locales 2025-12-13 13:37:30 -05:00
damocleas
95c85f68af [Balance] Update Invalid Sketch Moves
- Removed Chatter, Revival Blessing, and Tera Starstorm from being invalid moves to be gained with the move Sketch

This seems to have been an oversight when implementing the list to work with the game, as there is no reason to restrict these with the game systems here.
2025-12-13 13:35:28 -05:00
NightKev
7456c11be1
[Refactor] Consolidate typings/ into @types/, and API types (#6823) 2025-12-10 00:31:41 -08:00
NightKev
fd92bcd2a4
[Deps] Update packages (#6841) 2025-12-09 20:33:21 -08:00
NightKev
c4b0199b3d
[Deps] Update jsdom from 27.2.0 to 27.3.0 (#6840) 2025-12-09 20:22:42 -08:00
NightKev
3f5c37c881
[Balance] The cost of buying same-species eggs can be reduced (#6837)
* [Balance] The cost of buying same-species eggs can be reduced

After hatching a certain number of eggs for a starter,
the cost of buying same-species eggs
for that starter will be reduced (up to 50%)

* Add test to validate array lengths for egg costs
2025-12-09 20:00:20 -08:00
NightKev
46df6adab3
[Ability] Poison Puppeteer now applies for abilities (#6836)
* [Ability] Poison Puppeteer now applies for abilities

When a target is poisoned due to an ability of a Pokemon that also
has Poison Puppeteer, Poison Puppeteer will now apply its effect

* Add tests for Poison Puppeteer

* Remove parameter properties from `ObtainStatusEffectPhase`
2025-12-09 19:48:28 -08:00
Fabi
15f668e1b5
[UI/UX] Truncate overlapping name in starter select (#6828)
* Add name truncation

* Update src/ui/handlers/starter-select-ui-handler.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* remove unnecessary length check

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-12-08 17:45:44 -08:00
Austin Fontaine
3d23a2b28a
[Balance] Allow male Ralts as a starter in Fairy challenge (#6827)
Allow male Ralts as a starter in Fairy challenge
2025-12-08 18:34:08 +00:00
Sirz Benjie
516bc5dce1
[GitHub] Update and optimize workflows (#6825) 2025-12-07 13:59:20 -06:00
Bertie690
3302d23137
Merge pull request #6826 from Bertie690/play-tween-typing
[Dev] Update typing for `playTween` utility function
2025-12-05 17:22:13 +00:00
Lugiad
d8e8dbf8c2
Merge pull request #6663 from Adri1/norwegian-bokmal
[i18n] Norwegian Bokmål initial commit
2025-12-04 19:48:49 +00:00
Sirz Benjie
ebdbe2e118
[Misc] Bump Assets commit (#6824) 2025-12-04 12:26:21 -06:00
Bertie690
6af869cff1
Merge pull request #6819 from Bertie690/set-position-relative
[Misc] Dedupe + move phaser method stubs into separate file
2025-12-04 09:20:21 +00:00
Bertie690
e13ea6e17d
[Docs] Minor typofixes/addendums to .md files (#6817)
* [Docs] Minor typofixes to `.md` files

* Fixed footnotes

* Update linting.md to remove comment

* Added footnote for validation workflow
2025-12-03 21:38:36 -06:00
Bertie690
f498a83951
[Github] Improve test workflow to merge blob reports from all shards (#6687)
* [Github] Improved test workflow to merge blobs into 1 big test

* fixed workflow not checking out + test failure behavior

* fixed the thingy to still merge reports when a shard fails

* Fixed workflow being skipped

* Fixed inverted conditional

* Removed failing test demo

* updated workflow to hopefully not clone entire repo

* Add .nvmrc to sparse-checkout configuration

* fail workflow output test

* Include custom reporters, vite/vitest config in sparse checkout selection

* Add src/plugins/vite to sparse checkout

* Revert to checking out full repo and remove change to instruct test

Unfortunately using sparse checkout won't work

* Remove redundant comment

* Try not using recursive submodules when cloning locales

* re-addede recurse submoudules

* actually disabled it

* Remove extra newline

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-12-03 21:27:11 -06:00
NightKev
af2bad96f1
[Dev] Add lefthook command to update packages on checkout/merge (#6820)
* [Dev] Add lefthook command to update packages on checkout/merge

* Modify post-checkout to only run on branch checkout

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-12-03 18:02:31 -08:00
Bertie690
8ae79450d4
[Test] Fix even more game.scene.getXXX issues (#6811)
* [Test] Fixed even more `game.scene.getXXX` issues

* Update fell-stinger.test.ts

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* Applied review comments

* fixed doodle test inconsistencies

* fix

* applied reviews

not going too ham will make another PR later

---------

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-04 01:49:47 +00:00
Juan Roman
507ac17f95
[Dev] Update devcontainer image, settings and docs (#6822)
* Updated devcontainer image to a version that supports the node >= 24.9.0 prerequisite.
Also updated the prerequisite mentioned in CONTRIBUTING.md to match that newer prerequisite.

* Update CONTRIBUTING.md with devcontainer instructions

Added important note about using pnpm with devcontainers and updated Podman instructions.

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-12-03 17:06:22 -08:00
Fabi
2253289c76
[i18n] Localize data type names (#6807)
use localized data names
2025-12-03 14:17:27 -06:00
Bertie690
17a1a3af97
[Dev] Add git blame ignore file (#6810)
* [Dev] Add git blame ignore file

* formatted file

* added REUSE info to blame file

idt we need to copyright this stuff

* expanded commit SHAs to use full versions

apparently the short ones dont work
2025-12-02 17:40:01 -06:00
Fabi
e1b0e0f0ae
[Balance] Allow candy gain for uncaught pokemon (#6791)
* allow candy gain for uncaught mons

* carry over friendship

* apply suggestions

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Add friendship/candy related tests

* Refactor friendship cap tests

* Fix typo

* Apply suggestions from code review

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* Fix test

* Update test/field/pokemon.test.ts

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* Replace `.startBattle` with `.runToSummon`

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-12-02 12:54:12 +00:00
Fabi
b0a6b027fa
[Misc] Migrate to @inquirer/prompts for CLI script input (#6789)
* update dependencies

* Update create-test

* use `validate` for filename check

* fix template path

* update parse-egg-moves

* update scrape-trainer-names

* replace use of `inquirer`

* Fix package ordering
2025-12-02 09:23:50 +00:00
Austin Fontaine
6d1a69bfea
[Bug] Fix Old Gateau disappearing on reload (#6813) 2025-12-02 07:52:54 +01:00
Lugiad
004cb34a46
[UI/UX] Added fonts for Devanagari and Thai writing systems (#6798)
Added fonts for Devanagari and Thai writing systems

Co-authored-by: damocleas <damocleas25@gmail.com>
2025-12-01 16:34:35 +00:00
Bertie690
cce1653b70
[Refactor] Remove unused PreSwitchOutClearWeatherAbAttr class
https://github.com/pagefaultgames/pokerogue/pull/6809
2025-11-30 21:25:44 +00:00
NightKev
03cc0b1af2 [Misc] Remove now-obsolete noUselessStringConcat suppression comments 2025-11-29 21:01:26 -08:00
NightKev
c12d9140fc [Misc] Remove now-obsolete noUnusedImports suppression comments 2025-11-29 20:52:45 -08:00
NightKev
e2be51f3f7 [Bug] Revert change to imports in main.ts 2025-11-29 15:42:51 -08:00
NightKev
477b8de7d1
[Dev] Improve logging in EnemyPokemon#getNextMove (#6803) 2025-11-29 17:58:34 -05:00
Bertie690
a2b4727d63
[Refactor] Remove main.ts default export, clean up manifest code
https://github.com/pagefaultgames/pokerogue/pull/6768
2025-11-29 14:42:23 -08:00
NightKev
b6bd9566e2
[Dev] Update Biome from 2.3.2 to 2.3.8 (#6799)
* Update Biome to `2.3.8` and run Biome over the repo

* Update comment in `biome.jsonc`
2025-11-29 14:39:58 -08:00
NightKev
9bfe5f02d8
[Deps] Update packages and add 1d min age for package updates (#6804)
* [Deps] Update packages and add 1d min age for package updates

* Fix tests
2025-11-29 18:49:20 +01:00
NightKev
450113c296 [Dev] Update pnpm version in package.json 2025-11-28 22:48:23 -08:00