Commit Graph

3779 Commits

Author SHA1 Message Date
Mumble
3fa2088f5b
[Refactor] Merged implementation of CutHpStatBoostAttr moves (#3255)
* Merged implementation of CutHpStatBoostAttr moves

* Fixed failure check

* Fixed Belly Drum details

* Moved comment

* Tests for involved moves

* Fixed belly drum reference

* Added localization

* Manual merge

* Fixed issues discovered by Temp

* Updated moveset overrides to match new format

* Implementing Torranx's fixes

* Localized Belly Drum message to Belly Drum's initialization

* Post Caffeine Activation

* Actual Caffeine Fix-TypeDoc Test

---------

Co-authored-by: Frutescens <info@laptop>
2024-08-03 15:20:19 -04:00
Blitzy
cd1c810c5a
[Balance] Give Dipplin Dragon Cheer as a relearn move, give Applin Matcha Gotcha as egg move instead (#3291)
* Change Relearn Move

* Change Egg Move
2024-08-03 15:18:03 -04:00
Leo Kim
d20b7553ef
[Enhancement] Add confirm exit popup in starter select UI (#3316)
* add confirmExit popup

* add translation entries for `confirmExit`

* Update src/ui/starter-select-ui-handler.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
2024-08-03 15:16:29 -04:00
Leo Kim
800abc4767
[QoL] Auto filter for challenge mode in starter select (#3312) 2024-08-03 15:14:42 -04:00
Alex Van Liew
a2a1f3ec24
[Refactor] Refactored duplicated code into a common Pokemon#leaveField() function (#3310)
* refactor duplicated code into leaveField function

* replace bugfix code
2024-08-03 15:13:42 -04:00
chaosgrimmon
bb6ec94c02
[Sprite/Misc] Repo Icon cleanup (#3311)
* [Sprite] Missing Gen 7 variant icons

Taken from current icon spritesheet

* [Sprite] Remove non-Gen 6 icon

* Delete public/images/pokemon/icons/variant/6/742_3.png

* Delete public/images/pokemon/icons/variant/6/743_2.png

* Delete public/images/pokemon/icons/variant/6/743_3.png

* Delete public/images/pokemon/icons/variant/6/777_2.png

* Delete public/images/pokemon/icons/variant/6/777_3.png

* Delete public/images/pokemon/icons/variant/6/779_2.png

* Delete public/images/pokemon/icons/variant/6/779_3.png

* Delete public/images/pokemon/icons/variant/6/354-mega_2.png

* Delete public/images/pokemon/icons/variant/6/354-mega_3.png

* [Sprite] Missing Mega Banette variant icons

Taken from the Gen 6 variant icon folder

* [Sprite] Missing Poltchageist/Sinistcha form icons

Renamed duplicates of alternate forms
2024-08-03 15:12:32 -04:00
Leo Kim
32496fa585
[Misc] Move victini from gen 4 to gen 5 (#3306) 2024-08-03 15:11:05 -04:00
Lugiad
67babd0e83
[Localization] Fresh Start challenge entries added to French locales (#3317)
* Update achv.ts

* Update challenges.ts

* Update achv.ts
2024-08-03 15:09:58 -04:00
hayuna
cdc4826018
[Localization] Update fr locales in challenge (#3319) 2024-08-03 15:09:06 -04:00
Enoch
ec27c14035
[Localization] add missed move trigger and remove getPokemonMessage (#3281)
* localize missed move-trigger message and remove redundant getPokemonMessage

* Update src/locales/zh_CN/move-trigger.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_TW/move-trigger.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/de/move-trigger.ts

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

* Update src/data/move.ts

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

* Update src/locales/de/move-trigger.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_TW/move-trigger.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_CN/move-trigger.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/fr/move-trigger.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/it/move-trigger.ts

Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>

* Revert "Update src/data/move.ts"

This reverts commit 4dd6130c39.

* fix italian param error

* Update src/locales/de/move-trigger.ts

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

* Update src/locales/de/move-trigger.ts

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

* Update src/locales/pt_BR/move-trigger.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

---------

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-08-02 22:41:55 -04:00
allen925
3055d4500f
[Test] added revive function in gameManager & a double-battle test (#3298)
* added revive function in gamaManager & a double-battle test

* extended timeout of double battle test referencing to battle test

* less code, deleted unused param, clearer description of test

* add back dbond to move in test

* more straight forward testing

* reverse back override

* polish double battle test a bit
2024-08-02 22:30:50 -04:00
NightKev
e1812466a8
[Bug] Weather should be reset upon arena reset (#3301)
* `resetArenaEffects()` should also reset weather

* Update function doc
2024-08-02 22:29:07 -04:00
Opaque02
fc8b708785
[Misc] Tandemaus evolves into 3 family form at a rate of 25% (#2738) 2024-08-02 22:27:54 -04:00
Lugiad
6c6dc01490
[Localization] Small batch of missing French entires (#3309)
* Update trainers.ts

* Update bgm-name.ts

* Update bgm-name.ts
2024-08-02 22:14:09 -04:00
cam
03ba575ee5
[Sprite] Wo-Chien back sprite (#3307)
* [Fix][Sprite] 4083 Galarian Farfetch'd exp

Fixed cropped feet on exp for default & shiny.
Rearranged spritesheet to fit new size.
Both sritesheets have identical sprite framing.
Both json are identical.

* [Fix][Sprite] 1001 Wo-Chien exp fix

cleaned up tips of antlers
slightly improved back sprite
default + shiny. identical json, identical framing
2024-08-02 17:12:06 -04:00
AJ Fontaine
263924feda
[Item] Adjust White Herb weight and add Scope Lens to trainer item pool (#3308) 2024-08-02 17:11:54 -04:00
Frederico Santos
9f68ba8671 null or undefined? who knows. 2024-08-02 21:02:24 +01:00
Frederico Santos
2f83e6e2e1 explicit check for options 2024-08-02 19:28:05 +01:00
Frederico Santos
0d406b1092 hotfix cursor selection 2024-08-02 19:20:17 +01:00
Frederico Santos
3a87c8657f
Disable egg gacha in rewards (#3304)
* chore: Refactor excludedMenus logic in MenuUiHandler

* Refactor excludedMenus logic in MenuUiHandler

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

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

* Refactor excludedMenus logic in MenuUiHandler

* chore: Add setup method to MenuUiHandler

* Refactor excludedMenus logic in MenuUiHandler

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-08-02 18:26:49 +01:00
Tempoanon
52ef92ae78
[Enhancement] Add female and double grunts (#3280)
* Add female and double grunts, add localizations

* Update src/locales/fr/trainers.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/it/trainers.ts

Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>

* Update src/locales/ko/trainers.ts

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

* Update src/locales/pt_BR/trainers.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update trainers.ts

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-08-02 13:03:46 -04:00
Tempoanon
e5f458d2c0
[Bug] Fix affixes appearing when they shouldn't (#3236)
* [Hotfix] Fix interactions of some moves not changing types (#3183)

* [Hotfix] Fix wild spawns not having their HA (#3190)

* Fix some cases of wrong affixes

* There are two trainer send out messages

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-08-02 13:02:49 -04:00
Amani H.
302f1e51a0
[Enhancement] Allow Starters to Remember Egg Moves (#2482)
* Allow Starters to Remember Egg Moves

* Adjust Documentation

* Minor NIT
2024-08-02 17:51:20 +01:00
chaosgrimmon
abbf4974fd
[Sprite] Shiny animated Clawitzer using wrong palette (#3297)
* [Sprite] Recolour shiny Clawitzer

Palette taken from back counterpart

* [Sprite] Recolour shiny Clawitzer

Palette taken from back counterpart
2024-08-02 01:50:08 -04:00
Leo Kim
8f9ffabeef
[Bug] Fix sprites of Pokemon without variants being weird when removed from party in starter select (#3296) 2024-08-02 01:35:13 -04:00
innerthunder
ffb7f17be1
[Documentation] Document EnemyCommandPhase and Enemy AI functions (#3092)
* Create enemy-ai.md

* Finish enemy-ai doc

* Fix outspeed logic + document enemy command functions

* Fix errors in target score formula

* Add example section and implementation guidelines

* Add info on matchup score range

* Fix GitHub rendering issues (maybe)

* Add types to function comments

* Trying to fix GitHub rendering issues again

* Use images for "cases" equations instead
2024-08-02 00:51:18 -04:00
NightKev
9655ddc117
[Test] Remove held items and abilities from test (#3295) 2024-08-02 00:50:09 -04:00
Leo Kim
e042dafcec
[Bug] fix sort by cost bug in starter select (#3294) 2024-08-01 22:46:04 -04:00
Enoch
5d3458b38e
[Localization] Localize pokemon form change message and translate (#3275)
* localize form change message (test required)

* Update src/locales/fr/pokemon-form.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/pt_BR/pokemon-form.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/zh_CN/pokemon-form.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_TW/pokemon-form.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/de/pokemon-form.ts

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

* Update src/locales/it/pokemon-form.ts

Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
2024-08-01 22:45:02 -04:00
Amani H.
aeafe0fddd
[Refactor/Bug] Use Bit Shifting & Masking (#3278) 2024-08-01 22:20:27 -04:00
flx-sta
89d38a3b6b
[Bug] fixed switch out bug when fainted single -> double (#3288)
Mirror of PR #1333. Thanks to 0zuzu (https://github.com/0zuzu) for providing the original fix.

Co-authored-by: 0zuzu <63069680+0zuzu@users.noreply.github.com>
2024-08-01 22:10:43 -04:00
cam
17cc8b5c5e
[Sprite] Victreebil's stem not connected to the head (#3292)
* [Fix][Sprite] 4083 Galarian Farfetch'd exp

Fixed cropped feet on exp for default & shiny.
Rearranged spritesheet to fit new size.
Both sritesheets have identical sprite framing.
Both json are identical.

* [Sprite] 71- Fixed  missing stem

fixed missing stem segment on victreebil's head
default and shiny
png positions are identical
json are identical
2024-08-01 22:01:09 -04:00
Leo Kim
69e4ed9284
[Bug] Fix bug of remaining pokerus and starter cursor on scrolling (#3293) 2024-08-01 21:57:36 -04:00
allen925
c1595bf2b7
[Bug] fix stuck/sprite issue with double battle player pokemon both died same turn then wins battle with one bench pokemon only (#3266) 2024-08-01 12:35:11 -04:00
chaosgrimmon
b0f8f0e901
[Sprite] Add female Ursaring variant palettes (#3282)
* [Sprite] Female Ursaring variant fronts

Taken from male counterpart

* [Sprite] Female Ursaring variant backs

Taken from male counterpart

* [Sprite] Female Ursaring variants
2024-08-01 10:25:50 -04:00
José Ricardo Fleury Oliveira
7dda6f5cc2
[Localization] Update pt_br arena-tag.ts and fixed typo in modifier.ts (#3277) 2024-07-31 21:57:20 -04:00
Lugiad
1d616d0756
[Localization] Some missing French translations in menu-ui-handler and achv (#3276)
* Update menu-ui-handler.ts

* Update achv.ts
2024-07-31 21:52:11 -04:00
Opaque02
fdbdb862bc
[QoL] Making the transfer button show which pokemon can have items be transferred to them (#2503)
* Basic version of code for updating party ui name to be red when at max stack

* Updated text to be red when pokemon is at max stack

* Removed some comments and fixed a private property issue

* Fixed a const instead of a let statement, and added some comments on the logic

* Accidentally broke last commit. Intentionally fixed this commit

* Updated the code to not have red text for pokemon name as that was too confusing with fainted pokemon. Now the party slot has a descriptor label which can be used to set the text to show if the pokemon is able/not able to receive the transfer items

* Updated transfer logic to use new isTransferrable property instead of getTransferrable method and merged with latest
2024-07-31 21:50:47 -04:00
NightKev
e30b9607c5
[Misc] Removes the temporary save-fix code that swaps abilities (#3274) 2024-07-31 16:56:01 -04:00
Tempoanon
bfc44ea35e
[Bug] Make mbh transferrable again 2024-07-31 12:06:49 -04:00
Leo Kim
9531e64c0d
[Enhancement] Optimize updateScroll function in starter select UI (#3268)
* optimize updateScroll function to update only the container within the screen

* fix eslint
2024-07-31 12:00:46 -04:00
Enoch
7f8ddb514d
[Localization] Localize prevent berry ability phase and translate (#3231)
* localization prevent berry phase (unnerve)

* Update src/locales/fr/ability-trigger.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/de/ability-trigger.ts

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

* Update src/locales/zh_CN/ability-trigger.ts

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

* Update src/locales/zh_TW/ability-trigger.ts

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

* Update src/locales/pt_BR/ability-trigger.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/de/ability-trigger.ts

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

* Update src/locales/it/ability-trigger.ts

Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>

* Update src/locales/es/ability-trigger.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
2024-07-31 09:00:24 -04:00
Adrian T.
e416a26cfc
add missing changes from Sweet Veil PR part 2 (#3267) 2024-07-31 11:44:12 +01:00
Adrian T.
59a4546a3f
add missing changes to sweet veil(#3265) 2024-07-31 09:52:01 +01:00
NightKev
495284ad47
[Refactor] Consolidate the switch cases in IvyCudgelTypeAttr (#3261) 2024-07-31 00:11:43 -04:00
NightKev
54ee2f3f10
[Refactor] Remove single-use EndureAttr (#3260) 2024-07-31 00:09:50 -04:00
drew9696
78c3906088
[Bug] Fix Toxic Chain applying for non-damaging moves (#1814)
* Fix Toxic Chain applying for non-damaging moves

* Addressing code review to change a boolean to a PokemonAttackCondition

* Adding comments to introduced methods

* Update src/data/ability.ts

---------

Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-07-30 17:44:40 -04:00
Carson
64ca6dd827
[Move] Psycho Shift treats Comatose as Sleep (#1780)
* comotose + psycho_shift

* condensed conditional for psycho shift

---------

Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-07-30 17:24:01 -04:00
Amani H.
2900f22289
[Enhancement] Add Fee Waiving Overrides (#2266) 2024-07-30 17:15:08 -04:00
MadridPawmot
49f4e5fc2e
[Localization] Added some Spanish translation (#2004) 2024-07-30 17:06:25 -04:00