pokerogue/src/@types
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
..
api [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
helpers [Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338) 2025-09-05 21:50:37 -05:00
ability-types.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
arena-tags.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
attack-move-result.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
battler-tags.ts [Bug] Apply Supreme Overlord only once on summon (#6575) 2025-09-19 23:08:02 -05:00
common.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
damage-params.ts [Docs] Cleanup docs in pokemon.ts (#6543) 2025-09-20 17:15:57 -05:00
damage-result.ts [Refactor] Moved various classes/interfaces to own files (#5870) 2025-06-28 01:55:47 -07:00
dex-data.ts [Feature] Add per-species tracking for ribbons, show nuzlocke ribbon (#6246) 2025-08-14 13:20:48 -05:00
held-modifier-config.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
illusion-data.ts [Refactor] Mark nickname in pokemon as optional (#6168) 2025-07-28 22:13:10 -04:00
locales.ts [Refactor] Merged interfaces/ into @types/; removed runtime orphan modules 2025-06-07 17:28:01 -07:00
modifier-types.ts [Dev] Moved type helpers to separate directory; (#6123) 2025-07-30 18:17:17 -07:00
move-types.ts [Move] Added laser focus locales (#6202) 2025-08-13 08:16:08 -07:00
phase-types.ts [Misc/Feature] Add dynamic turn order (#6036) 2025-09-20 17:49:40 -05:00
save-data.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
session-save-migrator.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
settings-save-migrator.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
system-save-migrator.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
trainer-funcs.ts [Dev] Move Fixed Battle Configs to own file (#6054) 2025-07-15 21:54:15 -07:00
turn-move.ts [Refactor] Moved various classes/interfaces to own files (#5870) 2025-06-28 01:55:47 -07:00
ui.ts [Refactor] Refactor UI text ts (#5946) 2025-07-27 17:46:56 +00:00
user-info.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00