Sirz Benjie
2388372cca
[Dev] Add support for manually rolling polyfills. Add polyfill for promise.withResolvers
( #6103 )
...
* Add polyfill for Promise.withResolvers
* Import polyfills in main
* Apply kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Address comments from code review
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-19 09:06:32 -07:00
Wlowscha
e1edb87990
Merge https://github.com/pagefaultgames/pokerogue into new-modifier-rework
2025-07-19 16:30:48 +02:00
NightKev
556721127c
[i18n] Update locales submodule
2025-07-19 02:39:00 -07:00
damocleas
4f4ca5f0c7
[Art][Sprite] Improve Plains Background, add Biome Props ( #6118 )
...
* Plains Background Improvement, add Props
* Update CREDITS.md for new biome assets
* Update flower and everstone props
2025-07-19 02:04:15 -04:00
Bertie690
626eb3da87
[Dev] Fixed lefthook to no longer reset submodules on file checkouts
...
https://github.com/pagefaultgames/pokerogue/pull/6113
2025-07-18 22:42:23 -07:00
NightKev
a81e187164
[i18n] Pokemon#getOpponentDescriptor
no longer returns a pokemon name
...
https://github.com/pagefaultgames/pokerogue/pull/6053
2025-07-18 23:42:51 +00:00
SmhMyHead
def80f2e10
[UI/UX] Baton shows on top, De/Activate form shows on bottom ( #6104 )
...
[UI/UX] Batton shows on top, De/Activate form shows on bottom
2025-07-18 03:36:53 +00:00
NightKev
a6e4459ecd
[Dev] Fix if
statement in beta deploy script ( #6107 )
2025-07-17 03:38:58 -07:00
NightKev
4dca988823
[Dev] Update packages ( #6088 )
...
* Update packages
* Add default values for tweens
* Add mocks for `InputText` and `BBCodeText`
* Delete deprecated `vitest.workspace.ts`
* Replace `new InputText` with `globalScene.add.rexInputText`
* Disable broken Magic Bounce test
* Disable broken test in `stockpiling.test.ts`
2025-07-16 22:28:17 -07:00
Sirz Benjie
de2d4c8b0e
[AI] Minor fixup of matchup score ( #6100 )
...
* Minor fixup of matchup score
* Add some comments discussing deficiencies
* Fixup incomplete comment
* Apply kev's 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-07-16 19:52:57 +00:00
Sirz Benjie
b3f4005a16
[Bug] Fix return in applyChosenModifier; prevent race condition in modifier-ui-handler ( #6099 )
...
* Fix return in applyChosenModifier
* Stop race condition in modifier-select-ui
* Fix null errors inside the tween's onUpdate method
* Minor cleanup of tween chains
* Minor cleanup of tween chains
* Minor fixup
2025-07-16 17:25:58 +00:00
damocleas
3d42e976b7
[Balance] Encounter condition adjustments for Legendaries and Random Trainers ( #6084 )
...
* Adjust Trainer Chances, Legendary Encounter Waves
* Poipole, Kubfu, and Type: Null checked
* 55 made the default
* Update src/field/arena.ts
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
* Replace `switch (true)` with `if/else`
* fix comment
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
* Update arena.ts random trainer chances in biomes
* Update arena.ts random trainer chances in biomes
* beach.,
---------
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-16 11:21:52 -05:00
NightKev
fcdbf16bc3
[Test] Fix first-attack-double-power.test.ts
tests
...
The trainer type overrides appear to be bugged currently
2025-07-15 23:40:27 -07:00
Bertie690
268605a5e3
[Dev] Move typedoc settings to typedoc.json
and add tsdoc.json
...
https://github.com/pagefaultgames/pokerogue/pull/6102
* Move typedoc settings out of tsconfig
* Create typedoc.json
* Apply Biome
* Add `tsdoc.json` for `@todo` and `@linkcode`
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-07-15 23:28:02 -07:00
AJ Fontaine
583b3758c0
[Dev] Move Fixed Battle Configs to own file ( #6054 )
2025-07-15 21:54:15 -07:00
Bertie690
e05d85977e
[Dev] Updated enum utils to have strong typing ( #6024 )
...
* Updated enum utils to refuse non-enum values;
added strong typing on return values
* Moved Enum functions to own file; added type helpers for enums
* Cleaned up some code
* Fixed up tests
* Fix training-session-encounter.ts
2025-07-15 01:14:02 -07:00
NightKev
2e06b10f40
[Test] Fix Bolt Beak/etc test
2025-07-15 00:34:03 -07:00
Sirz Benjie
971a86d20a
[Beta][Bug][UI/UX] Ensure setCursor is called if not first turn ( #6098 )
...
Ensure setCursor is called if not first turn
2025-07-14 19:07:12 -04:00
Blitzy
773229effd
[Balance] 1.10 Passive, Egg Move, and Starter Cost Changes ( #6097 )
...
* Update egg-moves.ts 38 egg move changes
* Update passives.ts - 23 passive changes
* Updates starters.ts - 2 cost changes
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-07-14 19:06:34 -04:00
Sirz Benjie
6e6f9da1fd
[Bug] Fix grey caught indicator for genderless pokemon ( #6095 )
...
Fix grey caught indicator for genderless pokemon
2025-07-14 16:57:38 -04:00
Sirz Benjie
374fb9613a
Revert "[Bug] Genderless Pokemon no longer grey out the caught icon" ( #6094 )
...
Revert "[Bug] grey caught indicator for genderless pokemon (#5935 )"
This reverts commit 5104f5712f
.
2025-07-14 16:35:15 -04:00
fabske0
5104f5712f
[Bug] grey caught indicator for genderless pokemon ( #5935 )
...
* grey caught indicator for genderless pokemon
* adding suggestions
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-07-14 15:37:59 -04:00
Sirz Benjie
315d4cf408
Add parameter destructuring ( #6092 )
2025-07-14 20:19:24 +02:00
Sirz Benjie
de8491505b
[Test] Address flaky tests and add Metronome mock helper ( #6093 )
...
- Fix `copycat`, `first-attack-double-power` and `ability-ignore-moves`
* Add utility method for forcing metronome move
* Stop bolt beak / fiscious rend flakiness
2025-07-13 22:20:09 -07:00
NightKev
22e399be8b
[Test] Disable flaky test
2025-07-13 21:23:34 -07:00
NightKev
6863044698
[Test] Fix Intimidate test
2025-07-13 20:14:59 -07:00
Lugiad
362dd9e2b9
[UI/UX] HEADER_LABEL
TextStyle Fix ( #6089 )
2025-07-13 17:59:51 -07:00
Wlowscha
97e5ab882a
Minor lint
2025-07-13 16:36:17 +02:00
Wlowscha
4ed0fd0384
More minor fixes
2025-07-13 16:12:27 +02:00
Wlowscha
c7a1b0fac5
Reworked getPartyBerries function, fixed harvest test
2025-07-13 15:59:53 +02:00
Wlowscha
b8324e85f7
Moved getPartyBerries() utility function
2025-07-13 13:20:42 +02:00
Wlowscha
e034d7e04e
Added test override for pokeballs
2025-07-13 13:04:46 +02:00
Wlowscha
eaead476e8
Add some type specifications so biome is happy
2025-07-13 12:55:07 +02:00
Wlowscha
e7bb3a7443
formChangeItemName function
2025-07-13 12:45:11 +02:00
Wlowscha
d411702716
Cleaned up more files
2025-07-13 12:34:18 +02:00
NightKev
8118d00a07
Remove relative imports
2025-07-13 02:57:47 -07:00
NightKev
ff5d891c6e
Fix some imports
2025-07-13 02:52:02 -07:00
NightKev
882c256933
Create and apply #items
import alias
2025-07-13 02:42:22 -07:00
NightKev
4494debaa0
Merge branch 'beta' into modifier-rework
2025-07-13 02:36:31 -07:00
NightKev
c697a47f5b
Apply Biome
2025-07-13 02:34:03 -07:00
NightKev
cd2f0b8a6e
Merge branch 'beta' into modifier-rework
2025-07-13 02:32:49 -07:00
Madmadness65
d22a4d5c9f
[i18n] Update locales submodule
2025-07-13 02:59:50 -05:00
NightKev
8cf1b9f766
[Dev] Enable Biome import sorting ( #6052 )
...
* [Dev] Enable Biome import sorting
Additional changes:
- Implement import aliases
- Convert default exports to named exports
- Remove relative imports
* Apply changes
* Misc fixes
* Merge cleanup
2025-07-13 00:21:25 -07:00
Jonathan Bankston
22c386ea9e
[BUG] Fix Transform and Imposter issues ( #6008 )
...
* Fixed Transform and Imposter Bug
* Updated Comments
* Revised Comments
* Revised Changes on how tranformed pokemon are referenced to align with reviewer's suggestions
* Removed unused BattlerTag type for transform
* Removed addition of the transform tag to a pokemon in the PokemonTransformPhase
* Moved the check for whether Transform can be used within the TransformAttr class as suggested and removed uneccesary moveId check
* Consolidated if statement regarding isTransformed
* Removed overrides
* Added move condition to Transform + fixed up imposter target selection
* Condensed tests into 1 file + added more automated tests
This includes a couple regression tests for the fusion shenanigans
* Fixed comment
* Updated override typo for unimplemented methods
* Remove redundant parentheses
* Apply suggestions from code review
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
---------
Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-12 23:39:48 -07:00
Bertie690
664f2fab0d
[Refactor/Bug] Fix Protean not applying due to terrain + minor cleanup of move phase ( #5855 )
...
* Squashed protean/libero changes
* Update protean-libero.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update protean-libero.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update move-phase.ts
* Fixed counter move logic using inverted conditional
* Update move-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update move-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update ability.ts commentfix
* Update src/data/abilities/ability.ts
Co-authored-by: NightKev <34855794+DayKev@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-07-13 05:59:38 +00:00
Bertie690
12fbff71d2
[Test] Added tests for Intimidate, Fishious Rend/Bolt Beak, Payback and Moongeist Beam & co. ( #5858 )
...
* Added additional tests for intimidate & ability-ignoring moves
* Added a few basic tests for Fishious Rend and Bolt Beak
* Fixed comment
* Fixe test and added commetn
* Update first-attack-double-power.test.ts
* Fixed incorrect ignore-abilities.test.ts test suite description
* Update ignore-abilities.test.ts suite name
* Fix first-attack-double-power.test.ts
* Actually fixed import
* Update intimidate.test.ts
* Fix test imprts
* Added guard dog tests
* Fixed tests
* Renamed test file
* Added Payback tests
* Fixed accidental unusde class
* Fixed tests
* Fixed flaky test due to 1 length trainer thing
* dd
---------
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-07-13 05:55:05 +00:00
Sirz Benjie
940c3c6f42
[Refactor] Cleanup fight UI ( #5883 )
...
* Cleanup fight ui handler
* Add types to fight-ui-handler#show
* Fix poor logic in toggleInfo
* Make addInfoToggle capable of taking in multiple toggles
2025-07-12 17:54:43 -07:00
Wlowscha
414a6b10ea
Cleaned up more tests
2025-07-13 00:42:29 +02:00
Wlowscha
9925b0c358
Some minor fixes
2025-07-12 20:36:13 +02:00
Wlowscha
0d2bae0fcc
Rename SelectModifierPhase to SelectRewardPhase
2025-07-12 20:23:11 +02:00