Commit Graph

3141 Commits

Author SHA1 Message Date
chaosgrimmon f3eeb6abea
[Sprite] Fix variant icons from Gen7 (#2624)
* [Sprite] Remove unused icons from 6v

* [Sprite] Fix variant icons from Gen7

* [Sprite] Compress icons_7v
2024-06-26 16:18:28 -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
Madmadness65 edb4c7e4a2 Add missing shiny icons for legacy UI
This will resolve the error of the graphic being missing when loading the game.
2024-06-25 20:53:06 -05: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
chaosgrimmon 92791ae27a
[Sprite] Compress Mega Gyarados Palette (#2586)
* [Sprite] Compress Mega Gyarados Common Palette

* [Sprite] Compress Mega Gyarados Variant Palette

* [Sprite] Compress Mega Gyarados Default Palette
2024-06-25 10:12:35 -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
Madmadness65 bbc07e22bf
Add evil team music (#2582) 2024-06-24 22:51:13 -05:00
Tempoanon dea8e9fa94
Slight tweak to evil boss teams (#2580) 2024-06-24 21:52:09 -05:00
InnocentGameDev dd7fc7268c
[Localization] dialogue translations for ES for Evil Teams (#2581) 2024-06-24 22:02:01 -04:00
Amani H 136652caa9
[Item] Implement Eviolite Behavior (#2161)
* Add Eviolite with Unit Tests

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

* Adjust German Localization

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

* Adjust Italian Localization

* Change Multiplier Type

* Adjust Unit Test Import

* Change Constructor

* Make Unit Tests Localized

* Comment Out of Reward Pool

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-24 21:00:59 -05:00
damocleas ec91d2453a
[Balance] Protean / Libero changed to Gen 6-8 Implementation (#2473)
* Protean / Libero changed to Gen 6-8 Implementation

* take 2

* please just work

* Update protean.test.ts

* Update libero.test.ts
2024-06-24 20:58:50 -05:00
Lugiad 3d43b50c35
[Localization] French Evil Team dialogues (#2578)
* Update French dialogue.ts

* Update dialogue.ts
2024-06-24 21:53:07 -04:00
AJ Fontaine 02cdfc0a7b
Allow gen 8/9 mons to learn Double Team, Hidden Power, Return and Frustration by TM (#2531) 2024-06-24 20:22:17 -05:00
Tempoanon 072755989c
[Feature] Implement evil teams (#2028)
* waveIndex trainer team config generatoin is cursed

* Updated grunt pools

* Removed a comma that was bothering me

* Add locales for es, fr, it, pt, zh for translators

* Update src/locales/zh_CN/dialogue.ts

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

* Fix lint issue

* Update src/locales/pt_BR/dialogue.ts

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

* Last min team tweaks

---------

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-06-24 20:00:30 -04:00
Adrian T 2bab7d3778
[Bug] Fix trainer double battle crash (#2573)
* fix double battle crash

* remove !

* fixes crash on double battle
2024-06-24 17:32:21 -04:00
Adrian T 71299a731c
[Bug] Eiscue changing form regardless of previous form on arena reset (#2572)
* fix eiscue (again)

* hardcode eiscue check
2024-06-24 17:05:24 -04:00
José Ricardo Fleury Oliveira 587ee7e103
Localization: Fixed typo in party-ui-handler.ts "addedAsAStarter" (#2571) 2024-06-24 16:59:17 -04:00
Adrian T bc5de8810b
[Bug] fix noice crashing on arena reset (#2568) 2024-06-24 15:00:20 -04:00
José Ricardo Fleury Oliveira 930845c715
Localization: Add "has been added as a starter!" localization (#2555)
* [Localization] Update Portuguese translation for egg.ts

* Localization: Add "added as a starter" translation in multiple languages

* revert

* Update src/locales/ko/battle.ts

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

* Update src/locales/es/battle.ts

Co-authored-by: Jancojicanoder <jancoleiva@gmail.com>

* Update src/locales/fr/battle.ts

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

* Update src/locales/de/battle.ts

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

* Localization: Update Spanish and Portuguese translations for "addedAsAStarter"

---------

Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jancojicanoder <jancoleiva@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-24 13:55:46 -04:00
EmberCM 2ca86dd901
[Bug] Prevent lures from stacking different tiers (#2550)
* Prevent lures from stacking different tiers

* Fix existing stacks of lures only applying once

* Revert "Fix existing stacks of lures only applying once"

This reverts commit c954a56b41.

* Document lure modifier code
2024-06-24 12:55:42 -04:00
EmberCM 9e3fe2d53a
[QoL] Add message for when you aren't hatching eggs (#1969)
* Add message for when you aren't hatching eggs

* Add prompt to message

* Remove noEggs message after a delay
2024-06-24 12:21:42 -04:00
Frederico Santos e2507a2112
feat: Add logic to delete session data when overwriting a save (#2565) 2024-06-24 17:02:22 +01:00
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