Commit Graph

2678 Commits

Author SHA1 Message Date
Adrian T bb7af15c4a
[Move][Bug] Fix Enemy Fake Out and Force Switch Interaction (#1251)
* fix force switch move

* add check if switched out pokemon is not fainted with force switch move

* improve code documentation

* refactor if statement
2024-05-31 10:23:28 -04:00
Dakurei 92afcdea8f
Adds workflow to auto generate doc & make it accessible on Github (#1645)
* Adds workflow to auto generate doc & make it accessible on Github

* Adds a condition similar to deploy.yml

  + There's no particular reason to build the documentation for each fork, as it will simply be possible to synchronize the gh-pages branch via the interface or terminal
2024-05-31 09:36:59 -04:00
Adrian T c102faf157
fix lowkey toxtricity evolution (#1640) 2024-05-31 14:12:01 +01:00
Dakurei 7b65c51931
Revert 2 last commits (#1646) 2024-05-31 13:29:54 +01:00
zaccie f19cd37436
fix zacian/zamazenta crash (#1638)
* fix zacian/zamazenta crash

A quick fix by renaming Palafins forme change to hero-forme in code

* fixing bad english

i cant spell in my own language
2024-05-31 10:10:31 +02:00
Madmadness65 dfb089a2b9 Fix Hero Palafin and 10% PC Zygarde using wrong cries
Also marked Palafin as able to change forms, but this shouldn't affect it's functionality.
2024-05-31 02:06:40 -05:00
Aerochill 7a7971ec6c
[Ability] Queenly Majesty/Dazzling/Armor Tail Fix (#1631) 2024-05-30 22:37:47 -04:00
Benjamin Odom 378ce95636
[QoL] Add TypeDoc as a Valid Doc Generator (#1609)
* Adds TypeDoc as a Valid Doc Generator

Run `npm install typedoc --save-dev`
then
Run `npx typedoc`

* Rename Revert

* Add Script
2024-05-30 20:05:38 -05:00
Ethan d2c5a283d1
[Ability] Implement Poison Heal (#1245)
* Implement Poison Heal Ability

* Removed unneeded import

* Fix some comments, as well as make Poison Heal only notify when healing

* Eslint fix

* Revert Phases

* Pushing for sake of reviewing; PR IS NOT DONE IT NEEDS TO BE TESTED AND COMMENTED AGAIN

* Changed the way healing is done, through a heal phase instead of heal(); Also added better documentation

* Changed healing, as well as making abilityTriggers updated
2024-05-30 18:58:40 -04:00
HighMans af20712cb5
[Feature] Make 31IVs show up as Gold (#1380)
* Make 31IVs show as gold on summary & when caught.

* Add comments to change.
2024-05-30 18:39:25 -04:00
Ronn 3f6e43a12d
Starter select - Implement up and down offset navigation (#1480)
* Handle offset up and down navigation

* add comments
2024-05-30 17:27:53 -05:00
Jannik Tappert 7ac6016df3
[Localization] Fixed Bugsy dialogue. And some fixes in the german dialogue (#1616) 2024-05-30 18:22:28 -04:00
dielle000 bda3013c19
Allow selection of item quantity when transferring items (fixes #723) (#1394)
* Transferring item does not kick out of transfer menu

* Select simultaneously the item to transfer and the quantity

* eslint fix

* eslint fix

* Reset quantity on scroll

* Documentation

* eslint fix
2024-05-30 16:58:10 -05:00
Adrian T 31e3293c51
[Ability][Move] Finish wind rider/power + tailwind implementation (#1566)
* finish wind moves + tailwind implementation

* move code and add documentations

* remove partial tag of wind_power

* add translations, fix move bugs

* fix ability trigger message

* fix ability trigger message

* add es localization

* move out of else statement
2024-05-30 17:42:46 -04:00
Tempoanon cb6a0b9973
Fix bug with variant rate (#1613) 2024-05-30 22:25:53 +01:00
Ethan d70ab3eaf6
[Move] Implement Punishment (#1610)
* Implement Punishment and reopen pull request 373

* Fix console log and ()
2024-05-30 17:01:42 -04:00
Gianluca Fuoco 2fd87a3cad
[Bug] Add Giga Impact Opp BG img (#1584)
* fix: add missing image by rotating giga impact image 180 degrees

* fix: move over impact in image
2024-05-30 16:48:06 -04:00
MrWaterT 2c784c662f
[Localization] Update Korean rival dialogue (#1597)
* Update small Korean locales

* Translate Korean classic story conversation

* Minor translation edit in Korean

3: translate 'not the same back home'
  from 'atmosphere of home is not like before'
  to 'returning to previous state is impossible'
3_female: now 'home' clearly means their hometown, not only player's house
6, 6_female: simple nuance-of-sentence modification
2024-05-30 16:40:31 -04:00
Tempoanon 3e932ce2d0
Shinylock uncatchable Pokemon in endless mode (#1252)
* Shinylock uncatchable Pokemon

* Fix typos

* Pass the linter vibe check

* Remove 2 shinylock cases

* refactor
2024-05-30 16:20:27 -04:00
Dmitriy K 329c9619f6
Add unthaw logic to Steam Eruption, Scorching Sands, Matcha Gotcha and all Damaging Fire moves (#940)
* Add unthaw to moves that are missing it

* Add unthaw to all damaging fire moves

* Add Status Effect overrides for easier testing

* clean up comments and readd status cure prefaint

* use helper instead of accessing attrs directly

* remove status overrides
2024-05-30 15:04:50 -05:00
Benjamin Odom 1415b74682
[QoL] Fix Final VS Code Error (#1608)
* Fix i18next and mobile errors

* Move File and Fix Error
2024-05-30 19:37:59 +01:00
Madmadness65 13797fe322 Revert change to Minior forms
Apparently its Meteor forms couldn't be selected if you caught it while it was in its Core form, so the change to this Pokémon specifically had to be reverted. It still immediately transforms back into Meteor form when starting a run, so this change should be harmless.
2024-05-30 13:06:25 -05:00
Benjamin Odom 060ffc6716
Fix i18next and mobile errors (#1601) 2024-05-30 18:51:58 +01:00
InnocentGameDev fcc98d372d
Fix Spanish translation and typos in modifier-type.ts (#1606) 2024-05-30 13:50:47 -04:00
Matthew Olker ed7a4045d8 show luck after reroll 2024-05-30 13:45:30 -04:00
ImperialSympathizer 3b852c5bf2
[Bug] Fix weather effects to work on the first turn of being cast (#1503)
* update weather phase so weather effects proc properly

* remove redundant weather replace phase logic

---------

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
2024-05-30 12:07:28 -05:00
Dmitriy K b1c208cd86
[Feature] Add status override (#1602) 2024-05-30 12:49:57 -04:00
Jacob Hatchett 029175bce6
[Ability] Added Perish Body ability (#1554)
* Added Perish Body ability

* fix linting issues

* Documentation + Checking if either pokemon has perish song tag

* Fixed typo and improved TriggerMessage
2024-05-30 11:36:12 -04:00
Matthew Olker c822a89878 Fix money text hidden in select modifiers 2024-05-30 11:27:17 -04:00
Lugiad cbca0983f3
Update French tutorial.ts (#1587) 2024-05-30 11:22:05 -04:00
GoldTra 23d66c0582
[Localization] Updated Spanish translations (#1600)
* Updated spanish translations

* Updated tutorial.ts

* Updated translations feedback

* Update tutorial.ts
2024-05-30 11:16:08 -04:00
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 6c5e7884df
Fix Mobile Controls (#1588) 2024-05-30 02:40:24 +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
Benjamin Odom dcd7a11b01
Add @types/node to the package lock to resolve node_module errors (#1571)
Devs will need to run npm install --save-dev @types/node on their end as well
2024-05-29 15:22:46 -04: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