Commit Graph

5298 Commits

Author SHA1 Message Date
NightKev
bb24f4dbc4 Minor comment/TSDoc updates and fixes 2025-06-20 01:43:51 -07:00
damocleas
a826029a3e
Merge branch 'beta' into ab-attr-apply-type-safety 2025-06-20 00:02:09 -04:00
NightKev
4b70fab608
[Bug] Remove message for Rock Head activation (#6014) 2025-06-19 20:59:55 -07:00
lnuvy
1ff2701964
[Bug] Fix when using arrow keys in Pokédex after catching a Pokémon from mystery event (#6000)
fix: wrap setOverlayMode args in array to mystery-encounter

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-06-19 20:45:54 -04:00
Bertie690
1e306e25b5
[Move] Fixed Chilly Reception displaying message when used virtually
https://github.com/pagefaultgames/pokerogue/pull/5843

* Fixed Chilly Reception displaying message when used virtually

* Fixed lack of message causing Chilly Reception to fail

* Fixed tests

* Reverted bool change + fixed test

* Fixed test
2025-06-19 17:14:05 -07:00
Madmadness65
43aa772603
[UI/UX] Add Pokémon category flavor text to Pokédex (#5957)
* Add Pokémon category flavor text to Pokédex

* Append `_category` to locale entry
2025-06-20 00:04:57 +00:00
Sirz Benjie
d0f4c4a840
Improve documentation and get rid of ts-expect-error directive 2025-06-19 17:12:08 -06:00
Sirz Benjie
df474da895
Address typing issue in safeguard test 2025-06-19 17:12:07 -06:00
Sirz Benjie
7391446dc2
Fix unnecessary attr type cast in move phase 2025-06-19 17:12:06 -06:00
Sirz Benjie
f2bf6f374e
Fix blockCrit method broken in merge 2025-06-19 17:12:06 -06:00
Sirz Benjie
8ea30f8ba7
Remove empty, unused file 2025-06-19 17:12:05 -06:00
Sirz Benjie
6aef950e76
Update trySetStatus test in pokemon to respect new return value for undefined 2025-06-19 17:12:05 -06:00
Sirz Benjie
1fb7eb6891
Fix regression in flower veil 2025-06-19 17:12:04 -06:00
Sirz Benjie
c6af4acae3
Make cud chew consumption not subclass postTurnAbAttr 2025-06-19 17:12:04 -06:00
Sirz Benjie
bb8e7adfbe
[wip] fix cud chew tests 2025-06-19 17:12:03 -06:00
Sirz Benjie
2c2834734d
Pass source to postApplyDamage in pokemon.ts 2025-06-19 17:12:02 -06:00
Sirz Benjie
44d4088b35
Fix improper simulated check in moody's apply method 2025-06-19 17:12:02 -06:00
Sirz Benjie
d7d59723a4
Remove improper condition in mimicry's ability application 2025-06-19 17:12:01 -06:00
Sirz Benjie
03afffb07f
Fix some tests to mock proper methods 2025-06-19 17:12:01 -06:00
Sirz Benjie
8ff68e894a
update abattr callsite in winstrate challenge encounter 2025-06-19 17:12:00 -06:00
Sirz Benjie
739c3779a9
update ability attribute callsite in shield dust test 2025-06-19 17:12:00 -06:00
Sirz Benjie
bc3970ebf8
Remove latent test functionality 2025-06-19 17:11:59 -06:00
Sirz Benjie
8f34ca1d61
Update abAttr callsites in misc phases 2025-06-19 17:11:58 -06:00
Sirz Benjie
eab7d6d1a0
Update callsites in turn-start-phase 2025-06-19 17:11:58 -06:00
Sirz Benjie
8a96444b8c
Update abattr callsites in MEP 2025-06-19 17:11:57 -06:00
Sirz Benjie
ef9a410920
format with biome and remove cancelled from weather lapse 2025-06-19 17:11:57 -06:00
Sirz Benjie
f432f8cbf6
Update abattr callsites in battler-tags
Also removed stat drop ability application from cancelling ME stat boost effects
2025-06-19 17:11:56 -06:00
Sirz Benjie
1deb74e926
Update abattr callsites in move-phase 2025-06-19 17:11:56 -06:00
Sirz Benjie
8f66dbe69b
Update callsites in moves.ts 2025-06-19 17:11:55 -06:00
Sirz Benjie
b9781bd863
Update callsites in pokemon.ts 2025-06-19 17:11:54 -06:00
Sirz Benjie
55093ec0af
[WIP] update ability signatures 2025-06-19 17:11:54 -06:00
Sirz Benjie
804809bb17
[WIP] Refactor ability attribute apply args 2025-06-19 17:11:53 -06:00
damocleas
6873a89296
1.9.6 to Beta
1.9.6 to Beta
2025-06-18 23:29:29 -04:00
NightKev
0ba3e52f77 Fix merge issue 2025-06-18 18:30:22 -07:00
NightKev
560ebbaee2 Merge branch 'beta' into minor-1.9.6 2025-06-18 18:27:37 -07:00
AJ Fontaine
4de7858f00
[i18n] Update locales (#6010)
Update locales
2025-06-18 21:19:25 -04:00
NightKev
e3c8e3141e
Merge pull request #6009 from Fontbane/locafix
[i18n] Map "biome" namespace to the filename change to "biomes" (#6001)
2025-06-18 18:14:37 -07:00
NightKev
30b2f95a30 [i18n] Map "biome" namespace to the filename change to "biomes" (#6001)
* [i18n] Map "biome" to the filename "biomes"

* Update locales submodule to bring in file rename
2025-06-18 21:11:15 -04:00
AJ Fontaine
1d669719a0
Bump version name to 1.9.6 2025-06-18 19:53:13 -04:00
AJ Fontaine
663e047af8
[Event] W event (#6006)
W event
2025-06-18 19:52:40 -04:00
AJ Fontaine
80ae42d3ba
[Sprite] Minior and Ferrothorn variants (#6005)
* Minior variants

* Add Ferrothorn variants

* Fix shiny Minior front and icons
2025-06-18 19:49:21 -04:00
Sirz Benjie
182397411e
[Bug] Fix infinite memory mushrooms (#5993)
* Set cost to -1 for modifiers chosen as rewards

* Ensure apply modifier conditional retains original behavior
2025-06-18 17:23:16 -04:00
AJ Fontaine
59a00e0af3
[Sprite] Fix Appletun variants (#6003)
Fix Appletun variants
2025-06-17 23:54:58 -04:00
Bertie690
4119dfbfec
[Test] Fix flaky gastro acid test (#5996) 2025-06-17 13:51:19 -07:00
NightKev
28b6c7e50d
[i18n] Map "biome" namespace to the filename change to "biomes" (#6001)
* [i18n] Map "biome" to the filename "biomes"

* Update locales submodule to bring in file rename
2025-06-17 12:35:39 -07:00
AJ Fontaine
2065f4fd7f
[Bug] Fix incorrect form key being checked for evo items (#5995) 2025-06-17 10:08:20 -07:00
Sirz Benjie
6ff258fb37
[Bug] Fix weather form changes not changing with weather abilities
https://github.com/pagefaultgames/pokerogue/pull/5857

* Add test for forecast

* Fix PostSummonFormChangeByWeatherAbAttr

* Fix overrides in forecast test

* Remove a test whose trigger conditions can no longer happen

* Update src/data/abilities/ability.ts

Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>

* Fix missing tsdoc param

* Apply kev's suggestions from code review

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

* Simplify PostSummonFormChangeByWeather's canApplyPostSummon

* Fix unused params that messed up after rebase

* Fix form change import

Messed up due to improper rebase

---------

Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-16 06:02:09 -07:00
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
Bertie690
ccceaac877
[Test] Reworked crit override to allow for forced crits (#5738)
* Crit override stuff

* Update ability.ts

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

* Update pokemon.ts

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

* Update game-mode.ts

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-16 05:36:09 -07:00
AJ Fontaine
ebc6ff2ed3
[Refactor] Clean up shiny/HA reroll methods (#5803) 2025-06-16 05:18:44 -07:00