Commit Graph

3151 Commits

Author SHA1 Message Date
Jannik Tappert 8099f02306
[Enhancement] Added a bgmBar to show the name of the track once music is played (#2457)
* Added a bgmBar to show the name of the track once music is played

* Even more close to ability bar

* It now shows. And also shows already for a couple of them a readable name

* Now the queue actually works

* Create locales for bgmName (bgm-bar ui)

  + Most of the music has only Japanese and English names
    But there are a number of tracks with official translations following OST commercialization

* Add i18n and use it to retrieve OST names (avoids a giga switch case)

  + A fallback key is implemented in the case of adding tracks not referenced in the translation files, its value being just the name of the bgm itself

* FormatText is now in Utils and not arena-flyout

BGM Names for non-localized music will be formatted to have capitalized letters and no _

* It is now a setting. It can be even changed mid fight

* Update src/ui/ability-bar.ts

* Apply suggestions from code review

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

* Update src/locales/de/bgm-name.ts

* Apply suggestions from code review

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

* Added the rest of the music names

* Changed PMD EoS to PMD ETH in german (Pokemon Mystery Dungeon Erkundungsteam Himmel)

* Due to feedback it is now "PMD ET-Himmel"

* Corrected the encounter theme names (and some missed trainer class names)

* Background is now a nicneslice. And it is at the top of the screen and above everything else

* The bar now scales with the text.

* Revert override

* Update src/locales/fr/bgm-name.ts

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

* It now only appears when V is pressed (in all but starter select)

* Cleared the cod eup

* Update src/locales/zh_CN/bgm-name.ts

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

* Update src/locales/zh_CN/settings.ts

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

* Update src/locales/ko/bgm-name.ts

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

* The bgmBar now appears in the pause menu instead.

* Should react better on settings change

* To be safe this required a reload now

* Update src/locales/fr/bgm-name.ts

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

* Update src/locales/fr/bgm-name.ts

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

* Write out pokemon mystery dungeon names in german

* Update src/locales/es/bgm-name.ts

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

* Update src/locales/zh_CN/bgm-name.ts

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

* Update src/battle-scene.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-24 16:31:38 +01:00
cadi 8c8ddd26b5
[Ability] Implement Quick Draw (#2287)
* implement quick draw

* add line

* change ability success condition

* quick draw comes before quick claw effect

* now ability has chance variable to test conditional situation

* add unit test

* Merge branch 'main' into ability-quick-draw

* modifed: ability.getTriggerMessage

* modified: to use pokemon.battleData.abilityRevealed

* modified: changed private variable to public

* erase expect interceptor log

* add localizations

* modified: add comma in locales

* modified: ability docs & trigger logic

* modified: changed test logic
2024-06-24 11:22:15 -04:00
Adrian T e9fb13cce9
[Move] Implement Flower Shield (#2543)
* implement flower shield

* add unit tests

* refactors, add test

* use HideSpriteTag instead

* update comment

* replace HideSpriteTag with SemiInvulnerableTag
2024-06-24 10:37:24 -04:00
Ei 3fa7e30e47
[Localization] Most missing translations in zh_TW (#2560) 2024-06-24 10:28:09 -04:00
José Ricardo Fleury Oliveira 6d6ea87956
Localization: Update "Snarl" move effect in pt_BR translation (#2561) 2024-06-24 10:22:29 -04:00
Ei 62f015c944
[Localization] Fixed various typos and formatting issues in zh_TW and zh_CN (#2557) 2024-06-24 01:32:31 -04:00
DustinLin 8c9603ab19
[Bug] fix softlock/runtime error after roar in doubles (#2553)
* added undefined runtime safeguard checks

* adding documentation

* fixing typos and logic

* removing operator bc i forgor
2024-06-24 01:06:15 -04:00
sodam 3a9a3caf73
[Localization] #1761 Korean trainer dialogue (Kalos region) (#2541)
* localized other kalos

* fix some typo

* applied suggestion
2024-06-24 00:39:26 -04:00
José Ricardo Fleury Oliveira ba6bf5f00c
[Localization] Update Portuguese translation for egg.ts (#2554) 2024-06-24 00:38:00 -04:00
José Ricardo Fleury Oliveira fd7e547750
[Localization] Update menu.ts with "attackFailed" translation (#2547)
* Update menu.ts with new translation and choosePokemon option

* revert ptbr

* fix

* minor fix
2024-06-24 01:38:17 +01:00
Enoch b5ffb9aae3
[Localization] localize hatch egg message (+ egg move unlock) (#2395)
* localize hatch egg message (+ egg move unlock)

* Revert overrides.ts

* Update src/locales/de/egg.ts

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

* Update src/locales/zh_CN/egg.ts

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

* add parameter moveName to (rare)eggMoveUnlock to make sentense more flexable

* Update src/locales/ko/egg.ts

Co-authored-by: hibiya (김종이) <inemuri@hibiya.moe>

* Update src/locales/it/egg.ts

* Update src/locales/fr/egg.ts

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

* Update src/locales/fr/egg.ts

* Update src/locales/fr/egg.ts

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

* Update src/locales/fr/egg.ts

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

* Update src/locales/es/egg.ts

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

* solve merge error > Update src/locales/zh_TW/egg.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: hibiya (김종이) <inemuri@hibiya.moe>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-23 20:14:18 -04:00
Adrian T 20b708170c
[Bug] Prevent attempting to use a move with no pp when pokemon is not on the field (#2532)
* prevent using move with no pp when pokemon is fainted

* change condition to isActive(true)
2024-06-23 18:08:55 -04:00
Ei d743f7ba7a
[Localization] A lot of zh_TW translations and fixes (achivements, battles, game modes, biomes, abilities, ui handlers, and more) (#2551)
* Corrected all English punctuation into Chinese in zh_TW

* Merged battle.ts and biome.ts translations into this branch

* abilitiy-trigger.ts and achv.ts

* battle.ts egg.ts fight-ui-handler.ts game-mode.ts

* a bunch of minor changes
2024-06-23 17:59:05 -04:00
Lugiad 70298ac298
[Localization] "Choose a Pokémon." French & Korean translation (#2549)
* Update French menu.ts

* Update menu.ts
2024-06-23 15:14:09 -04:00
José Ricardo Fleury Oliveira d8e5dc1e91
Localization: Added missing translation for "Choose a Pokémon" in multiple languages (#2548) 2024-06-23 18:19:36 +01:00
innerthunder 905ecd6576
[Bug] Remove grounding moves' arbitrary turn limits (#2526)
* Remove grounding moves' arbitrary turn limits

* Added documentation for GroundedTag

* Rename GROUNDED tag + add tag check to isGrounded

* Fix remaining GROUNDED reference

* Clean up calls to getTag
2024-06-23 12:48:49 -04:00
sirzento 0bd25e925e
[BUG] Legendary egg pity & manaphy counter fix + Egg unit tests (#2534)
* Fixed bug that legendary egg pity only increased by one if egg pulled out of legendary gacha

* Removed debug logs

* Added new unit tests. Fixed bug that sometimes common eggs do count as manaphy eggs.
2024-06-23 12:40:37 -04:00
Adrian T 7f15efcd34
[Refactor] unit tests cleanup (#2533) 2024-06-23 12:38:40 -04:00
Lugiad 111cfd686d
[Localization(fr)] Some missing translations + some corrections (#2538)
* Update French ability-trigger.ts

* Update French fight-ui-handler.ts

* Update French menu.ts

* Update French settings.ts

* Update French egg.ts

* Update French modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-06-23 12:37:04 -04:00
Jannik Tappert fb6ed34211
[Localization] Added missing german localization (#2546) 2024-06-23 12:34:53 -04:00
AJ Fontaine 45c7282581
[Localization] Fixed missing punctuation for trap removal (#2544) 2024-06-23 12:32:14 -04:00
dorri-riddo b04dfd07e7
[Localization] #1761 Korean trainer dialogue (olympia, grant, korrina, clemont) (#2537) 2024-06-23 12:28:05 -04:00
Matthew Olker 7ff4daa48d hotfix add back message bg 2024-06-23 12:17:51 -04:00
Matthew d2f4c5b59c
[UI] UI Small Adjustments (#2525)
* UI Small Adjustments

* Fix Unit Tests

* Null check event display before clear

* better empty move placeholder debug name
2024-06-23 12:09:23 -04:00
José Ricardo Fleury Oliveira baac90120f
updated modifier-type.ts (#2542) 2024-06-23 17:01:28 +01:00
José Ricardo Fleury Oliveira 326ae013fe
updated costar and trace (#2539) 2024-06-23 16:50:05 +01:00
José Ricardo Fleury Oliveira 14f1ba5336
[Localization(pt)] updated some translations (#2530) 2024-06-23 00:48:55 -04:00
Madmadness65 b505962a0c
[Documentation] Update arena-tag.ts (#2529) 2024-06-23 00:44:24 -04:00
EmberCM bce874b99a
[QoL] Move fusion icon to right of gender icon in party ui (#2470) 2024-06-22 23:06:13 -04:00
hibiya (김종이) cb5016d10f
[Localization] include pokemon names, stats into battle:stat* keys (#2373)
* [Localization] include pokemon names, stats into battle:stat* keys

* [Localization(fr)] Update stat change messages

Co-Authored-By: Lugiad <adrien.grivel@hotmail.fr>

* [Localization(es)] Update stat change messages

Co-Authored-By: GoldTra <162721984+GoldTra@users.noreply.github.com>

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-22 21:55:09 -04:00
Madmadness65 db06c53693
Implement Happy Hour (#2358) 2024-06-22 20:03:15 -05:00
returntoice e338144682
[Localization(ko)] Some minor changes (#2520) 2024-06-22 13:58:32 -04:00
sirzento a833ff68d0
[Bug] Fixed that legendary egg pity doesn't increase (#2519) 2024-06-22 12:53:02 -04:00
sirzento ff9528129c
[Bug] Fixed that a single voucher pull will always be common (#2518) 2024-06-22 12:39:35 -04:00
Dmitriy K f84fedd588
[Localize(en)] Add EN locale keys to Costar (#2517)
* Add unthaw to moves that are missing it

Add unthaw to all damaging fire moves

Add Status Effect overrides for easier testing

clean up comments and readd status cure before fainting

* implement Costar ability, refactor TraceAbAttr to be more generic

* format code, clean up comments

* Revert "Add unthaw to moves that are missing it"

This reverts commit 89494fa0c8.

* clean up comments, remove unused call

* ability now copies negatives changes as well

* separate PostSummonCopy into two different classes

* small refactor of copy ability attrs

* add costar to test suite

* remove abstract declaration from comments

* remove broken import statement

* actually fix broken imports

* add i18n calls

* add en keys to other locales and sort by alpha
2024-06-22 12:09:35 -04:00
Jacob Hatchett 77d25d18f9
[Ability] Implemented Aura Break (#2252)
* re-adjust according to new changes

* added unit tests

* add test fixes

* add documentation

* more fixes
2024-06-22 11:37:46 -04:00
Dmitriy K 3bbe01b288
[Ability] Implement Costar Ability (#1218)
* Add unthaw to moves that are missing it

Add unthaw to all damaging fire moves

Add Status Effect overrides for easier testing

clean up comments and readd status cure before fainting

* implement Costar ability, refactor TraceAbAttr to be more generic

* format code, clean up comments

* Revert "Add unthaw to moves that are missing it"

This reverts commit 89494fa0c8.

* clean up comments, remove unused call

* ability now copies negatives changes as well

* separate PostSummonCopy into two different classes

* small refactor of copy ability attrs

* add costar to test suite

* remove abstract declaration from comments

* remove broken import statement

* actually fix broken imports
2024-06-22 11:35:25 -04:00
Enoch 9e3b5c636c
[Localization] Localize hp phases and translate in Korean (#2432)
* Localize hp phases and translate in Korean

* Change codeName for distinguish other HP restore message

* Update src/locales/fr/battle.ts

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

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-06-22 10:24:08 -04:00
Adrian T 464ffe7332
[Enhancement][Unit Test] Refactor + Unit Tests for Light Screen, Reflect and Aurora Veil (#2514)
* refactor copy pastas

* add tests

* specify arena tag types
2024-06-22 10:09:23 -04:00
chaosgrimmon d32119f921
[Sprite] Reposition Glameow Animation Frames (#2502)
* [Sprite] Glameow Front

Taken from 2f17903d30/public/images/pokemon

* [Sprite] Shiny Glameow Front

Taken from 2f17903d30/public/images/pokemon/shiny

* [Sprite] Shiny Glameow Back

Taken from 2f17903d30/public/images/pokemon/back/shiny

* [Sprite] Glameow Back

Taken from 2f17903d30/public/images/pokemon/back
2024-06-22 10:03:03 -04:00
yun 1bd9941d43
[Localization] [ko] update egg and starter-select (#2513) 2024-06-22 10:00:50 -04:00
Dakurei c818f0e1df
[Enhancement] Avoids 'flashbanging' for players in Shop UI (#2504)
* Fix - Avoids 'flashbanging' for players playing at x5 speed by making the transition time constant regardless of the speed chosen

* Forgot to delete a debugging value
2024-06-22 09:58:07 -04:00
sirzento f0422fa7d9
Hotfix: Rare Egg move rate from bought eggs where always common tier rates (#2512)
* Hotfix: Rare Egg move rate from bought eggs where always common tier rates

* Update src/data/egg.ts. Removed new line

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

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-22 13:28:10 +01:00
sirzento 3e9fbeb4d6
Hotfix: Override varaint tier if species was given. Fixed that some common egg where displayed as manaphy egg and wrong manaphy egg counter (#2505)
* Hotfix: Override varaint tier if species was given. Fixed that some common egg where displayed as manaphy egg.

* Fixes wrong manaphy egg pulled stat count
2024-06-22 20:40:10 +10:00
Matthew Olker 5ba14a346a hotfix egg source type please be the last one 2024-06-21 23:11:17 -04:00
José Ricardo Fleury Oliveira c32d0824bc
[Localization(pt)] update egg and starter-select (#2500) 2024-06-21 22:56:17 -04:00
Matthew Olker d6cc28ea69 hotfix save AFTER egg is made 2024-06-21 21:59:58 -04:00
Matthew Olker 6c0602b3f8 hotfix egg descrptions 2024-06-21 21:26:42 -04:00
Dakurei eb224381a6
Fix - The wave is no longer displayed under the overlay as it used to be (even before the black overlay ...) (#2498)
+ Its previous color just made it harder to see that the text was underneath the overlay
2024-06-21 20:47:00 -04:00
sirzento 9d090f37f9
[Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833)
* Create variant-tiers enum

* Added variant tier override property to the egg class

* Added hasVariants function to pokemon species

* Implement variant override logic to egg hatching phase

* Delete src/enums/variant-tiers

* Create variant-tiers enum

* Added egg shiny and variant overrides

* fixed egg comment in overrides.ts

* Added override logic to egg hatch phase

* Added species pool filter logic when global override is set

* Added global egg tier override logic

* Added global egg tier override

* Added global gacha pull count override logic

* Added global gacha pull count override

* Renamed egg hatch override

* Renamed egg hatch override

* Added gacha pull without voucher global override

* Renamed free gacha pull global override

* Added free gacha pull override logic

* Gacha pull count override name fix

* Bugfix

* restored defaults + savegame bugfix

* eggOptions added to parameterize eggs. Added option to buy eggs of the same species.

* Small Bugfix for same species egg generation

* Removed translation from translator

* Improved the isManaphyEgg() check

* Fixed manaphy egg hatch wave count

* Added comments to IEggOptions

* Added eggOptions for hidden ability and rare egg move override

* Merge Fix: Update egg-hatch-phase.ts

* Fixed manaphy rates back to 1/256 like in PR #2182

* Renamed override, same species egg unlocks after passive is bought. Added code as comment for custom shiny, HA and rare egg move rates.

* Merge fix. Moved enums.

* quick fix for the commented out code

* Fixed that you can't buy an egg over the 99 egg limit

* Fix that you can't buy eternatus

* Use already existing randSeedShuffle instead of my own function

* Eternatus buyable again. Changed overrides to be able to set common tier/variants. Moved getGuaranteedEggTierFromPullCount().

* Changed eggOption gachaType to sourceType. Replaced eggOption overrideRareEggMove with eggMoveIndex to exatly specify an egg move. Moved egg move unlock logic into the egg class. Simplified shiny calculation. Added same species egg type descriptor. Moved custom rates for same species egg code into egg.ts.

* Added 19 unit tests for eggs

* Changed unit test description

* Added higher rates for same species eggs

* Adjusted same species egg cost for 1-3 cost starters and HA rates

* Added legacy egg loading unit test. Fixed gachaType legacy value loaded from DB and legacy tier loading

* Legacy egg loading from server DB fixed
2024-06-21 20:19:56 -04:00