Commit Graph

5431 Commits

Author SHA1 Message Date
Bertie690
1fd4859d74 Fixed syntax error in test file 2025-07-30 16:46:09 -04:00
Bertie690
feb11b8aec Removed roost type-change tests to move to another PR 2025-07-30 12:48:56 -04:00
NightKev
9f26790a71 [Test] Add missing single battle override to CheckInterludePhase test 2025-07-30 12:48:55 -04:00
Bertie690
1df4be9b9a Added TODO tests for roost 2025-07-30 12:48:55 -04:00
Bertie690
0a5f9c2df9 Fixed roost tsest 2025-07-30 12:48:54 -04:00
NightKev
26e5daea9f [Balance] End of turn triggers won't occur when you end a biome (#6169)
* [Balance] End of turn triggers won't occur when you end a biome

* Add tests

* Move phase manipulation logic into `PhaseManager`

* Rename "biome end" to "interlude"

* Rename `TurnEndPhase#endOfBiome` to `upcomingInterlude`

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-07-30 12:48:54 -04:00
NightKev
091af60e7c [Docs] Adjust @module doc comment in battler-tags.ts
Note that currently Typedoc is not parsing `@module` docs,
but this comment adjustment would be required if and when
it gets fixed
2025-07-30 12:48:53 -04:00
Sirz Benjie
90d09ea903 [Refactor] Minor refactor of battler tags (#6129)
* Minor refactor battler tags

* Improve documentation

* Update type when loading in pokemon-data constructor for battler tags

* Fix issues in tsdoc comments with Wlowscha's suggestions

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

* Apply bertie's suggestions from code review

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

* Remove unnecessary as const from tagType

* Remove missed `as const`

* Apply kev's suggestions from code review

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

* Update src/data/battler-tags.ts

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

* Update src/data/battler-tags.ts

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

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-30 12:48:52 -04:00
AJ Fontaine
8069fc3a6f [ME] [Bug] Disable trades in GTS ME with only 1 valid party member
https://github.com/pagefaultgames/pokerogue/pull/6167
2025-07-30 12:48:52 -04:00
NightKev
745accf5b2 [Dev] Update Vite from 6.3.5 to 7.0.6 (#6163) 2025-07-30 12:48:51 -04:00
Sirz Benjie
50e8387f81 [Refactor] Mark nickname in pokemon as optional (#6168)
Mark nickname in pokemon as optional
2025-07-30 12:48:50 -04:00
Bertie690
6b269dc3f5 [Test] Add support for custom boilerplates to create-test.js (#6158)
* Added support for custom boilerplates to test:create script

* Added support for custom boilerplates to create-test.js

* Fixed syntax error

* Update create-test.js

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>

* Fix pluralization error in `create-test.js`

---------

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2025-07-30 12:48:50 -04:00
Bertie690
94a7728681 [Dev] Add workflow-dispatch trigger to tests github workflow (#6152)
Add `workflow-dispatch` trigger to github workflow

Co-authored-by: damocleas <damocleas25@gmail.com>
2025-07-30 12:48:49 -04:00
AJ Fontaine
af6a057bfc [Balance][Challenge] Added expanded Fresh Start options (#6162) 2025-07-30 12:48:48 -04:00
Sirz Benjie
ec5353bab5 Improve documentation
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-30 12:48:46 -04:00
Sirz Benjie
f6185daaae Apply kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-30 12:48:45 -04:00
NightKev
2b09ca9159 Fix imports 2025-07-30 12:48:44 -04:00
Sirz Benjie
c9e7fd04c0 Update with Bertie's comments
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-30 12:48:43 -04:00
Sirz Benjie
cd2e73cb28 Explicitly check against Moves.NONE
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-30 12:48:42 -04:00
Sirz Benjie
4a87e06090 Improve canUse computation 2025-07-30 12:48:41 -04:00
Sirz Benjie
c4a697d8ce Fix improperly named computeMoveId method 2025-07-30 12:48:40 -04:00
Sirz Benjie
5616e3d4f3 Add overload for handle command 2025-07-30 12:48:38 -04:00
Sirz Benjie
ea803195ed Minor touchups 2025-07-30 12:48:37 -04:00
Sirz Benjie
1fcaf55047 Breakup commandPhase#start
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-30 12:48:35 -04:00
Sirz Benjie
29232074c7 Breakup run and pokemon commands 2025-07-30 12:48:34 -04:00
Sirz Benjie
aab9a698fc breakup fight and ball commands into their own methods 2025-07-30 12:48:33 -04:00
NightKev
0ceafe9cfe [Dev] Change target to ES2023 in tsconfig.json (#6160) 2025-07-30 12:48:31 -04:00
Bertie690
d75836d720 [Bug] Fix camel case bug in strings.ts (#6161) 2025-07-30 12:48:30 -04:00
NightKev
7842bf435f [Docs] Add @module modifier tag to tsdoc.json 2025-07-30 12:48:29 -04:00
Sirz Benjie
23cd816e32 [Refactor] Prevent serialization of full species in pokemon summon data
https://github.com/pagefaultgames/pokerogue/pull/6145

* Prevent serialization of entire species form in pokemon summon data

* Apply suggestions from code review

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

* Apply Kev's suggestions from code review

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

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-30 12:48:28 -04:00
Bertie690
bc8d4947ba [Misc] Moved + cleaned up string manipulation functions (#6112)
* Added string utility package to replace util functions

* Changed string manipulation functions fully over to `change-case`

* Fixed missing comma in package.json

trailing commas when :(

* fixed lockfile

* Hopefully re-added all the string utils

* fixed package json

* Fixed remaining cases of regex + code dupliation

* Fixed more bugs and errors

* Moved around functions and hopefully fixed the regex issues

* Minor renaming

* Fixed incorrect casing on setting strings

pascal snake case 💀

* ran biome
2025-07-30 12:48:28 -04:00
Bertie690
379bd51ed3 [Dev] Turned on checkJs in TSConfig; fixed script type errors (#6115) 2025-07-30 12:48:27 -04:00
NightKev
dc5ad54506 [Misc] Fix import in vitest.d.ts 2025-07-30 12:48:26 -04:00
Bertie690
dc8cce53c8 [Test] Added custom equality matchers (#6157)
* Added rudimentary test matchers for `toEqualArrayUnsorted` and `toHaveTypes`

Might port the rest at a later date

* Actually run the effing setup matchers file + fixed ls lint to not be angy

* added dev dep

* Update .ls-lint.yml

* Update .ls-lint.yml

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2025-07-30 12:48:25 -04:00
Sirz Benjie
3de9a49580 [Refactor] Refactor UI text ts (#5946)
* Add destroy method to pokemon-sprite-sparkle-handler

* Move TextStyle to enums, convert into const object

* Cleanup text.ts file

* Add necessary explicit types for TextStyle let vars

* Fix locales submodule commit

* Fix merge issue

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-30 12:48:25 -04:00
Sirz Benjie
3c651e11b7 [Bug][Beta] Make bounce delay use fixed int (#6156)
Make bounce delay use fixed int
2025-07-30 12:48:24 -04:00
Sirz Benjie
9a89f48fd9 [Beta] [Bug] Fix shiny display issues (#6154)
Fix shininess check
2025-07-30 12:48:24 -04:00
damocleas
c622e26fd1 [i18n] Update Locales 2025-07-30 12:48:23 -04:00
NightKev
5a2c9d1712 [Dev] Add dist/ to ls-lint ignore list 2025-07-30 12:48:22 -04:00
SmhMyHead
54d9740ae4 [UI/UX] Added "Hide Username" Setting (#6105)
* [UI/UX] Added "Hide Username" Setting

* Mask tid with asterisk instead of hiding completely

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-07-30 12:48:22 -04:00
Sirz Benjie
89cbf7a01a [Refactor][Bug] Illusion no longer overwrites data of original Pokemon
https://github.com/pagefaultgames/pokerogue/pull/6140
2025-07-30 12:48:22 -04:00
Bertie690
6d7d2a5c6a Added roost tests 2025-07-26 17:39:05 -04:00
Bertie690
3a255e59b5 Fxixed test 2025-07-26 15:02:13 -04:00
Bertie690
ea4fff4718 Merge remote-tracking branch 'upstream/beta' into heal-attr 2025-07-26 15:01:08 -04:00
Sirz Benjie
4f259e2c2f
[Misc] Fix import in decrypt-save.js (#6149) 2025-07-25 22:30:58 -07:00
Bertie690
bb46ba9f60
[Dev] Added typedoc deployments for Beta (#6147) 2025-07-25 21:58:15 -07:00
damocleas
556d588d67
[UI/UX] Replace 'Neutral' in the Arena Flyout with 'Field' (#6139)
Update arena-flyout.ts for Field > Neutral
2025-07-25 21:20:48 -04:00
Acelynn Zhang
2e3a7d47e0
[Bug] Fix Thrash continuing on caught Pokemon (#6144)
Fix Thrash continuing on caught Pokemon
2025-07-25 23:55:13 +00:00
Bertie690
ab394db9cf
[Refactor] Minor cleanup of initExpKeys (#6127) 2025-07-25 18:39:25 -05:00
NightKev
7b7edbb474
[Test] MoveHelper#changeMoveset disables moveset overrides (#5915)
Also fix Assist tests and add `expect` for max moveset length
2025-07-25 16:22:52 -07:00