Commit Graph

5196 Commits

Author SHA1 Message Date
Sirz Benjie
ebb0135c0e
Move construction of stats and type icons to their own methods 2025-05-28 12:26:56 -05:00
Sirz Benjie
8936ab1870
Update src/ui/battle-info/battle-info.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-28 12:26:56 -05:00
Sirz Benjie
8c11df69e3
Ensure ribbon and caught indicator fade with stat display 2025-05-28 12:26:55 -05:00
Sirz Benjie
4a0d008887
Ensure hp number display fades in/out 2025-05-28 12:26:55 -05:00
Sirz Benjie
970f6841db
Address kev's review comments
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-28 12:26:54 -05:00
Sirz Benjie
4abe3ea566
Remove undefined parameter pass
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2025-05-28 12:26:54 -05:00
Sirz Benjie
9afdd037fc
Make summary-ui-handler use new shinyDescriptor method 2025-05-28 12:26:54 -05:00
Sirz Benjie
c6644cb64a
Update src/utils/common.ts
Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-05-28 12:26:53 -05:00
Sirz Benjie
a912ff223a
Ensure pokemon hp numbers are not visible during stat display 2025-05-28 12:26:53 -05:00
Sirz Benjie
bcfe629db5
Fixup setSizeToFrame mock 2025-05-28 12:26:52 -05:00
Sirz Benjie
4922f8cb62
Minor cleanup of updatePokemonExp 2025-05-28 12:26:52 -05:00
Sirz Benjie
1eacc667e5
Use getShinyDescriptor in pokemon-info-container 2025-05-28 12:26:52 -05:00
Sirz Benjie
6be61e5414
Add missing chain usage 2025-05-28 12:26:51 -05:00
Sirz Benjie
04664f17bd
Add some docs 2025-05-28 12:26:51 -05:00
Sirz Benjie
411e4896e7
Use phaser object chaining methods 2025-05-28 12:26:50 -05:00
Sirz Benjie
5180991689
Remove hp info handling from base updateInfo 2025-05-28 12:26:50 -05:00
Sirz Benjie
971113c3d7
Breakup updateInfo into smaller parts 2025-05-28 12:26:50 -05:00
Sirz Benjie
2b20203f1b
Move setMini to pokemoninfo 2025-05-28 12:26:49 -05:00
Sirz Benjie
386ce7ee2d
Remove hp bar segment dividers from base battle info 2025-05-28 12:26:49 -05:00
Sirz Benjie
13cead1d31
Break up initInfo into different methods 2025-05-28 12:26:48 -05:00
Sirz Benjie
2628b324f0
Move EnemyPokemon specific init Logic to its class 2025-05-28 12:26:48 -05:00
Sirz Benjie
2687ce2535
Make flyout exclusive to EnemyBattleInfo 2025-05-28 12:26:48 -05:00
Sirz Benjie
95c7d34009
Cleanup enemybattleinfo constructor to use chaining 2025-05-28 12:26:47 -05:00
Sirz Benjie
b65399bb3d
Move icon construction to its own function 2025-05-28 12:26:47 -05:00
Sirz Benjie
438c2cba39
Create getShinyDescriptor function in utils 2025-05-28 12:26:46 -05:00
Sirz Benjie
d69fc04188
Make statOrder specific to subclass 2025-05-28 12:26:46 -05:00
Sirz Benjie
1f14325ac7
Fixup mock gameobject methods to match phaser gameobject returns 2025-05-28 12:26:46 -05:00
Sirz Benjie
ec3a54273d
Move subclass specific parts of constructor to subclass constructor 2025-05-28 12:26:45 -05:00
Sirz Benjie
3baaffd057
Move player and enemy battle info to their own files 2025-05-28 12:26:45 -05:00
Sirz Benjie
596f9b89ea
Create battle-info directory and move battle-info.ts to it 2025-05-28 12:26:40 -05:00
damocleas
eb0937a09b
Hotfix 1.9.5 to Beta
Hotfix 1.9.5 to beta
2025-05-27 23:57:16 -04:00
Lugiad
c236996a02
[UI/UX] [Localization] starterInfoText adjustments and clean up (#5859)
* starterInfoText adjustments and clean up

* starterInfoText adjustments and clean up

* Update starter-select-ui-handler.ts

* Update starter-select-ui-handler.ts

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-05-27 22:08:49 +00:00
Sirz Benjie
2deced5565
[Bug][Move] Allow gastro acid to suppress passives if main ability is unsuppressable (#5854)
* Allow gastro acid to suppress passives if main ability is unsuppressable

* Update gastro_acid.test.ts

* Update src/data/moves/move.ts

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

* Add test to ensure unsuppressable main ability is not suppressed

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-27 16:46:56 -05:00
Sirz Benjie
6c676f1f11
[Misc] Add decrypt-save.js utility script (#5731)
* Add decrypt-save.js

* Update scripts/decrypt-save.js

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>

---------

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2025-05-27 20:41:06 +00:00
NightKev
68dddbc424
[Dev] Enable Biome checking of pokemon.ts (#5720)
* [Dev] Enable biome parsing of `pokemon.ts`

* Apply unsafe fixes

* Add + apply rule disallowing the use of the `integer` type alias

* Fix typo in comment; remove unnecessary `!!`

* Re-apply Biome after merge

* Re-apply Biome "unsafe" fixes after merge

* Fix import

* Add comment to `getFusionIconAtlasKey` too
2025-05-27 07:50:54 -07:00
NightKev
a98f897591 [Bug] Fix Dipplin's weight (was mistakenly set to the lbs value) 2025-05-27 05:02:58 -07:00
Wlowscha
65a90a3a8d
[UI/UX] Party UI handler refactor (part I) (#5821)
* Splitting process input for menu into its own function

* Making logic for return button more expressive

* Breaking up processOptionMenuInput

* Extracting filterResult logic from processInput

* Inverting order of several conditional checks (if the function always returns after seeing the summary option, may as well check for it straight away...)

* Moving edge case for release option into processReleaseOption

* Splitting up options for when selectCallback is present

* Added some TODOs for later

* Extracted setOptionsCursor function

* Extracted updateOptionsWindow()

* Changing options so that each case is completely separate (almost)

* Added some TODOs

* Reorganizing option processing

* Fixed Baton Pass; logging for testing

* Fixed case of switching out by selecting the Pokemon command

* Clearing options when switching out

* Changed condition on switch for clarity

* Updating TODO

* Fixed options not clearing after item transfer

* Splitting up processing of transfer and move recall mode; ensuring that the cancel option works properly

* Breaking up processInput()

* Removed some redundant playSelect

* Cleaned up some TODOs

* Added private to all new methods

* Apply 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-05-27 04:12:29 -07:00
NightKev
999cbf911e [Bug] Fix Pichu form weights (61.5 -> 2) 2025-05-27 03:56:52 -07:00
NightKev
b803f6f18a [i18n] Update locales (#5875) 2025-05-27 03:34:20 -07:00
Sirz Benjie
e053ead67c [Bug] Fix crash caused by switching in a transformed pokemon (#5864)
* Force reset summon data and load assets prior to switch in

* Update src/phases/switch-summon-phase.ts
2025-05-27 03:34:14 -07:00
AJ Fontaine
8410aee3a1 [Sprite] Fix Cacturne and Kyurem variants 2025-05-27 03:34:02 -07:00
Madmadness65
a0484bbde1
[Item] Add Deep Sea Scale & Deep Sea Tooth items (#5078)
* Add Deep Sea Scale & Tooth items

Also changes Clamperl's evolution method from gender-specific to requiring one of the Deep Sea items to be held.

* Move Deep Sea items to Great tier

Also gives every species stat booster item a `rare` boolean to split these items from the rest of the species stat booster items. Updated the existing tests accordingly to account for the split.

* Reduce Great tier species booster item weight

* Fix global scene on evolution conditions

* Merge branch 'beta' into deep-sea-items

* Change how the held item is found in evolution condition

It should no longer look through the entire party's modifiers when seeing if Clamperl is eligible to use a Linking Cord.

* Fix wrong type being boosted

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-05-23 07:36:30 +00:00
Lugiad
3b2753f27c
[i18n] Moved Ball "Cancel" label to a different locale file (#5866) 2025-05-22 20:14:52 -07:00
pom-eranian
da6cdaf187
[Sprite][Color][QoL] Removed unchanged entries in variant json (#5765)
* Removed unchanged color entries (front)

* Removed unchanged color entries (back)

* Removed unchanged color entries (exp)

* Removed unchanged color entries (exp back)

* Removed unchanged color entries (female front, back, exp)
2025-05-22 03:25:07 +00:00
Sirz Benjie
f0e806c508
[Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
Sirz Benjie
9dedf7548b
[GitHub] Make tests skip if no filters are matched (#5744)
* Make tests skip if filters are matched

* Tweak filter path

* Make thing checkout thing

* Change where workflow is skipped

* Change where workflow is skipped

* Update github test filters

* Update test-filters.yml

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-05-21 19:05:09 -05:00
Madmadness65
ebac2d1126
[Sprite] [P3 Bug] Fix Wishiwashi's shadow appearing broken (#5815)
Fix Wishiwashi's shadow appearing broken

Cropped all of Wishiwashi-solo's frames from 96x96 to 50x50, then re-exported the atlases. This fixed the shadows appearing broken in the animation.
2025-05-21 20:38:24 +00:00
Sophia
d1b0bbb155
[Bug]: Fix #5010: roar and whirlwind missing fail message when against a trainer (#5659)
* [BUG] Fixes #5010 Roar and Whirlwind don´t display a fail message
Roar and Whirlwind should now display a fail message when
used against a trainer with only one pokémon left

* Apply suggestions from code review made by SirzBenjie
2025-05-21 07:14:16 +00:00
AJ Fontaine
3c934808c0
[Sprite] Fix T1 shiny Eternatus not animating in consistent, remove unused exp for Giratina Origin (#5802)
Remove Origin Giratina exp, fix consistent shiny Etern

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-05-21 03:42:17 +00:00
damocleas
4a39adacf8
[UI/UX] Remove Redundant Unlock Passive text (#5845)
* Update starter-select-ui-handler.ts

* Update pokedex-page-ui-handler.ts
2025-05-21 03:05:39 +00:00