Commit Graph

2940 Commits

Author SHA1 Message Date
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
chaosgrimmon 2ef376e4df
[Sprite] Opaque pixels on exp shiny Mimikyu (#2345)
* [Sprite] Opaque pixels on exp shiny Mimikyu

* [Sprite] Opaque pixels on exp back shiny Mimikyu
2024-06-17 13:24:57 -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