pokerogue/src
AJ Fontaine e3108603e3
[Refactor] Rework evolution conditions and descriptions (#5679)
* Refactor evo conditions and descriptions

* Fix test

* Fix Shedinja

* Simplify Gimmighoul evolution

* Primeape and Stantler evolve by using their move 10 times

* Basculin white stripe evolves by taking 294 recoil damage

* Primeape and Stantler use modifiers for tracking

* Basculin uses modifier too

* Remove evo count from pokemon data

* No more evo counter data, Gallade/Froslass

* Fix allmoves import

* Clamperl

* Struggle shouldn't count for Basc recoil

* Change to nicer type

* Apply Benjie's suggestions

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

* Address formatting

* Undo new evolution changes

* Remove unused imports

* Fix speciesid

* Fixed up descriptions a little

* Change a key name

* Fix Gimmighoul

* Apply Biome

* Apply Biome unsafe fixes

* Review suggestions

- Convert `EvoCondKey` enum to `const` object

- Use early returns in `SpeciesEvolutionCondition#description`
and `SpeciesFormEvolution#description`

- Replace `!!x.find` with `x.some`
and `y.indexOf() > -1` with `y.includes()`

- Implement `coerceArray`

- Fix Shelmet evolution condition
checking for Shelmet and not Karrablast

- Remove unnecessary type casting in `battle-scene.ts`

* Remove leftover enforce func loop

* Fix circular imports issue

- `getPokemonSpecies` moved to `src/utils/pokemon-utils.ts`
- `allSpecies` moved to `src/data/data-lists.ts`

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-16 05:57:51 -07:00
..
@types [Misc] Run biome on all files; update some rules to be errors now 2025-06-14 00:59:34 -07:00
configs/inputs [Misc] Removed cases of a ? true : false and useless super calls from subclasses (#5943) 2025-06-06 17:00:09 -07:00
data [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
enums [Refactor] Fix issues with "last move selected" vs "used" (#5810) 2025-06-15 10:52:44 -07:00
events [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
field [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
global-vars [Refactor] Merged interfaces/ into @types/; removed runtime orphan modules 2025-06-07 17:28:01 -07:00
modifier [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
phases [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
pipelines [Misc] Run biome on all files; update some rules to be errors now 2025-06-14 00:59:34 -07:00
plugins [Misc] Run biome on all files; update some rules to be errors now 2025-06-14 00:59:34 -07:00
sprites [Misc] Removed cases of a ? true : false and useless super calls from subclasses (#5943) 2025-06-06 17:00:09 -07:00
system [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
typings/phaser [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
ui [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
utils [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
account.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
battle-scene.ts [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
battle.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
constants.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
game-mode.ts [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
global-event-manager.ts [Misc] AFD Event (#5596) 2025-03-31 15:11:01 -07:00
global-scene.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
inputs-controller.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
loading-scene.ts [Refactor] Remove circular dependencies (part 4) (#5964) 2025-06-11 19:42:04 -07:00
main.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
messages.ts [Refactor] Add methods isPlayer and isEnemy to reduce circular imports 2025-06-07 17:44:58 -07:00
overrides.ts [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
phase-manager.ts [Refactor] Fix issues with "last move selected" vs "used" (#5810) 2025-06-15 10:52:44 -07:00
phase.ts [Refactor] Decouple phase system from battle-scene (#5953) 2025-06-07 17:59:30 -07:00
scene-base.ts [Refactor] Create utility function coerceArray (#5723) 2025-06-12 21:30:01 -07:00
starting-wave.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
timed-event-manager.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
touch-controls.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
tutorial.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
ui-inputs.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00