Commit Graph

5902 Commits

Author SHA1 Message Date
Anthony
7d8ccfb745
[Bug] Stats that were reset from moves display properly as being reset
https://github.com/pagefaultgames/pokerogue/pull/6650

* Stats display properly after moves reset stats

* Update test/moves/clear-smog.test.ts

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* Removed unnecessary test for Clear Smog

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-10-22 23:25:14 +00:00
NightKev
71c1f44f91 [Test] Fix typo in Mat Block test 2025-10-22 16:22:59 -07:00
damocleas
a4d37e51f2 update locales and assets submodules to beta 2025-10-22 17:35:12 -04:00
damocleas
2109aace1d
[Balance] 1.11 Extra Changes (#6651)
* Add extra EXP Charm to Classic, Add 1 Ability 1 Shiny Charm to Daily

* Update Delibird moveset in pokemon-level-moves.ts based off of PLA

* Dragon Claw TM Ultra -> Great

* some gmax changes Update pokemon-species.ts

* X items - Update modifier.ts

* (Beta) Milotic and Golisopod slot 3 -> 4 Update rival-party-config.ts

* test fix for x items Update temp-stat-stage-booster.test.ts

* Update tms.ts air cutter and sky drop

* Update tms.ts water pulse and brutal swing

* (beta) fix for admins Update fixed-battle-configs.ts

* (beta) fix Update challenge.ts too
2025-10-21 20:45:02 -04:00
Bertie690
85fcb20271
[Misc] Removed instance of find(() => true) from BattleInfo code
https://github.com/pagefaultgames/pokerogue/pull/6673
2025-10-20 23:20:39 -05:00
Fabi
bcc79a6118
[UI/UX] Add option to release Pokemon in shop phase (#6665)
* add `release` option to shop phase

* Fix test

* Don't show `release` option during switch
2025-10-17 22:52:25 -04:00
NightKev
d49e6c6f09 [Dev] Update pnpm version to 10.18.3 2025-10-16 22:15:13 -07:00
NightKev
ffbaf311c6
[Beta] Pixilate/etc no longer affect non-Normal type moves (#6661) 2025-10-16 14:27:13 -07:00
NightKev
95cc9f6d49
[Misc] Ability Charms no longer affect the number of RNG rolls (#6652) 2025-10-16 18:25:39 +00:00
Bertie690
904086c73a
[Dev] Add .gitmodules entries for default branch on submodules
https://github.com/pagefaultgames/pokerogue/pull/6624
2025-10-15 20:40:37 -07:00
Bertie690
f70207b2b7
[GitHub] Improved linting workflow to show intermediate step status
https://github.com/pagefaultgames/pokerogue/pull/6657

* Added `workflow_dispatch` trigger to linting workflow

* fixed using `always` instead of `!cancelled`
2025-10-15 18:24:03 -07:00
Fabi
e7404ecfe3
[UI/UX][Beta]Fix ribbon cycling (#6649)
fix ribbon cycling
2025-10-15 23:04:09 +00:00
Sirz Benjie
0fdcb97575
[Dev] Add polyfill for ES2025 iterator (#6654) 2025-10-12 21:46:09 -05:00
Sirz Benjie
73e8c6c160
[UI/UX][Beta][Bug] Fix ribbons using wrong index when showMissingRibbons is off (#6648)
Fix ribbons using wrong index when showMissingRibbons is off
2025-10-10 12:38:06 -04:00
Sirz Benjie
1265cdf2f2
Update locales 2025-10-09 23:05:45 -05:00
Blitzy
8ada380d4d
[Balance] Reduce Meltan Custom Evo Requirement (#6646)
* Update pokemon-evolutions.ts
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-10-09 18:54:18 -04:00
Blitzy
218beb72b2
[Balance] PR #6608 Fix (#6640)
Update trainer-config.ts

Co-authored-by: damocleas <damocleas25@gmail.com>
2025-10-09 15:58:13 -04:00
Blitzy
120f8a2f33
[Balance] Expert Breeder ME tweaks (#6643)
* Change Strength Template

* Add friendship value to EnemyPokemonConfig, set Cleffa friendship values

Custom friendship values can now be set within Mystery Encounters. Set the Expert Pokemon Breeder's Cleffas to max friendship.

* Set all items as 3 Soothe Bells and nothing else

---------

Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-10-09 15:52:36 -04:00
Madmadness65
b6f64aacd2
[Audio] Add new Snowy Forest Track, update loop point (#6631)
* [Audio] Update loop point for Snowy Forest's BGM

This biome received a new custom track, and the credits have been updated accordingly as well.

* Update assets submodule

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
2025-10-08 12:42:57 -04:00
Blitzy
dacf71151a
[Balance] Evil Team Admin Rework + Misc Trainer Changes (#6608)
* Update trainer-config.ts

* Update trainer-config.ts

* Revert "Update trainer-config.ts"

This reverts commit 6243592913.

* Revert "Update trainer-config.ts"

This reverts commit 6243592913.

* Update Admins, Add Admin 3

* Update Admins, Add Admin 3

* Update trainer-config.ts

* Update trainer-config.ts

* Initial Pool Updates

* Initial Pool Updates

* allow evil team admins to use subpools

* allow evil team admins to use subpools

* Remove trainer pool tier stairs

* freedom motif

* Remove trainer pool tier stairs

* freedom motif

* fix: missing import in trainer-config.ts

* Fix incorrect Starmobile forms

* Pool Updates + Boss additions

* Misc Changes

* Reorder p functions in Trainer Config

This let move gen properly account for Boss Health, Form Changes, and Abilities for future functions

* Ensure evil admins are uniquely selected in different fights

* Ensure evil admins are uniquely selected in different fights

* Implement evil team admin instant tera for slot 4

* Revert Starmobile Changes

* Minor Grunt Pool Changes

* Champion Adjustments

* Update trainer-config.ts

* Update trainer-config.ts

* Update challenge.ts

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
2025-10-08 00:08:50 -05:00
Bertie690
112963637a
[Test] Improved liquid ooze test file to use updated test utils (#6633) 2025-10-07 23:42:27 -05:00
Bertie690
15b6877a86
[Bug/i18n] Added type safety to Arena.applyTags; fixed arena tag addition/removal messages (#6304)
* Fixed up arena tags `apply` with type safety; removed unused parameters from tags

* Enforced member visibility on a few methods

* Made arena tag layers readonly; cleaned up callsites

* Added tests for stone axe

* Fixed mat block + removed unused file

* Fixed up the tests for locale messages + fixed lucky chant

* Reverted change to light screen DR%

* Fixed tests to not check neutralizing gas msgs

* Fixed inverted conditional in test file

* Update doc comments for type-helpers.ts

* Added util to make `it.each` test cases from a bunch of enums

* Fixed up tsdocs

* Fixed type error + removed broken util

* Fixed TR signature

* FIxed type errors caused by pending heal tags

* Remove `undefined` from `onOverlap`'s signature

* allow sourceless arena tags once again

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-07 23:38:51 -05:00
Wlowscha
06fe3c7b76
[UI/UX] Add option to see ribbons in Pokédex (#6596)
* Added various ribbon utils

* Added ribbon tray to pokédex page

* V button in Pokédex toggles IVs

* Introduced visibility toggle

* Added ribbons (and full ivs) to unlocks file

* For real this time

* Added descriptions to the ribbons

* Fixed bug of tray not opening with visibility option on

* Minor cleanup of ribbon tray

* Use unique ribbon icons

* Make achv use image instead of sprite

* Tweak size of ribbons

* Improve clarity on comment

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-10-07 23:29:19 -05:00
Sirz Benjie
07c1491649
[Misc] fix error throwing in forewarn 2025-10-07 23:23:25 -05:00
Dean
a4b27eb05e
[Bug] Use InitEncounterPhase to queue PSPs for new encounters (#6614)
* Use InitEncounterPhase to queue PSPs for new encounters

* Add doc

* Add manual PSP queues
2025-10-07 22:09:17 -05:00
Bertie690
d32e112194
[Bug/Ability] Fix Forewarn not triggering + add randomized selection (#6623)
* [Ability] Fix Forewarn not triggering + add randomized selection

* Fix typo

* Comment fix

* Fix name oops

* Fix `slice` instead of `splice`

* Fix missing continue

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

* Apply Biome

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-07 22:08:57 -05:00
Bertie690
54918f6145
[Docs] Add biome lint badge to README (#6636)
Add biome lint badge
2025-10-07 10:52:29 -05:00
NightKev
b76ecf55fd
[Dev] Add isApp & build:app for AdmiralBilly's offline app (#6632)
- Consolidate `isBeta`/etc into `src/constants/app-constants.ts`

- Rename `isLocal` to `isDev`

- Replace `import.meta.env.DEV` with `isBeta || isDev`
2025-10-06 18:51:33 -07:00
Bertie690
b25c3b082a
[Misc] Updated documentation & typing for setPositionRelative function (#6629) 2025-10-06 12:39:04 -05:00
Sirz Benjie
1c446c466f
[Dev] Update biome.jsonc 2025-10-06 12:30:18 -05:00
Sirz Benjie
e5e0835a96
[Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547)
* make IVs use Uint8Array

* Add many typed array helpers

* Move array utils to its own file

* Add suppression comment

* Adjust type of `getStats`

* Adjust test mocks to use typed arrays

* Adjust signatures of some phases to use ArrayLike<T>

* Adjust signature of src/ui/containers/stats-container#updateIvs

* Remove comment gap to try to satisfy typedoc

* Ensure ivs are always set

* fix: fun-and-games me to use typed array

* Add new tests for array utilities

* Update type of ivs in save-data.ts

* Update part-timer-encounter.test.ts

* Convert uses of StatusEffect[] to Uint8Array

* Update ssui to use uint8array for ivs

* Revert use of typed arrays

* Move `nil` to @types/common

* Make more arrays readonly

* fix: remnant change to immune effects

* Even more array improvements

* Apply kev's suggestions from code review

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

* address Bertie's comments from code review

* tests: remove undefined check for bigint array types

* fixup abilities.ts

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-06 12:21:58 -05:00
Sirz Benjie
bbd5aefc81
fix: camel case liquid ooze 2025-10-06 11:36:46 -05:00
Adrián T.
37b06a5b77
[Refactor] Automate namespace collection for en locale (#4625)
* create and use namespace-i18n-plugin.ts

* Changes to src/utils.ts to ensure correct importing by Vite plugins and extraction of the
amespaceMap constant to its own file.

* Added more comments for create help a new namespace

* create utils-plugins.ts and more docs

* console info appearance

* chore: handle merge conflicts

* chore: run biome

* add biome to namespace map dropped after merge

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-10-06 11:15:05 -05:00
Dean
7ce2aa3ed9
[Bug] Liquid Ooze can now properly be suppressed (#5535)
* Fix applying even when suppressed

* Rewrite move/ability effects

* Fix using defender instead of attacker when applying magic guard

* Add test

* Unchange move effect phase

* Kev fixes

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

* Fix liquid ooze test

* Fix hithealattr apply method

* Fix test

* Move checks to canApply

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-06 11:00:08 -05:00
Sirz Benjie
219cfb04cb
[Refactor] [Ability] Initializing abilities now uses a builder class (#6534) 2025-10-06 10:40:26 -05:00
Sirz Benjie
fc6cf8b907
[Misc] update root REUSE.toml 2025-10-05 16:10:05 -05:00
Sirz Benjie
d367e77e37
fix: forced stab move not using proper weights 2025-10-05 10:49:17 -05:00
NightKev
f482e8d3d7 [Dev] Add NODE_ENV = beta to beta deploy workflow
Hopefully this will force it to actually build in beta mode
2025-10-05 06:45:02 -07:00
NightKev
f7fd72b08c
[Dev] Don't use "production" mode for beta server (#6616)
* [Dev] Don't use "production" mode for beta server

* Fix `build` command in `package.json`
2025-10-05 06:33:57 -07:00
Sirz Benjie
f4456f6c7c
[Dev] Improve typescript performance and version bump node and dependencies (#6627)
* Add caching for test matchers types to improve ts performance

* add skipLibCheck to tsconfig.json

* Bump package versions

* Move tm species map to its own file

* Turn on ts-nocheck in pokemon-level-moves

* Move initBiomes to own file

* Add types to methods in ME encounter phase utils

* Fix spacing

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-04 19:29:23 -05:00
Bertie690
a13ea90e46
[Misc] Rename Pokemon.isMoveRestricted to hasRestrictingTag (#6628) 2025-10-04 18:41:18 -05:00
Sirz Benjie
11d6753257
bump locales 2025-10-04 10:13:25 -05:00
Sirz Benjie
9dac3f5f60
bump assets 2025-10-04 10:08:17 -05:00
NightKev
c31adf9e7b
[Balance] Enemy trainer Pokemon will have friendship based on the wave
https://github.com/pagefaultgames/pokerogue/pull/6617

The formula is `round(max friendship * (current wave / 200))`
where the max friendship value a Pokemon can have is `255`
and `current wave / 200` represents a % value based on
how far in the game you are
2025-10-03 12:09:35 -04:00
Sirz Benjie
35da617d0b
[Bug][Ability] Tangling Hair / Gooey now work when its user faints
https://github.com/pagefaultgames/pokerogue/pull/6618

fix: add bypass faint to tangling hair and gooey
2025-10-02 23:01:11 -07:00
Sirz Benjie
95b31c4cc6
Bump assets version 2025-10-02 23:00:45 -05:00
Bertie690
8db3f2c4fd
[Refactor] Cleaned up various battler/arena tag move attributes (#6201)
* Removed Mortal-spin exclusive `LapseTagAttr`

* Removed unused parameter from `addBattlerTagAttr`

* Actually removed mortal spin attribute

* De-janked params of `addBattlerTagAttr`

* Significantly cleaned up `RemoveArenaTrapAttr` and `RemoveScreensAttr`

* Added `toHaveArenaTagMatcher`

* Finished up fixing up tidy up tests; removed matcher to go to its own PR

* Reverted file

* Update move.ts

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

* Update move.ts

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

* Fix `RemoveScreensAttr`

* Update move.ts

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

* Update move.ts

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

* Update move.ts

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

* Update move.ts

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

* Fixed type error

* Ran Biome

* Update arena.ts

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

* Ran biome

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-02 19:59:33 -07:00
Sirz Benjie
2a9e4e5ebb
[AI] Prevent ai from using moves guaranteed to fail due to the weather (#6613)
Prevent ai from using moves guaranteed to fail due to the weather
2025-10-02 21:37:00 -04:00
damocleas
0da202c26e
[Balance] Rival Fight Rework (#6603)
* Basic Implementation of new Rival Fights

* Set abilities for birds, Set levels for slots 3-5

* Left an accidental TODO

* Remove duplicate Paldea Tauros

* Allow species in getRandomPartyMemberFunc to be an array

* Use switch statement instead of if/else chain

* docs: add doc comments

* Misc cleanup

* Misc cleanup

* Implement superior rival fight teamgen

* Remove latent console logs from other PR

* Fix unrelated typo in pokemon-move-no-pp

* Tweak type overlap logic

* Fix off-by-one-error for limits

* Address Kev's comments from code review

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

* Fix typo

* Fix docs in `rival-party-config.ts`

* Add missing default in doc in `rival-team-gen.ts`

* Update src/ai/rival-team-gen.ts

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

* Update src/ai/rival-team-gen.ts

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

* Address Kev's comments from code review

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

---------

Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@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-10-01 23:45:50 -04:00
Madmadness65
68f65da233
[P2 Bug] [Balance] Fit initBiomes incorrectly getting evo level threshold (#6612)
* [P2 Bug] Fit initBiomes incorrectly getting evo level threshold

The evolution level threshold wasn't applying correctly to the biome entries of Pokemon that evolved via evolution items (so anything with a level 1 "requirement"), this has been fixed. The evolution delay for certain Pokemon has been lowered, as it it was compounding with their existing level requirements, making their evolutions take way too long to happen. The values were lowered to match the intended levels the Balance Team desired. The outputPools function has also been run, updating all the levels of the Pokemon with set evolution delays.

* Remove evo delay

* Improve clarity for mantyke evo level

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-10-01 22:34:58 -05:00