Commit Graph

3009 Commits

Author SHA1 Message Date
flx-sta
c5886bc2a2
[Tests] add unit-tests for battle-stat.ts (#2752)
* add test coverage for battle-stat.getBattleStatName()

* add test coverage for battle-stat

* apply mockI18next() to status-effect.test.ts

* add testUtils jsdocs and optimize imports
2024-07-05 11:30:48 -04:00
Dakurei
42304070a0
Fix typos (#2805) 2024-07-05 10:06:25 +01:00
mercurius-00
a37593826b
[Localization] fix zh-cn typo in party-ui-handler (#2802) 2024-07-05 01:09:48 -04:00
Mumble
25a619708a
[BUG] Magic Guard-Spiky Shield Fix (#2803)
* Added new condition for PostDefendContactAbAttr

* Magic Guard-Spiky Shield interaction fix

---------

Co-authored-by: Frutescens <info@laptop>
2024-07-05 01:06:36 -04:00
sodam
ed80ad4bef
[Localization(ko)] fixed Magma/Galactic name mixup in bgm title (#2800) 2024-07-05 00:41:03 -04:00
Enoch
09ab89a2c3
[Localization(ko)] Translate missed thigs (#2797)
Co-authored-by: 송지원 <jiwsong@gmarket.com>
2024-07-04 23:12:57 -04:00
san98215
359644ee81
[Bug] Updated SacrificialAttrOnHit to account for the move failing (#2792) 2024-07-04 21:51:51 -04:00
José Ricardo Fleury Oliveira
fead078bc5
Localization: Add new translations for party UI handler (#2566)
* Localization: Add new translations for party UI handler

* fixes

* Update src/locales/fr/party-ui-handler.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/de/party-ui-handler.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* minor fix

* Update src/locales/fr/party-ui-handler.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/ko/party-ui-handler.ts

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

* change order and name of "Do what with this Pokémon?" message

* reverted imports

* update party-ui-handler translations for multiple languages

* Update src/locales/fr/party-ui-handler.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/de/party-ui-handler.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/de/party-ui-handler.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/zh_CN/party-ui-handler.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* minor fix

* pt tweak

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: returntoice <dieandbecome@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: returntoice <dieandbecome@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: returntoice <dieandbecome@gmail.com>

* Update src/locales/ko/party-ui-handler.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/es/party-ui-handler.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-07-04 21:40:11 -04:00
José Ricardo Fleury Oliveira
5ac5850082
Localization: Localize luck indicator text and shiny labels (#2644)
* feat: localize luck indicator text

* Localization: Localize luck indicator text and shiny labels

* Update src/locales/zh_CN/common.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/ko/common.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/de/common.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/es/common.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Update src/locales/fr/common.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

---------

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-07-04 21:34:18 -04:00
José Ricardo Fleury Oliveira
04d456a60e
Localization: Localized Gacha Machine Names (#2645)
* Localization: Localized Gacha Machine Names

* Update src/locales/zh_TW/egg.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/zh_TW/egg.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Update src/locales/de/egg.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/fr/egg.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/ko/egg.ts

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

* Update src/locales/zh_TW/egg.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/zh_CN/egg.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/es/egg.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Update Brazilian Portuguese translation for egg.ts

* added smaller text size option

* update egg.ts translations for German and Brazilian Portuguese

* some updates

* update egg.ts translations for Spanish and Brazilian Portuguese

* Update EggGachaUiHandler to use array.includes for language check

* update German translation for legendary egg gatcha

* Update src/locales/es/egg.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* update translations for egg.ts in Spanish and Brazilian Portuguese

---------

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
2024-07-04 21:26:56 -04:00
Mumble
2bfefa630b
[Bug] Added new condition for PostDefendContactAbAttr for Magic Guard and Iron Barbs/Rough Skin (#2793)
Co-authored-by: Frutescens <info@laptop>
2024-07-04 18:18:09 -04:00
Lugiad
696d8f27f5
[Localization] modifier-select-ui-handler Locales (#2527)
* Update modifier-select-ui-handler.ts

* Update i18next.d.ts

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

* Update src/locales/ko/modifier-select-ui-handler.ts

Co-authored-by: yun <97648143+ddullgi@users.noreply.github.com>

* Update src/locales/zh_CN/modifier-select-ui-handler.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/de/modifier-select-ui-handler.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update config.ts

* Update modifier-select-ui-handler.ts

* Update src/locales/pt_BR/modifier-select-ui-handler.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/es/modifier-select-ui-handler.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update modifier-select-ui-handler.ts [Localization(it)]

* Update src/locales/es/modifier-select-ui-handler.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Adaptive buttons and cursors

* Update modifier-select-ui-handler.ts

* Update modifier-select-ui-handler.ts

---------

Co-authored-by: yun <97648143+ddullgi@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Co-authored-by: hjh <j1441257360@163.com>
2024-07-04 16:40:54 -04:00
Lugiad
aeb0e0470a
[Localization] Update French dialogues + typos in general (#2724)
* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update dialogue.ts

* Update modifier-type.ts

* Update starter-select-ui-handler.ts

* Update pokemon-info.ts

* Update menu-ui-handler.ts

* Update berry.ts

* Update status-effect.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
2024-07-04 16:38:19 -04:00
flx-sta
538cb3eb5c
[QoL][Refactor] replace -1 with RELEARN_MOVE and 0 with EVOLVE_MOVE (#2779)
* replace `-1` and with `RELEARN_MOVE` and `0` with `EVOLVE_MOVE`

* add documentation for RELEARN_MOVE & EVOLVE_MOVE

* Update src/data/pokemon-level-moves.ts
2024-07-04 14:31:43 -04:00
sodam
aadaafba9d
[Localization] punctuation fix in descriptions in korean modifier-type.ts (#2789) 2024-07-04 14:03:01 -04:00
mercurius-00
dac3f76979
[Localization] fix line break for zh-cn moves (#2786) 2024-07-04 01:22:17 -04:00
Xavion3
49e5ad764c
Let eternatus keep stat changes when changing form (#2728) 2024-07-03 23:28:02 -05:00
José Ricardo Fleury Oliveira
a6091de5df
Update translation for "Lax" to "Frouxa" (#2784) 2024-07-03 22:53:14 -05:00
Xavion3
f4a1c83a7d
Fix several incorrect movesets (#2776) 2024-07-03 22:37:23 +02:00
Frederico Santos
e42c329adf
[Beta] Add deployment workflow for beta environment (#2595)
* feat: Add deployment workflow for beta environment

This commit adds a new GitHub Actions workflow file, deploy-beta.yml, which is responsible for deploying the application to the beta environment. The workflow is triggered on push and pull request events. It checks if the repository is 'pagefaultgames/pokerogue' before running the deployment steps. The deployment includes checking out the code, setting up the Node.js environment, installing dependencies, building the application, setting up SSH for secure communication, deploying the build on the server using rsync, and purging the Cloudflare cache. The deployment is only performed when the push event is triggered on the default branch.
It also changes the deploy.yml workflow to be triggered only when a release is generated.

* feat: Update deployment workflow for beta environment

* Update deploy-beta name

* chore: Update deploy-beta.yml to use 'f-fsantos:beta-environment' as the ref name

* chore: Update deploy-beta.yml to use 'f-fsantos:beta-environment' as the ref name

* chore: Update deploy-beta.yml to use '2595/merge' as the ref name

* chore: Update deploy-beta.yml to include event name in deployment message

* chore: Update deploy-beta.yml to use 'pull_request' event and '2595/merge' as the ref name

* chore: Update deploy-beta.yml to include SSH public key

* chore: Update deploy-beta.yml to include SSH public key

---------

Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-07-03 16:01:32 -04:00
AJ Fontaine
34058a57ed
Don't apply Classic bonus to friendship decreases (#2552) 2024-07-03 14:36:00 -05:00
Xavion3
ef5a29f9b2
Implement support for relearner only moves (#1667)
Currently only used by Zangoose
2024-07-03 21:13:25 +02:00
innerthunder
126174efe4
[Bug] Fix Grip Claw sometimes stealing from the wrong enemy (#2766)
* Fix Grip Claw stealing from the wrong enemy

* Document held item transfer modifiers
2024-07-03 14:48:41 -04:00
Adrian T
dad065cbae
[Ability] Fully Implement Steely Spirit (#2749)
* implement steely spirit

* add unit test

* cleanup

* cleanup and add another test
2024-07-03 12:55:39 -04:00
innerthunder
4c4e2bc792
[Bug] Fix evasion multiplier in hit check (#2765)
* Fix evasion multiplier in hit check

* Make Sand Veil test more future-proof
2024-07-03 12:49:12 -04:00
flx-sta
cc36cdb1a8
[Tests] add unit tests for accounts (#2748)
* add unit tests for accounts

* only import from vitest (not node:test)

* resolve comments

* improve test coverage for accounts.updateUserInfo

* add test coverage for account.initLoggedInUser()

* code style improvements
2024-07-02 22:00:44 -04:00
ReneGV
b16bd89f17
[bug][ui] Fix eternatus candy count and display hatched egg count (#2761)
* Display eternatus eggs

* Trigger Build
2024-07-02 21:54:59 -04:00
hayuna
13b23289d1
[Bug] Fix incorrect move effectiveness (#2757)
* Fix incorrect move effectiveness

* Casting variable should be enough
2024-07-02 12:20:45 -04:00
Amani H
6da5d9d6aa
[Bug] Thief Interaction with Species Stat Boosters (#2747) 2024-07-02 10:31:28 -04:00
schmidtc1
df18dd885d
[Bug] Adjusts bug bite/pluck to remove berry pouch preservation on opponent berries (#2047)
* Adjusts bug bite functionality when stealing from opponent with three berry pouches

* Adjusts bug bite functionality when stealing from opponent with three berry pouches

* Adjusts bug bite to remove berry pouch preservation on opponent berries

* Remove Promise<Boolean> where unnecessary

Leftover code removed from previous testing of the EatBerryAttr class.

* Remove undefined check on chosenBerry

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

* Update StealEatBerryAttr if-clause readability

Decrementing inside of an if-clause removed for readability. Changed to check: if count is 1, then remove modifier.

* Localization of StealEatBerryAttr battle message

* Fixes berry incrementing after improper adjustment to readability

* Fixes berry decrementing after improper adjustment to readability

* Update battle.ts

* Update src/locales/fr/battle.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update battle.ts properly

Incorrectly added localization in previous commit

* Remove unnecessary space

* Update src/locales/ko/battle.ts

I do not have experience with Korean, so this may need other review.

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* Rewrites EatBerryAttr to combine with StealEatBerryAttr

* Removes excess lines

* Revert and refactor StealEatBerry and EatBerryAttr

* Refactor for early returns instead of nesting

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-07-02 10:28:38 -04:00
Enoch
0bc4f26b9d
[Localization] localized status-effect.ts and translate. (#2528)
* make postposition not to dynamic for localize

* localize status-effect.ts

* added test code, modified english postposition, modifed toxic_orb test to make it always fix in English.

* Update src/locales/zh_CN/status-effect.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/fr/status-effect.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/de/status-effect.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/de/status-effect.ts

* added test code for check message key

* remove multi-language tests (except english)

* Update src/locales/pt_BR/status-effect.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* remove language and change test code to check method call and parameter

* Update src/locales/es/status-effect.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update src/locales/en/status-effect.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Apply review suggestion

* Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* add Test with empty string parameter

* Update src/locales/es/status-effect.ts

Co-authored-by: InnocentGameDev <asdargmng@gmail.com>

* Update src/locales/fr/status-effect.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
2024-07-02 10:22:46 -04:00
José Ricardo Fleury Oliveira
302ed8c1f1
Localization (pt): Added missing translations (#2745)
* Localization (pt): Updated missing translations

* fix line break
2024-07-02 01:59:16 -05:00
Jannik Tappert
fd54212b76
Added missing german translation (#2742) 2024-07-01 14:47:47 -04:00
mercurius-00
db27fd6336
[Localization]Fix line break for zh-cn abilities (#2737)
* fix line break for zh-cn abilities

fix line break for zh-cn abilities

* add newline

add newline
2024-07-01 11:06:03 -04:00
Yonmaru40
7d07755718
[Localization] various zh_cn translation fix (7-1) (#2734)
* Update ability-trigger.ts

* Update ability.ts

* Update battle.ts

* Update bgm-name.ts

* Update challenges.ts

* Update dialogue.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update move.ts

* Update move.ts

* Update pokemon-info.ts

* Update pokemon-info.ts

* Update splash-messages.ts

* Update starter-select-ui-handler.ts

* Update bgm-name.ts

* Update splash-messages.ts

* Update src/locales/zh_CN/battle.ts

级 → Lv.

* Update src/locales/zh_CN/modifier-type.ts

Co-authored-by: RimKnight <rimknight852@gmail.com>

* Update src/locales/zh_CN/modifier-type.ts

Co-authored-by: RimKnight <rimknight852@gmail.com>

* Update splash-messages.ts

---------

Co-authored-by: RimKnight <rimknight852@gmail.com>
2024-07-01 00:13:12 -04:00
innerthunder
f4c8f0080a
[Bug] Add user Pokemon check to multi-hit early stopping (#2726) 2024-06-30 15:21:23 -04:00
Franck TROUILLEZ
53ef64f61b
Revert "Allow to auto-bump the version and show version in title (#2307)" (#2723)
This reverts commit 1583fdc4cb.
2024-06-30 13:11:01 +02:00
Franck TROUILLEZ
1583fdc4cb
Allow to auto-bump the version and show version in title (#2307) 2024-06-30 13:03:05 +02:00
innerthunder
284c3c628b
[Unittest] Remove random berry effects from PBond tests (#2715) 2024-06-29 21:48:05 -04:00
innerthunder
d278df8fef
[Bug] Fix multi-hit moves persisting after sleep/freeze (#2712) 2024-06-29 17:30:10 -04:00
EmberCM
6cba5acfd0
[QoL] Remove money modifiers from last wave of classic (#2714) 2024-06-29 17:28:15 -04:00
innerthunder
a48429de09
[Bug] Fix Make It Rain applying stat change twice after KO'ing both opponents (#2696)
* Revert Make It Rain stat change behavior

* ESLint

* Add double KO unit test
2024-06-29 13:59:26 -04:00
NightKev
b82c85899e
[Unittest] Add tests for Tidy Up (#2667) 2024-06-29 13:56:38 -04:00
chaosgrimmon
bc94858c40
[Sprite] Fixes Busted Mimikyu variants and icons; Fixes #2683 (#2690)
* [Sprite] Gives Disguised form explicit identifier

`null` defaults to `disguised`, as is desired.

* [Sprite] Renamed Disguised form has exp sprites

* [Sprite] Add Busted Mimikyu to masterlist

* Rename static non-shiny front 778.png to 778-disguised.png

* static non-shiny front

* exp non-shiny front

* static non-shiny back

* exp non-shiny front

* static non-shiny back

* static shiny front

* static shiny front

* non-shiny icon

* exp non-shiny back

* shiny icon

* static var front

* exp non-shiny back

* exp shiny front

* exp shiny front

* exp shiny back

* static shiny back

* exp var front

* static var back

* Delete public/images/pokemon/variant/exp/778_3.png

* Delete public/images/pokemon/variant/exp/778_3.json

* exp shiny back

* exp shiny back

* rare icon

* epic icon

* exp var back

* static var front BUSTED

* static var back BUSTED

* exp var front BUSTED

* exp var back BUSTED

* [Sprite] Static Mimikyu Busted sprite fix

Fixes eyeholes on torso

* [Sprite] Exp Mimikyu sprite fixes

Fixes eyeholes on torsos

* Trim static shiny front sprite size

Addresses issue #2683

* [Sprite] Match static shiny Disguised w non-shiny

Addresses issue #2683
2024-06-29 13:54:02 -04:00
ReneGV
2dd8aaf31a
[miscellaneous] Create single variable for max pokeballs (#2698)
* Configure max pokeballs

* Rename variable
2024-06-29 13:52:30 -04:00
ReneGV
fd586ecd8e
[Bug] Fix purify (#2697) 2024-06-28 20:59:06 -04:00
Madmadness65
15671a6922
Add new custom biome music by Firel (#2681) 2024-06-28 11:26:06 -05:00
NightKev
924ee17f70
[Unittest] Fix mocked value in Volt Absorb test (#2685) 2024-06-28 12:13:25 -04:00
AJ Fontaine
96f72eae2f
[QoL] Don't offer ball rewards when you have max in Classic mode (#1677)
* Don't offer ball rewards past floor 189

* Remove balls from reward pool when you have max

* Change only applies to classic

* Function to weigh the player's balls

* Documented hasMaxBalls function

* More specific comment
2024-06-28 12:11:52 -04:00
José Ricardo Fleury Oliveira
cd73c37d4b
[Localization(pt)] Fixed translation inconsistencies for critical hit messages (#2676) 2024-06-28 10:33:06 -04:00
chaosgrimmon
51a107f1cf
[Sprite] Implement female Pyroar icon (#2682) 2024-06-28 10:15:04 -04:00
Madmadness65
d4856c34f1 Fix minor BGM title typos
"Marowak Dojo" was missing the "k" in their names.
2024-06-27 23:56:41 -05:00
NightKev
784035b6f5
[Unittest] Prevent berries from interfering with Dry Skin tests (#2679) 2024-06-28 00:55:09 -04:00
flx-sta
d5b1459422
[Docs] add some inline docs for boss segments logic (#2678) 2024-06-27 23:20:42 -04:00
mercurius-00
4f9bd85f57
[QoL] Add line break for chinese TM item name (#2677)
Add line break for chinese TM item name
2024-06-27 23:04:55 -04:00
Kang Jisoon
c9c1249995
[Localization] Quickdraw message to Korean (#2650)
* Update Localization ko quickDraw

* Add newline character
2024-06-27 22:34:07 -04:00
Lugiad
044b3bd9ab
Update French bgm-name.ts Update (#2673) 2024-06-27 19:29:26 -05:00
Madmadness65
67a21b8a94
[Enhancement] Add battle music for Koraidon & Miraidon (#2654)
* Add battle music for Koraidon & Miraidon

* German track title
2024-06-27 18:59:24 -05:00
Madmadness65
bacd5e939b
Fix Xerneas not changing from Neutral form (#2669) 2024-06-27 18:58:45 -05:00
flx-sta
384f6e1fee
[Bug] add flag to know if pokemon was populated from data-source to fix boss segments for endless double bosses (#2672)
also reverted previous change as this was breaking for non-session-restored fights
2024-06-27 19:55:27 -04:00
innerthunder
b2048148c9
[Bug] Fix Make It Rain not applying effect on KO (#2670) 2024-06-27 19:52:13 -04:00
mercurius-00
aa0d01f419
Add chinese splash text (#2656) 2024-06-27 18:24:49 -05:00
Jannik Tappert
68cd98042e
Evil Team Dialogue is no longer cut off (#2659)
* Giovannis Dialogue is no longer cut off in english

* Fixed the rest of the evil team dialogue

* Update src/locales/en/dialogue.ts

* Update French dialogue.ts

* Update French dialogue.ts

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-06-27 16:40:13 -04:00
José Ricardo Fleury Oliveira
5ec8bf1620
Localization: Localized error message for server connection issue (#2598)
* Localization: localized error message for server connection issue

* forgor about the portuguese translation

* Update src/locales/fr/menu.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* switched the chinese and portuguese translations

* Update src/locales/de/menu.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/zh_CN/menu.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/ko/menu.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

* updated pt translation

* last german fix

* Update src/locales/es/menu.ts

Co-authored-by: Arxxer <javiptn7@gmail.com>

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
2024-06-27 15:33:58 -04:00
innerthunder
e521862096
[Bug] Fix Make It Rain applying effects for each target (#2664)
* Fix Make It Rain applying effects for each target

* Revert MoneyAttr change

* Remove RNG from parental bond tests
2024-06-27 15:21:24 -04:00
innerthunder
0d25b2332a
[Bug] Fix multi-hit frenzy moves permanently locking the user (#2662) 2024-06-27 13:33:43 -04:00
Adam Clemons
d8129dae7d
[Bug} Fix Tidy Up buff (for real this time) (#2649)
* Fix Tidy Up buff

* Force pipe rerun...

* Remove whitespace

---------

Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-06-27 12:37:57 -04:00
flx-sta
eb77927d4b
[Bug] Fix Tidy-Up boosting stats multiple times right now (#2652)
only apply if user id equals target id. This is necessary because of the  which is necessary for clearing the arena traps
2024-06-27 09:54:36 -04:00
chaosgrimmon
b9fd4273c9
[Bug] More non-contacting physical moves (#2660)
Fixes Raging Fury, Barb Barrage, and Triple Arrows.
2024-06-27 09:37:17 -04:00
innerthunder
f9d8bd6e7d
[Bug] Fix Parental Bond multiplier sometimes applying during first strike (#2653) 2024-06-27 01:59:57 -04:00
NightKev
23a1c461a9
[unittest] Remove more RNG from Dry Skin tests (#2647) 2024-06-27 01:06:16 -04:00
innerthunder
e477fccaab
[Bug] Fix multi-hit early stopping (#2648) 2024-06-27 00:41:31 -04:00
Smewkie
996568ef5b
[Bug] Make it Rain interaction with Multi-Lens (#2638)
Changes make it rain to provide stat changes whenever the move hits multiple times, ie with Multi Lens.
2024-06-26 22:38:31 -04:00
Amani H
0e994a7072
Fix Stat Booster Held Items Applying to Party (#2637) 2024-06-27 03:17:22 +01:00
NightKev
8933a9bb05
[Test] Prevent RNG from breaking Dry Skin tests (#2630) 2024-06-26 21:39:35 -04:00
innerthunder
55dd6b5100
[Bug] Fix Multi-Lens/PBond interaction for spread moves (#2633) 2024-06-26 21:05:03 -04:00
damocleas
0d3cd8ab96
[Balance] Quick Adjustments to Rogue Tier Items (#2634) 2024-06-26 19:02:48 -05:00
José Ricardo Fleury Oliveira
4186bd651b
Localization (pt): Added new items' translations (#2627)
* added new items' translations

* forgor
2024-06-26 17:30:38 -05:00
Dmitriy K
576f099243
[Test] Optimize Quick Draw tests (#2625)
* optimize the tests

* add level override in favor of directly changing stats
2024-06-26 17:01:14 -04:00
innerthunder
cd92d4d7d3
[Ability] Implement Parental Bond (#2384)
* Parental Bond basic implementation

* Parental Bond unit tests

* ESLint

* PBond AbAttr rework, documentation, and multi-target unit tests

* Update post-target move attribute logic

For Parental Bond interaction.

* AddSecondStrikeAbAttr now uses Constructor util

* Unit tests for PBond + Multi-Lens interaction

* Remove random damage spread in unit test

* Add null checks to PBond AbAttr

* Set player pokemon for unit test

* Fixed Post Target check to account for KO's

* Fix multi-strike moves applying effects at wrong times

* Test cases for updated effect timing

* Add Wake-Up Slap test case

* Fix Fury Cutter/Echoed Voice multi-hit interaction

* Fix Pay Day, Relic Song, and Fury Cutter (again)

* Add early stopping to multi-hit moves

* RecoilAttr now uses lastHitOnly

* Add faint check to last hit logic
2024-06-26 16:03:14 -04:00
Amani H
f7f8988cdb
[Item] Add Light Ball, Thick Club, Metal Powder, and Quick Powder (#1899)
* Add Light Ball, Thick Club, and Metal/Quick Powder

* Fix Typo, Account for Fusions

* Fix Errors with Fusions

* Group Items into Generator

* Refactor Generator and Type, Fix Localization (en)

* Adjust Generator, Add Override Type

* Fix Enum Import

* Localize for de, es, fr, it, ko, zh_CN, zh_TW

* Add Unit Tests

* Add Type

* Fix Items Atlas

* Change Cubone Passive Ability, Adjust Weight
2024-06-26 13:48:10 -05:00
flx-sta
74a7b1bb79
[Bug] fix boss-segment reload persistence: (#2613)
add boss-segments to into pokemon-data & load it in EnemyPokemon constructor
2024-06-26 13:19:24 -04:00
damocleas
29283d81a0
[Balance] General Item Weight Adjustments (#1901)
* [Balance] General Item Weight Adjustments

* temporarily reduce Voucher Plus to 4 -> 2 -> 0 weighting per reroll

* Ultra Ball 12 -> 14

* Various Adjustments

* Various Adjustments to Ultra and Rogue Tier

Super Exp Charm 10 -> 9
Soul Dew 8 -> 7

Big Nugget 10 -> 12
TM Ultra 12 -> 11
Attack Type Booster 10 -> 9

* fixed map conflict

* Voucher Plus 4 -> 3

* Made Form Change Items have scaled weight by wave count.
2024-06-26 12:14:53 -05:00
Tempoanon
f8a15570fa
Fix 2 typos in Cyrus and Lucian en dialogue (#2611) 2024-06-25 22:10:55 -05:00
Enoch
70e1a38403
[Localization] localize reward message (You received ~) (#2556)
* localize reward message (You received ~)

* Update src/locales/zh_CN/battle.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/es/battle.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update src/locales/pt_BR/battle.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/de/battle.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/fr/battle.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-06-25 22:13:43 -04:00
Tempoanon
7e3ff28eaa
Add flooring to ReceivedMoveDamageMultiplierAbAttr (#2606)
* Add flooring to ReceivedMoveDamageMultiplierAbAttr

* Fix merge conflicts for real
2024-06-26 01:08:03 +01:00
Teju Rajbabu
6046b9bfae
[Bug] fixed persistent shinyIcon bug (#2605) 2024-06-25 18:20:40 -04:00
Teju Rajbabu
d2e97979bd
[Bug] Add back saved loadout info (#2604) 2024-06-25 17:25:03 -04:00
Adrian T
fd08983181
[Ability] fix damage taken by disguise (#2601) 2024-06-25 15:32:45 -04:00
Tempoanon
eae2d0a144
[Bug] Fix typo in encore (#2499)
* Fix typo in encore

* I actually did forget the French typo
2024-06-25 19:18:05 +01:00
Teju Rajbabu
c8db3bff4c
[QOL] UI Improvement - Shiny Icon (#2372)
* Test changes to change variant label color based on Tint

* Revert "Test changes to change variant label"

This reverts commit 0ad0f62930.

* minimal recovery changes

* Finalized recovery and implemented ShinyIcon

* add setY in MockSprite

* added back some unintentional removed code

* added shiny_icons

* Initial test for tier change

* implemented Shiny Icon full functionality

* slight setY change for non-Base starters
2024-06-25 13:48:48 -04:00
Hugo Tembremande
8f7f46c6f2
[Localization] Correction of a typo in a french dialogue (#2597)
* [Localization] Correction of a typo in a french dialogue

* fix: typo when playing female char
2024-06-25 13:46:13 -04:00
Corrade
e70113073f
[Bug] Fix Dry Skin and ReceivedMoveDamageMultiplierAbAttr abilities (#2592)
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: first cut

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: removed redundant branch

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: reworded test cases that had typos anyway

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed PreDefendMovePowerToOneAbAttr (Disguise) to mention damage rather than power

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed powerMultiplier to damageMultiplier in ReceivedMoveDamageMultiplierAbAttr
2024-06-25 13:23:48 -04:00
sodam
ea510571d4
[Localization] #1761 Korean trainer dialogue (for 3, 7, 9th Elite-4&Champions) (#2594)
* localized elite-4 in hoenn

* added steven's (hoenn champion)

* Update dialogue.ts

* added champion's (8th, 9th)

* added elite-4 (in Alola)
2024-06-25 11:41:15 -04:00
Proxymyr
0320ea3bfa
[Localization(fr)] Fixed typo in infatuation message (#2596) 2024-06-25 11:09:21 -04:00
sirzento
79d29bae85
[BUG] Egg pity should take owned eggs into account if rolled for species (#2584)
* Fixed Bug that causes multiple pity eggs in a row

* Bugfix that eggpity wont be increased if pokemon is not cought but exists as an egg
2024-06-25 10:19:24 -04:00
Puchimono
8e6cbad3fc
[Bug] Legendary pull rate fix from Leg. up machine (#2587) 2024-06-25 10:14:28 -04:00
José Ricardo Fleury Oliveira
dc64c32470
localization: added eviolite for pt_br (#2590) 2024-06-25 10:09:41 -04:00
Yonmaru40
d1c081e501
[Localization] various zh_cn translation fix 6/25 (#2585)
* Update ability-trigger.ts

* Update battle.ts

* Update bgm-name.ts

* Update egg.ts

* Update achv.ts

* Update menu-ui-handler.ts

* Update menu.ts

* Update starter-select-ui-handler.ts

* Update starter-select-ui-handler.ts

* Update dialogue.ts

* Update trainers.ts

* Update bgm-name.ts

* Update bgm-name.ts

* Update menu-ui-handler.ts

* missing comma

* Update dialogue.ts of Hassel

* Update trainers.ts trailing spaces
2024-06-25 10:05:55 -04:00
flx-sta
3e5ef3e3fb
[Bug] add playerfiled length check for score determination (#2583) 2024-06-25 00:15:11 -04:00