pokerogue/src/enums
Bertie690 5efdb0dc0b
[Refactor] Fix issues with "last move selected" vs "used" (#5810)
* Added `MoveUseType` and refactored MEP

* Fixed Wimp out tests & ME code

finally i think all the booleans are gone
i hope

* Added version migration for last resort and co.

buh gumbug

* Fixed various bugs and added tests for previous bugfixes

* Reverted a couple doc changes

* WIP

* Update pokemon-species.ts

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

* Update pokemon-phase.ts

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

* Fixed remaining tests (I think)

* Reverted rollout test changes

* Fixed command phase bug causing metronome test timeout

* Revert early_bird.test.ts

* Fix biome.jsonc

* Made `MoveUseType` start at 1

As per @DayKev's request

* Fixed a thing

* Fixed bolt beak condition to be marginally less jank

* Applied some review suggestions

* Reverted move phase operations

* Added helper functions complete with markdown tables

* Fixed things

* Update battler-tags.ts

* Fixed random issues

* Fixed code

* Fixed comment

* Fixed import issues

* Fix disable.test.ts conflicts

* Update instruct.test.ts

* Update `biome.jsonc`

* Renamed `MoveUseType` to `MoveUseMode`; applied review comments

* Fixed space

* Fixed phasemanager bugs

* Fixed instruct test to not bork

* Fixed gorilla tactics bug

* Battler Tags doc fixes

* Fixed formatting and suttff

* Minor comment updates and remove unused imports in `move.ts`

* Re-add `public`, remove unnecessary default value in `battler-tags.ts`

* Restore `{}` in `turn-start-phase.ts`

Fixes `lint/correctness/noSwitchDeclarations`

* Remove extra space in TSDoc in `move-phase.ts`

* Use `game.field` instead of `game.scene` in `instruct.test.ts`

Also `game.toEndOfTurn()` instead of
`game.phaseInterceptor.to("BerryPhase")`

* Use `game.field` instead of `game.scene` in `metronome.test.ts`

* Use `toEndOfTurn()` instead of `to("BerryPhase")` in `powder.test.ts`

* Convert `MoveUseMode` enum to `const` object

* Update move-phase.ts

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

* Add `enumValueToKey` utility function

* Apply Biome

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-15 10:52:44 -07:00
..
ability-attr.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
ability-id.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
ai-type.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
arena-tag-side.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
arena-tag-type.ts [Bug][Ability] Fix Neutralizing Gas interactions #5381 2025-02-25 18:38:17 -05:00
battle-spec.ts Re-implement UI reskin with working legacy toggle 2024-03-31 21:14:35 -04:00
battle-style.ts [Refactor] Move enum BattleStyle into separated file (#1906) 2024-06-13 10:10:31 -04:00
battle-type.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
battler-index.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
battler-tag-lapse-type.ts [Refactor] Fix issues with "last move selected" vs "used" (#5810) 2025-06-15 10:52:44 -07:00
battler-tag-type.ts [Ability] [Move] Implement Magic Bounce and Magic Coat (#5225) 2025-02-11 03:25:36 -08:00
berry-type.ts add new lint rules....again 2024-10-04 13:08:31 +08:00
biome-id.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
buttons.ts [UI][Enhancement] Allow tera type choice on starter select (#5366) 2025-02-21 07:23:08 +11:00
challenge-type.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
challenges.ts [Challenge] Flip Stats Challenge (#5087) 2025-01-15 01:55:14 -08:00
color.ts [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
command.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
devices.ts Menu - Controls Rebind - Gamepad & Keyboard (Cleaner git log) (#1666) 2024-06-01 13:56:32 +01:00
dex-attr.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
drop-down-column.ts [Refactor] Cleanup filter bar (#5896) 2025-05-30 23:12:35 +00:00
dynamic-phase-type.ts [Bug] Activate PostSummon Abilities in Speed and Priority Order 2025-06-11 22:28:27 -07:00
ease-type.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
egg-source-types.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
egg-type.ts [Enhancement] Refactor Starter Species to use separate EggTier map (#4591) 2024-10-10 09:29:26 -07:00
encounter-anims.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
exp-gains-speed.ts [Bug] Fix exp gains speed not applying properly (#4243) 2024-09-14 12:35:46 -04:00
exp-notification.ts [Refactor] Move enum ExpNotification into separated file (#1909) 2024-06-07 13:14:52 -04:00
field-position.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
fixed-boss-waves.ts [Balance][Refactor] Move fixed boss waves enum to file, adjust GL templates (#5689) 2025-04-23 14:48:04 -05:00
form-change-item.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
gacha-types.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
game-data-type.ts [QoL][Feature] Hall of Fame + Run History (#3251) 2024-08-23 19:23:16 +01:00
game-modes.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
hit-check-result.ts [Refactor][Move] Refactor move effect phase (#5678) 2025-04-23 00:10:27 +00:00
hit-result.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
learn-move-situation.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
learn-move-type.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
modifier-pool-type.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
modifier-tier.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
money-format.ts Add setting to change money format (#1261) 2024-05-27 22:58:33 -04:00
move-anims-common.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
move-id.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
move-result.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
move-source-type.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
move-use-mode.ts [Refactor] Fix issues with "last move selected" vs "used" (#5810) 2025-06-15 10:52:44 -07:00
MoveCategory.ts [Refactor] Refactor moves.ts part 1 (#5420) 2025-03-07 19:10:29 -06:00
MoveEffectTrigger.ts [Refactor][Move] Refactor move effect phase (#5678) 2025-04-23 00:10:27 +00:00
MoveFlags.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
MoveTarget.ts [Refactor] Refactor moves.ts part 1 (#5420) 2025-03-07 19:10:29 -06:00
MultiHitType.ts [Refactor] Refactor moves.ts part 1 (#5420) 2025-03-07 19:10:29 -06:00
mystery-encounter-mode.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-option-mode.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-tier.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-type.ts [Feature] Adds Expert Pokemon Breeder Mystery Encounter to the game (#4328) 2024-09-19 22:46:27 +02:00
nature.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
party-member-strength.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
passive.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
player-gender.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
pokeball.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
pokemon-anim-type.ts [Move][Ability] Implement Commander and Order Up (#4670) 2024-11-05 12:35:43 -05:00
pokemon-type.ts [Refactor] Refactor moves.ts part 1 (#5420) 2025-03-07 19:10:29 -06:00
shop-cursor-target.ts [P1 Bug][UI/UX] Address shop cursor target feedbacks (#4009) 2024-09-04 01:07:56 +00:00
species-form-key.ts [Qol][Refactor] i18n lazy-loading (#4327) 2024-10-01 21:55:16 +01:00
species-id.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
stat.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
status-effect.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
switch-type.ts [Move] Implement True Force Switch (Roar, Whirlwind, Circle Throw, Dragon Tail) (#4881) 2024-11-28 22:43:12 -08:00
tera-ai-mode.ts [Refactor] Minor refactor of trainer-config files (#5573) 2025-03-29 00:19:35 -04:00
time-of-day.ts add new lint rules....again 2024-10-04 13:08:31 +08:00
trainer-pool-tier.ts [Refactor] Minor refactor of trainer-config files (#5573) 2025-03-29 00:19:35 -04:00
trainer-slot.ts [Refactor] Minor refactor of trainer-config files (#5573) 2025-03-29 00:19:35 -04:00
trainer-type.ts [Enhancement] Add Kukui and Mustard as Champions and Colress as an admin. (#5224) 2025-02-01 19:03:34 -07:00
trainer-variant.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
ui-mode.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
ui-theme.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
unlockables.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
variant-tier.ts [QOL] UI Improvement - Shiny Icon (#2372) 2024-06-25 13:48:48 -04:00
weather-type.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00