Commit graph

96 commits

Author SHA1 Message Date
Sirz Benjie
8216a379bf
[Dev][GitHub] Update to node 22 (#5586)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
Biome Code Quality / Run linters (push) Waiting to run
Tests / Run Tests (push) Waiting to run
* Update node and workflows to use version 22.14

* Update @types/node package

* Update engines field in package.json

* Hardcode node version in github pages workflow

* Update to checkout@v4 in github pages workflow
2025-04-14 12:37:26 -05:00
NightKev
1b79d1f832
[Refactor] Re-implement save migration system (#5634) 2025-04-07 22:53:35 +00:00
NightKev
7b38596a12
Sync locales and update version to 1.8.4 (#5620) 2025-04-02 19:37:48 -07:00
Wlowscha
c6721521ab
[BUG] Fix broken forms of Pichu starter (#5616)
* Unlock base Pichu form when catching a Pikachu form

* Implementing migrator for broken Pichu forms
2025-04-02 19:59:31 -04:00
damocleas
d92bf29030 [i18n] Update locales submodule and 1.8.2 bump 2025-04-02 00:25:05 -04:00
Sirz Benjie
6477be99f5
[Misc] Rollback phaser update (package-lock.json) (#5603)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
Biome Code Quality / Run linters (push) Waiting to run
Tests / Run Tests (push) Waiting to run
Update package-lock.json
2025-04-01 01:34:47 -05:00
damocleas
13b118454c Update package-lock.json 2025-04-01 01:27:42 -04:00
damocleas
fd40bb50e9 Update beta to 1.8.1 2025-03-31 22:54:15 -04:00
Madmadness65
3d9aea7d71 Update version number 2025-03-31 19:00:47 -05:00
Sirz Benjie
451b1f6b08
[Misc] Update packages (#5462)
* Update via `npm audit fix --force`

* Update i18next family

* Update typescript family

* Update vite-tsconfig-paths

* Update jsdom to 26.0

Important! Security fixes, and performance/stability improvements.

* Update @stylistic/eslint-plugin-js to 4.1.0

* Update inquirer to 12.4.2

* Remove commented code and defunct import

* Run npm-audit fix

* Fix ts errors

* Update eslint family

* Update phaser family

* Update eslint plugin

* Update rest of imports
2025-03-29 22:13:50 -05:00
Sirz Benjie
35e733e87a
[Test] [Refactor] [GitHub] Enable no isolate for vitest (#5566)
* Reuse global scene between tests

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>

* Add missing each method to mockContainer

* Fix select-modifier-phase test

* Sanitize overrides before tests

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>

* Sanitize overrides before tests

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>

* [WIP] fix things

* Fix tests not working with --no-isolate

* Update npm tests to use no isolate

* Update test-shard-template

* Update package.json

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

---------

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-28 17:30:38 -04:00
Sirz Benjie
408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00
Xavion3
632caff2f3
[Bug][Hotfix] Fix migration crash (#5482)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
2025-03-05 13:58:51 -08:00
damocleas
659bc82676 [i18n] Up version to 1.7.6, Update locales submodule 2025-03-02 12:19:17 -05:00
Wlowscha
942bcacb56
[Bug][Hotfix] Restrict Use Candies option in the Pokédex during Shop (#5446)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
2025-02-28 16:22:22 -05:00
AJ Fontaine
13429446d3
[Bug] Fix tera slot wrapping (#5437)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2025-02-28 06:18:58 +00:00
Xavion3
b33ffb29b3
[Bug] Fix mycelium might softlock (#5441) 2025-02-27 19:08:55 -08:00
Wlowscha
5941cfb001
[Bug][Hotfix] Fix bug with transferring all items (#5440) 2025-02-28 02:49:27 +00:00
Blitzy
9701f27c63
[Bug] [Hotfix] Remove Penny's Extra Zamazenta (#5439)
Co-authored-by: damocleas <damocleas25@gmail.com>
2025-02-28 02:05:11 +00:00
Xavion3
0913c77140
Update version number for migration code (#5354) 2025-02-16 18:07:09 -06:00
AJ Fontaine
7b9d1d6570
[Hotfix] Fix crash involving female Pyroar fusions with exp sprites (#5331)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
* Fix crash involving female Pyroar fusions with exp sprites

* Update locales submodule
2025-02-14 18:51:41 -08:00
Xavion3
77fbcc70ef
[Bug][Hotfix] Fix fusion with dual type + monotype with shared primary type. (#5322)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
* Fix fusion with dual type + monotype with shared primary type.

* Update version number

* Add test case
2025-02-14 02:40:13 -05:00
Wlowscha
d159901ea1
Updated version 2025-02-14 03:03:58 +01:00
Wlowscha
7611061378
Updating version 2025-02-14 02:15:24 +01:00
Sirz Benjie
3fd5414f5c
[Misc] Increment version number (#5317)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2025-02-13 15:37:54 -08:00
dependabot[bot]
a941533a13
Bump vite from 5.4.8 to 5.4.14 (#5275)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.8 to 5.4.14.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.14/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.14/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-08 11:49:02 -08:00
dependabot[bot]
e29b8937f2
Bump vitest and @vitest/coverage-istanbul (#5276)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and [@vitest/coverage-istanbul](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-istanbul). These dependencies needed to be updated together.

Updates `vitest` from 2.0.4 to 2.1.9
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.1.9/packages/vitest)

Updates `@vitest/coverage-istanbul` from 2.0.4 to 2.1.9
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.1.9/packages/coverage-istanbul)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
- dependency-name: "@vitest/coverage-istanbul"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-08 11:48:47 -08:00
NightKev
f38393e64f
Revert "[Hotfix] Adding warning message for the maintenance" (#5278)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
* Revert "[Hotfix] Adding warning message for the maintenance (#5263)"

This reverts commit c88c9337dd.

* Update version to 1.5.4
2025-02-08 12:22:29 -05:00
Wlowscha
c88c9337dd
[Hotfix] Adding warning message for the maintenance (#5263)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
* Adding warning message for the maintenance; needs localization

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

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

* Update language codes

* Add French translation

Co-authored-by: Lugiad <2070109+Adri1@users.noreply.github.com>

* Fix variable typo in French translation

* Add `zh-CN`

Co-authored-by: Lugiad' <2070109+Adri1@users.noreply.github.com>

* Add `zh-TW`

Co-authored-by: Lugiad' <2070109+Adri1@users.noreply.github.com>

* Add `ja`

Co-authored-by: Lugiad' <2070109+Adri1@users.noreply.github.com>

* Add `es-ES`

Co-authored-by: Lugiad' <2070109+Adri1@users.noreply.github.com>

* Improve date localization

* Specify 12h/24h time format for each language

* Mark the temporary announcement code with comments

* Add `ko`

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* Move announcement box 10 pixels to the left

* Update korean translation

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* Added German translation

Co-authored-by: Lugiad' <2070109+Adri1@users.noreply.github.com>

* Removed some useless spaces in maintenance message

* Reduced announcement font size by 2 px

* Adding italian, fixing japanese

* Use English message as placeholder for pt-BR for now

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Lugiad <2070109+Adri1@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
2025-02-06 21:17:36 -07:00
AJ Fontaine
8d20b7b5e0
[Hotfix] Fix event encounters not evolving (#5206)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
Your snakes shall now evolve properly, wahoo!
2025-01-28 18:53:07 -07:00
NightKev
7563a6cd0b [Misc] Update version number to 1.5.1 2025-01-28 16:24:01 -08:00
NightKev
996ce5d986
[Misc] Update version to 1.5.0 (#5175)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2025-01-24 21:06:57 -08:00
Amani H.
355e70328c
[Misc] 1.4.3 Version Bump + Locales Update (#5077)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2025-01-03 18:27:26 -06:00
NightKev
14902cdb60
[Hotfix] Prevent Keldeo from changing forms in Daily Run (#5060)
* [Hotfix] Prevent Keldeo from changing forms in Daily Run

* Update patch version
2024-12-30 20:20:23 -08:00
AJ Fontaine
8457fb96fe
[Hotfix] Fix off-by-one error for event encounters (#5022)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
* Fix off-by-one error for event encounters

* Increment version to 1.4.1

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-12-20 18:41:07 -08:00
NightKev
ba28511046
Bump version number to 1.4.0 (#5013) 2024-12-20 12:25:34 -08:00
Moka
c6e80de1be
[Misc] 1.3.0 bump version + locales update (#4956)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
* bump version + update locales
2024-12-02 21:15:43 +01:00
Frederico Santos
8f053ea16f
[Feature] Add save download functionality with JSZip integration (#4945) 2024-11-28 02:01:48 +01:00
Moka
0c920ba195
[Hotfix] Prevent more Future Sight crash with new catches (#4910)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
2024-11-18 19:41:24 +01:00
NightKev
dd904fe782
[Hotfix] Prevent crash if enemy Future Sight user is caught (#4905)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2024-11-17 18:08:00 -08:00
Moka
77b94bf45d
bump version to 1.2.0 and update locale submodule to latest commit (#4884)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2024-11-16 16:46:02 +00:00
innerthunder
b4cc9d7892
[Hotfix] Fix crash when Mist would block a stat drop (#4746)
Some checks failed
Deploy Main / deploy (push) Has been cancelled
ESLint / Run linters (push) Has been cancelled
Github Pages / Github Pages (push) Has been cancelled
Tests / Run Pre-test (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
* Fix crash when Mist would block a stat drop

* Bump version

* Bump version (again)
2024-10-28 14:02:10 +01:00
pom-eranian
5797f265a4
[Sprite][hotfix] Fixed cropping on 658 static greninja and ash greninja (#4743)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
* [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)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
* 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
Moka
41380b39b9
[Hotfix] Fix manifest getting loaded before the game is initialized (#4739)
* Fix manifest being used before the game is initialized

* bump game version

* make manifest fix more future proof

* Revert "make manifest fix more future proof"

This reverts commit 32591b35d0.

* fix locales path for offline builds
2024-10-27 21:32:30 +01:00
PigeonBar
dfb42e44a6
[Hotfix] Fix Eternatus egg tier (#4734)
Some checks are pending
Deploy Main / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Github Pages / Github Pages (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
2024-10-27 04:04:57 +00:00
innerthunder
9a56f080db
[Hotfix] Fix status damage triggering before berry usage (#4732)
* Fix status damage triggering before berry usage

* Bump version number

* Revert "Bump version number"

This reverts commit 64b194f5a7.

* Bump version number for real this time
2024-10-27 02:34:48 +00:00
Amani H.
85b8ca6467
[Dev] Bump Game Version, Overhaul Version Migration (#4388)
Some checks are pending
Deploy Beta / deploy (push) Waiting to run
ESLint / Run linters (push) Waiting to run
Tests / Run Pre-test (push) Waiting to run
Tests / Run Tests (push) Blocked by required conditions
* Bump Version, Remove "Outdated" Message

* Fix `src/ui/ui.ts`

* Fix `src/system/game-data.ts`

* Clean Up & Organize Version Migration

* Rename Methods & Session Migration Adjustment

* Collapse Version Migrators to Single File as Arrays

* Address NITs

* Restructure Migration Initialization

* Fix Spacing, Increment to v1.6.0

* Revert Back to v1.1.0

* Add `gameVersion` to Mocked Game

* Add More Documentation

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-17 00:48:28 +01:00
innerthunder
0bd4d6c86b
[Move] Fully Implement the Pledge Moves (#4511)
* Implement Fire/Grass Pledge combo

* Add other Pledge combo effects (untested)

* Fix missing enums

* Pledge moves integration tests

* Add turn order manipulation + more tests

* Safeguarding against weird Instruct interactions

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

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

* Fix style issues

* Delete arena-tag.json

* Update package-lock.json

* Use `instanceof` for all arg type inference

* Add Pledge Move sleep test

* Fix linting

* Fix linting

Apparently GitHub has a limit on how many errors it will show

* Pledges now only bypass redirection from abilities

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-10-04 16:20:37 -04: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