Wlowscha
991818187c
Merge b570ca93a6
into cffbafe4bd
2025-09-22 08:18:16 -05:00
Lugiad
cffbafe4bd
[i18n] Language codes adjustments ( #6587 )
2025-09-22 05:45:28 -07:00
Dean
1c9843618c
[Misc] Blacklist more dynamic phases ( #6585 )
2025-09-21 12:05:13 -07:00
Sirz Benjie
d3edfb25a1
[Bug][Ability] Queenly Majesty flyout during move select ( #6569 )
2025-09-21 19:04:57 +00:00
Wlowscha
2fe99cc3bf
[Refactor] Refactor Starter
and its handling ( #6477 )
...
* Reworked `Starter` interface with more explicit information
* Use Starter in ssui
* Fixed some bugs
* Passing starter.ivs to playerPokemon
* Using speciesIds
* Fixed getTestRunStarters
* Reverted some parameter changes
* Initialize starters in ssui
* Don't clear starters before starting run
* Fix to game manager
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Set ivs to 0 in part timer test
* Setting the right ivs
* Moved ssui to handlers folder
* Ran biome all
* Fixed broken imports
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-21 11:07:08 -07:00
Lugiad
cf5e7fd981
[UI/UX] Optimize text PNGs ( #6584 )
2025-09-21 06:55:54 -07:00
NightKev
be61996044
[Docs] Fix/update some comments and spacing
2025-09-21 00:22:53 -07:00
NightKev
9f851591cb
[Dev] Update pnpm
2025-09-21 00:21:27 -07:00
Dean
25416ebf47
[UI] Avoid prematurely updating HP bar when applying damage ( #6582 )
...
Avoid prematurely updating HP bar when applying damage
2025-09-20 22:24:50 -05:00
Dean
87e6095a00
[Misc/Feature] Add dynamic turn order ( #6036 )
...
* Add new priority queues
* Add dynamic queue manager
* Add timing modifier and fix post speed ordering
* Make `phaseQueue` private
* Fix `gameManager.setTurnOrder`
* Update `findPhase` to also check dynamic queues
* Modify existing phase manager methods to check dynamic queues
* Fix move order persisting through tests
* Fix magic coat/bounce
* Use append for magic coat/bounce
* Remove `getSpeedOrder` from `TurnStartPhase`, fix references to `getCommandOrder` in tests
* Fix round queuing last instead of next
* Add quick draw application
* Add quick claw activation
* Fix turn order tracking
* Add move header queue to fix ordering
* Fix abilities activating immediately on summon
* Fix `postsummonphases` being shuffled (need to handle speed ties differently here)
* Update speed order function
* Add `StaticSwitchSummonPhase`
* Fix magic coat/bounce error from conflict resolution
* Remove conditional queue
* Fix dancer and baton pass tests
* Automatically queue consecutive Pokémon phases as dynamic
* Move turn end phases queuing back to `TurnStartPhase`
* Fix `LearnMovePhase`
* Remove `PrependSplice`
* Move DQM to phase manager
* Fix various phases being pushed instead of unshifted
* Remove `StaticSwitchSummonPhase`
* Ensure the top queue is always at length - 1
* Fix encounter `PostSummonPhase`s and Revival Blessing
* Fix move headers
* Remove implicit ordering from DQM
* Fix `PostSummonPhase`s in encounters running too early
* Fix `tryRemovePhase` usages
* Add `MovePhase` after `MoveEndPhase` automatically
* Implement an `inSpeedOrder` function
* Merge fixes
* Fix encounter rewards
* Defer `FaintPhase`s where splice was used previously
* Separate speed order utils to avoid circular imports
* Temporarily disable lunar dance test
* Simplify deferral
* Remove move priority modifier
* Fix TS errors in code files
* Fix ts errors in tests
* Fix more test files
* Fix postsummon + checkswitch ability activations
* Fix `removeAll`
* Reposition `positionalTagPhase`
* Re-add `startCurrentPhase`
* Avoid overwriting `currentPhase` after `turnStart`
* Delete `switchSummonPhasePriorityQueue`
* Update `phase-manager.ts`
* Remove uses of `isNullOrUndefined`
* Rename deferral methods
* Update docs and use `getPlayerField(true)` in turn start phase
* Use `.getEnemyField(true)`
* Update docs for post summon phase priority queue (psppq)
* Update speed order utils
* Remove null from `nextPhase`
* Update move phase timing modifier docs
* Remove mention of phases from base priority queue class
* Remove and replace `applyInSpeedOrder`
* Don't sort weather effect phases
* Order priority queues before removing
- Add some `readonly` and `public` modifiers
- Remove unused `queuedPhases` field from `MoveEffectPhase`
* Fix linting in `phase-manager.ts`
* Remove unnecessary turn order modification in Rage Fist test
---------
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-20 17:49:40 -05:00
Dean
d02980dd4e
[Move] Fully implement Healing wish (/Lunar Dance) and remove nextCommandPhaseQueue
( #6027 )
...
* Remove NCPQ
* Implement PendingHealTag
* Fix test
* Code review
* Use message directly instead of as key in tag
* Update tag for serialization
* Update test import
* Update src/data/arena-tag.ts
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Remove isNullOrUndefined uses
* Fix arena tag type(o)
* Fix pendinghealtag
* Fix hwish tests
* Arena tag denesting
---------
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-20 17:32:31 -05:00
Bertie690
1691951c87
[Test] Added Map key matcher; enforced strong typing on matchers ( #6561 )
...
* Added `toHaveKey` matcher + fixed imports
* Broke up the test matchers into multiple smaller interfaces
* Added restricted typing on matchers
Now we can't call `expect(game).toHaveFullHp()`!!!!!
* Updated comment
* Renamed `toEqualArrayUnsorted` into `toEqualUnsorted`
* Moved comment at top of file
* Fix `@module` doc comment
* Remove extra space
* Fix typo
* Fixed key ssue in matchers
* Update to-have-key.ts
* Update test/@types/vitest.d.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Fixed missing braces inside comment
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-20 17:24:27 -05:00
Sirz Benjie
207808f37d
[Docs] Cleanup docs in pokemon.ts ( #6543 )
...
* [Docs] Cleanup docs in pokemon.ts
* Apply 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: Fabi <192151969+fabske0@users.noreply.github.com>
* chore: apply biome
* revert changes to docstrings that will conflict
2025-09-20 17:15:57 -05:00
Dean
405b1d389d
[Bug] Apply Supreme Overlord only once on summon ( #6575 )
...
* Implement supreme overlord as a battler tag
* Make ability a conditionalattr
* Add tag to map
* Update test
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
* Add edgeCase marker
* Extend from AbilityBattlerTag
* Run biome
---------
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-19 23:08:02 -05:00
Sirz Benjie
16a903b975
[Bug][Ability] Remove flyout for rivalry ( #6577 )
...
Remove flyout for rivalry
2025-09-19 20:47:35 -07:00
Sirz Benjie
773f5b23f2
[Deps] Bump typedoc version ( #6576 )
2025-09-19 17:23:50 -07:00
Fabi
7d83a3a24a
[UI/UX] Show correct max duration in flyout ( #6566 )
...
* Fix terrain & weather max duration flyout
* show correct max duration for tags
* maka maxDuration optional in arenaEvent constructor
* Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-18 13:35:22 -07:00
Madmadness65
0e87391b20
[Misc] Update biome pools in init functions ( #6572 )
...
Added new biome entries for Type: Null, Silvally, Poipole, Naganadel, Kubfu, Urshifu, Scientist, and Swimmer to their respective init functions, and reran `outputPools`.
2025-09-18 14:13:52 -05:00
Bertie690
3d9e493e5f
[Test] Updated more uses of game.scene.getEnemyField
and game.scene.getPlayerField
to use updated test utils ( #6524 )
2025-09-18 09:36:08 -05:00
Sirz Benjie
da766f364c
[Tests] Cleanup getCookie
and add many unit tests ( #6562 )
...
Cleanup `getCookie` and add many unit tests
2025-09-18 12:52:15 +00:00
Fabi
37e6371eef
[Dev] Allow forcing all trainer variants in trainer override ( #6391 )
2025-09-16 10:48:19 -05:00
Madmadness65
e25db16326
[P3 Bug] Fix login screen not playing menu_open SFX properly
...
It did not properly specify that the SFX file was in the ui folder.
2025-09-16 02:45:30 -05:00
Sirz Benjie
0c921cdb4a
[Tests][Bug][Beta] Fix ditto bug and add unit tests ( #6559 )
...
* Fix ditto bug and add unit tests
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-15 23:26:57 -05:00
Sirz Benjie
85c38dfdbe
[Bug] Cookies being fetched improperly v2
2025-09-15 19:55:45 -05:00
Sirz Benjie
6ce59ecbd9
[Bug] Cookies being fetched improperly
2025-09-15 19:49:18 -05:00
Bertie690
65bb58a635
[Dev] Fix + rename test:create
boilerplate file ( #6560 )
...
* Rename `default.ts` to `default.boilerplate.ts`
* Update `test:create` script to look in the correct location
* Update `biome.jsonc` to remove explicit boilerplate folder check
* Apply Biome
2025-09-15 13:51:28 -07:00
Sirz Benjie
8013093513
[Bug] Secondary fusions with gender evo condition can now evolve ( #6510 )
2025-09-15 14:04:13 -05:00
NightKev
b7cee4b313
[Misc] Remove leftover temporary comments in pokemon.ts
2025-09-15 00:25:25 -07:00
NightKev
de94e738fb
[Docs] Add blank space to prevent incorrect comment attachment
...
Biome will "attach" comments to imports if there is no space between
them when it sorts imports (this allows suppression comments to work)
2025-09-14 20:45:01 -07:00
Sirz Benjie
793dea0024
[Bug] [Docs] Fix @module
tags ( #6557 )
...
Fix `@module` tags
2025-09-14 22:35:12 -05:00
Xavion3
25a2fb4266
[Balance] Tweak trainer moveset TM generation. ( #6533 )
...
* Lower TM weight in moveset generation.
* Implement a cap on amount of TMs based on wave.
* Extract ai moveset generation to its own file
* Minor doc cleanup
* Move magic numbers to balance file and export them
* Tweak stab move weight generation
---------
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-14 21:44:58 -05:00
Madmadness65
24a0ca95f4
[Balance] Change Happiny evolution method, update Chansey happiness req
...
https://github.com/pagefaultgames/pokerogue/pull/6551
* [Balance] Change Happiny evolution method
Happiny now evolves into Chansey by using an Oval Stone during the Dawn or Day, instead of 160 friendship (Blissey's friendship requirement of 200 remains unchanged).
Also removed unnecessary comments from Gligar's and Sneasel's evolutions.
* Update Chansey -> Blissey 200 -> 180 Friendship Required (Base 140)
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-14 14:58:56 +00:00
Sirz Benjie
521b88eabe
[Bug] [Beta] Fix bug where boss segments are not actually broken ( #6553 )
...
Fix bug where boss segments are not actually broken
2025-09-13 18:36:21 -05:00
NightKev
b170145fb8
[Dev] Update pnpm
from 10.14.0
to 10.16.1
2025-09-13 14:55:13 -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