Commit Graph

1833 Commits

Author SHA1 Message Date
Benjamin Odom c9152cda3f
Fix Mobile PWA not showing in true Fullscreen (#394)
* Fixed Rounding Error For TargetHalfHpDamageAttr

Moves that deal half of a target's HP were not able to deal damage if the target had 1 HP. Used Math.max to ensure 1 is the lowest this value ever evaluates to.

* Fix Mobile PWA not showing in true Fullscreen

adding "fullscreen" to the display attribute wasn't enough, but adding it to the start_url attribute was. This does not appear to affect PC (which is good since it shouldn't).

* Allow any orientation for mobile PWA

remove the orientation restriction since it doesn't prevent fullscreen PWA from displaying properly.
2024-05-02 01:17:32 -04:00
Lugiad a1bb0e7baf
Updated French transaltion for tutorial.ts (#375)
Translation of "statChange" + some remaning typos
2024-05-01 23:26:24 -05:00
Xavion3 6d9424e431
Implement Gastro Acid (#393) 2024-05-01 23:22:30 -05:00
Flashfyre ba5bef123c Load missed master achievement bar 2024-05-01 19:42:06 -04:00
Flashfyre 2f8000885e Fix coloring error in rogue achievement bar 2024-05-01 19:29:04 -04:00
Flashfyre 86b0596a60 Add rogue achievement and voucher tier 2024-05-01 19:28:07 -04:00
Benjamin Odom ad59c0a7c4 Fixed Rounding Error For TargetHalfHpDamageAttr
Moves that deal half of a target's HP were not able to deal damage if the target had 1 HP. Used Math.max to ensure 1 is the lowest this value ever evaluates to.
2024-05-01 19:14:18 -04:00
Flashfyre 6ac224ab8a Refactor to split battle messages from menu 2024-05-01 18:54:35 -04:00
TeKrop e34b204664 feat: added support for localisation on battle scene sentences 2024-05-01 18:54:35 -04:00
Flashfyre 89e2642d91 Fix update issue for battle stats display 2024-05-01 18:24:21 -04:00
Flashfyre 7a418109c3 Fix not checking move conditions for AI 2024-05-01 18:17:12 -04:00
Tempoanon 0f153d39b1
Fix effect spore immunities, tera blast TM distribution, and IVs shown on catch (#388)
* Fix effect spore, tera blast distribution, and IVs shown on catch

* Forgot to add tms

* Unown does not learn any TMs

* Fix some tera blast learns

* delelele whooooop
2024-05-01 16:47:32 -05:00
Xavion3 5a6ea40dae Implement Acrobatics
Currently scales from 0-5 items
2024-05-01 17:11:16 -04:00
Xavion3 d6ca09e431 Implement Belch 2024-05-01 16:52:48 -04:00
InfernoVulpix 10169382d9
Implemented Synchronoise's effect (#221)
* Implemented Synchronoise's effect

Tested with Soak, Forest's Curse, and a variety of attacker and defender types.

* Fixed Synchronoise double battle functionality

It now does zero damage only to targets who do not share any types with it, while correctly damaging any who do.  It also fails entirely if the user is UNKNOWN type.
2024-05-02 06:14:19 +10:00
dielle000 e6c31966d7 Change pokemon stats chart
Stats are arranged like in the mainline games
2024-05-01 15:45:29 -04:00
Madmadness65 68f3326607 Add Heal Block back to level up learnsets
The move itself is still not functional yet, but will be valuable for Endless when it is.
Also made Curse's flavor text accurate to the canon games.
2024-05-01 12:21:22 -05:00
Thomas David c8583d6c69 Update manifest.webmanifest 2024-05-01 12:49:21 -04:00
Mistmemo 56b24c70b6
fix double battle iv scanner color (#379)
* Add color for the IV scanner

add a new color SUMMARY_GREEN in text.js, add the green color if the iv of the pokemon is better than the iv on the starter of that pokemon

Co-authored-by: EmoUsedHM01 <131687820+emousedhm01@users.noreply.github.com>

* fix battle-message-ui-handler.ts formatting

* fix missing similicon battle-message-ui-handler.ts

* modified so it take a boolean instead of doing lot of else if battle-message-ui-handler.ts

* Fix iv scanner only doing color for the right pokemon in double fight

---------

Co-authored-by: EmoUsedHM01 <131687820+emousedhm01@users.noreply.github.com>
2024-05-01 10:50:13 -04:00
thicco-catto fc1a9f0283
Select Move UI Shows PP (#372)
* Select move UI shows PP

* Removed testing forced max pp

* PP only shows when using PP restoring items

* Removed testing max pp again

* Update src/phases.ts

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

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-05-01 10:16:58 -04:00
Flashfyre 3b09e176a2 Fix IV text not comparing against starter species 2024-05-01 09:44:57 -04:00
TeKrop eac9b4d385 fix: reworked daily and weekly rankings translations workflow 2024-05-01 08:56:33 -04:00
Flashfyre 77caa8ece5 Add back shift for toggling stats 2024-05-01 00:27:11 -04:00
Flashfyre 17ec6b3ccc Fix start button mapping 2024-05-01 00:12:04 -04:00
lucfd e065610440
Fixed Dire Claw & Tri-Attack status chances (#367)
* created MultiStatusEffectAttr

* removed testing stuff

* switched to randSeedItem
2024-04-30 23:30:10 -04:00
Flashfyre 7ad9c67673 Fix crash on catch 2024-04-30 23:27:22 -04:00
Flashfyre 93765d4121 Update battle info on stat change 2024-04-30 23:23:32 -04:00
Flashfyre 6fd5709b13 Reapply stat change feature with fixes 2024-04-30 23:02:16 -04:00
Flashfyre 8a54e862fc Revert "Add togglable stat change display"
This reverts commit 718585062b.
2024-04-30 22:14:24 -04:00
Flashfyre 718585062b Add togglable stat change display 2024-04-30 22:06:54 -04:00
Mistmemo 05b0140075
Add color for the IV scanner (#363)
* Add color for the IV scanner

add a new color SUMMARY_GREEN in text.js, add the green color if the iv of the pokemon is better than the iv on the starter of that pokemon

Co-authored-by: EmoUsedHM01 <131687820+emousedhm01@users.noreply.github.com>

* fix battle-message-ui-handler.ts formatting

* fix missing similicon battle-message-ui-handler.ts

* modified so it take a boolean instead of doing lot of else if battle-message-ui-handler.ts

---------

Co-authored-by: EmoUsedHM01 <131687820+emousedhm01@users.noreply.github.com>
2024-04-30 20:32:02 -04:00
Valentin Porchet 7846fdc1e6
feat: added french translation for new entries in menu.ts (#360) 2024-04-30 17:33:34 -04:00
Dakurei c44009738a Add auto detect user language
+ prLang used to override langague detected if necessary
2024-04-30 16:48:37 -04:00
Dakurei 869a5c2d4c Fix tutorials translation fr
+ Fix the length problem of some strings that aren't readable in the game
  + Fix a few typo errors
2024-04-30 16:08:07 -04:00
Dario Krause 1449147121
Update pokemon.ts (#357) 2024-04-30 15:29:56 -04:00
Dakurei 36de62dc8a Fix Pokerus tutorial condition 2024-04-30 15:29:28 -04:00
Madmadness65 c5cc4445c4 Fix Furfrou trims missing shiny graphics 2024-04-30 13:39:16 -05:00
Nero 55dc339647
Bug Fixes and QoL: Minor changes to UI related bugs (#356)
* bug fix: updates move description correctly

viewing the description of move slot 1 in a pokemon's move summary UI only updated the first time it was viewed per session, exiting the party UI and re-entering caused the moves in a pokemon's summary screen to not automatically populate the description box unless you moved the cursor down to move 2 and then back up to move 1

* slight logic changes to fix party UI controls

when battlerCount = 2 (double battle), starting in party slot 1 and pressing DOWN -> UP -> RIGHT would move the cursor back down when it should be moving it to the right: these changes fix that

* finalised the minor UI changes

* finalising

* refactor

* removed console logs used for testing

* bug fix: updates move description correctly

viewing the description of move slot 1 in a pokemon's move summary UI only updated the first time it was viewed per session, exiting the party UI and re-entering caused the moves in a pokemon's summary screen to not automatically populate the description box unless you moved the cursor down to move 2 and then back up to move 1

* slight logic changes to fix party UI controls

when battlerCount = 2 (double battle), starting in party slot 1 and pressing DOWN -> UP -> RIGHT would move the cursor back down when it should be moving it to the right: these changes fix that

* finalised the minor UI changes

* finalising

* refactor

* removed console logs used for testing
2024-04-30 12:42:20 -04:00
Reldnahc 1e7c329928
Implement move wish (#323)
* implement wish move

* Serene grace implementation idea

* only do the thingy if it actually gets effected.

* Revert "only do the thingy if it actually gets effected."

This reverts commit 4b084658d2.

* Revert "Serene grace implementation idea"

This reverts commit 4dd2504bc7.

* Fixes for Wish implementation

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-30 12:38:24 -04:00
NxKarim 8e64eaea3f
Some Fixes (HPRatio, Hustle, Imposter, Sleep Talk) (#353)
* Some Fixes

- HP ratio related checks (`getHpRatio`): Added rounding to 2 decimals for non-precise option.

- Hustle (`BattleStatMultiplierAbAttr`): added optional condition; Hustle now works only for physical attacks.

- Imposter (`PostSummonTransformAbAttr`): Switch in a double battle after both foes have been defeated no longer crashes the game.

- Sleep Talk (`RandomMovesetMoveAttr`): Single target moves no longer target allies.

* Formatting changes for consistency

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-30 11:47:10 -04:00
Raphael van der Woude c7bd99b345
Added missing menu translations (#355)
* Added missing menu translations

* Added missing translations to other languages

---------

Co-authored-by: Raphael van der Woude <raphael.van.der.woude@dias.nl>
2024-04-30 10:53:00 -04:00
Xavion3 2402b8e6a0 Add overrides to .gitignore 2024-04-30 09:12:19 -04:00
Xavion3 ad5efdf4f9 Refactor overrides 2024-04-30 09:12:19 -04:00
Madmadness65 14cc639654 Small egg move change
Gave Eevee and Pichu replacement egg moves for moves that are now on their level up learnsets. As usual, these are subject to change.
2024-04-29 22:00:42 -05:00
Madmadness65 224fac574a Add Let's Go moves to Pikachu and Eevee's learnsets
Also removed the duplicate Teeter Dance from Spinda's learnset and gave it back Dizzy Punch.
2024-04-29 21:51:08 -05:00
Madmadness65 bd30dca47d Partially implement Battle Bond (Gen 8) & Power Construct abilities
Both abilities are still not fully functional yet (Battle Bond does not interact with Water Shuriken yet, Power Construct does not interact with 10% Power Construct Zygarde, and both forms do not revert after a battle yet), but this is a step to having them both completed.
Battle Bond Froakie line and Power Construct 50% Zygardes (as well as Aura Break 10% Zygardes) can now randomly appear in the wild.
Expect Battle Bond to potentially change to its Gen 9 version at some point in the future, rendering Ash-Greninja inaccessible.
2024-04-29 19:50:29 -05:00
lucfd 7a1895242c
Fixed Fake Out + Pivot move interaction (#347)
* decrement turnCount if pivot move is used

* improved formatting
2024-04-29 13:51:43 -04:00
Thomas David 9575054010
Implement localisation for tutorial (#330)
* Implement localisation for tutorial

* Fix modules name

* Fix keys name

* Fix keys name part 2 : the return

* Add lines breaks in localisation files
2024-04-29 12:33:18 -04:00
ElMoustacho 3b83d0b4d9 Fix typo in french names for a few pokémon 2024-04-29 11:55:34 -04:00
Dario Krause d93b6632c8 Gen 2, 3 de local 2024-04-29 10:00:42 -04:00