Commit Graph

5017 Commits

Author SHA1 Message Date
Bertie690
9815c5eebf
[Test] Revamped MockConsoleLog with color support (#6218)
* Added mock console and fixed up many many things

* Cleaned up handling of colors and such

* Added minor comment

* Fix Focus Punch test

* Fix typo

* Remove redundant comment

* Update vitest.setup.ts

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

* Added color map inside new folder

* Made constants not object bc i was told to

* Update src/constants/colors.ts

* Removed all moves init check

* Removed import

* Fixed up some stuff + added aquamarine color to settings helper

* Added logging for test end

* Removed intentionally failing test

* Fixed console log to use inheritance to not override vitest's wrapping

* Added a custom Vitest reporter to not log the test name every 2 lines

* Moved coloration to a hook to prevent misplacing things

* Fixed import issue by copypasting vitest soure

* Removed intentionally failing test

look i need to check that `test:silent` works on github ok

* Added REUSE annotations to copied parts of source

* Fixed import issue

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-07 09:18:47 -05:00
HeeMyung Kim
444080bb78
[UI] Add cyclic navigation in settings menu for LEFT/RIGHT buttons (#6404)
* feat: add cyclic navigation to settings menu

* review > refactor: use Phaser.Math.Wrap instead the ternary operator
2025-09-06 18:16:43 -05:00
Lugiad
39760a8514
[UI/UX] [Localization] Battle & Party UI translation (#6482) 2025-09-06 02:08:33 -07:00
Anthony
ad61a28e88
[Bug] Moody Can't Lower Stats at +6 (#6481) 2025-09-06 06:46:13 +00:00
HeeMyung Kim
ddc04a7a87
[Bug] [UI/UX] Fix random button activation bug (#6464) 2025-09-06 06:40:38 +00:00
Xavion3
3765f843db
[Refactor] Remove randSeedWeightedItem utils function. (#6492)
Remove randSeedWeightedItem utils function.
2025-09-06 06:12:32 +00:00
Bertie690
d630c106e0
[Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338)
* Improved typing on `BattlerTagData` and `ArenaTagData`
* Added dragon cheer/focus energy tests
* Cleaned up descs
2025-09-05 21:50:37 -05:00
Bertie690
309e31e196
[Bug] Future Sight no longer crashes after catching the user (#6479) 2025-09-05 14:38:01 -04:00
Bertie690
d5e6670456
[Refactor] Remove null from PhaseManager.currentPhase signature
https://github.com/pagefaultgames/pokerogue/pull/6243

* Added `toBeAtPhase` + removed `null` from phase manager current phase signature

* Removed bangs from various calls to phase manager

* Update phase-manager.ts

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

* ran biome

* Fix missing bang

* Simplify TSDoc

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-05 09:28:35 -07:00
Wlowscha
fce317a87a
[Documentation][Move] Add edge case to helping hand (#6340) 2025-09-05 09:21:28 -07:00
Fabi
ddde977a0a
[UI/UX] Auto focus first input field (#6413) 2025-09-04 02:31:52 -07:00
Fabi
e477c505bc
[UI/UX] Show correct able text when transferring all items (#6444)
* Check if items are able to transfer for `ALL` option

* show amount of transferable items in `ALL` option

* Show number of transferable items in the 'ALL' option

* Apply suggestions
2025-09-04 09:03:55 +00:00
Bertie690
669ed76daf
[Misc] Cleaned up implementation of ChargeMove mixin (#6466)
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-09-04 11:01:24 +02:00
Wlowscha
1a06010820
[UI/UX][Refactor] Remove redundant references to globalScene.uiTheme (#6472)
Removed most references to globalScene.uiTheme
2025-09-03 19:17:19 +02:00
NightKev
317e45ec75
[Dev] Simplify isLocal and add start:prod/start:beta (#6470)
- The constant `isLocal` now checks to see if `import.meta.env.MODE`
is `"development"` (which it is when running via `pnpm start:dev`)
instead of checking what URL is being used to access the client
(e.g. `"localhost"` or an IP address)

- Remove `start` from `package.json` and replace it with
`start:prod` (which runs `vite --mode production`) and
`start:beta` (which runs `vite --mode beta`)

`start:prod` -> `isBeta` and `isLocal` are both `false`
`start:beta` -> `isBeta` is `true` and `isLocal` is `false`
`start:dev` -> `isBeta` is `false` and `isLocal` is `true`

- Remove obsolete/unused `localServerUrl` and `apiUrl` constants
2025-09-02 19:49:45 -07:00
Sirz Benjie
4a28773929
[Bug] [Move] Fix poltergeist crash when no remaining enemies (#6473)
* fix: poltergeist crash with no target

* fix: adjust move phase history
2025-09-03 02:44:43 +00:00
Fabi
9fc31350f8
[Bug] Fix monotype selector image (#6471) 2025-09-03 02:07:40 +00:00
Lugiad
34430b4057
[UI/UX] [Localization] Summary UI translation (#6433)
* Summary UI Transaltion

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Summary UI Translation

* Remove unnecessary loading of en images when lang is not en

Consolidate duplicate code

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-09-02 03:25:41 +00:00
Sirz Benjie
fc85a168f5
Merge pull request #6469 from pagefaultgames/hotfix-1.10.6
Hotfix 1.10.6 to beta
2025-09-01 19:08:09 -05:00
Xavion3
bc0e2662fa Clean up bangs 2025-09-02 06:53:57 +10:00
Xavion3
eb8c0c0243 Add comment explaining bang 2025-09-02 06:53:55 +10:00
Xavion3
bd7de61a56 Improve error handling when playing unloaded sounds 2025-09-02 06:53:55 +10:00
NightKev
446908ae13
[Misc] Add " (Beta)" to site title and version display on beta (#6418) 2025-09-01 07:02:40 -07:00
Bertie690
17c28c4024
[Bug] Fix monotype challenge using unlocalized type names (#6438) 2025-09-01 05:57:46 -07:00
Xavion3
64ad2ee9c2 Make e4 not automatically recharge tera 2025-09-01 08:12:04 +10:00
AJ Fontaine
231cfd040c
[Balance] TM tier changes 1.10.6 (#6461)
* TM tier changes 1.10.6
2025-08-31 13:47:53 -04:00
damocleas
9a00bc2f10
Merge branch 'hotfix-1.10.6' into fix-enemy-level-position 2025-08-31 11:23:38 -04:00
fabske0
2a5e66d85f update pos 2025-08-31 17:17:25 +02:00
Lugiad
e0a752aa70
[UI/UX] [Localization] Korean and Chinese Visual Fixes (#6452) 2025-08-31 13:55:50 +00:00
fabske0
320641eaa2 fix position 2025-08-31 15:25:27 +02:00
Fabi
929f721ee0
[Bug][UI] Fix ribbon and status effect overlap (#6453) 2025-08-31 01:07:50 +00:00
Wlowscha
5c22d9ccac
[Bug] Pokemon not on the field can't be caught (#6454) 2025-08-31 00:54:35 +00:00
Sirz Benjie
264dd6b2d0
[Bug][Sprite] Ensure evo silhouette disappears in evo phase (#6450)
Ensure evo silhouette disappears in evo phase
2025-08-30 20:41:58 -04:00
Fabi
4dc067daa2
[Bug] [UI/UX] Fix options during item transfer (#6425) 2025-08-29 23:52:39 +00:00
NightKev
dadc7b9598
[Bug] Breaking a boss bar will no longer crash at max stat stages (#6440)
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-08-29 07:36:43 +02:00
Fabi
58ba29a1be
[Bug] Fix soak message i18n key (#6443) 2025-08-27 01:23:37 -07:00
Bertie690
1f2788a438
[Bug] Fix Soak message key not being in camel (#6439) 2025-08-26 20:47:12 -07:00
Xavion3
4b18ad74b3
[Balance] Adjust moveset generation weighting (#6387) 2025-08-26 16:47:51 -07:00
Sirz Benjie
443d747ad1
Merge branch 'main' into beta 2025-08-26 12:34:28 -05:00
Sirz Benjie
6745ce7839
Fix starterpref reset (#6430)
* Prevent an empty starterpreferences object from being saved

* Fix ssui nullish coalescing

* Update src/utils/data.ts

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

* Fix starter preferences clearing, add tests

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
2025-08-26 12:11:16 -05:00
NightKev
12142c0af7
Merge pull request #6424 from pagefaultgames/main
Merge main to beta
2025-08-26 01:23:58 -07:00
NightKev
701eecf947
Revert #6410 starter preferences hotfix (#6422)
Revert "[Bug] Prevent an empty starterpreferences object from being saved (#6410)"

This reverts commit c8a66b2e59.
2025-08-26 03:15:00 -05:00
NightKev
f2d46b666d
Merge branch 'beta' into hotfix-1.10.4 2025-08-25 23:59:42 -07:00
Wlowscha
63c1c34746
[Hotfix] Fix tyrogue evo (#6414)
* Fixed tyrogue evo condition

* Added test for tyrogue evolution

* Update src/data/balance/pokemon-evolutions.ts

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

* Update src/data/balance/pokemon-evolutions.ts

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

* Update src/data/balance/pokemon-evolutions.ts

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

* Added missing typeof in suggestion

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-08-26 06:57:11 +00:00
Sirz Benjie
88e42ba4c4
[Balance][ME]Tweak weird dream do a party heal in option 1, random tera, and no longer revive pokemon in hardcore (#6409)
* Tweak weird dream option 1

Transfer HP ratio and status onto transformed pokemon

* Make weird dream randomize tera type
2025-08-26 06:54:26 +00:00
AJ Fontaine
4aac5472a9
[Bug] Fix oversight where mons aren't guaranteed damaging moves if none are STAB (#6406) 2025-08-26 06:51:35 +00:00
Sirz Benjie
c8a66b2e59
[Bug] Prevent an empty starterpreferences object from being saved (#6410)
* Prevent an empty starterpreferences object from being saved

* Fix ssui nullish coalescing

* Update src/utils/data.ts

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

---------

Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
2025-08-25 23:48:55 -07:00
Bertie690
1b6a52e520
[Balance] Moved Future Sight after Weather, before berries (#6412) 2025-08-25 14:55:31 -07:00
Xavion3
e95450aa49
Imported systemdata always increments playtime (#6394)
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-08-25 23:17:16 +02:00
NightKev
dc31ae257a
Merge branch 'beta' into hotfix-1.10.3 2025-08-24 18:29:37 -07:00
Sirz Benjie
4b8c064335
[Bug] [Ability] Fix berserk multi proc (#6402)
* Fix berserk activating multiple times with multi strike

* Apply kev's suggestions from code review

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

* Update doc comments

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-08-24 19:47:52 -05:00
Sirz Benjie
6fac1a5052
[Bug] [Ability] Fix cute charm (#6399)
Fix cute charm not working
2025-08-24 17:49:28 -05:00
Sirz Benjie
a85d8cd5de
[Bug] [Sprite] Fix fusion shiny party icon (#6397)
* Fix shiny icon with fusion shiny in party

* Fix hover tooltip not working when first splicing a mon

* Fix fusion shiny icon on summary screen
2025-08-24 16:32:12 -05:00
Sirz Benjie
cd610ff2c5
[Bug] [Ability] Fix trace's RNG (#6398)
* Fix rng in trace

* Fix undefined var
2025-08-24 16:24:12 -05:00
Sirz Benjie
30b7a62988
[Bug] [Sprite] Fix third type icon missing texture (#6395)
Fix third type icon
2025-08-24 15:03:28 -05:00
Sirz Benjie
efaf7760e4
[Bug] Fix speedup/slowdown buttons not working properly (#6393)
Fix speedup button resetting to minimum speed
2025-08-24 14:34:21 -05:00
Bertie690
0f8b1f63b5
[Bug/Ability] Fixed bugs with Intimidate triggers after reload/initial switch (#6212)
* Added TODO test case + documentation for failing intim test

* Fixed comment

* Fixed intimidate bugs fr fr

* Update src/data/phase-priority-queue.ts

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

* Update src/data/phase-priority-queue.ts

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

* Cleanup remove phase logic

* Do not add unnecessary activateAbilityPhases for pokemon that do not have their passive enabled

* Remove leftover log messages

* Add TODO comment

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-08-24 14:09:16 -05:00
Sirz Benjie
049932c001
[Bug] Fix status effects overwriting each other (#6392)
* Ensure status effects from same source interaction cannot override each other

* Update test/status-effects/general-status-effect.test.ts

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-08-24 12:51:16 -05:00
Wlowscha
ae58f9de4f
[Hotfix] Leech Seed does not get cleared when user faints (#6388)
Lapsing leech seed tag even when source has left field
2025-08-24 08:58:27 -05:00
Sirz Benjie
cc066fc7d1
Merge branch 'beta' into hotfix-1.10.2 2025-08-23 19:13:49 -05:00
Sirz Benjie
746ea69475
[Bug] Fix missing fusion icon (#6381)
Fix nullish coalescing in `pokemon#isFusion`
2025-08-23 18:58:29 -05:00
Wlowscha
c44e589303
[UI/UX][Bug] Saving preferences when leaving ssui (#6376)
Save starter preferences when leaving ssui
2025-08-23 18:50:44 -05:00
Sirz Benjie
70b47945e8
[Bug] Fix nicknames not showing up in battle (#6378) 2025-08-23 23:47:39 +00:00
Sirz Benjie
842f0e88b0
[Bug] Fix saveslot deletion (#6380)
Fix saveslot deletion
2025-08-23 18:45:15 -05:00
Fabi
1192825d51
[Bug/i18n] Fix unpause evolution option in party ui (#6379) 2025-08-23 15:59:01 -07:00
Fabi
1b2c694084
[bug/i18n] Fix stealth rock message (#6377)
replace pokemonName with pokemonNameWithAffix
2025-08-23 17:26:12 -05:00
Bertie690
af963c7902
[Bug] Fixed delayed attacks pushing to move history twice on charging turn (#6371) 2025-08-23 16:00:00 -05:00
damocleas
cd137062ea
Fix Option 1 Leftovers text in Trash to Treasure encounter 2025-08-23 13:28:09 -04:00
Sirz Benjie
99bf639ea7
[Bug] [Move] Fix pollen puff (#6363)
* Ensure pollen puff does not heal enemy after damage

* Add test to ensure pollen puff does not heal enemy
2025-08-23 11:42:10 -05:00
Blitzy
873e12f9ad
[Balance] Clamperl Egg Moves / Passive Tweaks (#6365)
Clamperl changes
2025-08-23 11:42:02 -05:00
Sirz Benjie
053976daec
[Bug] Fix ssui passives (#6362)
Fix passives not being persisted in starter select
2025-08-23 11:41:30 -05:00
Sirz Benjie
908886d78b
Fix unpauseEvolutions key in party select 2025-08-23 11:23:15 -05:00
Fabi
3b290ee9a2
[UI/UX][Bug] Prevent switch to discard mode while transferring item (#6358) 2025-08-23 10:05:48 -05:00
Wlowscha
16adb02ad2
[Item][Bug] No more free sacred ash (#6356) 2025-08-23 10:00:27 -05:00
Sirz Benjie
3dd1948634
[Misc] Fix circular dep (#6361) 2025-08-23 10:00:00 -05:00
Wlowscha
e63effa311
[Challenge][Bug] Fix fresh starters for real (#6355)
* Including side evolutions of starters
2025-08-23 09:45:11 -05:00
NightKev
8b371395bc
[Bug] Fix typo in i18n key for second Berries Abound ME option (#6354) 2025-08-23 09:43:56 -05:00
Wlowscha
e752e7a93d
[Bug][Item] Items can be transfered from 6th item slot again. (#6357)
* Added check for transferMode
2025-08-23 09:43:33 -05:00
NightKev
961d30f75e
[Bug] Wild Pokemon can now generate as female again (#6352) 2025-08-23 09:42:41 -05:00
NightKev
4ac1a5739c
[Misc] Remove unused generateGender method from Pokemon (#6353) 2025-08-23 09:59:59 -04:00
Wlowscha
7050e15267
[Challenge][Bug] Partial Fix Available starters in fresh start monotype (#6344)
Full fresh start filter also accepts evolutions

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-08-22 22:09:30 -04:00
Madmadness65
cdf470c06c [Item] Minor item weight change for Deep Sea items
Halved the weight of the items in the Great tier.
2025-08-22 20:59:01 -05:00
Sirz Benjie
abd9ebbdef
[Bug] Fix egg gacha 10x pull option working with just one voucher (#6349)
Fix 10x egg gacha being usable with only 1 voucher
2025-08-22 20:52:50 -05:00
Wlowscha
7af128f68a
[UI/UX][Bug] Setting shiny preferences before saving (#6348)
Setting shiny preferences before saving
2025-08-22 20:50:38 -05:00
Wlowscha
342eb33138
[UI/UX][Bug] Fix typos in trainer class keys (#6347)
* Fixing "fenale" typo

* Changing "key" to key
2025-08-22 18:12:38 -07:00
Sirz Benjie
6361762fc9
[Bug] [UI/UX] [Beta] Fix visibility of egg moves in ssui (#6343)
Fix visibility of egg moves when backing out of fresh start and back into ssui
2025-08-23 01:25:27 +02:00
damocleas
254d34fd08
[Misc] [UX] Add Daily Run Achievement, Re-Arrange Achievements, Replace some Icon Sprites (#6292)
* wip achievement changes

* Adjust egg image sizes, re-export item atlas

* painful eggs

* Add egg to legacy UI, re-export item atlas

* run biome

* Update achievement.test.ts

* Fix achievement test file

* Fix tera stellar missing icon path

* Fix achievement test file

* egg s

* Optimize new images, re-export item atlas

* update pngs and locale

* add daily achv and other sorting

* Optimize ribbons, re-export item atlas

* Bump to version 1.11.0

* more changes, waiting on pngs

* Update package.json

* ribbon fixes

* images!

* Optimize images, re-export item atlas

* final fix

---------

Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-08-22 19:21:17 -04:00
damocleas
5ee547a39a
[Balance] [ME] Trash to Treasure Option 1 Adjustment (#6341)
* Update trash-to-treasure-encounter.ts

* Update trash-to-treasure-encounter.test.ts tests
2025-08-22 17:37:16 -04:00
Bertie690
c3cce668fc
[Misc] Moved scrapeTrainerNames to a script; removed selfStatLowerMoves (#6258)
* Removed scrape trainer names

* Removed `selfStatLowerMoves`

* Update move.ts

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

* Started work on the script again

* Made script actually work

* Made finishing touches on script

* Fixed main repo code to not expect snake cased locale strings

* Update trainer.ts

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

* Remove biome ignore range

* Fix typedoc.json

* rename `getRandomLocaleKey` to `getRandomLocaleEntry`

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-08-22 16:09:33 -05:00
Sirz Benjie
edeb116ead
[Bug] Ensure MEs disabled in a challenge mode only do so while challenge is active (#6337)
* Ensure MEs disabled in a challenge mode only do so while challenge is active

* Optimize checking disallowed challenges
2025-08-22 15:27:55 -05:00
Blitzy
fae6620bae
[Beta] [Balance] Even More 1.10 Balance Changes (Egg Moves + Passive Changes) (#6339)
1.10 Egg Moves and Passives pt 3
2025-08-22 16:05:37 -04:00
Wlowscha
39b2d9865a
[Beta][Bug][UI/UX] Fix broken candy upgrades (#6322)
* Candy upgrades change permanent starter data again

* Updating cost icon and passive bg in starter select after buying pokédex upgrades
2025-08-22 09:52:44 -05:00
Sirz Benjie
01cd11e731
[Bug] [Beta] Fix trick room message (#6327)
Fix trick room's arena tag message
2025-08-22 09:46:50 -05:00
Wlowscha
6992a91819
[Challenge] No hardcore breeder (#6334)
Disallow expert breeder encounter in space

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-08-22 10:07:59 -04:00
Wlowscha
b9a46a6a26
Restricted party options for fainted mons in hardcore (#6336) 2025-08-22 09:00:13 -05:00
Bertie690
978f06427c
[Bug] Sheer Force no longer boosts Fickle Beam; Focus Energy gives +2 crit instead of +1 (#6331)
[Bug] Sheer Force no longer boosts Fickle Beam; Focus Energy correctly gives +2 crit stages instead of +1
2025-08-22 08:59:06 -05:00
Wlowscha
9c498003aa
[UI/UX] Always show starter's natures and ivs in evolution's dex entry (#6335)
Natures and ivs use starter's dexEntry
2025-08-22 08:57:45 -05:00
Wlowscha
187cd9e356
[Beta] Fresh Start no longer overrides IV unlocks (#6333)
Unpack ivs when copying dexData
2025-08-22 00:23:45 -07:00
NightKev
8904cfc37b
Revert #6307 "Remove duplicate animation json for ... variants" (#6332)
Revert "[Refactor][Sprite] Remove duplicate animation json for shinies, sprite-based variants (#6307)"

This reverts commit 7bdb62ed1d.
2025-08-21 22:38:38 -07:00
Blitzy
d8769d8051
[Beta] [Balance] Fix Wrong Teras in Trainer Config (#6326)
* Update trainer-config.ts
---------
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-08-21 19:24:20 -04:00