Commit Graph

598 Commits

Author SHA1 Message Date
autoactions 40a465aa79
Merge 15c9a9b10c into 10e0f9f0de 2024-12-21 13:48:20 -08:00
github-actions[bot] 15c9a9b10c Automatically optimize assets 2024-12-21 15:49:44 +00:00
damocleas e9d97db11b
Winter Holiday Event (#5015)
* Update trainer-victory-phase.ts

* Update starters.ts for event

* Update timed-event-manager.ts

* Event stuff

* Cleaning up

* Winter Holiday 2024 Banners

* Update timed-event-manager.ts

* Fix event banner

* Update trainer-config.ts

* FoF, BBound, weather changes

* Fix German Banner

* Add Iron Bundle to event encounters

* Update delibirdy-encounter.test.ts

* Update src/data/weather.ts

Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>

---------

Co-authored-by: AJ Fontaine <fontbane@gmail.com>
Co-authored-by: Lugiad <2070109+Adri1@users.noreply.github.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
2024-12-20 14:11:06 -08:00
NightKev 0022972be9 [i18n] Update locales submodule 2024-12-20 12:24:09 -08:00
NightKev 6ef15eca4a [i18n] Update locales submodule 2024-12-19 16:18:32 -08:00
NightKev 708e58d083 [i18n] Update locales submodule 2024-12-19 11:45:00 -08:00
autoactions b206ceee82 feat: Modify to pixel font 2024-12-18 21:41:06 +08:00
NightKev f6f29f0f66
[i18n] Update locales submodule (#4992) 2024-12-15 13:38:51 -08:00
Moka c6e80de1be
[Misc] 1.3.0 bump version + locales update (#4956)
* bump version + update locales
2024-12-02 21:15:43 +01:00
innerthunder e930536efe
[Move] Implement Powder (with edge case) (#3662)
* Powder basic implementation

* Add Powder integration tests

* Fix thaw test

* Use new test utils and type check function

* More edge case tests

* Make Powder (P)

* Add locale keys

* Add placeholder common anim

* Use CommonAnimPhase instead of async animation

* Add comments with new English text

* Make Powder `edgeCase` instead

* ESLint

* Fix imports

* Add `moveName` key arg for other languages

* ESLint

* Update locales

* Fix pages issues

* Update Powder explosion animation

* Update common-powder.json

* Update src/test/moves/powder.test.ts

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

* Remove lingering TIMEOUTs

* More test cleanup

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-12-01 14:27:55 -08:00
Madmadness65 34cb234159
[Audio] Replace Forest track with custom BGM by Andr06 (#4924) 2024-11-29 17:57:12 -08:00
Moka 4d341bf1fd
[Sprite] Add fixed Skorupi and Parasect front sprites (#4944)
* [sprite] add fixed Parasect front sprite by Kieran

* [sprite] add fixed Skorupi front sprite by Kieran

* [sprite] fix shiny skorupi fusions
2024-11-29 13:25:50 -08:00
chaosgrimmon 6442b8345f
[Sprite] Index spritesheets to load faster (#4907)
Reduces the size of files significantly by changing the .png encoding format.
2024-11-18 21:46:33 -05:00
Moka 77b94bf45d
bump version to 1.2.0 and update locale submodule to latest commit (#4884) 2024-11-16 16:46:02 +00:00
innerthunder cebedd220b
[Balance] Rework Multi-Lens (#4831)
* Rework Multi-Lens

* Multi-Lens integration tests

* Apply suggestions from code review

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

* Fix obsolete tests related to Multi-Lens

* Fix flaky unburden tests

* maybe fix flaky ceaseless edge test?

* Fixed Multi-Lens apply comment

* Fix ceaseless edge test for real this time

* Update locales

* Another locale update

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-11-11 14:56:16 -08:00
chaosgrimmon f2a2281ff1
[Sprite] Implement female icon assets for Meganium and Doduo + Torchic lines (#4841)
* [Sprite] Implement more female icons

* [Sprite] Add female Doduo/Dodrio icons

* [Sprite] Add female Meganium icons

* [Sprite] Add female Torchic line icons

* [Sprite] Add female Meganium icons

* [Sprite] Add female Torchic line icons

Identical to male counterpart icons
2024-11-10 14:37:21 -05:00
AJ Fontaine de4ec5e1cb
[Feature] [Item] Add Catching Charm item (#4811)
* Add catching charm item

* Add Catching Charm item

* Disable catching charm in item pool when dex isn't full enough

* Replace catching charm icon

---------

Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
2024-11-09 14:38:45 +08:00
Frederico Santos 5601bb14ec Locales update 2024-11-07 21:21:30 +00:00
Mason S c31657d952
[Refactor] Reduced nesting in MoveEffectPhase (#3541)
* Re-structured MoveEffectPhase.run() to reduce nesting and improve readability.

* Re-structured MoveEffectPhase.run() to reduce nesting and improve readability.

* Added Substitute Implementation

* Fix indentation, tsdocs, add `public`/etc

* Prevent ENEMY_SIDE targeted moves from occurring twice in double battles

* Add `override` to `start()` and `end()`

* Minor indentation fix

---------

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-11-02 22:55:15 -04:00
Lugiad abc9264b3d
[Localization] Spanish modification form es to es-ES (#4753)
* Update and rename statuses_es.json to statuses_es-ES.json

* Rename statuses_es.png to statuses_es-ES.png

* Update and rename types_es.json to types_es-ES.json

* Rename types_es.png to types_es-ES.png

* Update i18n.ts

* Update settings.ts

* Update settings-display-ui-handler.ts

* Update starter-select-ui-handler.ts

* Update utils.ts

* Update settings-display-ui-handler.ts

* Update loading-scene.ts

* Update timed-event-manager.ts

* change remaining 'es' to 'es-ES' in various UIs

* change halloween event banner from es to es-ES

* update to latest locale commit

---------

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
2024-10-31 21:54:05 +01:00
Madmadness65 5755180279
[Audio] Replace Graveyard BGM with Firel's custom BGM (#4765) 2024-10-30 21:48:09 -04:00
pom-eranian 5797f265a4
[Sprite][hotfix] Fixed cropping on 658 static greninja and ash greninja (#4743)
* [Sprite][hotfix] Fixed cropping on static greninja and ash greninja

* bump version number
2024-10-28 02:32:36 +00:00
chaosgrimmon 33f5f4c33b
[Sprite] Hotfix cut off Binacle sprite (#4741)
* Trim 688.json duration

* Trim 688.json duration

* Fix cut off Binacle back

* Fix cut off shiny Binacle back

* Bump version

* Bump version

* Revert cutting off hair

* Revert cutting off hair

* Remove trailing comma

* Remove trailing comma
2024-10-27 23:23:09 +01:00
Madmadness65 4fb1f37baa [Sprite] Fix Berry Juice item sprite
Sprite will now be centered properly.
2024-10-26 16:13:05 -05:00
pom-eranian 4be0214d5a
[fix] added missing rare icons for spinarak, ariados. added to icon sheet (#4729) 2024-10-26 21:09:19 +01:00
pom-eranian 39362389c7
[Sprite] October Variant Update (#4608)
* 40 Wigglytuff (base fix) @ hanniel

* 39 40 174 variant icons

* 39 40 174 - Variant Palettes

* 359 - Absol Mega Absol [Base Fixes] - @ rival_kieran

* 359 Absol Variant icons

* 359 Absol Variant palettes

* 359 Absol  [_masterlist.json]

Enabled variants for absol & mega absol

* [Sprite][Anim] 275 Shiftree- cropped ear fix - @hamez

* Honchcrow Murkrow [Base fixes]

* Murkrow Honchkrow - Icons for variant & female murkrow

* 198 430 Murkrow Honchkrow Variants [Epic Rare]

* [fix] 359 - masterlist - removed ghost entry for exp absol

* 527 528 Woobat Swoobat [Epic Rare] @ rival_kieran

base fix on  woobat back, swoobat front, back
palette files for front, back
added to masterlist
variant icons

* [fix] masterlist -removed incorrect entry

* 590 591 Foongus Amoongus @ Omniv

variant icons
variant palettes
fixes for base front and back

* 587 Emolga [Rare Epic] @ bagonganda

icons variants
front back base fix
variant palettes

* [fix] masterlist  Added missiing variants.  Added Qwuilfish variants

Qwilfish icons
variant palettes

Enabled variants for pokemon in title.
39 40  174 Jigglypff Wigglytuff Igglybuff
587 Emolga
211 Qwilfish

* 377 378 379 486 894 895 Regirock Regice Registeel Regigigas Regieleki Regidrago @greenninja757 @_vari_ @splashceles @gonfold @sphinx_sage

variant icons
variant palettes
base fixes for regigigas, regieleki & registeel
added all to masterlist

* 684 685 Swirlix Slurpuff [Rare Epic] - @ gerolau

* 682 683 - Sprizee Aromatisse [Rare Epic] - @ Koda_want_to_sleep

* 378 Regice [Base shiny + replacement] - @ Vari

* 501 502 503 6503 - Oshawott Dewott Samurott [Base Fix Rare Epic] - @Omniv @yepitscaio

* 152 153 154 - Chikorita Bayleef Meganium [Base Fix Rare Epic] - @ corsola_bandit

* 807 Zeraora [Epic Rare] - @ luckyluckylucky

* 194 195 Wooper Quagsire [Rare Epic] - @ OfficerPorkchops

cleaned up wooper's face
variant icons
added to masterlist
palette files

* 616 617 Shelmet Accelgor [Base fix, Rare, Epic] - @ Vari

shelmet base fixes
variant icons
variant palettes
added to masterlist

* 588 589 Karrablast Escavalier [Rare, Epic] - @ Vari

variant palettes
variant icons
added to masterlist

* 170 171 Chinchou Lanturn [Rare, Epic] - @ thetruegge

variant icons
variant palettes
added to masterlist

* 158 159 160 Totodile Croconaw Feraligatr [Rare, Epic] - @ Dingosig @ Ashhawk

variant icons
variant palettes
added to masterlist

* [128] Tauros [Rare Epic] - @ Bibble

variant icons
variant palettes
added to masterlist

* 509 510 Purrloin Liepard [Basefix, Rare, Epic] - @ MeganiumOpus

variant icons
variant palettes
base fix 510 liepard
added to masterlist

* 390 391 392 Chimchar Monferno Infernape [Base Fix, Rare, Epic] @ hanniel.15

base fix all
variant icons
variant palettes
added to masterlist

* [fix] masterlist erroneous value on chinchou, lanturn

* 455 Carnivine [Base Fix Rare Epic] - @ hamez

base fix for front, back
variant icons
variant palettes
added to masterlist

* 944 945 Shroodle Grafaiai [Base fix, Shiny fix, Rare, Epic] - @ Vari

* 167 168 Spinarak Ariados [Rare, Epic] - @ Thorn @ wormhood

* 676 Furfrou [BaseFix Rare Epic] - @ gerolau

* Variant removed 509 510 Purrloin Liepard

This reverts commit 90ab203708.

* 621 - Druddigon [Rare Epic] - @ Koda_want_to_sleep

variant palettes
variant icons
added to masterlist

* Fix misplaced Gen4 variant icons

* Remove misplaced Gen4 variant icons

* More icon fixes

- Shiny Milotic antenna recolour
- Shaded variant Eevees and added Partner variants
- Swapped Golbat common and rare
- Added variant Centiskorch and Gmax

* Move misclassified Gen9 icons

Also fixes a stray pixel on Fuecoco.

* 102 103 2103 Exeggcute Exeggutor [Rare. Epic] - @ clickonflareblitz

variant palettes
variant icons
added to masterlist

* 276 277 Taillow Swellow [BaseFix Rare Epic] - @ peng06

variant icons
variant palettes
base fixes on all spritesheets
added to masterlist

* [QoL] reordered key for 6713 exp

* reformat of masterlist with less whitespace

* 1012 1013 Poltchageist, Sinistcha

icons, variants, base fixes, my sanity

* 172 Pichu [basefix rare epic]

* 26 raichu [basefix rare epic]

* 25-gmax pikachu [basefix rare epic]

* 25 raichu [basefix] added missing female back

* 25-beauty-cosplay pikachu

* 25-tough-cosplay pikachu [epic rare]

* 25-smart-cosplay pikachu

* 25-cute-cosplay pikachu

* 25-cool-cosplay pikachu

* 25-partner pikachu

* 25 pikachu

* 25-cosplay pikachu

* 2026 alolan raichu  [basefix rare epic]

* 25 pikachu - corrected icon colors, shiny correct colors

* 25 other icons

* 656 657 froakie frogadier

* removed variant images included in commits for  25 26 172 2026, 1012 1013, 656 657

* [masterlist] added 25 26 172 2025 pikachu raichu pichu a-raichu

* [masterlist] added 1012 1013 poltchaageist sinistcha

* [masterlist] added 656 657 froakie frogadier [GRENINJA MISSING]

* 688 689 Binacle Barbaracle [Base Fix, Rare, Epic] - @ saltedcarriemel

replaced front static by first frame of exp
base fixes
variant palettes
variant icons
added to masterlist

* [658] ash-greninja static front variants

* 658 greninja, ash greninja [rare epic]

base fixes
animation standardized front / back
variant palettes
variant icons
added to masterlist

* [fix][icons]  torchic, combusken, blaziken gender icons

* [fix] 658 corrected color error

white on knees

* Updated variant icon sheets

* Reverted override file pushed By Mistake

WHY WAS IT THERE.

* [fix] icon sheet v1 - removed ".png" from file names

---------

Co-authored-by: chaosgrimmon <31082757+chaosgrimmon@users.noreply.github.com>
2024-10-26 18:06:07 +01:00
Frederico Santos 51b2a4d7fe
Something (#4728)
* [Feature] Add event-based friendship multiplier and update TrainerConfig for event modifiers

* [UI][Dev] Improve event banner placement (#4726)

* [ui] automatically place event banner and timer in the title screen

* add new event banner

* ugh

* [Refactor] Clean up TrainerConfig and remove unused timed event

---------

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
2024-10-26 17:14:17 +01:00
chaosgrimmon 6418f46bf7
[Sprite] Fix transparency of pixels on Fletchinder (#4720)
* [Sprite] Front Fletchinder

* [Sprite] Back Fletchinder

* [Sprite] Shiny front Fletchinder

* [Sprite] Shiny back Fletchinder
2024-10-25 16:02:05 -07:00
Frederico Santos a50763cd89 updating locales 2024-10-25 23:29:20 +01:00
Opaque02 a2419c4fc3
[Misc] Add admin for (un)linking 3rd party accounts (#4198)
* Updated admin panel to allow the concept of unlinking accounts

* Don't look too hard at this commit, nothing to see here

* Admin stuff

* Fixed linking and unlinking and updated menu options

* Undid some changes and cleaned up some code

* Updated some logic and added some comments

* Updates to admin panel logic

* Stupid promises everyone hates them and they deserver to die

* Promise stuff still

* Promises working thanks to Ydarissep on discord - pushing with debug code before it decides to stop working again

* Removed debugging code

* All discord functionality seems to be working here?? Not sure what happened but yay

* Fixed up some bugs and code

* Added registered date to the panel

* Fixed and updated some minor error message related stuff

* Minor changes

* Fixed some minor bugs, made the save related errors have error codes, and added updated icons

* Updated search field error

* Missed a couple of things to push

* Fixed linting and doc errors

* Revert dev related code and clean up dev comments

* Reverting utils

* Updating front end to match back end from Pancakes' comments

* make getFields and getInputFieldConfigs a single function of FormUiHandler

* remove outdated doc

* Apply suggestions from code review

Moka review changes

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>

* Added docs

* eslint fixes

* Fixed error not showing up in certain conditions

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: MokaStitcher <millennium.stitcher@gmail.com>
Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>
Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2024-10-23 22:00:07 +02:00
Moka a13550ec44
[Balance][ME] Various ME Balance changes (#4700)
* balance changes and updates to various MEs

* fix import to new item

* fix import to new item

* Update src/data/mystery-encounters/utils/encounter-pokemon-utils.ts

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

* Update src/phases/select-modifier-phase.ts

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

* Update src/modifier/modifier.ts

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

* Update src/modifier/modifier.ts

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

* revert item atlas changes

* eslint

* revert 'revert item atlas'

* update locale repo to latest commit

* Fix fiery fallout missing argument

* [balance] Training session ME does not update Seen/Defeated GameStats

* [balance] update Weird Dream ME maximum spawn wave

* [ME] update CombinationRequirements to allow AND or OR combinations

* refactor: CombinationPokemonRequirement `.Some()` and `Every()`

* chore: rename `orRequirements` to `requirements`

* fix: returns of `Some()` and `Any()`

* apply `Some()` / `Any()` pattern to `CombinationSceneRequirement` too

* revert 'offer you can't refuse' giving Silver Pokeball'

* Apply code review suggestions

* [me] Weird Dream: apply same old gateau logic to team in options 1 and 2

---------

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
Co-authored-by: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2024-10-23 21:46:57 +02:00
schmidtc1 958d79140c
[P2] Fixes Transform/Imposter not updating type/battle stat changes immediately; set move PP to 5 when transforming (#3462)
* Adds updateInfo to transform move/ability, mirrors Transform functionality in Imposter

* Implements functionality for reducing pp to 5 or less for each move when transforming

* Refactors to async/await pattern, adds back removed anims/sounds from last commit

* Eslint fix attempt

* Update src/data/ability.ts

per DayKev's suggestion

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

* Merge and fix conflicts

* Adds unit tests for pp-change with transform/imposter

* Updates to consistency in syntax/deprecated code

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-23 11:12:53 -04:00
Lugiad 75a114a89f
[Localization][UI/UX] emerald-pro font update (#4697)
* Add files via upload

* Delete public/fonts/pokemon-emerald-pro.ttf

* Rename pokemon-emerald-pro2.ttf to pokemon-emerald-pro.ttf
2024-10-20 22:45:12 -04:00
MokaStitcher e6c06d57be
[P All][Bug] Various ME bugfixes (copy) (#4695)
* Mystery Encounter bugfixes

* more ME bug fixes

* update allowed pokemon in ME requirements

* some unit test cleanup and general tidying

* fix null exception on isBattleMysteryEncounter

* clean up tsdocs and fix pokemon hasAbility check

* fix double battle crash in challenge mode with a single eligible pokemon

* apply suggestions from PR#4619's code reviews

* revert fix for Keldeo crashes + implement fix suggestion from PR #4619

* fix session migration for PokemonCustomData

* prevent test failure due to keldeo fix

---------

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
2024-10-20 22:55:07 +01:00
Frederico Santos 5c70ab238e
Merge pull request #4684 from pagefaultgames/main
Main -> Beta
2024-10-18 21:53:21 +01:00
Lugiad 3ea459746a
[Localization] [UI/UX] Italian Type and Status icons (#4673) 2024-10-16 14:53:25 -04:00
Madmadness65 c04d81bd65
[Ability] Allow Power Construct to transform 10% PC Zygardes (#4626)
* Allow Power Construct to transform 10% PC Zygarde

* Add additional test for 10% PC Zygarde
2024-10-15 15:02:30 -04:00
pom-eranian f0cc1fc88b
[Sprite] Hisui Goodra, Sliggoo, Shiftry (#4642)
* [Sprite][Anim] 275 Shiftree- cropped ear fix - @hamez

* 705 6706 Sliggoo Hisuian Goodra [Color Fixes] - @ rival_kieran

- Fix to Kalosian Sligoo (705). Front exp should now use shaders properly.
- Fix to all of Hisuian Goodra's base sprites + Variants to allow them to use shaders properly (as they didn't before). .json file included.
- Fix to Hisuian Goodra's back static Rare Variant which used colors from the Epic variant on accident on cheeks + spots and drips.
- Hisuian Goodra's eyes on Variant (Rare, Epic) exps were mapped to the wrong color compared to the statics, this has been fixed.
- All images should be indexed.

* Set variants to palette, removed old files
2024-10-11 16:08:39 -04:00
flx-sta 39cebb76d0
[Bug] i18n messages files fix (#4611)
* fix matching for i18n messages files

* update public/locales head
2024-10-08 13:30:48 -04:00
chaosgrimmon 9bb6398385
[Sprite] Fix stray pixels in Kirlia's animation (#4612)
* [Sprite] Fix Kirlia padding bleedover

* [Sprite] Fix shiny Kirlia padding bleedover
2024-10-08 11:03:47 -04:00
chaosgrimmon 1226ab37e1
[Sprite] Compress Bronzor animation (#4593)
* [Sprite] Compress Bronzor front animation

* [Sprite] Compress Bronzor back animation

* [Sprite] Compress shiny Bronzor back animation

* [Sprite] Compress shiny Bronzor front animation
2024-10-06 17:29:39 -04:00
Frederico Santos c2c41d9be8 Update subproject commit reference for locales 2024-10-06 02:49:03 +01:00
flx-sta 42b75e8440
[Qol] Make i18n money formatter controlled by translators (#4550)
* fix: i18n money formatter

* fix wrongful console.warn on i18n money formatter

* update locales submodule

update reference to `56eeb809eb5a2de40cfc5bc6128a78bef14deea9` (from `3ccef8472dd7cc7c362538489954cb8fdad27e5f`)
2024-10-05 23:01:41 +02:00
chaosgrimmon 2c97b2bda2
[Sprite] Fix variant Farigiraf icon names (#4572) 2024-10-04 10:51:29 -04:00
Jannik Tappert 5f700590be
[QOL] Have Friendship Value be shown in summary (#4490)
* Have Friendship Value be shown in summary

* Fix how "fill" of icon is calced

* Update src/locales/de/pokemon-summary.json

* Actually add the images

* Add correct image files

* Update src/ui/summary-ui-handler.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

* Update src/ui/summary-ui-handler.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

* Update src/ui/summary-ui-handler.ts

* Update src/ui/summary-ui-handler.ts

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>

* Made changed suggested in code review

* Update src/locales/en/pokemon-summary.json

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>
2024-10-03 10:34:29 -04:00
Frederico Santos c46507d49b [Update] Update subproject commit reference in locales 2024-10-02 01:58:28 +01:00
Frederico Santos 5e151f5604
[Refactor] External locales (#4529)
* Removed local translation files

added translations submodule

[Enhancement] Add post-merge command to update submodules in lefthook configuration

[Enhancement] Add postinstall script to install lefthook after package installation

[Enhancement] Update postinstall script to run post-merge command after lefthook installation

* Add subproject commit for locales directory

* Remove translation team assignments from CODEOWNERS

* Add recursive submodule checkout to workflow files and update README for translations

* fix: run without locales present (#4539)

some code was hard-wired with  locales having to be present. This is no longer the case now

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-10-01 23:41:09 +01:00
flx-sta 95386861bb
[Qol][Refactor] i18n lazy-loading (#4327)
* move: locales files to `/public` (from `/src`)

* install: i18next-http-backend module

* implement: i18next language lazy-loading

* remove: all `config.ts` files (for locales)

* disable: enConfig import in i18next.d.ts

* remove: console.log from utils.camelCaseToKebabCase()

* remove localization tests

we don't need to test if i18next is working.
This is the job of i18next itself

* mock i18next for tests

* fix: tests that have to use the i18next key now

instead of the english translation

* fix: absolute-avarice-encounter test

* fix: loading mystery-encounter translations

with lazy-load

* fix: 2 mystery encounter translation loading

* replace: i18next mocks any vi.fn() calls

* fix: new namespace usage in ME tests

now using "mysteryEncounters/..."

* fix: delibirdy encounter not being language specific

the encounter was checking if the modifier name includes `Berry` which is only true for english. Instead it has to check if the modifier is an instance of BerryModifier

* fix: the-expert-pokemon-breeder

the new i18n pattern requires a different namespacing which has been adopted

* fix: GTS encounter tests

* add: `MockText.on()`

* fix: berries abound test

* chore: apply review suggestion

from @DayKev

* update i18next.d.ts

* chore: fix i18next.d.ts

* fix: `dialogue-misc` switchup between `en` and `ja`

* move: `SpeciesFormKey` into enum

there was an issue with circular dependencies

* replace: `#app/enums/` with `#enums/` for `SpeciesFormKey` imports

* re-sync locales from `beta`

* rename: `ca_ES` -> `ca-ES`

* rename: `pt_BR` -> `pt-BR`

* rename: `zh_CN` -> `zh-CN`

* rename: `zh_TW` -> `zh-TW`

* fix loading Species-Form-Key in poemon-evo.

* update: i18next `supporterLngs` ...

and remove `nonExplicitSupportedLngs`

* fix: `${namespace}.` -> `${namespace}:`

thanks @MokaStitcher
2024-10-01 21:55:16 +01:00
pom-eranian 160b730921
[Hotfix] Revert "[Sprite] 451 - Skorupi Animation Fix " (#4535) 2024-10-01 15:24:08 -04:00
ImperialSympathizer 5997744aa2
[Beta][Bug] Major/minor ME bug fixes (#4451)
* major/minor ME bug fixes

* potential fix for failed save with rental pokemon

* Update src/system/game-data.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>

* Update src/system/game-data.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>

* more bug fix cleanup and PR feedback

* fix Uncommon Breed ME crash

* real fix to Fun and Games force switch issues

* add isBattleMysteryEncounter() helper function

* add isBattleMysteryEncounter() helper function

* fix unintentional replace all errors

* fix catches not updating dex

---------

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-09-26 18:43:28 -04:00