Commit Graph

5829 Commits

Author SHA1 Message Date
Dean
7b62233e83
Update phase-manager.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-16 10:42:41 -07:00
Dean
e7dec85577 Update speed order utils 2025-09-13 16:25:32 -07:00
Dean
a74c9d69cb Update docs for psppq 2025-09-13 16:16:58 -07:00
Dean
ae090e9bbe Use .getEnemyField(true) 2025-09-13 16:13:43 -07:00
Dean
4cbe723201 Update docs and use getPlayerField(true) in turn start phase 2025-09-13 16:13:17 -07:00
Dean
5f73359b3a Update move-phase.ts 2025-09-13 16:09:24 -07:00
Dean
2eddb39ea0 Add asterisks to phase tree doc 2025-09-13 16:06:32 -07:00
Dean
90d628d610 Rename deferral methods 2025-09-13 15:44:31 -07:00
Dean
0d3c725846 Remove isNullOrUndefined usages 2025-09-13 15:02:15 -07:00
Dean
98c1c6be5b Run biome 2025-09-13 15:00:20 -07:00
Dean
f336968019 Merge branch 'turn-manager-no-queue-phase' of github.com:emdeann/pokerogue into turn-manager-no-queue-phase 2025-09-13 14:49:43 -07:00
Dean
ab45aa0039 Merge branch 'beta' into turn-manager-no-queue-phase 2025-09-13 14:49:07 -07:00
Dean
11afad853a
Apply suggestions from code review
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-13 14:31:58 -07:00
Sirz Benjie
3ed6a9a960
[Balance] Trainer boss Pokémon no longer gain a stat boost when a boss segment is broken #6552
Trainer boss Pokémon no longer gain a stat boost when a boss segment is broken
2025-09-13 16:21:24 -04:00
Sirz Benjie
e233f24526
[Deps] Update biome to 2.2.4 (#6550)
* Update biome and adjust rules

* Add noMisusedPromises

* Downgrade `noMisusedPromises` to info, enable noImportCycles
2025-09-13 20:13:21 +00:00
Bertie690
c217f47942
[Refactor] Added playTween utility function (#6545)
* Added `playTween` utility function

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>

* Update comment wording for benjie

---------

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
2025-09-13 18:36:38 +00:00
Bertie690
465f0c2ced
[Refactor] getPokemonById returns undefined instead of null
https://github.com/pagefaultgames/pokerogue/pull/6544

* [Refactor] Make `BattleScene.getPokemonById` return `undefined` instead of `null`

* fixed substitute unit test :(

* Update src/phases/obtain-status-effect-phase.ts

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>

* Update src/phases/pokemon-phase.ts

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>

* Update battle-scene.ts comment for dean

* Add todo comment

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-12 22:19:48 -07:00
Sirz Benjie
c7a2c666af
[Refactor] Remove isNullOrUndefined in favor of loose check against null (#6549)
* Remove `isNullOrUndefined` in favor of loose check against null

* Fix missing method call

* Remove isNullOrUndefined import
2025-09-12 14:53:27 -05:00
NightKev
a6fb32b32b
[Deps] Update TypeScript from 5.8.3 to 5.9.2 (#6548) 2025-09-11 21:28:26 -07:00
dependabot[bot]
c458cbb2be
[Deps] Bump vite from 7.0.6 to 7.0.7 (#6546)
Bump vite from 7.0.6 to 7.0.7

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.0.6 to 7.0.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.0.7/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.0.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.0.7
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-11 19:54:31 -07:00
NightKev
6c39ec721e [Dev] Add build:dev command to package.json 2025-09-11 19:47:06 -07:00
Sirz Benjie
86027b82be
[Docs] Adjust favicon icon for docs site 2025-09-11 13:48:07 -05:00
Sirz Benjie
0cc59974cc
[Docs] [Bug] Downgrade typedoc temporarily 2025-09-11 08:53:26 -05:00
Sirz Benjie
90d58c4457
[Docs] [Bug] Fix types for PhaseInterceptor 2025-09-11 08:33:45 -05:00
NightKev
a5f80ab490 [Misc] Delete useless test file 2025-09-11 00:32:11 -07:00
Wlowscha
559ca8610a
[Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
Fabi
e4a6a3de82
[Bug] Allow catch in limted catch during teleporter ME (#6531)
Allow catch in teleporter ME
2025-09-11 06:07:49 +00:00
Sirz Benjie
14c7d615b8
[i18n] sync locales 2025-09-10 18:57:59 -05:00
Fabi
328cc0221e
[i18n] Camel case remaining keys (#6508)
* fix egg gacha keys

* fix battle keys

* fix game stats

* fix splash texts
2025-09-10 18:45:01 -05:00
Domagoj
65c72c65b9
[Dev] Add Podman support (#6150)
* Add Dockerfile

* Refactor for improved podman support

* Podman support + docs

* Update documentation for podman usage

* Update docs/podman.md with working podman run command

* Add package manager constraint to package.json and Dockerfile
Update podman.md docs

* Remove package manager constraints from github workflows per DayKev
Update podman.md docs with extra steps for locales and testing command
Remove missleading comment from Dockerfile

* Remove Dockerfile comment

* Re-add `pnpm` version to Github Pages workflow

* Mention podman in CONTRIBUTING.md
Fix typo in docs/podman.md test command

* Fix path to docs/podman.md

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-10 14:23:13 -05:00
Bertie690
e570c2eba5
[Dev] Stop creating dummy RELEASE file in release workflow (#6442)
* [Dev] Stop creating dummy RELEASE file in release workflow

* Delete RELEASE file

* Update .github/workflows/create-release.yml

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

* Update `create-release.yml` step desc

* Update `create-release.yml` to use `pnpm version`
2025-09-10 14:17:01 -05:00
Bertie690
76d163e666
[Test] Moved test setup code to its own folder (#6297)
* Made default boilerplate show off some test utils

* Moved all the setup files into their own folder

* fixed relative path bug

* Update i18n.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-10 14:13:48 -05:00
Wlowscha
9a92f98f63
[Refactor] Move type definitions away from game-data.ts (#6487)
* Move type definitions away from game-data.ts

* Update src/@types/data-types.ts

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

* Renamed file to save-data.ts

* Fixed broken import

* Moved some ui files

* Run biome, fix broken import

* Fixed one more broken input
2025-09-10 14:09:33 -05:00
Sirz Benjie
d9d6163b07
[Bug] Make touch events prevent pointer events (#6528) 2025-09-10 13:59:21 -05:00
Fabi
ff6de568af
[UI/UX] Add language selection to login screen (#6302)
* add language selection

* Move language option up

* Move language list to seperate file

* fix circular dependency

* Move language selection to own icon

* run biome

* add icon

* add icon to legacy ui
2025-09-10 13:53:57 -05:00
Sirz Benjie
c09d43273a
[Docs] Remove stray import 2025-09-10 13:47:53 -05:00
Sirz Benjie
db52ff0f73
[Docs] Add interface to known tags in tsdoc 2025-09-10 13:46:52 -05:00
Bertie690
496d9a10d7
[Test] Added matcher to check message contents; added tests for Splash, Celebrate, Laser Focus (#6299)
* Fixed laser focus test to not whiff instruct

* fix test checking last hit twice in row lul
2025-09-10 13:40:21 -05:00
Sirz Benjie
e75c8e5691
[Bug] [Ability] Fix stat boost message timing for quark drive / protosynthesis (#6529)
Make proto and quark drive stat boost happen after proc instead of at end
2025-09-10 13:37:00 -05:00
Sirz Benjie
c0b3b0c55e
[Docs] Fixup typedoc warnings (#6540)
* Replace `@return` with `@returns`

* Remove extends tags

* Remove `@overrides` tag

* Remove `@abstract` tags

* Remove `@overload` tags

* Remove `@description` tags

* Remove `@static` tags

* Remove `@private` tags

* Remove `@warning`

* Remove `@PokemonSpecies`

* Remove {} appearing after `@returns`

* Remove {} appearing after `@param`

* Bump typedoc version

* Remove ...args in `@param` and replace with args

* Cleanup docs in challenge.ts

* Adjust hyphens

* Remove parenthesis in `@see` tags

* Remove old `@see` references
2025-09-10 13:35:55 -05:00
Sirz Benjie
d3462a1412
fix: get log.png 2025-09-10 11:42:38 -05:00
Sirz Benjie
965f3d0eef
[GitHub] Optimize workflow files (#6539)
* Use sparse checkout for paths-filter to only grab the test-filters file

* Tweak docs workflow to not download public directory

* stop downloading openssh and git
2025-09-10 11:39:36 -05:00
Wlowscha
6f3f6026a8
[UI/UX][Refactor] Moved and renamed some ui files (#6538)
* Moved and renamed some ui files

* Renamed two handlers to helpers
2025-09-10 10:42:38 -05:00
Sirz Benjie
42a87cf228
[UI/UX] In settings, clamp volume cursor at boundary (#6504)
* feat(settings): clamp volume cursor at boundary

* Extract left/right logic to own method

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-09-10 17:37:23 +02:00
Xavion3
5dcbedf364
Add blacklist of moves that can't be forced STAB. (#6491)
* Add blacklist of moves that can't be forced STAB.

* Add exploding moves to blacklist.

* Change blacklist from array to list.

* Sort blacklist and add steel beam

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-10 10:11:57 -05:00
Madmadness65
df223bfbc8
[Misc] [Bug] Remove summary_overlay_shiny from loading scene (#6532)
Remove `summary_overlay_shiny` from loading scene

This file was renamed and moved in PR #6433 so this loadImage is no longer needed here.
2025-09-09 18:26:23 -05:00
Fabi
b4cbbf1b8f
[Bug] remove node:console import (#6530) 2025-09-09 15:35:09 -07:00
Xavion3
acb1522138
[Balance] Allow enemy trainer pokemon to use relearn moves (#6515) 2025-09-08 20:06:12 +00:00
Bertie690
e202cb63ac
[Dev] Remove useless noDoneCallback linting rule (#6520)
* [Dev] Remove useless `noDoneCallback` linting rule

* Removed disable comments
2025-09-08 10:53:59 -05:00
Bertie690
c0da686ba0
[Dev] Migrated to Biome 2.2.3, added more rules (#6259)
* Added more biome rules

* Fixes

* Added a few more rules

* Added global phaser to biome

* Fix tpyo

* Updated biome to 2.1.4; improved docs on linting/localization; added vcs support

Also added `.build` to gitignore cuz reasons

* Fixed tpyo

* dd

* Applied linter fixes

* Partially fixed some private property issues

* Upgraded to Biome 2.2.0; added `operatorLinebreak` and a few new rules

* Moved operator linebreaks before lines

* Applied kev's suggestions

* Update biome.jsonc

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

* added like all the rules and then some

* modify biome.jsonc

* apply biome formatting

* Reverted changes to balance folder

* fixed stuff

* Fixed biome stripping trailing globstars from everything

* made `noInvertedElse` an error rule

* Add & apply fixes for `useExplicitLengthCheck`, `useAtIndex` and `noNonNullAssertedOptionalChain`

* Bumped biome to 2.2.3

* Fixed a few syntax errors

* Removed trailing globstars since biome actually fixed their shit

* Final clean up

* foobarbaz

* Fixed remaining issues

* Fixed a few errors in SSUI

* fixed rounding issue

* Fixed test to not round funky

* Fixed biome false positive for vitest hooks

* Apply biome:all

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-08 10:35:18 -05:00