Commit Graph

3007 Commits

Author SHA1 Message Date
Enoch
afe70453b1
[hotfix] fix message when helping hand (#2410) 2024-06-19 11:34:17 -04:00
Enoch
150bd35822
[Localization(ko)] translate untranslated word korean in modifire-type (#2409) 2024-06-19 11:12:06 -04:00
Lugiad
a37f6c55e6
[Localizatino(ko)] Translate spite (#2408) 2024-06-19 11:11:28 -04:00
José Ricardo Fleury Oliveira
03a98317a9
[Localization] [pt] Updated settings.ts (#2350)
* Updated settings.ts

* fix

* another fix

* minor fix

* fix

* fixfixfix
2024-06-19 11:00:13 -04:00
Enoch
06b1f8a0bc
[Localization] Add localization in battler-tags.ts (#1990)
* [Localization] Add localization in battler-tags

* localize curse ghost skill apply message

* translate Drowsy korean

* translate requested changes

* Update src/locales/ko/battle.ts

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

* resolve merge error

* Update French battle.ts

* remove unnecessary backslash

* Update src/locales/de/battle.ts

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

* Update battle.ts [Localization(it)]

* recover missing code resolving merge

* Update src/locales/zh_CN/battle.ts

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

* Update src/data/battler-tags.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: sodam <66295123+sodaMelon@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: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
2024-06-19 10:38:31 -04:00
Jannik Tappert
a0186d9b61
[Localization DE] Made German Settings readable again (#2403)
* Made German Settings readable again

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/ui/settings/abstract-settings-ui-handler.ts

* Remove empty line

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts
2024-06-19 10:28:30 -04:00
Enoch
f054789fd6
[Localization(ko)] translate korean ppReduced message (#2406) 2024-06-19 10:01:30 -04:00
Adrian T
29b8b3aa1f
[Bug] Fixes dragon tail vs ice face eiscue interaction (#2397)
* add optional chaining

* specify first hit
2024-06-19 09:51:50 -04:00
Enoch
58642e6be3
[Localize(ko)] translate untranslated settings word (#2405) 2024-06-19 09:47:44 -04:00
Adrian T
be208d48b6
[Feature] Add number of arena trap layers in menu flyout (#2059)
* add number of trap layers in menu flyout

* refactors

* change key type to effectType
2024-06-18 23:29:56 -05:00
Adrian T
9463da8797
[Bug] Fix ice face blocking all hits from multihit moves (#2391)
* fix ice face bug

* add multihit test
2024-06-18 22:56:44 -04:00
Yonmaru40
508f8eb3cf
[Localization(zh)] Update settings.ts (#2392) 2024-06-18 21:54:36 -04:00
Enoch
2228681d2a
[Localization(ko)] modify typo of swimmer (trainer) (#2390)
Co-authored-by: 송지원 <jiwsong@gmarket.com>
2024-06-18 20:21:27 -04:00
Tempoanon
04c94fcbba
Hotfix uturn with kings rock (#2385) 2024-06-18 20:26:51 +01:00
innerthunder
21f1e077fa
[Featrue] Add Dark-type immunity to Prankster (#2355) 2024-06-18 11:21:54 -04:00
3ae3ae
cf1f958a07
[Move] Remove partial from Matcha Gotcha (#2368) 2024-06-18 10:21:53 -04:00
yun
303d913850
[Localization] Localize nature in Pokémon summary (#2370) 2024-06-18 10:13:20 -04:00
Alexis Faizeau
9b325a6689
Fix game speed (#2375) 2024-06-18 15:07:36 +01:00
Xavion3
38b1a7fc61
Make starter selection account for evolutions and forms (#2077)
Only the second and on can be selected with future valid criteria
2024-06-18 09:27:06 -04:00
Ei
57e90b8f4b
[Localization] zh_TW settings.ts translation (#2367) 2024-06-18 02:05:17 -04:00
Ei
74e49b244b
[Localization] Separated the translations for the two 'back's in settings (#2365) 2024-06-18 00:33:00 -04:00
NxKarim
cc7db08fe8
[Bug] Sheer Force Fix (Stone Axe and self status moves) (#2366)
Implements AddArenaTrapTagHitAttr for moves like Stone Axe and Ceaseless Edge.

Fixes chance for selfstatus moves.

Added Comments For AddArenaTrapTagHitAttr
2024-06-18 00:23:34 -04:00
ReneGV
b64e5dce1c
[QoL] Move up form text when candies and hatched eggs are hidden (#2359) 2024-06-17 23:41:29 -04:00
ReneGV
026c048359
[ablity] Add tests to sturdy (#2362) 2024-06-17 23:39:59 -04:00
Yonmaru40
e96abd5c2e
[Localization(zh)] Update settings.ts (#2364) 2024-06-17 23:37:51 -04:00
Yonmaru40
e0dd04b087
[Localization] various changes and adding translation to zh_cn 6-18 (#2361)
* Update settings.ts

* Update modifier-type.ts

* Update menu.ts

* Update dialogue.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update dialogue.ts

* Update battle.ts

* indentation

* lint fix

* Update settings.ts

* battle.ts ppreduced fix

* missing "

* Update modifier-type.ts

* Trailing spaces
2024-06-17 23:08:24 -04:00
Daniel Gaston
b8a3f30bd0
[Hotfix] Sheer Force arena tag add extra condition (#2356) 2024-06-17 21:49:08 -04:00
NxKarim
c52e0ac5b6
[Ability] Serene Grace, Shield Dust, Sheer Force (P) (#246)
Co-authored-by: okimin <danielgaston6@gmail.com>
2024-06-17 20:30:42 -04:00
innerthunder
3b3b9e39af
[Move] Implement Follow Me, Rage Powder, and Spotlight (#1834)
* Implement "Center of Attention" battler tag + moves

* Powder immunity logic for Rage Powder

* Center of Attention unit tests
2024-06-17 18:05:21 -04:00
Matthew
d70dd16f8c
[Refactor] I18n Cleaning (#2348)
* I18n Cleaning

* pr comments

* appease typedoc

* moved types into src
2024-06-17 17:05:33 -04:00
Adrian T
fd1baef244
[Ability] Implement Power Spot & Battery (#2268)
* add battery

* add power spot

* refactor

* remove FieldVariableMovePowerAbAttr

* remove showing ability bar

* document + cleanup

* add unit tests

* update test name

* update variable names

* update multiplier
2024-06-17 16:12:11 -04:00
Dmitriy K
eab8db7d29
[Bug]: fix dark aura and fairy aura not applying to moves (#2246)
* fix dark aura and fairy aura not applying to moves

* use Set to prevent duplicate aura abilities from triggering

* switch to different AbAttr class
2024-06-17 20:52:33 +01:00
Adrian T
57b5c33c4b
[Ability] Implement Screen Cleaner (#2346)
* implement screen cleaner

* add documentation

* add unit tests

* rename arena to arenaTag
2024-06-17 15:37:11 -04:00
Jannik Tappert
35d0d2f4e6
[Localization] Added the localized dialogue for alder and kieran (#2261)
* Added german dialogue for alder and kieran (lauro & jo)

* Added zh_CN and it

* Added Korean

* Added tradtional Chinese

* Added spanish

* Added french! (thanks dakurei)
2024-06-17 15:17:08 -04:00
schmidtc1
d5ec5c371b
[Move] Fix bug for Spite and fully implement Eerie Spell (#2244)
* Bug fixes for spite, creates class to extend spite for eerie spell

* Comments for clarity, creates class to extend ReducePpMoveAttr

* Resolve reference error with AttackReducePpMoveAttr

* Shows move failed in a clearer way with showMoveText

* Localization of pp reduction moves

* Fixes issue of eerie spell reducing pp when ratio is 0

* Removes unnecessary phase replacement

* Remove partial implementation from eerie spell

* Adds locale entry for ppReduced to other languages
2024-06-17 15:05:23 -04:00
Frisk17
89eba349c9
[Move] Implemented Magnet Rise (#2081)
* Partially implemented Magnet Rise

* Implemented Magnet Rise

* Changed pokemon.ts so all TypeImmune tags work instead of just
MagnetRisen

* Magnet Risen is now removed when Gravity is used.

* Magnet Rise is ignored by Thousand Arrows
and Smack Down.

* Fixed a bug where status ground type moves
would also be ignored by Magnet Rise

* Added a message when Magnet Rise is removed

* Inserted TypeImmuneTag check in
getAttackMoveEffectiveness() for the AI

* Created a magnetRiseCondition separately

* Created a test for Magnet Rise

* Bug Fix in Magnet Rise test

* Created Magnet Rise test with Gravity

* Shifted the code from getAttackMoveEffectiveness
and apply into getAttackTypeEffectiveness instead

* Replaced onNextPrompt with doAttack

* Removed redundant runFrom(Phase)

* Replaced magnetRiseCondition with
battlerTags.every anonymous function

* Fixed import errors

* Added an undefined check for summonData
for TypeImmuneTag in getAttackTypeEffectiveness

* Replaced undefined-check with optional chaining
2024-06-17 17:35:06 +02:00
Frederico Santos
4e8cafcdb4
[Community] Add Reddit link to menu UI (#2338)
* feat: Add Reddit link to menu UI

Added a new menu option for Reddit with a corresponding handler to open the Reddit page in a new tab. This enhances the user experience by providing easy access to the Pokerogue subreddit.

* feat: Update wiki URL in menu UI

The wiki URL in the menu UI has been updated to "https://wiki.pokerogue.net/start" to provide a more specific starting point for users.
2024-06-17 15:57:20 +01:00
returntoice
d96ae3de43
[Localization(ko)] menu.ts correction (#2339) 2024-06-17 10:52:46 -04:00
Lugiad
534bdaaec7
[Localization] Corrections French menu.ts (#2337)
* Corrections French menu.ts

* Update menu.ts

* Update src/locales/fr/menu.ts

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

* Update menu.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
2024-06-17 10:29:27 -04:00
sodam
951d5416d4
[Localization(ko)] localized Sinnoh region named trainer (#2296) 2024-06-17 09:58:39 -04:00
Alexis Faizeau
f3e3b58a43
[Enhancement] Translate Settings Menu (#2187)
* Add en settings translations

* Add fr settings translations

* Translate settings menu

* Add de settings translations keys

* Add es settings translations keys

* Add it settings translations keys

* Add ko settings translations keys

* Add pt br settings translations keys

* Add zh cn settings translations keys

* Add zh tw settings translations keys

* Add ko settings translations keys

* Add de settings translations keys

* Fix a forgotten test
2024-06-17 09:47:22 -04:00
José Ricardo Fleury Oliveira
ebaecbe5a8
[Localization(pt)] Update start-select-ui-handler.ts (#2335) 2024-06-17 09:42:21 -04:00
prime
111f4362fc
[QoL] Improved Nature selection + Persistent selection of various values (#1401)
* Added nature selection menu

Added a nature selection menu to the starter selection, as you can way too easily skip over the nature you want when cycling.
All nature selections are furthermore persistent and stored in the starterData.

Those changes are compatible with the current save format, but will increase the size, so, in case the size of the save file can't be increased, further changes will be needed.

* Sorted nature selection into sub-menus

The nature-selection menu is now, instead of one large list, multiple smaller menus.
Those menus will appear once at least one nature of the appropriate kind has been collected.

Translations partially required.

* Update French starter-select-ui-handler.ts

* Added support for updated save structure

Adds compatibility with updated save-data structure which supports more persistent starter attributes

* more persistent start data

Abilities, Variants and Forms are now also saved.

* added gender to stored information

* fixed typedoc issues

* Starter Preferences now stored locally

* removed deprecated import (due last merge)

* Sub menus removed

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-06-17 00:49:29 -04:00
Matthew
9e1da3d548
clean loading scene and let mobile see intro (#2316) 2024-06-16 22:03:40 -04:00
layharu0
942cbb2181
[Localization][ko] StatRose, StatFell Message Fix (#2285) 2024-06-16 22:01:08 -04:00
Frederico Santos
1efb7c5847
[Bug] Unauthorized 401 error fix (#2315)
* reset scene on 401

* fix: Reset scene and clear session ID on 401 error

* Added explanation to clientSessionId
2024-06-17 02:44:07 +01:00
Jannik Tappert
de51c5b7a5
[Localization] Translated missing german entries (#2289) 2024-06-16 19:43:14 -04:00
Jannik Tappert
40ade2da1d
[Localization(ko)] Fixed Korean Battle Stat Change Text (#2292) 2024-06-16 18:54:31 -04:00
Yonmaru40
0138a480f9
[Localization(zh)] Update game-mode.ts (#2304) 2024-06-16 18:53:22 -04:00
ReneGV
bcd622bd94
[QoL] Skip money rewards on last classic wave (#2121)
* Skip money rewards on last classic round

* Fix big nugget
2024-06-16 18:51:25 -04:00
Niccolò
a44ab950ba
[Localization(it)] Update tutorial.ts (#2294) 2024-06-16 18:49:11 -04:00
chaosgrimmon
1396aaaa57
[Move] Sappy Seed shouldn't be Making Contact (#2303)
https://bulbapedia.bulbagarden.net/wiki/Sappy_Seed_(move)
2024-06-16 18:48:42 -04:00
Yonmaru40
29f95ef394
[Localization] zh_cn various translation fix and update (#2306)
* Update pokemon-info.ts

* Update trainers.ts

* Update ability-trigger.ts

* Update battle.ts

* Update ability-trigger.ts

* Update save-slot-select-ui-handler.ts

* 用→因为
2024-06-16 18:44:49 -04:00
Yonmaru40
0ed8c32e8a
[Localization(zh)] Update growth.ts (#2305) 2024-06-16 18:43:52 -04:00
Yonmaru40
f26a21c74b
[Localization(zh)] Update fight-ui-handler.ts (#2302) 2024-06-16 18:42:17 -04:00
chaosgrimmon
90f6ae7e6d
[Bug] Friendship-based moves have Base Power -1 when Pokemon is wild (#2291)
Affects RETURN, FRUSTRATION, PIKA_POW, and VEEVEE_VOLLEY.
2024-06-16 18:40:47 -04:00
Madmadness65
cc1b37c097 Correct Iron Jugulis' passive ability 2024-06-16 17:38:32 -05:00
José Ricardo Fleury Oliveira
5cdf148965
[Localization] Localized Daily Run Scoreboard (#2053)
* localized daily run scoreboard

* Update src/locales/de/menu.ts

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

* localized positionIcon

* Update src/locales/ko/menu.ts

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

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-06-16 21:23:18 +01:00
Niccolò
9d4425518f
Update pokemon-info.ts [Localization] (#2295) 2024-06-16 07:23:54 -05:00
Niccolò
62b82b92c8
Update voucher.ts [Localization] (#2293) 2024-06-16 07:21:47 -05:00
Matthew
8a1560bfa7
fix egg skip console error (#2284) 2024-06-16 00:48:09 -04:00
Devin Korb
e10d67858f
remove the duplicate document.fonts code (#2282) 2024-06-16 00:37:02 -04:00
Devin Korb
728ee3809a
Add dependency cruiser command (#2192)
* add dependency cruiser and fix all default errors

* create svg render of dependencies in command

* move configs to ts files, await font loading

* fix i18n

* fix dependencies...

* fix typedoc generation and tsconfig exclusions

* revert github-pages fix for another pr

* no-circular -> no-circular-at-runtime for type imports (future)
2024-06-16 00:26:37 -04:00
José Ricardo Fleury Oliveira
d9ae12ccc7
updated battle.ts and pokemon-info.ts (#2281) 2024-06-15 23:49:09 -04:00
José Ricardo Fleury Oliveira
4c708cd1aa
[Localization] [pt] Updated modifier-type (#2280)
* updated modifier-type

* fix
2024-06-15 22:30:07 -04:00
Arxalc
2d254bab96
[Move] Implemented Incinerate and Knock Off (#1671)
* Implemented Incinerate and Knock Off

* Ran linter

* Removed unnecessary code
2024-06-15 22:26:54 -04:00
Lee ByungHoon
9b8f6f312b
[Localization] Modification some code about battle stat for localization (#1985)
* [Localization] Modification some code about battle stat for localization.

* Corrections to failed generating typedoc docs.

* [Localization] Modification some code about battle stat for localization.

* Corrections to failed generating typedoc docs.

* Corrections to change localized key for battle stat and level change description.

* Deleted battle-stat.ts file in Deutsch locales.

* Fixed build failure

* Move unit test file into localisation folder from battle folder.

* Fixed localization key

* Fixed build failure

* Fix merge conflict

* Fix merge conflict again

---------

Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-06-15 22:25:18 -04:00
Philippe
bf7eb52f85
[Move] Implement poltergeist (#1726)
* implement poltergeist

* add comments

* use string interpolation
2024-06-15 22:24:38 -04:00
innerthunder
01435ed0e0
[Ability] Implement Unseen Fist (#1776)
* Implement Unseen Fist

* Add unit tests for Unseen Fist

* Fix unit test imports
2024-06-15 22:14:49 -04:00
Matthew Olker
17b103c447 hotfix victory save call 2024-06-15 22:06:40 -04:00
Niccolò
646c9018f2
[Localization(it)] Update pokeball.ts (#2270)
Fixed a wrong translation
2024-06-15 22:04:10 -04:00
Jannik Tappert
1a8c9d472a
[Localization] Localized the statname in the X Item description (#2264)
* Localized the statname in the X Item description

* Added french thanks to sangara42

* Changed french by Lugiadrien
2024-06-15 21:54:53 -04:00
_Megabyte
eea39843fb
[Bug] Issue #2260 Fix black screen on new game after exiting. (#2265) 2024-06-15 21:53:04 -04:00
Niccolò
0f001dfd14
[Localization(it)] Update party-ui-handler.ts (#2269)
Translated all of the party handler sentences
2024-06-15 21:52:24 -04:00
Niccolò
fd760f42bf
[Localization(it)] Update splash-messages.ts (#2273) 2024-06-15 21:51:55 -04:00
Niccolò
79367b81d1
[Localization(it)] Update starter-select-ui-handler.ts (#2274) 2024-06-15 21:51:34 -04:00
Niccolò
5a7d893812
[Localization(it)] Update trainers.ts (#2277) 2024-06-15 21:50:19 -04:00
Niccolò
b5ac756b2d
[Localization(it)] Update pokemon-info-container.ts (#2271) 2024-06-15 21:49:21 -04:00
Niccolò
2ba5f737da
[Localization(it)] Update save-slot-select-ui-handler.ts (#2272) 2024-06-15 21:47:49 -04:00
Frederico Santos
eec9963089
Fix API endpoints for saving and retrieving system and session data (#2279) 2024-06-15 21:24:50 -04:00
Matthew Olker
b42c3fac67 Revert "Fix API endpoints for saving and retrieving system and session data (#2278)"
This reverts commit 6172f3d574.
2024-06-15 21:09:32 -04:00
Frederico Santos
6172f3d574
Fix API endpoints for saving and retrieving system and session data (#2278) 2024-06-15 21:05:49 -04:00
José Ricardo Fleury Oliveira
ca112e10fb
[Localization] [pt] Updated dialogue.ts (#2262)
* reviewed/updated until black belt

* fixes

* more additions

* more fixes

* fix
2024-06-15 13:31:41 -04:00
Soyoka
b7bb862cdc
[Localization(ko)] Added Korean Translation for the dialogues of the Cilan, Chili, and Cress (#2256)
* chore: add translation for dialogue of cilan

* chore: add translation for dialogue of chili

* chore: add translation for dialogue of cress

* fix: fix spelling errors and make it compatible with eslint
2024-06-15 12:28:22 -04:00
Terrorforge
6917db7429
[Balance] give Goomy Regenerator (#2248) 2024-06-15 12:23:32 -04:00
Tempoanon
fdf139d529
[Bug] Add rest of trailblaze Pokemon (#2239) 2024-06-15 12:18:52 -04:00
Adrian T
dbecb72890
[Bug] add ability revelead for trace, refactor (#2258) 2024-06-15 12:13:59 -04:00
Adrian T
0b019d9823
[Ability] Implement Wonder Skin (#2231)
* implement wonder skin

* add unit tests

* fixes

* move applyPreDefendAbAttrs
2024-06-15 17:06:32 +01:00
Adam Clemons
422a561dfe
[Feature] Add Missing Champion Dialogue (#2120)
* Add Alder dialogue

* Add Kieran dialogue

* Add line breaks

* typo fix

* Add placeholder dialogue
2024-06-15 16:47:44 +01:00
Lugiad
523f818e12
[Localization] Many corrections of recent French translations (#2257)
* Update ability-trigger.ts

* Update achv.ts

* Update battle.ts

* Update challenges.ts

* Update battle.ts

* Update party-ui-handler.ts

* Update pokemon-info-container.ts

* Update trainers.ts

* Update achv.ts

* Update achv.ts

* Update achv.ts

* Update splash-messages.ts

* Update achv.ts

* Update achv.ts

* Update trainers.ts

* Update src/locales/fr/achv.ts

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

* Update challenges.ts

* Update src/locales/fr/battle.ts

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

* Update battle.ts

* Update battle.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
2024-06-15 16:28:33 +01:00
Alexis Faizeau
8e5b454c87
[Localization] Fix french translations (#2253)
* Translate missing fr keys for acheviements

* Translate missing fr keys for ability triggers

* Translate missing fr keys for battle

* Translate missing fr keys for fight ui handler

* Translate missing fr keys for challenge

* Translate missing fr keys for party ui handler

* Translate missing fr keys for pokémon infos container

* Translate missing fr keys for trainers
2024-06-15 13:06:57 +02:00
Franck TROUILLEZ
a4b07158f9
[QoL] Add ALL option when transferring items to Pokemons (#1694)
* Add ALL option to transfer menu

It adds a new attribute to the PartyUiHandler to track whether the transfer is meant for all items of only for a particular one

It also introduces translations for PartyUiHandler, even though only the 'ALL' option can be translated for now.

* Use updated translation key for i18n for partyUiHandler:ALL

* Fix duplicated import

* Use optionCursor instead of optionCursorWithScroll to check if we need to transfer ALL
2024-06-15 12:32:15 +02:00
EmberCM
16084878c3
Remove random trailing commas (#2245) 2024-06-15 12:13:54 +02:00
José Ricardo Fleury Oliveira
9ebd85e7c8
[Localization] [pt] Fixed male achievements as well (#2240)
* fixed male achievements as well

* fix

* minor fix
2024-06-14 20:27:22 -04:00
Ei
465d95bbd4
[Bug] Fixed frisk not setting revealedAbility flag (#2238) 2024-06-14 20:18:20 -04:00
José Ricardo Fleury Oliveira
bd2d9d51a1
[Localization(pt)] fixed achievements (#2235) 2024-06-14 20:08:26 -04:00
Niccolò
6c4a4bf366
[Localization(it)] Update menu.ts (#2228)
Fully translated the elements in the menu.
2024-06-14 19:55:00 -04:00
José Ricardo Fleury Oliveira
f519b13b20
[Localization] [pt] Updated ability-trigger.ts (#2229)
* updated ability-trigger.ts

* fix order
2024-06-14 19:53:20 -04:00
José Ricardo Fleury Oliveira
bce4c91c42
[Localization] intentionally changed all achievements' names for merge conflict (#2230) 2024-06-14 19:51:35 -04:00
Adrian T
2f933d2865
[Enhancement] Unit tests for Ice Face (#2215)
* add ice face test

* complete unit tests

* fix imports
2024-06-15 00:38:30 +02:00
Madmadness65
df58da32aa
Update Egg Moves (#2227)
New changes to go along with the passive ability changes.
2024-06-14 17:30:36 -05:00
Blitzy
be20783524
[Balance] Give Slakoth, Archen, and Wimpod Line new hidden abilities like Regigigas (#2115)
* Give Archen line and Wimpod line new Hidden Abilities

* Add Hidden Ability to Slakoth Line
2024-06-14 17:05:39 -05:00
Madmadness65
069466b05f Revert Eternatus Passive Change
That wasn't supposed to go through.
2024-06-14 17:01:59 -05:00
damocleas
de4025b7d3
[Balance] Passive Changes (#2226)
* [Balance] Passive Changes

* ADAPTABILITY*
2024-06-14 16:59:02 -05:00
Niccolò
6af4ea96d1
[Localization(it)] Update biome.ts (#2216)
Fixed a couple of issues with biomes
2024-06-14 16:48:23 -04:00
Niccolò
75b1c62614
[Localization(it)] Update fight-ui-handler.ts [Localization] (#2222)
Translated things regarding "passive"
2024-06-14 16:45:37 -04:00
Niccolò
59263d797f
[Localization(it)] Update game-mode.ts [Localization] (#2224)
Translated game modes' names from EN to IT
2024-06-14 16:45:07 -04:00
Niccolò
ce2031b85d
[Localization(it)] Update game-stats-ui-handler.ts [Localization] (#2225)
Translated everything about game stats from EN to IT
2024-06-14 16:44:27 -04:00
Niccolò
1541b8501e
[Localization(it)] Update battle.ts (#2211)
Translated every sentence and fixed a few ones
2024-06-14 16:43:50 -04:00
Niccolò
cb1078e563
[Localization(it)] Update challenges.ts (#2218)
Translated everything regarding challenges
2024-06-14 16:43:08 -04:00
Niccolò
b018263b09
[Localization(it)] Update achv.ts (#2219)
Fixed a couple of achievements' names
2024-06-14 16:42:16 -04:00
Matthew Olker
c02bb9132f Update Date to UTC and Time to include days 2024-06-14 13:40:14 -04:00
Matthew Olker
f8062d95bb Freeze Hotfix Pt2 2024-06-14 13:16:32 -04:00
Matthew Olker
f9f69fb0e2 End Freeze Hotfix 2024-06-14 13:12:12 -04:00
Matthew Olker
02d5654be4 Pride Update 2024-06-14 12:42:37 -04:00
Teju Rajbabu
90d0a17b45
Variant Label Color Change [QOL] (#2198)
* Test changes to change variant label color based on Tint

* Implementedlabel color change on pokemon change
2024-06-14 10:01:11 -05:00
Niccolò
65f4933a1d
[Localization][it] Update achv.ts (#2199)
Changed most of the achievements' names, added the missing ones
2024-06-14 09:43:17 -04:00
sodam
3133dadbf4
[Localization] #1761 Korean trainer dialogue (Gym leader+@ in Galar region) (#2171)
* translated 8th named trainer's

* Update src/locales/ko/dialogue.ts

* Apply suggestions from code review

* add elite-5 and leon's dialouge(by Korean)

* Apply suggestions from code review

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

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-14 09:42:22 -04:00
MadridPawmot
c3c6b96487
[Localization][es] Spanish translations for splash messages (#1999)
* Spanish translations for splash messages

* Updated with requested changes

* Updated capitalization
2024-06-13 20:00:36 -04:00
Niccolò
68863ab9a4
[Localization][it] Update ability-trigger.ts (#2188)
Modified some captions to make them more correct in italian
2024-06-13 19:50:48 -04:00
Matthew
dc30dd33b2
[QoL] Reorganize Enum Locations (#2185)
* moving enums

* import updates

* fix tsconfig paths importing (#2184)

* reverse index.ts addition

---------

Co-authored-by: Devin Korb <meepdarknessmeep@gmail.com>
2024-06-13 18:44:23 -04:00
sirzento
0adddc4aea
Fixes manaphy egg rate back to 1/256 (#2182) 2024-06-13 17:06:29 -05:00
Tempoanon
f0072082b5
[Localization] Fix bouncy bubble description for es fr it ko zh (#2175)
* Fix bouncy bubble description for es fr it ko zh

* Updated fr according to greenlamp

* Remove Evoli
2024-06-13 16:24:50 -04:00
schmidtc1
fd3261d8ce
[Move] Partial implementation of Stuff Cheeks (#2183)
* Partially implements stuff cheeks

* Comment for clarity on partial implementation

Explains why the move is still partially implemented.
2024-06-13 16:24:32 -04:00
Tempoanon
49cb79b754
[Bug] Fix mythical pokemon hatched stat (#2181) 2024-06-13 15:47:47 -04:00
Zach Day
f8c8605710
[Move] Fix multi-hit moves activating type-immunity abilities multiple times (#2165)
* Force multi-hit moves to hit once if they are against an immune type

* Add test for multi-hit attacks against immune types

* Document MultiHitAttr

* Tiny change

* Wording fix

* Use shortcut methods in unit tests

* Fix leftover modifications from METRONOME testing

* Reorganize SAP SIPPER tests

* Fix extra imports
2024-06-13 14:23:13 -04:00
Ei
7b0ec0faf2
[QoL] Fixed language settings cursor (#2179) 2024-06-13 12:06:01 -04:00
Adrian T
8728442657
fix audio settings (#2176) 2024-06-13 18:02:37 +02:00
Tempoanon
855ceda192
Revert "[QoL] Add red color to the quantity if the item is at it's held limit…" (#2178)
This reverts commit 048993b2c2.
2024-06-13 11:57:39 -04:00
Adrian T
0e794fe2fc
[Bug] Fix Berserk and Anger Shell from crashing the game when pokemon is forced to switch out (#1699)
* fix PostDefendHpGatedStatChangeAbAttr crashing the game

* remove new line

* refactor condition

* refactor condition
2024-06-13 11:37:15 -04:00
Matthew Olker
e6c24dceab Revert "[QoL] Reorganize Enum Locations (#2142)"
This reverts commit cf06ff3b8d.
2024-06-13 11:30:47 -04:00
Matthew
cf06ff3b8d
[QoL] Reorganize Enum Locations (#2142)
* moving enums
2024-06-13 11:11:12 -04:00
Dmitriy K
819fe9b4a1
[Ability] Implement Protean and Libero abilities (#1309)
* Add generic to util holders to reduce manual type casting

* implement protean and libero abilities

* remove use only once per turn trigger

* Revert Attack Attribute Conditions back to requiring unused vars

* Remove conditional before invoking type change ability

* update protean to properly trigger and skip certain moves

* remove some dangerous typecasts

* revert autoformatting changes

* not all autoformatting changes were reverted

* Revert "Add generic to util holders to reduce manual type casting"

This reverts commit 3ee7f1d5ff.

* change some variable names

* remove incorrect comment

* update abilities so they use gen 9 logic

* fix typescript error from missing Terrain type

* update gameManager switchPokemon to match other menu utilities

* add test cases for protean and libero
2024-06-13 10:54:23 -04:00
EmberCM
048993b2c2
[QoL] Add red color to the quantity if the item is at it's held limit (#2117)
* Add red color to the quantity if the item is at it's held limit

* Add shadow back to option text
2024-06-13 10:38:13 -04:00
hayuna
c929bbd23a
[Refactor] Move enum BattleStyle into separated file (#1906)
* Move enum BattleStyle into separated file

* Move enum BattleStyle into separated file

* Move enum BattleStyle into separated file

* Update battle-style.ts

* Replace shift into switch
2024-06-13 10:10:31 -04:00
Zach Day
a85a2a9b8b
[Bug] Fix type-immunity abilities activating on self-targeted status moves (#2168)
* Fix type immunity given by abilities only applying to attacking moves

* Add tests for type immunity granted by abilities

* Use Sap Sipper as base for testing

* Fix type-immunity abilities activating on self-targeted status moves

* Add tests for self-targeted moves on mons with type-immunity abilitiies

* Volt absorb tests
2024-06-13 09:49:40 -04:00
José Ricardo Fleury Oliveira
e0d3279a0b
[Localization] [pt] Fixed Bouncy Bubble description and updated achievements (#2174)
* updated pt achievements

* minor fix

* fixed bouncy bubble translation
2024-06-13 09:39:47 -04:00
Greenlamp2
c908153761
[Bug] Fix PostSummonPhase Logic to Support Single Pokémon Teams (#2153)
* added test for spikes + forceOpponentToSwitch

* fix conditional for intimidate in a double if there is only 1 pokemon available on our side

* fix variable naming and ternary condition

* added a fallback to clear the conditionalQueue if it's a new turn

* speed up tests by skipping LoginPhase
2024-06-13 08:42:25 -04:00
Dmitriy K
0970c2cd4e
[Refactor] Replace forceBypass with bypassFaint flag (#1839)
* replace forceBypass with bypassFaint flag

* add another path alias for src/test

* make form override work for the whole party instead of the first pokemon

* add tests for all abilities that are touched by this change

* remove unnecessary overrides from tests

* move SpeciesFormChangeTimeOfDayTrigger outside arena reset logic

* remove alll resetMock calls, rename it to test
2024-06-13 11:36:12 +02:00
Jannik Tappert
16e14376c6
[Localization] Changed description of BouncyBubble to reflect … (#2166)
* [Localization] Changed german description of BouncyBubble to reflect that is heals 100% of the damage and made it not eveee specific

* Also EN
2024-06-13 03:36:09 -05:00
Blitzy
6be46ec0de
Add Magic Guard to the list (#2076) 2024-06-13 03:32:22 -05:00
sodam
78ce5e77d9
[Localization][ko] Modified item description and fix Koga typo (#2139)
* fix some sentences

* Update src/locales/ko/modifier-type.ts
2024-06-13 00:10:48 -04:00
MrWaterT
2b848b83e6
[Localization][Bug] Korean Font update and expand coverage (#1823)
* update i18n.ts : add fontFace

* Update PokePT_Wansung.ttf with size adjustment

https://github.com/MrWaterT/PokePT_Wansung v2.3

* Enlarge font size

* Bypass Typedoc

* Cleanup i18n.ts

consist spaces in {}
remove hangul jamo unicodeRange

* Update PokePT_Wansug.ttf to fix 'f'

https://github.com/MrWaterT/PokePT_Wansung v2.4

* Adjust hangul glyphs size

* Remove double loading

maybe from 073c8aa and #2066
2024-06-13 00:00:36 -04:00
Matthew Olker
b950af9bac hotfix zh language shadows 2024-06-12 22:19:30 -04:00
Xavion3
448096db33
Add secondary update to biome pool loading (#2157) 2024-06-13 09:37:07 +10:00
Tempoanon
f18dcde490
[Bug] Dipplin should be Erratic instead of Slow (#2155) 2024-06-13 09:26:15 +10:00
Ei
589d06c15e
[Bug] Fixed reviving while transformed not resetting the sprite (#2152)
* Fixed reviving while transformed not resetting the sprite

* Made reload assets in resetStatus optional
2024-06-12 18:08:15 -04:00
Bastien
da37069457
[Localization] [FR] Update Lass dialogue.ts (#2133)
* [Localization] [FR] Update dialogue.ts

* Changes and correct typo

* Correct typo

* Typo

* Typo

* type again

* correct typo
2024-06-12 16:05:23 -04:00
Adrian T
8e8b006c49
[Bug] add condition before applying IgnoreTypeImmunityAbAttr (#2150) 2024-06-12 16:02:28 -04:00
Dmitriy K
777a8ad9ea
update gameManager switchPokemon to match other menu utilities (#2147) 2024-06-12 20:49:07 +02:00
Zach Day
31406b35fd
[Move] Fix type immunities granted by abilities only applying to attacks (#2145)
* Fix type immunity given by abilities only applying to attacking moves

* Add tests for type immunity granted by abilities

* Use Sap Sipper as base for testing
2024-06-12 14:46:45 -04:00
Adrian T
23caea1766
[Bug] hotfix type hint (#2146) 2024-06-12 14:39:37 -04:00
Adrian T
fe7ed72afa
[Enhancement] add revealed ability flag (#2105) 2024-06-12 13:30:10 -04:00
José Ricardo Fleury Oliveira
a2638e4a79
[Localization][pt] updated passive pop up (#2141) 2024-06-12 13:14:21 -04:00
Bastien
4139e11b11
[Localization] [FR] Update swimmer dialogue.ts (#2134) 2024-06-12 13:04:02 -04:00
José Ricardo Fleury Oliveira
1b19e35e60
[Localization][pt] Updated trainers (#2048) 2024-06-12 12:56:22 -04:00
GoldTra
03a635610b
[Localization] Update Spanish abilty bar and fix fainted localization (#2136) 2024-06-12 11:43:33 -04:00
Satanemme
92c4f2d9ab
[Localization] Italian achievements (achv.ts) (#2135)
* loc_it src/locales/it/ability-trigger.ts update windPowerCharged iceFaceAvoidedDamage

* loc_it src/locales/it/achv.ts translated to italian

* fixup wrong voices reverted ability-trigger.ts outside scope

* capitalization
	modified:   src/locales/it/achv.ts
2024-06-12 10:23:48 -04:00
DustinLin
e5d9cfd10f
[Bug] Fixing Baton Pass passing (#2058)
* skip yawn and infatuation for baton pass, and some docs along the way

* update yawn condition readability
2024-06-12 10:19:50 -04:00
ysh4296
c71d794d97
[Bug] remove playing tween with clear in form modal ui (#2122) 2024-06-12 10:03:26 -04:00
prime
0c85823645
[Enhancement] Golden IVs Chart when all IVs are perfect (#2019)
* golden chart for perfect IVs

The IVs chart is now golden in case all IVs are perfect.

A few overrides have also been added to make testing easier:
- the opponents IVs can be overridden
- the color can be modded via the window.perfectIVsChartColor variable.

* added perfectIVsChartColor to window

* added changes as requested

- removed global variable
- removed chart versatility
- changed color
2024-06-12 09:56:23 -04:00
Jannik Tappert
6e52bc7980
[Localization] Ability Bar can now be localized. In a way that pokemonName abilityNa… (#1921)
* Ability Bar can now be localized. In a way that pokemonName abilityName and passive string can be ordered freely

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

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

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

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

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-12 09:45:20 -04:00
Bastien
124ef7065f
[Localization][fr] Update battle.ts (#2130)
Add French translation for "regainHealth" and "fainted" that was still in english
2024-06-12 09:28:10 -04:00
José Ricardo Fleury Oliveira
d6a8394503
[Localization] [pt] Updated pt-br achievements (#2129)
* updated pt achievements

* minor fix
2024-06-12 09:25:41 -04:00
GoldTra
965d8d33fb
[Localization][es] Update Spanish fainted localization (#2127) 2024-06-12 09:25:21 -04:00
José Ricardo Fleury Oliveira
e6ce85cd3f
[Localization][pt] fainted translation (#2125) 2024-06-12 09:24:18 -04:00
Seung Ho Jang
0e7498f9ef
[Bug] Fix move 'Hyperspace Fury' to non-contact (#2132) 2024-06-12 09:21:16 -04:00
Tempoanon
4cca68b323
[Bug] Metagross level up moveset changes (#2114)
Confusion and Metal Claw are level 1 moves, not on-evo moves
2024-06-11 21:12:10 -05:00
Lee ByungHoon
7fe5962d28
[Localization] Add localization of message when pokemon fainted in battle phase. (#1934)
* [Localization] Add localization of message when pokemon fainted in battle phase.

* Correction of Deutsch localization

* [Localization] Add localization of message when pokemon fainted in battle phase.

* Correction of Deutsch localization
2024-06-11 21:41:24 -04:00
Greenlamp2
f57798fd1d
[Bug Fix] Correct PostSummonPhase Timing for Abilities and Entry Hazards (#2108)
* added test for spikes + forceOpponentToSwitch

* added conditionalQueue && pushConditionalPhase to fix entry hasard and abilities at post summon

* reduce timeout time to default
2024-06-12 00:55:16 +02:00
tommy030314
6d1fbf92cc
[Localization][ko] fix concert typo (#2109) 2024-06-11 18:54:52 -04:00
Lugiad
fb8cf781a5
[Localization] Correction to French ability.ts (#2102) 2024-06-11 16:22:08 -04:00
Tempoanon
64c0f2edb9
[Bug] Fix base stat totals of G-max Alcremie and Hisui mons (#2097) 2024-06-11 14:59:08 -04:00
Greenlamp2
a2d0a9ece3
[CI] Add GitHub Action to Run Silent Tests on PRs to Main (#2100)
* github action to run tests in PR

* fix the CI name

* fix comment

* fix divergent tests + cut some useless long test + fix versions
2024-06-11 19:13:02 +02:00
Xavion3
2aa6ec5031
Fix english names of monotype achievements (#2078) 2024-06-12 02:59:15 +10:00
Ei
a0a42ed2ec
[Localization] Added zh_TW translations for things that already have zh_CN translations (Dialogues, Challenges, Trainers) (#2099)
* Added a newer version of zh_TW dialogue translations

* Fixed several double battle dialogues in zh_TW

* Added missing trainers.ts zh_TW translations

* Added missing challenge.ts zh_TW translations
2024-06-11 12:40:55 -04:00
Opaque02
576bcf7bdb
[Bug] Fixed a bug where genderless and non shiny pokemon could show the new gender or shiny indicator (#2090) 2024-06-11 11:34:11 -04:00
sodam
00aaeb5947
[Localization][ko] #1761 Korean trainer dialogue (villain) (#2091)
* localized villain's dialogue

* Apply suggestions from code review

* Update src/locales/ko/dialogue.ts

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

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-11 11:15:37 -04:00
Greenlamp2
1263ff3af2
fix opponent triggering abilities each turn (#2094) 2024-06-11 17:13:40 +02:00
Ei
80eb86a76c
[Localization][zh_tw] Fixed mistranslation of 只 in traditional chinese (#2092) 2024-06-11 10:20:24 -04:00
Greenlamp2
0faccad49e
[Bug Fix] Corrected PostSummonPhase Trigger Timing for Accurate Stat Changes (#2057)
* fix postSummonPhase when opponent does not summon and fix the statsChange from push to unshift

* added switch pokemon helper method

* added on switch tests for intimidate

* fix test by overriding passive in tests

* remove a test not needed

* cleanup imports
2024-06-11 16:12:46 +02:00
innerthunder
670ea01cb4
[Ability] Implement Treasures of Ruin Abilities (#1637)
* Implement Treasures of Ruin abilities

* Reformat documentation

---------

Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-06-11 09:37:10 -04:00
sodam
1a6b411987
[Localization] #1761 Korean trainer dialogue (the other unnamed trainers) (#2084)
* translated the other (by @malloc3141)

* Apply suggestions from code review

* Update src/locales/ko/dialogue.ts

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

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-11 09:34:53 -04:00
Satanemme
ac69baff3a
[Localization][it] naive typo fix (was ingenuaa is now ingenua) (#2088) 2024-06-11 09:29:01 -04:00
Yonmaru40
dbd9908974
[Localization] new proofread zh_cn achv names updated (#2082)
* Update achv.ts

* mega → 超级 according to offical chinese texts

* fix details
2024-06-11 09:20:05 -04:00
EmberCM
4c5e0ccc15
[QoL] Remove Map item from being the shop on waves 180-200 (#2012)
* Remove Map item from being the shop on waves 190-200

* Remove Map from wave 180+
2024-06-11 12:42:23 +02:00
SnowCharm
2a6ef08cff
[Localization] Improve zh_CN Localization Content (#2075)
* fix zh_CN modifier-type locales

* update zh_CN/achv.ts
2024-06-11 01:32:56 -04:00
40chyan
f45ad124b2
[Localization] translation of zh_cn dialogues (#1903)
* Update dialogue.ts

* Update text.ts

* Update dialogue.ts

* Update dialogue.ts

* ignore linting in zh_cn

* try renaming the .eslintrc

* ignoring lint did not work

* lint fix by replacing ` with "

* change eternaus dialogue string back to ` to prevent error

* indentation fixed

---------

Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-06-11 01:06:39 -04:00
snnh
40e342d806
[Localization] Improve Simplified Chinese Localization Content ( achv.ts ) (#2071)
* Update achv.ts

* Update achv.ts
2024-06-11 00:49:55 -04:00
40chyan
689ec47bde
[Localization] fixing typo in zh_cn challenge.ts (#2070)
* Update challenges.ts fixing typo

* another typo
2024-06-11 00:45:00 -04:00
Matthew Olker
8c596c6f33 update zh font to unicode to fit both 2024-06-10 23:21:19 -04:00
Matthew Olker
073c8aaf01 censor glitch hotfix 2024-06-10 22:51:54 -04:00
Greenlamp2
725df33600
[Bug] Restrict Menu Access to Specific Game Modes + Gamepad Start Button in Select-Starter Menu (#2064)
* fix softlock + start run on button menu for gamepad on starter_select

* chop chop even more mode to the menu whitelist
2024-06-10 21:18:07 -05:00
Matthew
8d75670a81
[UI] egg and starter formatting (#2043)
* egg and starter formatting

* localization update

* localization update

* fix local voucher test

* pr comments

* pr comments

* account for new font
2024-06-10 21:58:01 -04:00
snnh
f6a6c2da1b
[Localization] Improve Simplified Chinese Localization Content (#2067)
* Update modifier-type.ts

* Update save-slot-select-ui-handler.ts

* Update party-ui-handler.ts

* Update party-ui-handler.ts
2024-06-10 21:55:03 -04:00
Matthew
5248160112
add zh localization font (#2066) 2024-06-10 21:36:09 -04:00
returntoice
b9e809b685
[Localization][ko] Some localization updates for Korean (#2046)
* localization

* localization2

* local3
2024-06-10 21:32:57 -04:00
Adrian T
5d358fc57f
[Enhancement] Refactor egg counter (#1996)
* refactor egg counter

* add documentation
2024-06-10 20:20:00 -05:00
Adrian T
65ddd49d64
[Enhancement] Move event files to a central directory (#1918)
* Move events to a central directory

* Update modifier import

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

* remove old battle-scene-events

* Move to field events

* Update battle-scene.ts

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-06-10 20:19:07 -05:00
Zach Day
5762409b17
[Move] Implement Core Enforcer (#2024)
* [Move] Implement Core Enforcer

* Documentation

* Documentation
2024-06-10 21:17:28 -04:00
Xavion3
dc6c8f22ac
Make speed ties seed based on current turn (#2044) 2024-06-11 09:42:39 +10:00
Madmadness65
8a0b5c52d3 [Bugfix] Fix Rival battles not playing correct music
The Rival fights were playing the incorrect battle music on the Mixed music preference. This has been fixed.
2024-06-10 16:53:14 -05:00
Dmitriy K
ee4d130ebb
[Test(refactor)]: Refactor tests game manager (#2062)
* refactor tests game manager

* add setPosition to Mock Text class
2024-06-10 23:35:24 +02:00
whatanoob
942c119814
[Bug] Fix toxic damage increment not resetting upon switching (#1844)
* Update phases.ts

Add reset toxic turn counter in PostSummonPhase

* Update phases.ts

Fix linting
2024-06-10 16:33:34 -04:00
SquillWall
a97933fe4c
[Bug] Fix inputs being annoying in the corner of the screen again (#2054) 2024-06-10 16:19:06 -04:00
Adrian T
bcfeaf0639
[Bug] add move effectiveness text color check to ignore ability (#2042) 2024-06-10 13:40:00 -04:00
José Ricardo Fleury Oliveira
36f3cc6b47
[Localization] Localizing "Loading..." text (#1822)
* localized "Loading..." texts

* fixes
2024-06-10 13:33:48 -04:00
Dakurei
c2375a0f5d
[Enhancement] Fix - Adjusts the color of the remaining PPs correctly to the theme (#2045)
+ Choose colors adapted to provide a contrast that facilitates reading (ratio of 3.0 or more)
    Tool used: https://webaim.org/resources/contrastchecker/
  + Refactoring of the condition to avoid unnecessarily assigning variable several times depending on the contents of 'ppPercentLeft'
2024-06-10 13:30:02 -04:00
SquillWall
f672ecc8ed
[Bug] resolve issue with input text persisting in top left of game screen in certain cases (#1982)
* resolve issue with input text persisting in top left of game screen in certain cases

* Clean up ui logic for fix
2024-06-10 11:41:01 -05:00
José Ricardo Fleury Oliveira
29d9ac7038
[Localization][pt] move pokemon-info-container label 1 pixel to the right (#2041) 2024-06-10 10:55:10 -04:00
Adrian T
7d55c165df
[QoL] add dynamic default pp color (#2039) 2024-06-10 10:46:08 -04:00
Greenlamp2
e29c08ba1f
[Test] Add Tests for Zen Mode Ability (#1978)
* added tests for zen mode - change form in battle

* added tests to run some battle against trainer/rival & boss

* added a test with a method to kill a pokemon

* added an override in the clock mocked to reduce the time of fainting pokemon and thus reducing test time from 5s to less than 1s

* added some more tests + doAttack, doKillOpponents, toNextWave, toNextTurn helper

* added some more tests + doAttack, doKillOpponents, toNextWave, toNextTurn helper + fix some tests
2024-06-10 10:10:23 -04:00
Madmadness65
32d222c9cd
Implement Arceus Plates and Silvally Memories (#1195)
* Implement Arceus Plates and Silvally Memories

* German localization for items

* Run linter on changes, add items to zh_TW localization

* linter cleanup

* Finish localization for other languages

Names for items sourced from Bulbapedia. Names for the items in Portuguese could not be reliably sourced, so they were as directly translated as possible.

* Add custom Blank Memory item

Currently does nothing, but the idea is that it would be used if the all-in-one form change item idea is followed through.

* Update item atlas

* Use move.type instead of type.value

The type effectiveness now works again.

* Update comments

* Fix type changing affecting only Silvally

* Condense switch cases down to a single line

As per Brain Frog's suggestion.
2024-06-10 09:58:34 -04:00
Opaque02
5de0185c0a
[Bug] Fixed bug where pokemon info container shows form of pokemon that doesn't have it if the previously caught pokemon has a form (#2029)
* Fixed bug where pokemon info container will show form of a pokemon that doesn't have it if the previously caught pokemon has a form

* Updated pokemonFormText to also disable interactive section if there was one
2024-06-10 01:41:06 -04:00
Opaque02
91abddb693
[QOL] Updating pokemon-info-container to show what is new when you catch/hatch a pokemon (#1754)
* Adding UI elements for new gender, ability and nature

* Added new indicators for shiny, gender, ability and nature

* Changed position of gender icon to top left

* Changes with logging and old (+) indicators for nature, form and ability

* Updated to remove old code and comments, as well as various console logs

* Updated commented code

* Addressing PR feedback

* Updated form to have a label and form name, along with cutting off the form name if it's too long

* Updated stats container to move some labels around so there's less text clumped together

* Removed some old commented code

* Fixed some issues with typing and naming

* Accidentally pushed my overrides.ts before :). Sorry!

* Updated the form name's hover over section to only work when the text is truncated

* Updating the gender check to work off DexAttr instead of a weird 2

---------

Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-06-09 23:44:38 -04:00
Munbin-Lee
54aabceb29
[Localization][ko] Fix minor typo in hiker dialogue (#2009) 2024-06-09 21:26:33 -04:00
MadridPawmot
5cb8bb7fda
[Localization][es] Translated Ice Face text to Spanish (#2000)
* Translated Ice Face text to Spanish

* Added affix
2024-06-09 21:15:39 -04:00
layharu0
033c966f1b
[Localization][ko] Challenges gen4 desc typo fix (#2017) 2024-06-09 21:02:05 -04:00
Greenlamp2
d03c75c2f9
[QoL] Improve Input Accuracy by Refactoring Button Handling (#1936)
* refactored inputs-controller for better hold button management

* refactored the touch controls file to use a class and add holding button system

* added a method to deactivate pressed key for touch on focus lost

* better lost focus management
2024-06-09 19:15:37 -04:00
Tempoanon
f6ad30b58f
[Feature] Add evil teams assets (#1577)
* Fix tinted caught icon false positive

* Remove unused import

* Rename and optimize

* Block comment

* Draft of evil team grunt pokemon pools

* Add graphics and music

* Add grunt spawn logic

* Add Giovanni

* Add team leader graphics

Giovanni and Ghetsis already have sprites, so they do not need added.

* Add teams for other evil team bosses

* Fix some typos and change hp bars to 2/2/2

* Fix sprites and add random team boss

* Add forced grunt encounter and update dialogue

* Update locales

* also lint en trainers

* More merge conflicts

* Deleted some duplicate images

* Correctly renamed the grunt files

* Forgot about team rocket

* New Magma Sprites

* Adjusted the trimming. Now they dont have as huge of a shadow bbelow them

* Fix grunt sprites

* Add real dialogue

* German Localization of the Dialogue

* Changes

* Tweak waves grunts spawn on

* Fix some typos in dialogue

* Y is canon

* Disable evil team spawns

* Fix another merge conflict

---------

Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: Jannik Tappert <tappertjannik@googlemail.com>
2024-06-09 19:02:29 -04:00
Dakurei
7ce209dd02
[Localization][fr] Fix FR typo 'Desert' instead of 'Désert' (#2021) 2024-06-09 17:26:03 -04:00
José Ricardo Fleury Oliveira
0d7af746ff
[Localization][pt] female achievements (#2013) 2024-06-09 16:23:20 -04:00
Jannik Tappert
ede56987f9
[Localization] Added german localization for challenges (#1943)
* Added german localization for challenges

* Update src/locales/de/challenges.ts

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

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-06-09 16:11:51 -04:00
Charlie Giang
c746d0723f
[Move] fix for sparkly swirl apply check (#1059)
fix for sparkly swirl apply check

Update move.ts

Co-authored-by: Temps Ray <temps.ray@gmail.com>
2024-06-09 16:08:33 -04:00
kvngrnr
aba9310ddf
[Enhancement] Color code for used PP in fight UI (#2014)
* Colorcode pp in fight ui if only half/quarter of maxPP is left

* Use three-level color coding for remaining pp

* use if/else for calculating pp color

---------

Co-authored-by: Kevin Greiner <greiner@infai.org>
2024-06-09 15:30:33 -04:00
José Ricardo Fleury Oliveira
8807efe002
[Localization][pt] Fixed ace trainer name typo (#2015) 2024-06-09 15:27:55 -04:00
ReneGV
fdc2d1cd02
[enhacement] Show Egg tier icon on starter UI (#1933)
* Show Egg tier on starter UI

* Use CamelCase on method name

* Remove egg if evolved

* Adding ts-doc
2024-06-09 12:45:21 -04:00
Jannik Tappert
a99bcbce3d
[Localization] Achievements are now based on Player Gender (because some languages differ based on that). (#1721)
* Achivments(localization of name and description) now depend on the player gender

* Fixed Name in ptBr config

* Now the achivments are also shown with a gender specific title

* Changed it so it checks if PlayerGender is undefined first

* Update src/locales/de/config.ts

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

* Update src/locales/en/config.ts

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

* Update src/locales/es/config.ts

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

* Update src/locales/fr/config.ts

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

* Update src/locales/it/config.ts

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

* Update src/locales/ko/config.ts

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

* Update src/locales/pt_BR/config.ts

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

* Update src/system/voucher.ts

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

* Update src/locales/zh_CN/config.ts

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

* Update src/locales/zh_TW/config.ts

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

* Update src/ui/achv-bar.ts

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

* Update src/ui/achv-bar.ts

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

* Update src/ui/achv-bar.ts

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

* Update src/ui/achv-bar.ts

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

* Update src/system/achv.ts

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

* Update src/system/achv.ts

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

* Update src/system/achv.ts

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

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

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

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

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

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

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

* instantiate player gender on in AchvBar constructor

* Reverted the change made only for the tests. And adjusted the import to use the new enum file

* Changed a import to make vite build it again correctly

* Again some changes to the imports for the github docs that was complaining

* The new challenges are also now localized and gender based

* Readded getDescription

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
2024-06-09 12:40:23 -04:00
Ei
c77508aef3
[Bug] Fixed getAttackMoveEffectiveness (#2006) 2024-06-09 12:37:50 -04:00
sodam
10ffe04274
[Localization][ko] #1761 Korean trainer dialogue (other unnamed trainers) (#1987)
* localized other unnamed trainers's dialogue

* Update src/locales/ko/dialogue.ts

Co-authored-by: Lee ByungHoon <o.ohmry@gmail.com>

* Update src/locales/ko/dialogue.ts

Co-authored-by: Lee ByungHoon <o.ohmry@gmail.com>

* Update src/locales/ko/dialogue.ts

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

---------

Co-authored-by: Lee ByungHoon <o.ohmry@gmail.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-09 12:29:15 -04:00
José Ricardo Fleury Oliveira
6e599de870
[Localizatoin][ptBR] achievements (#1981) 2024-06-09 12:22:18 -04:00
Tempoanon
04bad2e15d
[Feature] Update E4 teams (#1851)
* Update E4s

* Accidentally made double Poliwrath

* Fixed some typos in the champ part

* Update based on Fontbane's comments
2024-06-09 12:20:00 -04:00
InnocentGameDev
81431c9ad5
[Localization] Locales punctuation fix in descriptions in (en/es/de/it/fr/ko/pt/zh) modifier-type.ts, and other German locales punctuation fixes (#1696)
* Fix locales punctuations

  In: en, es, fr, it, pt_BR, zh_CN, zh_TW, de, ko

  + Fix somes locales

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

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

Shiny/Ability charm punctuation fix by MrWaterT

Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: MrWaterT <87186129+MrWaterT@users.noreply.github.com>
2024-06-09 11:57:53 -04:00
Greenlamp2
67cb79a435
revert changes in trainer.ts to fix an issue induced by #1986 (#2005) 2024-06-09 10:54:15 -04:00
Xavion3
d06e5d2fc6
Fix doubles battles bugs with challenges (#1986)
* Fix doubles battles bugs with challenges

* Make a fully illegal party gameover instead of error
2024-06-09 14:37:33 +02:00
Madmadness65
c1405c7fd6
[Hotfix] Add Mixed Battle BGM entries for the Gen 1-5 trainers (#1988)
* Add Mixed Battle BGM entries for the Gen 1-5 trainers

* Also fix regular trainers
2024-06-09 01:48:32 -05:00
td76099
8a0eaa0009
[Bug] Fixing multi-hit drain moves so they heal based on individual hit and not total turn damage (#1974) 2024-06-08 23:53:03 -04:00
Madmadness65
67a0ae49b3
Add new Gym Leader, Elite Four, and Champion music (#1971) 2024-06-08 20:51:37 -05:00
SquillWall
a1171eceb9
[QoL] Show currently bound controls on starter menu for last active device (#1859)
* show currently bound controls on starter menu for last active device

* add special handling for touch controls

* remove hardcoded controls for all locales
2024-06-09 03:35:11 +02:00
Xavion3
07f0a67c78
Make getTypes ignore transform when ignoring overrides (#1976) 2024-06-08 21:08:30 -04:00
Xavion3
f0a826b8f4
[Bug] Fix Victini's generation for challenges. (#1973)
* Make victini count as gen 5 challenge instead of 4

* Add comment
2024-06-08 21:06:36 -04:00
Pancakes
ae02943b16
Use secure cookies 2024-06-08 21:03:33 -04:00
40chyan
60a3edb918
[Localization] challenge.ts zh_cn translation (#1958)
* Update challenges.ts

* Update challenges.ts
2024-06-08 19:06:27 -05:00
Xavion3
8e0e8952da
Fix switching moves in challenge mode (#1972) 2024-06-09 01:05:18 +02:00
Greenlamp2
dd40c8caa2
added silent option to run tests and added a missing properties in the MockText (#1967) 2024-06-08 21:24:57 +01:00
Greenlamp2
c301a54039
[Improvement] Refactored Test Phase Management with Error Handling (#1962)
* better phase management in tests

* cleanup runFrom/to

* first step of async error handling

* second step of async error handling, halt await, still an issue with select-starter test

* added back whenAboutToRun

* added back full run suite for starter-select.test.ts
2024-06-08 20:54:20 +01:00
SeafoamQueen
0af0ad5b49
[Bug] Fix run away ability (#1890)
* Added fix for Run Away ability being trapped by trapping abilities.
Added fix for ghost type pokemon not having a 100% chance to run from battles.

* Removed log statement

* Removed commented out code

* Removed ghost type run away mechanics
2024-06-08 15:46:16 -04:00
Yentis
3f9eaf4a5d
Add setting for showing type effectiveness hints (#1061)
* type hints

* fix overwritten change

* don't set color to white, just leave it unchanged

* remove unrelated code

* don't show hints if no opponents, use type effectiveness instead of move effectiveness

* fix color not going back to white when new opponent is sent

* move effectiveness to move info container

* add effectiveness overlay, partial hints only show move effectiveness, improve colors

* lint

* docs

* remove full hints, move container to right of enemy info box

* hide effectiveness while flyout is visible

* move setting to display, use default style color instead of white
2024-06-08 15:33:13 -04:00
Adrian T
5e5ece868c
[Localization][es] Add missing curly brace (#1965) 2024-06-08 15:04:50 -04:00
MadridPawmot
281f0df220
[Localization][es] Update menu.ts (#1964) 2024-06-08 14:47:01 -04:00
Lugiad
751e28d2fc
[Localization][fr] French update the menu.ts (#1955)
* Update French menu.ts

* Update French menu.ts
2024-06-08 14:38:52 -04:00
MadridPawmot
66734c396b
[Localization][es] Spanish translation (#1963)
* Translated challenges.ts to Spanish

* Added Spanish translation

* Added Spanish translation

* Translated Pokerogue exclusive items to Spanish
2024-06-08 14:35:51 -04:00
José Ricardo Fleury Oliveira
40727bdc16
[Localization] Localize "Loading asset:" text (#1961)
* localized "Loading..." texts

* fixes

* localized loading asset

* fix
2024-06-08 14:34:05 -04:00
José Ricardo Fleury Oliveira
480a2568a9
[Localization] Fixed the localization of getModeName and "Wave" text (#1953)
* localized getModeName

* wave fix
2024-06-08 11:28:45 -04:00
José Ricardo Fleury Oliveira
7cee16cee2
[Localization] Localized game-mode and save-slot-select-ui-handler (#1728)
* localized game-mode and save-slot-select-ui-handler

* Update src/locales/de/game-mode.ts

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

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

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

* Update French save-slot-select-ui-handler.ts

* Update French game-mode.ts

* Update French game-mode.ts

* Update Spanish game-mode.ts and save-slot-select-ui-handler.ts

* fixes

* fix 2

* Update src/locales/ko/game-mode.ts

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

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

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

* fix 3

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: GoldTra <ericpazos02@gmail.com>
Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-08 11:03:01 -04:00
José Ricardo Fleury Oliveira
3c94d5aa83
[ptBR Localization] Added many translations (#1951)
* translations

* english parity
2024-06-08 10:53:25 -04:00
dorri-riddo
1fdfc6256f
[Localization] #1761 Korean trainer dialogue (blueberry academy) (#1950)
* [Localization] #1761 Korean trainer dialogue (blueberry academy)

* 오타 수정
2024-06-08 10:29:59 -04:00
Lee ByungHoon
a4cb75aaf0
[Bug] Fix to show current locale in setting (#1942)
* [Bug] Fix to show current locale in setting

* Add default value of lauguage option
2024-06-08 10:15:53 -04:00
Lugiad
bd5d16802a
[Localization] Added French localization for challenges (#1945)
* Update challenges.ts

* Update French challenges.ts

* Update French challenges.ts

* Update French challenges.ts

* Update French challenges.ts
2024-06-08 09:51:29 -04:00
sodam
64d36c9864
[Localization] Added Korean localization for challenges (#1946)
* traslated challenge mode script

* modified my mistake

Co-authored-by: Sangmin Lee <66083363+GINK-SS@users.noreply.github.com>

* deleted unnecessary word

---------

Co-authored-by: Sangmin Lee <66083363+GINK-SS@users.noreply.github.com>
2024-06-08 09:49:17 -04:00
Seonghyeon Cho
2d9f05030b
[Localization] Fix typo in skill name (비검천충파 -> 비검천중파) (#1937) 2024-06-08 09:47:35 -04:00
hayuna
b4cf80a984
[Bug] Override battles into single only if not fighting with trainers (#1949) 2024-06-08 09:41:56 -04:00
Jannik Tappert
3ef495c126
Fixed Spelling mistake in Tate & Lizas Double Dialogue (#1944) 2024-06-08 19:59:49 +10:00
Xavion3
8142f26833
Fix endless starter points (#1941) 2024-06-08 15:31:31 +10:00
Xavion3
696ff6eae3
Add Challenges (#1459)
* Initial challenge framework

* Add type localisation

* Change how challenges are tracked

Also fixes the difficulty total text

* MVP

Renames challenge types, temporarily hides difficulty, and implements challenge saving.

* Attempt to fix one legal pokemon in a double battle

* Make monotype ignore type changing effects

* Make isOfType correctly detect normal types

* Try to fix double battles again

* Make challenge function more like classic

* Add helper function for fainted or not allowed

* Add framework for fresh start challenge and improve comments

* Try to fix evolution issues

* Make form changing items only usable from rewards screen

* Update localisation

* Additional localisation change

* Add achievements for completing challenges

* Fix initialisation bug with challenge achievements

* Add support for gamemode specific fixed battles

Also make monogen challenges face the e4 of their generation

* Add better support for mobile in challenges

* Localise illegal evolution/form change message

* Update achievement names

* Make alternate forms count for monogen

* Update monotype achievement icons

* Add more comments

* Improve comments

* Fix mid battle form changes

* Reorder mode list

* Remove currently unused localisation entry

* Add type overrides for monotype challenges

Meloetta always counts for psychic and castform always counts for normal

* Change how form changes are handled

Now attempts a switch at the start of each turn instead of immediately

* Add start button to challenge select screen

* Make starter select back out to challenge screen if using challenges

* Fix daily runs

* Update tests to new game mode logic
2024-06-08 01:07:23 -04:00
Matthew
9c97e37c27
initVouchers correctly (#1940) 2024-06-07 23:50:07 -04:00
Madmadness65
bf5b6e3f6b
[Enhancement] Add more legendary battle music; add music preference setting (#1753)
* Add more legendary battle music; add music preference setting

* Replace BDSP tracks

"Souless", they say. Naysayers, I say.

* Update for settings menu refactor

* Remove unnecessary Reshiram/Zekrom music calls

The default legendary battle music is the Reshiram & Zekrom battle theme anyways, so removing these lines make it functionally identical.

* Update for settings menu refactor AGAIN
2024-06-07 21:52:14 -05:00
sodam
aa7c354be8
[Localization] #1761 Korean trainer dialogue (Gym leader in Johto region with Elite-4) (#1878)
* [Localization] #1761 Korean trainer dialogue(Gym leader in Johto with Elite-4)

* [Localization] #1761 Korean trainer dialogue(Gym leader in Johto with Elite-4)

* fixed word (by korean grammer)

* made chuck's dialogue clear

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

* made lorelei's dialogue clear

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

* fixed the spacing at dialogue.ts

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

* fixed the spacing at dialogue.ts (with GINK-SS)

* Modified Karen's dialouge more characteristic

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-07 22:32:30 -04:00
NightKev
ff7429f240
[Bug] Update Sweet Scent to reduce evasion by 2 (#1910)
cf https://bulbapedia.bulbagarden.net/wiki/Sweet_Scent_(move)
2024-06-07 21:42:17 -04:00
Matthew
3022aabc32
Cleanup format, show correct value for money rewards (#1926) 2024-06-08 02:09:12 +01:00
Matthew Olker
7422ebdb28 Walker asked me to commit to main 2024-06-07 19:43:21 -04:00
Greenlamp2
1a149bfa04
[Testing] Flexible Testing Wrapper for Phaser-Based Battle-Scenes (#1908)
* refactor executed code while importing and initializing all of these in loading-scene

* reset to main

* fix server url

* added rule no-trailing-spaces

* made progress

* test somme data from a session save is working

* trying to launch a battle

* added fetch wrapper to load data locally

* trying to mockAllSettled

* pushPhase & shiftPhase

* check integrity of exported session

* set toke + loggedInUser in tests

* progress on starting new battle

* tring to test phase but it's async

* mocking fetch

* working mock fetch

* need to handle pile of data

* attempt to use real phaser classes

* reorder overrides

* refactored to use some real classes from phaser

* removed useless things

* started to work on some container mock

* finished the mockContainer time to add some logic

* some more mock containers

* removed addMethods since there is the mock classes now

* commented issues

* attempt to create mockTextureManager

* fix tests

* mockSprite & mockText

* yes but not really

* yes but not really

* fix tutorial callback

* reached mode title

* added achievement tests

* fix test achievements with current state of mock

* correct sequence loading for BattleScene with mockLoader !

* deep dive into next step

* working wait until starter selection screen

* added newGame method into wrapper

* expect to save_slot

* trying to manage pokemon sprite for getAll without success yet

* added test for egg output

* fixed egg test for June

* fix tests + locate next issue to fix

* we are in battle baby

* added new game in one-line

* export is working but export only what's in the fetch

* fix start game as guest

* refactored how we start a battle + cleanup

* overrided mewtwo but issue with currentBattle

* refactor: rename InitAchievements to initAchievements

* added missing mock method

* override level and pokemon forms working as intended

* bringToTop Obj

* remove launch battle in achivement test

* fix getIndex when same pokemon

* can run all tests

* first attack, faint, and shop modifiers, MockClock

* on method for container

* added doAttack one-liner

* one-line export data

* removed throw error

* feat: Make `scenes` property of `GameWrapper` class public

The `scenes` property of the `GameWrapper` class was changed from private to public. This change allows external access to the `scenes` map, which is used to store Phaser scenes. This modification was made to enable easier manipulation and interaction with the scenes in the game.

* correction

* removed CanvasRenderer

* added a param to remove console.log and added a param to preven scene create call

* fix encounter wave 30 when it's a trainer

* test double-battle

* test fight without KO

* test double fight no ko

* fix crashing texture + added Text wrapper to log fight

* fix tests on boss - trainer - rival

* chore: Refactor BattleScene initialization and add new phases

Refactor the BattleScene initialization code to remove unnecessary delay and improve performance. Also, add new phases for the title and unavailable states to enhance the game experience.

* rework of Game tests

* skipFn is working

* added onNextPrompt and restore Og Start

* better newGame

* added skipFN in remove

* not yet working test but updated interceptors

* do attack work but not on PostSummonPhase phase when there is mention of silcoon and wurmple

* error located, it's just a double fight, i was not there yet

* single OHKO & double no OHKO

* added expirationFn into next prompt

* all tests are passing

* working test on non damaging move from opponent

* cleaned a bit

* removed phaser initialisation on every tests

* renamed test file

* added load system data

* added some ability support

* added onKill & onSummon abilities test

* removed useless test + cleanup

* removed useless test + cleanup

* fixed tests after merge main

* added itemHeld endTurn trigger test (toxic orb)

* added runFrom..To

* added mustRun to assert currentPhase

* added no-miss move to test things

* cleaner restore mock

* fix test

* fix moxie test + game speed

* improve test speed

* added onOurself and onOpponent mvoe test

* added onDamage test for tackle

* removed timeout in intervals to run tests faster

* cleanup

* added never crit override + separate file per test + remove randomness in randBattleSeedInt

* move folders

* better org

* renamed itemHeld folder to items

* fix deploy.yml

* cleanup

* simplified the gameManager start battle and allow single pokemon in party

* remove the need of mode development

* added input handler to test inputs + remove time from phaser into inputController

* added keyboard support

* added fakeMobile support

* added details

* removed a console.log + added logUp

* move test to folder

* fixed canvas issue

* added starter select tests

* added some more test on starter-select

* added battle-order tests

* added battle-order tests

* fixing Phaser RNG

* ordering stats for better reading

* fix tests for main

* adapt battle-order test to be more readable

* fix merge

* fix some errors and silent all errors from gameWrapper since it's not possible to avoid them

* fix mocks to manage childs & stuffs

* added some docs

* fix achievement test

* removed an unused file

* separate misc tests to clean battle.test file

* added a basic french lokalization test

* added i18n where it needs to be used only

* revers extracted method

* removed unused method

* removed handler fetch since we do not test anything server related

* fix test with handlers removed

* added intrepid sword test

* fix enum exp party

---------

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
2024-06-07 18:33:45 -04:00
Madmadness65
3d87e86e58 Fix minor typo in Surskit's German name 2024-06-07 16:57:26 -05:00
Jannik Tappert
ece7c9f2d5
Added missing german dialogue for sailor and firebreather (#1883) 2024-06-07 22:51:49 +01:00
AJ Fontaine
f3898dbabd
[Bug] Fix female trainer names on male Backpackers/Hikers (#1919)
* Fix female trainer names on male Backpackers/Hikers

* Remove duplicate Backpacker Ruth
2024-06-07 17:44:35 -04:00
AJ Fontaine
eb058d7eb7
[Bug] Fix Harvest not checking stack limits for berries (#1920) 2024-06-07 17:42:48 -04:00
Madmadness65
83c11a0865 Allow Partner Pikachu & Eevee to Gigantamax
Note that they will revert back to regular Pikachus and Eevees if deactivated due to an existing bug with the form changes.
2024-06-07 16:21:18 -05:00
Matthew Olker
63d98fe70e Hotfix: types breaking gh-pages action 2024-06-07 17:05:44 -04:00
td76099
0a17c2495a
Bugfix: Abilities check final move type instead of default move type (#1440)
* Added check for move changing type before determining if defending is immune to it because of an ability

* Remove duplicate Ability change class and added getType() function under a move

* Reworking how moves get passed into hit calc

* Fixing exceptions and overreaching changes

* reverting forwarn and dancing move back to original since they are not being changed

* fixing some small move related bugs

* Fixing file permissions after testing

* Fixing move type not resetting after individual MoveEffectPhase

* Fixing move.ts permissions (again)

* Addressing some MR feedback and adding some documentation for PokemonMove class
2024-06-07 16:57:57 -04:00
sodam
636cb9c8f2
[Localization] #1761 Korean trainer dialogue (some unnamed trainers) (#1911)
* localized to korean (some unnamed trainers)

* fixed dialogue's meaning clear

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

* fixed spacing right

Co-authored-by: Sangmin Lee <66083363+GINK-SS@users.noreply.github.com>

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: Sangmin Lee <66083363+GINK-SS@users.noreply.github.com>
2024-06-07 21:52:31 +01:00
prime
f5f98ec537
[Bug] fixed wrong stacking of move info overlay issues (#1888)
* fixed wrongly stacking overlay issues

- starter selection
 - IVs are now behind the overlay
 - the overlay should clear when exiting it via controller (requires tests as i don't have a controller)
- TM
 - will prevent C/Shift from showing the overlay until the next item selection, when selecting a TM as item reward.
 - will prevent C/Shift from showing the overlay when canceling item selection

* removed reference to previously deleted resource

* fixed override
2024-06-07 16:45:49 -04:00
Jannik Tappert
97dde2d1f3
[QoL] Added https and server url is read from the env now (#1764)
* Added https and server url is read from the env now

* Added the new key to the vite.env.d.ts
2024-06-07 21:43:32 +01:00
Arxalc
7c3ace7204
[Bug] Fixed primal weather interaction. (#1744)
* Fixed primal weather interaction.

* Made adjustments

* Improved code readability
2024-06-07 15:22:06 -04:00
Corrade
c177f3c1fb
[Bug] Ignored strong winds for stealth rock and anticipation (#1682) 2024-06-07 15:15:24 -04:00
Lee ByungHoon
d592187f2c
[Localization] Add localization in party-ui-handler (#1712)
* [Localization] Add localization in party-ui-handler

* [Localization] Add "Release", "Apply", "Teach" localization, changed translation of Korean

* [Localization] Translated party-ui-handler's localization to Deutsch
2024-06-07 15:08:34 -04:00
Madmadness65
a224f5e822 Add Partner Pikachu & Eevee party icons
This also necessitated giving them unique front & back sprites too, even if they are currently just duplicates of the normal forms. This change will help players identify when they are using/have encountered a Partner Pikachu or Eevee.
2024-06-07 13:58:48 -05:00
Adam Clemons
fb21caa769
[Bug] Fix ability Download switch in (1669) (#1679)
* Update ability Dowbload

* Remove whitespace

* Update ability.ts
2024-06-07 14:17:22 -04:00
hayuna
bb1dde5b0c
[Refactor] Move enum ExpNotification into separated file (#1909)
* Move enum ExpNotification into separated file

* Update phases.ts

* Change type of this.scene.expParty into enum
2024-06-07 13:14:52 -04:00
雪霁
19712e0d43
fix language auto detect (#1784) 2024-06-07 11:27:42 -05:00
Matthew Olker
20a3a4f60f added a few more gameobject names for debug 2024-06-07 10:27:36 -04:00
MutenYoshii
f17a4ff3f2
[Move] Implemented Court Change (#1799)
* [Move] Implemented Court Change

* Returned overides to normal

* Added recommended changes

* Removed an unnecessary if statement for swaparenatagsattr

* Move the swaptags array to the call as well as changes to the quiet boolean

---------

Co-authored-by: Juan <jmora279@fiu.edu>
2024-06-07 09:27:11 -05:00
MadridPawmot
4745b591c2
[Localization] Spanish dialogues (#1892)
* Update dialogue.ts

* Fixed typo
2024-06-07 15:02:24 +01:00
Sangmin Lee
50bf717c5c
[Localization] #1761 Korean trainer dialogue (roark, gardenia, maylene, fantina) (#1905)
* [Localization] #1761 Korean trainer dialogue (roark, gardenia)

* [Localization] #1761 Korean trainer dialogue (maylene, fantina)

* Modified Roark's dialogue more natural

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

---------

Co-authored-by: returntoice <dieandbecome@gmail.com>
2024-06-07 09:57:14 -04:00
DustinLin
ffdbdc1139
fix sleep talk targeting (#1813) 2024-06-07 13:38:22 +01:00
José Ricardo Fleury Oliveira
132d01776e
[ptBR Localization] Updated dialogue.ts, Tera Shards and trainer.ts (#1881)
* updated sailor dialogue

* tera fix

* trainers

* ice face
2024-06-07 12:57:10 +01:00
Cycrum
cc2e31dbe0
[Localization] Corrected capitalization on Quick Claw activation text (#1894)
* Update pokemon-species.ts

Updated Pokemon genders to canonical rates

* Corrected capitalization of Quick Claw activation
2024-06-07 00:45:36 -04:00
MrWaterT
a852106a9d
[Localization] Correct and apply updates to Korean (#1863)
* [Localization] Apply Korean to update

ability-trigeer.ts
  windPowerCharged: Wind Power/Wind Rider #1566
  Perish Body #1554
  Poison Heal #1245
menu.ts
  Loading screen disclaimer 7c9e5e9
modifier-type.ts
  TM description with overlay key notice #1585

* Correct wrong text and align text width

change RV
remove space from FGEN

* Edit wrong space

* Use special color(official) rather than unofficial shiny

* Translate iceFaceAvoidedDamage
2024-06-07 00:19:45 -04:00
Xavion3
9013921523
[Bug] Fix speed tie code (#1895)
* Fix speed tie code

* Fix off by one error

* Shuffle before sorting to make code cleaner
2024-06-06 23:01:13 -04:00
DustinLin
a815b73d96
[Documentation] documentation of move.ts (#1828)
* starting documentation of move.ts

* more docs

* fixing comments

* updating comments
2024-06-06 20:11:14 -05:00
Raidette
209a69d098
[Move] Rototiller implementation (#1885)
* rototiller implementation

* attack now fails if no eligible grass type pokémon is fielded
2024-06-06 17:22:04 -04:00