Commit Graph

2425 Commits

Author SHA1 Message Date
FredeX
7f0de47554
[Localization] updated german translation for thunderclap (#1598)
* fixed thunderclap translation

* updated translation thunderclap

* fixed translation

* updated  translation for thunderclap

---------

Co-authored-by: Frederik Hobein <frederik.hobein@nterra.com>
2024-05-30 09:43:48 -04:00
FredeX
1af9f62246
[Localization] German translations added for 'thunderclap', 'wicked/blazing/noxious/combat/magical torque' and fixed a typo (#1595)
* Added german translation for the descriptions of thunderclap, blazing torque, wicked torque, noxious torque, combat torque and magical torque

* fixed typo in german splash message

---------

Co-authored-by: Frederik Hobein <frederik.hobein@nterra.com>
2024-05-30 01:12:25 -05:00
Madmadness65
2863c5fbfd Mark various forms as starter selectable
This was initially intended to correct Minior's Core forms being selectable when they shouldn't have been ( #1594 ), but was expanded to marking all forms that should be selectable as such, even if an evolved Pokémon, just in case.
2024-05-30 00:47:52 -05:00
flx-sta
8bc2c19361
prevent double-tab zoom on action pad (#1593) 2024-05-30 00:35:50 -04:00
flx-sta
48f2ecf39a
tests: add mock for FontFace and it to vitest setup (#1591) 2024-05-30 04:44:36 +01:00
Benjamin Odom
9b5c1cdadb
Adds a Small Flyout Panel to the Battle Info Object (#1377)
* Initial Commit

* Update pbinfo_enemy_boss_stats.png

* Move to Separate Key

* Add Separate Mobile Control for Flyout

* Add Setting to Enable/Disable

* Add to the Tutorial

* Change to BUTTON.V
2024-05-29 20:29:59 -04:00
Gianluca Fuoco
73d3d8648f
[Bug/Enhancement] Fix stat change color (#1461)
* fix: use orange for stat increase and blue for stat decrease like in main games

* fix: run eslint
2024-05-29 20:26:24 -04:00
InnocentGameDev
dfdb1909f1
[Localization] Spanish menu.ts and tutorial.ts translation and typos-fixing (#1583)
* Translation fixes for Spanish

* Tutorial.ts Spanish translation fix

* Update menu.ts

Fixed the message, didn't realize that line needed updating too
2024-05-29 19:21:49 -05:00
Linka
b3a21eb7fe
Update locales\it biome.ts (#1573) 2024-05-29 19:02:35 -05:00
flx-sta
6b9c10be58
migrate touch-controls to typescript (#1548) 2024-05-29 18:36:21 -05:00
Benjamin Odom
700ccf3afc
Various Error Fixes (#1580)
* Add @types/node to the package lock to resolve node_module errors

Devs will need to run npm install --save-dev @types/node on their end as well

* Final Various Fixes
2024-05-29 18:14:32 -05:00
MrWaterT
8e157edce9
Add Korean Locale (#737)
* Add korean locale without translation

* Translate ability,move,pokemon to Korean

* Translate miscellaneous to Korean

* Add Accuracy in the fight ui to Korean

* Apply nature,growth rate lang files to Korean

* Add missed file import to Korean config.ts

* Add font and its license for Korean then Apply it

pokemon-dppt from FontStruction and its license

* Translate any other lang file to Korean

* Cleanup Korean locale files

Indentation for pokemon and starter-select-ui-handler
Make config shoft

* Update Korean translation for the latest commits

ToggleSize dependency e4d3f73d,
 + Align togglesize locale text
Frisk description 6d73500a
Starter select UI 34a4f869, 74ee3329
Add ability triggers locale file 1c56efc8
Zippy Zap description 4e279224

* Implement locale font loading

Revert multiple font usage from style fe7fe845
Dynamic font loading on language changed

* Translate new localization parts to Korean

Return to title become save and quit
  menu-ui-handler.ts ac2e7812
Generation text added
  starter-select-ui-handler.ts afcffab9
Missing translations for learning move
  battles.ts:countdownPoof, learnMoveAnd 44c0d29c
Weather & evolution texts translated
  config.ts, weather.ts, menu.ts b8dff030
Added modifier type file for item translate
  config.ts, modifier-type.ts b5ae8330, b82b8c31
Egg gatcha machine is now Korean
  config.ts, egg.ts 975d1ed5
Add splash message literals to locales
  config.ts, splash-messages.ts 8dce9fa2
Trainers are also localized
  config.ts, trainers.ts b06190c4, 7f003d46, 364b19df
Double battle trainers appeared
  battle.ts:trainerAppearedDouble f1e97f3b

* Small patches to Korean translations

Include generation consistency (learnMovePrompt, eggHatching),
        wrong space (learnMoveReplaceQuestion),
        missing word (learnMoveNotLearned),
        match to modifier-type.ts (ivScannerUseQuestion),
        and match to english and else (bossAppeared)

* Apply edits to Korean translation

Re-order config.ts 3f571a36
Fix splash message attribute to fixed config 429e6635

* Corrections and new text for Korean translations

Trainer misstypo correction 0cd305d7
  trainer.ts
BerryType localization 25014208
  config.ts, berry.ts
IV scanner updated 96af567c
  config.ts, battle-message-ui-handler.ts
Melt stat and type into info 3cc9c93
  config.ts, modifier-type.ts pokemon-stat.ts -> pokemon-info.ts

* Update Korean locale up to date

Larry and Lance are now unique 93dee06e
Trainer names errors about 'poké' 49adedbc, 13f2cafe
Wrong text edit for maylene
  trainers.ts
Egg voucher translation 7216990d
  config.ts, voucher.ts
Cleanup starter select ui handler ca1ae4b5, b95a59c0
  starter-select-ui-handler.ts
Correct text overflow
  tutorial.ts

* Modify loadFont to fit in nonExplicitSupportedLngs

'ko-KR' or 'ko' is loaded browser by browser, in any case font will be loaded.

* Update Korean translations


* Apply updated text

Berry pouch 8b4aa872
  modifier-type.ts
Acrobatics 0d614526
  move.ts
failedToLoadSaveData 32fadf8c
  menu.ts
HoneyGather caeb22c2
  ability.ts


* Apply added Text

Plates and Memories f914b8fe
  modifier-type.ts
trainerSendOut, moneyWon, partyFull 79af1152
  battle.ts
gym_leader_double, champion_double, Double Names aaa95ebe
elite_four_female, champion_female ac2f7755
  trainers.ts


* Apply new locale category implement

Biomes de1c2b2b
  config.ts, biome.ts
Trainer dialogue ac2f7755, d23d8356
  config.ts, dialogue.ts
Statistics 6d2b8ef2
  config.ts, game-stats-ui-handler
Info Container fb26b6d5
  config.ts, pokemon-info-container.ts

* Recover coding style

include 2-space-indentation

* Add Korean Font

No more license text file

* Add missing config to Korean

* Fix ESLint failure on Korean

* Fix ESLint failure on Korean 2

* Update to Main Localization Changes

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-29 18:05:14 -05:00
Jannik Tappert
ac4e72c87a
Fix double battle named trainers having unevolved Pokemon (#1582) 2024-05-29 18:33:18 -04:00
Adrian T
7e1b383be2
Add window showing number of eggs hatching during hatch phase (#1421)
* add window showing count of eggs hatching

* adjust property naming
2024-05-29 17:17:41 -05:00
hayuna
ee2c61c4b8
[Feature] Add possibility to override foe level (#1561)
* Add possibility to override foe level

* Override foe level

* Update code styling

* Replace null with 0 as init value

* Replace null with 0 as init value

* Update order of constants
2024-05-29 15:17:36 -04:00
td76099
55423dd39d
Feature: Finish Magnet Pull and clauses for Arena Trap (#1193)
* Implements Magnet Pull and lets Levitate/Flying Pokemon ignore Arena Trap

* using isGrounded() instead of checking for Flying/Levitate

* MR feedback to use condtions for trapping instead of having it in the class

* Making Shadow Tag Pokemon immune to Shadow Tag

* Updated to make sure Tera Stellar Pokemon are checked against their original type as well
2024-05-29 14:47:16 -04:00
Benjamin Odom
8d3c334e50
Fix move.ts Errors (#1564) 2024-05-29 11:54:33 -04:00
Xavion3
1b7b539d68
Implements Supreme Overlord and fixes Last Respects (#1219)
* Implements Supreme Overlord

Also fixes count for Last Respects

* Add comments
2024-05-29 11:07:59 -04:00
Flora A
2fcde2907d
Added support for Pro Controller mapping (#1492) 2024-05-29 16:59:39 +02:00
Greenlamp2
6b99eda84a
small detail in ui-inputs, was still working but not whitelisting keys, not sure if still needed though (#1560) 2024-05-29 14:33:36 +01:00
Benjamin Odom
a880185289
Fix Errors in ui-inputs.ts (#1549) 2024-05-29 13:16:57 +01:00
Jannik Tappert
9e0fd33510
Type Icons are now also localized when learning a new move (#1557) 2024-05-29 11:35:54 +01:00
Dakurei
b10102b52a
[QoL] [Localization] Make achv-bar ui resize dynamically based on content (#1520)
* Make achv-bar ui 'responsive'

  To facilitate translation, among other things

* Apply suggestions on PR
2024-05-29 09:02:41 +01:00
InfernoVulpix
19ec18677b
Prevent useless Ethers (#1474)
Moves with 5 or less max PP now only boost Ether/Elixer rates if they are at less than max PP.
2024-05-29 00:04:02 -04:00
40chyan
bbaaf80f1d
Update zh_CN translation pokemon-info-container.ts (#1479) 2024-05-28 23:57:40 -04:00
AJ Fontaine
53200b2112
Correctly capitalize Mega Evolved (#1527) 2024-05-28 23:55:05 -04:00
Lugiad
637b8bd6c6
French typos in dialogue.ts (#1521) 2024-05-28 21:11:03 -05:00
Benjamin Odom
d34e0dd2c6
Fix Errors in inputs-controller.ts (#1523) 2024-05-29 00:43:38 +01:00
Amani H
47d39388ac
Implement Triple Kick/Triple Axel/Population Bomb (#1341)
* Implement Triple Kick/Triple Axel/Population Bomb

* Add maximum allowed base power increments

* Add documentation

* Fix Population Bomb, Account for Skill Link

* Change multi-hit power increment behavior

* Fix Typo
2024-05-29 00:07:35 +01:00
Benjamin Odom
4d15269eec
Fix Error with Typecasting (#1519) 2024-05-28 23:45:18 +01:00
Greenlamp2
0385a90f08
put the preventElementZoom call into a method instead to call it from anywhere/anytime we import it (#1515) 2024-05-28 16:22:32 -05:00
Benjamin Odom
a163a420bd
Fixes etPositionRelative Errors (#1514) 2024-05-28 17:16:14 -04:00
GoldTra
d7146bb1c1
Updated spanish translations (#1500) 2024-05-28 17:14:44 -04:00
Adrian T
fccd546415
Add Settings On Title Screen, Update Starter-Select Tutorial Dialogue (EN, DE, FR, CN, BR) (#1367)
* add settings on title screen, update starter select tutorial (en)

* French "Settings" transaltion in menu.ts

* Update French tutorial.ts

* [LOCALIZATION] add DE

* fix players online position

* [LOCALIZATION] add zh_CN

* [LOCALIZATION] add pt_BR

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-05-28 16:51:33 -04:00
AJ Fontaine
5afe32a1e2
[QOL] Removed King's Rock requirement for Politoed/Slowking evos (#1501)
* Removed King's Rock requirement for Politoed/Slowking evos

* Remove unused header
2024-05-28 15:57:46 -04:00
Benjamin Odom
1420c26f22
Fix issue with shiny star placement in starter-select-ui-handler.ts (#1512) 2024-05-28 15:50:40 -04:00
Ethan
4695d0617d
Download Ability Fix (#1119)
* Fixes Issue #993 by changing from base stats to include summonBattleStats

* Added TODO with Substitute

* Fix conflicts

* Unsure why true was put through for passive, probably just a mistake on my end

* !== fix

* Conflict fix

* Eslint Fix

* Implement Double Battle average to take in stats from both Pkmn
2024-05-28 15:32:52 -04:00
Benjamin Odom
91013cf8c4
Candy Icon Display Bugfix (#1507)
Fixes a small visual issue where scrolling through a list of Pokémon would not hide a candy if the Pokémon was not the root species.
2024-05-28 20:22:59 +01:00
flx-sta
8824082ceb
Fix for the zoom issue (#1326) (#1329)
* #1326: add touchstart event to dpadCenter to prevent zoom behavior

* #1326: improve variable naming for preventElementZoom

* #1326: change selector to "#dpad"

instead of just "#dpadCenter"
2024-05-28 14:02:49 -05:00
Matthew Olker
dc8672b2bd indicator hotfix 2024-05-28 14:05:00 -04:00
José Ricardo Fleury Oliveira
7e003d68a9
Indicator when a candy upgrade is available (#1083)
* initial implementation

* updated logic

* reverse retTint

* added candy overlays and colors

* added settings and minor fixes

* german changes

* logic fix

* german changes pt2

* german changes pt3

* setting name changed

* Update battle-scene.ts

* initial animation implementation

* minor fixes

* main compatibility

* minor fix

* logic for animations

* eslint fixes

* final generation logic

* Pause Animation when Selected or Purchased

* Disable Indicator if not Root Species

* Add to Reload and Add Anchor

* Fix Animation on Change

* Fix Icon on Change

* Code Cleanup

* fix

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-28 13:49:15 -04:00
Dmitriy K
9893c21a7e
implement Cheek Pouch ability (#987)
* Partially implement Cheek Pouch ability

* add cheek pouch trigger to EatBerryAttr class

* Partially implement Cheek Pouch ability

* add cheek pouch trigger to EatBerryAttr class

* add cheek pouch trigger to new berry phase, remove partial tag

* run auto formatter because I forgot

* hotfix berries triggering before status effects

* Revert "hotfix berries triggering before status effects"

This reverts commit 3fbbc9a165.

* add partial tags to abilities that would be blocked by Heal Block
2024-05-28 13:19:03 -04:00
Matthew Olker
e7cef039c3 fix dialogue interface structure 2024-05-28 12:32:17 -04:00
Lugiad
e37b278b4f
Update French modifier-type.ts (#1496) 2024-05-28 10:57:38 -04:00
José Ricardo Fleury Oliveira
0780211901
Quick translation fixes (#1497)
* translation fixes

* quick translation fixes
2024-05-28 10:49:38 -04:00
Dakurei
bf06ce6340
Removes useless '/' make it doubles in somes cases (#1482) 2024-05-28 10:08:53 -04:00
José Ricardo Fleury Oliveira
5512be8f31
Translation fixes ptBR (#1468)
* translation fixes

* info container

* localized position and text size in pokemon-info-container
2024-05-28 10:00:27 -04:00
jjoines
d835cfd13f
Fix battle girl victory dialogue (#1489)
Fixed string to have colon, not a period.
2024-05-28 09:23:29 -04:00
40chyan
77b59a1cef
zh_CN update game-stats-ui-handler.ts (#1481)
* Update game-stats-ui-handler.ts

* Update game-stats-ui-handler.ts

* Update game-stats-ui-handler.ts
2024-05-28 09:09:53 -04:00
Frederico Santos
89f58961cb
Implement Zero to hero (#1131)
* Implemented Zero-To-Hero

* Zero to Hero documentation and form reset on summon

* Zero to Hero: form reset on biome/trainer

* Updated documentation on PreSwitchOutFormChangeAbAttr apply

* Faint bypass on canApplyAbility

* revert zygarde

* zero to hero post-merge
2024-05-28 06:11:04 -05:00
40chyan
4b8c9c87c3
Update zh_CH biome names (#1473) 2024-05-28 01:05:01 -04:00
Madmadness65
b058e10713 Add missing summon text for As One abilities
Just a minor flavor text addition to mirror the canon games.
2024-05-27 23:54:56 -05:00
Adrian T
0d80a045fd
fix gender override (#1469) 2024-05-27 23:59:01 -04:00
Franck TROUILLEZ
99835c27c8
Add setting to change money format (#1261)
* Add setting to change money format

This setting can currently be set either on "normal" or "abbreviated". "normal" will show all the numbers, while "abbreviated" will abbreviate to the most significant numbers and use a suffix to show the power-10.

A new enum has been added for MoneyFormat as well.

* Update src/battle-scene.ts

Co-authored-by: Franck TROUILLEZ <57403591+francktrouillez@users.noreply.github.com>

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-27 22:58:33 -04:00
Xavion3
17e4edeb8d
Fix endless retries (#1465) 2024-05-28 02:36:32 +01:00
Xavion3
970e335fab
Remove endless 5850 crash bug (#1463) 2024-05-28 11:01:13 +10:00
Tempoanon
f64e9e4a0d
Update Phione and Manaphy levelup learnset (#1462) 2024-05-27 19:50:27 -05:00
Daeloth
f957994fe4
Tweaked SSS luck value color (#1457)
Changed the gradient colors in the SSS luck value to something with a little more life
2024-05-27 20:14:16 -04:00
Lugiad
fb26b6d501
pokemon-info-container Locales (#1413)
* Update i18n.ts

* Update pokemon-info-container.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Update config.ts

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update pokemon-info-container.ts
2024-05-27 17:28:53 -05:00
MadridPawmot
ec82ecd46d
Spanish translations (#1441)
* Update ability-trigger.ts

* Translated trainers
2024-05-27 17:24:41 -05:00
Lugiad
b0b4f0740f
Typo FR dialogue.ts (#1443) 2024-05-27 17:23:53 -05:00
Matthew Olker
5be2a6a4e7 Variant Update 2024-05-27 13:47:15 -04:00
Jannik Tappert
f24795d3fc
Changed How is local is checked and how serverURL is build to prevent… (#1122)
* Changed How is local is checked and how serverURL is build to prevent errros in offline mode

* Added window.location.hostname === ''; back as a check

* Removed any line breaks in the isLocal Condition

* 3rd time is the charme

* Update utils.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-27 10:20:25 -05:00
Jannik Tappert
8a6f87cfea
When the language is changed the game will complety reload (same as F5). (#1438)
Also now only the current language type image is loaded. If it doesnt exist for a language it will load the english one as a fallback

Tested with all lanugages
2024-05-27 10:12:29 -05:00
Lugiad
6059f0ee33
Typo FR dialogue.ts (#1433)
* Typo FR dialogue.ts

* Update dialogue.ts

* Update dialogue.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-27 09:26:52 -05:00
Jannik Tappert
88f725e15a
zhTW Type Images are now correctly loaded. (#1436) 2024-05-27 09:23:05 -05:00
Jannik Tappert
d23d835687
Fixed that the parasol lady for some reason wanted to start her dialogue with victory dialogue 2 instead of 1 (#1437) 2024-05-27 09:21:38 -05:00
Lugiad
b768362090
Typo FR dialogue.ts (#1432)
* Typo dialogue.ts

* Update dialogue.ts

* Update dialogue.ts
2024-05-27 07:52:34 -05:00
Elliott Simmonds
2edec7f95b
Partially implemented Steely Spirit (#1430) 2024-05-27 07:19:17 -05:00
Lugiad
fc9186e0af
Update French trainers.ts (#1429) 2024-05-27 07:07:00 -05:00
Dakurei
6d2b8ef2d1
Cleanup game-stats-ui-handler (from PR #1095) (#1106)
* Update i18n.ts

* Update config.ts

* Update game-stats-ui-handler.ts

* Add files via upload

* Cleanup code

  + Modification of the interface to manage labels dynamically (without this, the language change was not reflected until the page was completely refreshed)

* Apply ESLint after rebase on upstream/main

* Remove useless initStatsKeys

* Adds german localization

  + Changes font size in german only (because otherwise it overflows :D)

* Adds an additional method of formatting large numbers to make it a little more pleasant to read

  + The other was a little too barbaric in what it truncated, but is still useful in certain cases
  + Use abbreviations from 10^0 to 10^33

* Use of the new 'formatFancyLargeNumber' method to display money owned in combat and the highest sum of money obtained in statistics

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-05-27 12:58:20 +01:00
40chyan
da5370cbd5
Update trainers.ts (#1428) 2024-05-27 06:43:59 -05:00
Jannik Tappert
7ea8e48a4e
Readded import for i18next to trainer-config.ts (#1427) 2024-05-27 06:38:22 -05:00
Lugiad
a0fdb8c07b
Update for French trainers.ts (#1426) 2024-05-27 06:31:15 -05:00
Lugiad
a1d57fc888
First batch of French translations for dialogue.ts (#1425) 2024-05-27 06:30:18 -05:00
Jannik Tappert
ac2f7755c2
Add the option to localize the Dialogue (#1254)
* Started Dialogue Loc. This is very much WIP

* Done with the trainer dialogue except the rival(s). And the special dialogue...

* Added Rival Dialogue

* Added final boss and ending dialogue

* Added Dialogue to all languages (just copied the english file). And updates the config.ts

* Added chinese splash

* Lint

* Added the new dialogue for the galar elite 4

* The dobule dialogue is now also localizable (also added dialogue localization files at all to chinese TW

* Added german dialouge for the named doubles

* Added Endboss translation for german

* Added rival dialogue in german (and yes i checked that every of them fits)

* Dialogue for trainer classes (As good as possible since the english text at some parts doesnt make a lot of sense)

* Start Gym Leaders

* Finished Kanto Gym Leaders
(Added missing dialogue to all other languages)

* Hoenn Gym Leaders

* Some more

* The Rest

* Marshal was missing something

* Partial French translation to dialogue.ts

* Added gender specific titles for elite 4, gym leaders and champs

* Readded import that was removed by a merge

* The dialogue can now be localized based on the players gender (male or female). unset uses the male dialogue. Can be easily adopted when we add non binary options later

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-05-27 06:14:37 -05:00
ReneGV
bfe018ef65
Implement Comatose (#1423)
* Implement Comatose

* Lint

* Remove todo comment

* Remove partial
2024-05-27 06:01:03 -05:00
hayuna
4c443e7760
Add flag for immediate hatching eggs (#1424)
* Add flag for immediate hatching eggs

* Change time to hatch based on flag in Overrides
2024-05-27 05:49:49 -05:00
Jannik Tappert
35cb04fae1
Added the type icon localization (#1407)
* Added the type icon localization

* Updated french types image

* Revert the change to the "Type" Label. This wasnt meant to be in this pr
2024-05-27 03:39:18 -05:00
Matthew Olker
300aa1163a fix geticonatlaskey and geticonid for pokemon with forms 2024-05-27 00:03:15 -04:00
snnh
233911c462
Fix Chinese translation (#1417)
* Fix Chinese translation

* Fix Chinese translation

* Fix Chinese translation
2024-05-26 19:44:19 -05:00
Xavion3
72c7e9c194
Prevent duplicate evolutions crashing the game (#1416) 2024-05-27 00:14:38 +01:00
Madmadness65
6418632bd3 Fix Eevee evolution condition
Partner Eevee evolved the same way too, and I forgot to fix it, whoops.
2024-05-26 17:05:45 -05:00
Madmadness65
23301cc180 Fix Pikachu evolution condition 2024-05-26 16:51:22 -05:00
Amani H
16b17fc9f3
Change GitHub Link (#1408) 2024-05-26 16:18:28 -05:00
Madmadness65
6f4c087f7a Add Pikachu and Eevee technical forms
This adds Partner Eevee and Partner Pikachu, as well as all Cosplay Pikachu variants. Also included are some minor trainer-related formatting clean ups.

• Partner Pikachu and Eevee have their boosted base stats from the Let's Go games, but are otherwise identical in function and appearance to their regular variants.
• Cosplay Pikachus have their special moves as "evolution" moves and can be relearned if desired.
• Unlike the canon games, Partner Pikachu and Eevee are able to evolve like normal.
2024-05-26 16:15:37 -05:00
José Ricardo Fleury Oliveira
b239179c46
added translations (#1402) 2024-05-26 12:37:25 -05:00
Smewkie
42e0545918
Update trainer-config.ts (#1403)
Simply changing Marshal to have 2 evolved pokemon on his list rather than their unevolved forms, just in case there's another hiccup like with Iris having an Aron on her champion team.
2024-05-26 12:36:44 -05:00
Greenlamp2
3120917368
Overrides - Gender, Xp multiplier and arena tint (day & night) overrides (#1201)
* added override gender and arena tint (day & night)

* cleaner diff

* reset override

* fix gender override default value

* removed useless return variable

* also null for opponent

* add override tint, gender, xp multiplier

* remove condition duplicated + set overrides initial value to null

* added comments

* eslint

* Update overrides.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-26 11:17:41 -05:00
Jannik Tappert
bc773f07e3
Added a check for if it is a double battle. Otherwise a named trainer that has a potential double would show the "female" (partner) sprite if the solo battle was of female variant. (#1383) 2024-05-26 15:48:28 +01:00
Lugiad
96491039fb
Update French biome.ts (#1386) 2024-05-26 04:07:44 -05:00
Upos1997
6e286257d3
Implemented Plus and Minus (#1155)
* Implemented Plus and Minus

* Merge branch 'pagefaultgames:main' into main
2024-05-26 04:03:27 -05:00
Madmadness65
8b920f2e60 Mark Magearna's forms as selectable starters 2024-05-26 02:06:48 -05:00
SnowCharm
a2996cdd66
add zh_CN biome.ts (#1389) 2024-05-26 00:33:14 -05:00
Nicholas Galauxy
9aa22d6150
Bugfix: In-Battle Formes are incorrectly selectable (#1388)
* Fix incorrectly unselectable starter formes

* Fix linter issue that got merged upstream

* Remove battle-bond key from form key overrides based on feedback

* Fixes being able to select forms that shouldn't be startable

* Add Minior Cores as cycleable

* Remove unused code from previous implementation
2024-05-25 22:31:42 -05:00
Greenlamp2
b170478119
fix conflict without rebase (#1186) 2024-05-25 21:36:09 -04:00
Jannik Tappert
de1c2b2b5b
Added localization to the biomes. (#1378)
* Added localization to the biomes.

German Localization by me. (Native German).
French Localiztation by sangara42 from Discord

* Changed End back to ??? and Space is now Space again it all but German and French

* Changed english biome names according to https://wiki.pokerogue.net/biomes:biomes

* And we are back to grassy field since apparently the wiki is wrong...
2024-05-25 15:57:22 -05:00
nterrien
6f2d639a7b
Fix French translation of Genesect's Drive (#1379) 2024-05-25 15:54:31 -05:00
td76099
ae0cd86bc3
Adding clause so right Pokemon in double battle cannot target itself with a spread move when left one dies with no replacement (#1370) 2024-05-25 14:06:50 -05:00
Nicholas Galauxy
93c91bf73a
Fix incorrectly unselectable starter formes (#1332)
* Fix incorrectly unselectable starter formes

* Fix linter issue that got merged upstream

* Remove battle-bond key from form key overrides based on feedback
2024-05-25 12:53:46 -05:00
damocleas
1b8b0789c0
Made Lab 25% instead of 12.5% to encounter after Factory (#1351)
This biome is too rare, this is just a temporary change until biomes are redone.
2024-05-25 18:45:07 +01:00
ASCAlex
311f7b7420
Fixed German localization for Starf Berry description and localized zippyZap effect (#1373) 2024-05-25 11:47:31 -05:00
Frederico Santos
f95bd40353
Swapped Aron for Aggron on Iris pokemon pool (#1374) 2024-05-25 11:45:27 -05:00
Benjamin Odom
5c28e1fb11
Adds New BattleSceneEventTypes (#1372)
* Add BattleSceneEvents

* Update battle-scene-events.ts
2024-05-25 17:23:53 +01:00
Jannik Tappert
97d8275417
localized Honeygather again (#1369) 2024-05-25 09:31:30 -05:00
Frederico Santos
ef28e75b39
hotfix for alder bgm on double battle (#1368) 2024-05-25 09:20:27 -05:00
Jakub Hanko
caeb22c26b
Implement Honey Gather (#1360)
* Implement Honey Gather

* Updated Ability Description

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 08:01:08 -05:00
Jannik Tappert
aaa96ebe0e
Adding the option to have named trainers be able to have a double battle together (#1318)
* WIP: Adding the option to have named trainers be able to have a double battle together

* The team generation now works.
Also changed it so the special pools are now seperatly defined so we can access it for the team generation of the doubles.

They will happen at a 33% chance.

TODO: Option for seperate double dialogue (because for example the dialogue for tate and liza dont make sense since they reference their other sibling not beeing there...)

* Obviously didnt mean to push changes to battle.ts... (I made this change for a test)

* The doubles now have victory and encounter dialogue (the dialogue itself isnt THAT good since english isnt my first language)

* Changed signatureSpecies for the new galar elite 4

* Added Marnie & Piers as a double

* ESLint

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 07:47:18 -05:00
Tempoanon
49c365f154
Make iv scanner check against baby form IVs (#1214) 2024-05-25 06:47:26 -05:00
Jannik Tappert
b524be1db1
Issue #1118 Added Galar Elite 4 (#1246)
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:38:59 -05:00
td76099
c4c4774528
Beat Up checks the user's party instead of always checking player's party (#1268) 2024-05-25 06:31:04 -05:00
innerthunder
4ffff8e1ee
Implement Quick Guard and other conditional team protection moves (#1275)
* Implement conditional protection arena tag

Affected moves:
- Quick Guard
- Wide Guard
- Mat Block
- Crafty Shield
- Feint (updated)

* Add support for moves that ignore Protect to conditional protection moves

* Comments for protect arena tags

* ESLint

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:22:10 -05:00
ReneGV
5c327e347a
Implement Purify (#1291)
* Implement purify

* Code review fixes

* Remove vitest import

* Update status-effect.ts

* Update status-effect.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 06:01:23 -05:00
神龟
79f69ddfe0
Update move.ts (#1359) 2024-05-25 05:43:42 -05:00
LaukkaE
0da469d7a3
Fix Wind Rider (#607)
Fix Wind Rider
2024-05-25 05:32:32 -05:00
arColm
ae2928e1c9
Implement Poison Puppeteer (#320)
Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-25 04:51:36 -05:00
Franck TROUILLEZ
37ebbd28d5
Apply offset to baseY as well during Pokemon#setMini (#1357)
This fixes an issue where this.baseY and this.y were not sync anymore, leading to unexpected behavior while using both values, especially during the selectTargetPhase, where the UI was not working for the first player pokemon.
2024-05-25 04:45:47 -05:00
Tempoanon
d71451fc23
Players win if classic and past floor 200 (#1348)
* Players win if classic and past floor 200

* isClassic

* no need to handle game over twice
2024-05-25 04:36:30 -05:00
Jannik Tappert
34474fb10e
German Loc for the menu.ts change (#1354) 2024-05-25 04:36:14 -05:00
YounesM
4277439a2d
Implemented Dancer Ability (#590)
* implemented Dancer Ability

* corrected target selection for double battles, improved ability detection

* Added TSDoc

* Enhanced TSDoc

* Corrected dancing StatusMove triggering

* Linter corrections
2024-05-24 23:00:58 -05:00
SnowCharm
5f7c593365
Update zh_CN ability.ts and move.ts (#1350)
* fix translation error in zh_CN ability.ts

* add translation for Zippy Zap

* fix translation to keep up with the current impl
2024-05-24 23:46:16 -04:00
Matthew Olker
1e283afc84 fix anmation duplicate warnings 2024-05-24 22:57:47 -04:00
Benjamin Odom
32fadf8cb6
Update menu.ts (#1349) 2024-05-24 21:46:21 -04:00
Matthew Olker
840ac9f53f fix single pokemon run away in double battle 2024-05-24 21:16:27 -04:00
Matthew
623c05a3df
update running away in double battles for real this time (#1345) 2024-05-24 19:39:58 -05:00
zaccie
564add66d2
Changing Biome Text Colour (#1346)
On light coloured biomes this change should be similar readability
In darker biomes it's has much easier readability
+ now becomes more consistent colour with the rest of the game text which just looks better imo
2024-05-24 20:31:33 -04:00
Tempoanon
dc828c6801
Revert "Update running away in Double Battles (#1336)" (#1342)
This reverts commit 5e7a9b0872.
2024-05-25 09:54:46 +10:00
Matthew
5e7a9b0872
Update running away in Double Battles (#1336)
* Add check for active pokemon and double battle with 1 active

* remove unecessary case
2024-05-24 19:46:52 -04:00
Benjamin Odom
416d666b30
Update Biome Text Labels and Variable Name (#1340)
* Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object.

* Revert "Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object."

This reverts commit 0f87000aa4.

* Reverted changes, added biome text to line one and renamed wavecounttext to a more standard name.

* Update battle-scene.ts

* Update Formatting

* Update Enums

* Revert

* Update overrides.ts

* Update battle-scene.ts

---------

Co-authored-by: Jon Studders <jonstudders1@gmail.com>
2024-05-24 18:43:38 -05:00
Nicholas Galauxy
815b37d23c
Convert reconnect method to exponential backoff timeout (#1293)
* Convert reconnect method to exponential backoff timeout

* Reset to the starting duration after getting a response

* Fix broken scope enclosures
2024-05-24 17:57:49 -05:00
Jon Studders
c8b77cffc1
Added current biome text (#915)
* Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object.

* Revert "Added ability to get hex colour from type, added biome text, added functionality for querying biomeType with object."

This reverts commit 0f87000aa4.

* Reverted changes, added biome text to line one and renamed wavecounttext to a more standard name.

* Update battle-scene.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-24 18:36:02 -04:00
Greenlamp2
410b33a44f
Merge pull request #1338 from bennybroseph/MoveUsedEvent-Add
Add MoveUsedEvent to Listen For When a Move Gets Used
2024-05-25 00:20:12 +02:00
Benjamin Odom
3985c63dad Update battle-scene.ts 2024-05-24 17:03:49 -05:00
Benjamin Odom
74bf42b4b7 Let's try this again 2024-05-24 17:01:47 -05:00
Matthew Olker
751a3d1e49 add names to battle info ui objects and solve key already exists warning for starter select 2024-05-24 17:23:49 -04:00
Jon Studders
d01cd98d06
Fixed champion ribbon boss segments. (#1334) 2024-05-24 16:07:57 -05:00
Douglas Marchione de Souza
0d6145263f
Acrobatics does not treat vitamins as held items (#718)
* Changed the move Acrobatics so it doesn't include
non-held items on it's damage calculations

* Changed exception so it includes within_party
items, and updated the move description

* Small typo e_e'

* Change Description of Move

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
2024-05-24 15:49:23 -05:00
LaukkaE
0309fde7e8
Fix Aftermath not working (#1209) 2024-05-24 15:35:45 -05:00
Jakub Hanko
a48ba9864d
Implement Destiny Bond move (#1104)
* Use getBattleStat instead of getStat in BattleStatRatioPowerAttr

* Change unnecessary let into const

* Refactor BattleStatRatioPowerAttr into two distinct classes

* Add TSDoc for the new classes

* Implementation of Destiny Bond

* Add TSDocs

* Make the move fail in boss battles

* Fix boss immunity and ally fainting

* Update docs

* Add doc of return value of tag lapse

* Fix ESLint
2024-05-24 15:23:23 -05:00
Greenlamp2
136fcbfda8
init dialog call in the loading-scene (#1331) 2024-05-24 15:08:18 -05:00
Jon Studders
3670574342
Added a champion ribbon on enemy pokemon if they have a classic win. (#881)
* Added a champion ribbon on enemy pokemon if they have a classic win.

* Refactored to check for other non-root starterDex entities.

* Check for caughtIcon, if false then move ribbon to the left.

* Fixed Merge.

* Bit of refactoring, added check for classic mode.

* Removed random newline and removed unused import.

* Removed overlapping ribbon.
2024-05-24 15:57:02 -04:00
Madmadness65
41751ab8df Update encounter levels for some Pokémon
When the wild evolution delays were updated, the biomes file wasn't updated to match, so that has been fixed.
Additionally, the previous refactor removed the commented-out outputPools function. It is where it is because it allows for easily filling out the biomes file for an update.
2024-05-24 14:48:24 -05:00
Greenlamp2
c1a7df913a
refactor executed code while importing and initializing all of these in loading-scene (#1125) 2024-05-24 13:46:30 -04:00
神龟
a9af2bd6ff
Update pokemon.ts (#1297) 2024-05-24 11:15:11 -05:00
神龟
34e9236874
Make zh_CN translation easier to understand (#1292)
* Update modifier-type.ts

* Update menu.ts

* Update tutorial.ts
2024-05-24 11:13:51 -05:00
GhostFlys
6168b77761
Update Chinese battle.ts and egg-list-ui-handler.ts (#1314)
* Update battle.ts

update some lines of translation
make some translation more official

* Update egg-list-ui-handler.ts

make text position more accurate
2024-05-24 10:25:57 -05:00
Greenlamp2
622885767d
Enforce Consistent Spacing with ESLint's space-before-blocks and keyword-spacing Rules (#1308)
* added rule no-trailing-spaces

* added rule space-before-block

* added rule keyword spacing
2024-05-23 19:19:20 -05:00
Greenlamp2
e2be6ba002
added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05:00
Franck TROUILLEZ
68e94845ab
Add BattleInfo to TargetSelectUiHandler to move when target selected (#1255)
This change allows to move the box containing the battle info of the ennemy pokemons during double battle when the user has to choose a target. In addition to the pokemon opacity constantly changing, the battle info will also move up and down to indicate which Pokemon is targeted.

It exposes the BattleInfo object from the Pokemon object through an accessor method.
2024-05-23 18:28:53 -04:00
Benjamin Odom
c2bc94a5f3
Increases the Amount of Time Until a Reconnect up to a Maximum (#1295)
* Update unavailable-modal-ui-handler.ts

* Update unavailable-modal-ui-handler.ts

* Update unavailable-modal-ui-handler.ts
2024-05-23 16:19:36 -05:00