Commit Graph

6062 Commits

Author SHA1 Message Date
NightKev
0086773cad Remove leftover @ts-check from typedoc.config.js 2025-12-23 15:06:48 -08:00
Bertie690
3e2f5f1065
[Dev] Move jsconfig.json to repository root (#6861)
* [Dev] Move `jsconfig.json` to repository root

* Renamed command to say "typecheck js" instead of just scripts

* exclude everything in assets

* Update jsconfig.json

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

* Update jsconfig.json

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* Update jsconfig.json

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-23 15:02:10 -08:00
Bertie690
bcfa87ce79
[Refactor] Add utility method PokemonMove#isOutOfPP (#6863)
* [Refactor] Add utility method `PokemonMove#isOutOfPP`

* Update src/data/moves/pokemon-move.ts

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-12-23 22:26:42 +00:00
Bertie690
1c8ebbeed5
[Misc] Remove unused FieldPreventExplosiveMovesAbAttrParams interface (#6878) 2025-12-21 05:23:22 +00:00
Blitzy
2e04e62965
[Balance] Misc TM Changes + Removals (#6815)
* Ice Types now share Hail + Snowscape

* comment out cut and frustration

* Remove Veluza, add Hisui Avalugg to Hail

* Gen 1 Indigo Disk update and Politoed I guess

* More TM additions

* More changes, fix Malamar's name

* Update tm-species-map.ts

* Remove Cut and Frustration
2025-12-20 15:56:15 -08:00
Bertie690
f317ec9a26
[Bug] Avoid pre-emptively leaving the field when forcibly switching out
https://github.com/pagefaultgames/pokerogue/pull/6874

* [Bug] Avoid pre-emptively leaving the field when forcibly switching out

* Fix `SwitchPhase` off-by-one error

* Add check for pokemon fainting in test

* add test for destiny bond crash

* Fix `queueDeferred` not respecting pending `FaintPhase`s

TL;DR we would defer the faint phases to run after the switch sequences, which is wrong - leaving the field has to be the LAST thing that happens in a given turn (or else shit breaks big-time).

* Update test/moves/u-turn.test.ts

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-20 15:55:23 -08:00
damocleas
8e38d88046 assets and version bump 2025-12-20 18:54:09 -05:00
Fabi
29d88d558c
[Balance] increase ai friendship scaling (#6879) 2025-12-20 15:46:13 -08:00
damocleas
95470b02c1
[Audio] Paradox Pokémon play theme when outside of End (#6621)
* Override music in End biome for Classic, add music in battle.ts for Paradox Pokémon

* Add additional property to if statement

Paradox Pokemon will play their intended music in Endless now.

* Don't change music for Paradox Pokemon in Endless

* Change `if` instead of adding `break`

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
2025-12-20 15:37:11 -08:00
Bertie690
7f2f163a9a
[Docs] Fix up docs related to move phase (#6862)
* [Docs] Fix up docs related to move phase

* Fix `MoveUseMode` invalid TSDoc linkcodes

* bulk suggestion

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-12-20 14:18:27 -08:00
Fabi
b1f482e22c
[Refactor] Remove BattleScene#eventManager (#6868)
* remove EventManager from battleScene

* remove `MockEventManager`
2025-12-20 12:49:00 -08:00
Madmadness65
fc42530ca3
[Sprite] Add snow to main menu during winter season (#6877) 2025-12-20 12:39:54 -08:00
Fabi
2256b57370
[UI] [Bug] Correctly update level after Weird Dream ME (#6876) 2025-12-20 12:36:42 -08:00
Bertie690
8ae898ec30
[Move] Update documentation for AddSubstituteAttr; fix Shed Tail incorrect error message (#6873)
* [Move] Update documentation for attribute; fix Shed Tail incorrect error message

* Add another test

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-20 20:26:51 +00:00
damocleas
b409dda695 [Sprite] Adjust Bug Type Superfan and Shady Vitamin Dealer visual presentation
With the changes to their sprites, both have had their visual presentation adjusted.
2025-12-20 14:51:03 -05:00
damocleas
75aa179503 update submodules 2025-12-20 14:39:07 -05:00
Lugiad
72329f003c
[UI/UX] Indonesian text position adjustments (#6875)
* Hindi Status icon placeholder typo fix

* Indonesian Ui adjustment
2025-12-20 15:07:07 +01:00
Madmadness65
a519e53925
[P3 Bug] Fix naming of banner (#6870) 2025-12-20 08:14:29 -05:00
NightKev
36b138333d [Test] Disable other flaky Delibirdy ME test 2025-12-19 21:50:01 -08:00
NightKev
407ad49a72 [i18n] Update locales submodule 2025-12-19 17:18:47 -08:00
NightKev
18dcde63d7 [Test] Disable flaky Delibirdy ME test temporarily 2025-12-19 15:58:28 -08:00
Madmadness65
8efc05904e
[Audio] Add winter title BGM loop point & play during winter season (#6864)
Add winter title BGM loop point & play during winter season

The winter title BGM will play during the entirety of December and the first half of January, regardless of if an event is happening or not.
2025-12-19 18:55:57 -05:00
Fabi
0cc3d2c566
[Bug] Charging moves no longer fail on last PP (#6867) 2025-12-19 15:26:21 -08:00
NightKev
e501a29942 [Misc] Update submodules 2025-12-19 15:24:18 -08:00
damocleas
6bcb8bc38a Update assets 2025-12-19 12:26:19 -05:00
Austin Fontaine
a1a1796f64
[Event] Add data for Winter Holiday 2025 event (#6860)
* Add data for Winter 2025 event
* Update timed-event-manager.ts
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-12-18 23:28:06 -05:00
NightKev
e888cbd6fb [Misc] Add missing word in TSDoc 2025-12-18 20:04:45 -08:00
Sirz Benjie
e8b1d0fd71
[Bug] Fix evil team admin randomization (#6830) 2025-12-18 19:41:32 -08:00
Bertie690
8f4243853d
[Refactor] Make phaseManager#unshiftPhase and #pushPhase variadic
https://github.com/pagefaultgames/pokerogue/pull/6776
2025-12-18 19:11:11 -08:00
Bertie690
c7bdfe7ed8
[Bug] Reset hit-related turn data inside MoveEndPhase (#6637)
* Reset hit-related turn data inside `MoveEndPhase` 
and remove `extraTurns` field

* Fixed FS edge case

* Fixed test hit count checks going past move end phase

* fixed PB tests

* Put `default` switch case last again
2025-12-18 19:07:48 -08:00
Lugiad
a6554acfe3
[i18n] Indonesian & Hindi addition (#6850) 2025-12-18 18:57:37 -08:00
NightKev
a47633a779 [Misc] Update submodules 2025-12-18 18:54:23 -08:00
Bertie690
49d89d469a
[Test] Cache arena tag matcher types; fix BattlerTag matcher distributiveness (#6821) 2025-12-18 18:52:23 -08:00
NightKev
4545f9aae3
[Misc] Remove | null from user param of PokemonAttackCondition
https://github.com/pagefaultgames/pokerogue/pull/6859
2025-12-18 13:54:38 -08:00
NightKev
e6de0fb95d
[UI/UX] Split login and register into separate menus (#6851)
* [UI/UX] Split login and register into separate menus

* Resize the container for the "Login" and "Register" buttons

* Make container width dynamic

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* Make logo position dynamic

* Apply suggestions

- Consolidate code in `LoginPhase`

- Use `truncateString` utility function in `form-modal-ui-handler.ts`

- Move login form to match location of register form

- Swap `x` values of username and download buttons

* Apply suggestions

---------

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-18 13:49:21 -08:00
Bertie690
b381d196cf
[Test] Improve error message + typing on toHaveUsedMove (#6681)
* [Test] Improve error message on `toHaveUsedMove`

* Fixed typing on test stuff + added caching on `toHaveArenaTagOptions`

* Fixed matcher breaking with single move arguments

* Fixed typing errors in `vitest.d.ts`

* Fixed typing importing from the wrong file

* Fixed wish test type errors

* Reverted type changes to battler tag matchers by request
2025-12-17 18:57:34 -08:00
Bertie690
f48ec4c51e
[Dev] Ensure i18n module is initialized immediately when imported (#6317)
* [Dev] Ensure `i18n` module is initialized immediately when imported

* Fixed missing await?

* Update src/main.ts

* Update init.ts

* Update src/main.ts

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

* Update src/plugins/i18n.ts

* Update trainer-config.ts

* ran biome & made `@module` comment

* Update src/plugins/i18n.ts

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

* Update src/plugins/i18n.ts

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

* Fixed import typo

* flubber

* Ran Biome

* foo

* Remove default re-export of `i18next`

* Update i18n.ts

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

* fixde import issues

* Move `i18n` initialization to `main.ts` from `init.ts`

* Remove some redundant & incorrect comments from `trainer-config.ts`

* Fix tests

* Apply Biome

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-12-17 18:39:30 -08:00
Bertie690
b2b8150856
[Dev] Add biome rules noProto and useFind (#6838) 2025-12-17 19:31:00 +00:00
Fabi
7280b997e8
[Docs] Dynamic copyright year in Typedoc footer (#6854) 2025-12-17 11:19:36 -08:00
NightKev
bde0f65eed
[Dev] Enable typechecking for Vite config files (#6853) 2025-12-16 21:36:39 -08:00
Bertie690
943ddf8afc
[Dev] Enable type-checking for typedoc.config.js (#6818) 2025-12-16 11:02:33 -08:00
Fabi
86c1c5f68d
[Bug] Stop AI from Terastallizing after reviving (#6848) 2025-12-16 00:18:36 -05:00
NightKev
0db8454af1 [i18n] Update locales submodule 2025-12-15 14:40:17 -08:00
damocleas
37fdb18391 Update Locales 2025-12-13 13:37:30 -05:00
damocleas
95c85f68af [Balance] Update Invalid Sketch Moves
- Removed Chatter, Revival Blessing, and Tera Starstorm from being invalid moves to be gained with the move Sketch

This seems to have been an oversight when implementing the list to work with the game, as there is no reason to restrict these with the game systems here.
2025-12-13 13:35:28 -05:00
NightKev
7456c11be1
[Refactor] Consolidate typings/ into @types/, and API types (#6823) 2025-12-10 00:31:41 -08:00
NightKev
fd92bcd2a4
[Deps] Update packages (#6841) 2025-12-09 20:33:21 -08:00
NightKev
c4b0199b3d
[Deps] Update jsdom from 27.2.0 to 27.3.0 (#6840) 2025-12-09 20:22:42 -08:00
NightKev
3f5c37c881
[Balance] The cost of buying same-species eggs can be reduced (#6837)
* [Balance] The cost of buying same-species eggs can be reduced

After hatching a certain number of eggs for a starter,
the cost of buying same-species eggs
for that starter will be reduced (up to 50%)

* Add test to validate array lengths for egg costs
2025-12-09 20:00:20 -08:00
NightKev
46df6adab3
[Ability] Poison Puppeteer now applies for abilities (#6836)
* [Ability] Poison Puppeteer now applies for abilities

When a target is poisoned due to an ability of a Pokemon that also
has Poison Puppeteer, Poison Puppeteer will now apply its effect

* Add tests for Poison Puppeteer

* Remove parameter properties from `ObtainStatusEffectPhase`
2025-12-09 19:48:28 -08:00