Commit Graph

3240 Commits

Author SHA1 Message Date
flx-sta
a07d2c57a4
[Refactor] use typescript strict-null (#3259)
* TS: enable strict-null

* fix battle-scene.ts

* fix voucher.ts

* adapt more files to strict-null

* adapt more files to strict-null ( 2)

* adapt ability.ts to strict-null

* adapt `arena.ts` to strict-null

* adapt TagAddedEvent constructor to strict-null

* adapt phases.ts.to strict-null

* adapt status-effect.ts to strict-null

* adapt `account.ts` to strict-null

* adapt `configHandler.ts` to strict-null

* adapt `ability.ts` to strict-null

* adapt `biomes.ts` to strict-null

* adapt `challenge.ts` to strict-null

* adapt `daily-run.ts` to strict-null

* adapt `nature.ts` to strict-null

* adapt `pokemon-forms.ts` to strict-null

* adapt `tainer-names.ts` to strict-null

* adapt `types.ts` to strict-null

* adapt `weather.ts` to strict-null

* adapt `egg-hatch-phase.ts` to strict-null

* adapt `evolution-phase.ts` to strict-null

* adapt `pokemon-sprite-sparkle-handler.ts` to strict-null

* adapt `evolution-phase.ts` to strict-null

* adapt `game-mode.ts` to strict-null

* adapt `utils.ts` to strict-null

* adapt `voucher-ui-handler.ts` to strict-null

* adapt `src/ui/unavailable-modal-ui-handler.ts` to strict-null

* adapt `src/ui/ui.ts` to strict-null

* adapt `src/ui/ui-theme.ts` to strict-null

* adapt `src/ui/title-ui-handler.ts` to strict-null

* adapt `src/ui/time-of-day-widget.ts` to strict-null

* adapt `src/ui/text.ts` to strict-null

* adapt `src/ui/target-select-ui-handler.ts` to strict-null

* adapt `src/ui/settings/settings-keyboard-ui-handler.ts` to strict-null

* adapt more files to strict-null (3)

* adapt more files to strict-null (4)

* adapt more files (mostly tests) to strict-null (5)

* adapt more files to strict-null (6)

* adapt more files to strict-null (7)

* Update `src/data/pokemon-evolutions.ts` for strict-null

Partial update `src/data/pokemon-species.ts` for strict-null

* adapt more files to strict-null (8)

* adapt more files to strict-null (9)

* Strict some more nulls (still a few errors remaining)

* adapt rest of the files to strict-null (9)

* fix tests (check for null instead of undefined)

* repalce a lot of `??` with bangs

And added TODO notice as usual

* fix more tests

* all tests pass now

* fix broken game-loop after trainer battle

add some console.warn for missing cases and falling back to default

* remove guessed fallback from utils.rgbHexToRgba

* add TODO for this.currentBattle = null

* adjust   getPokemonById() return to include `null`

* fix compilation errors

* add test for pokemon.trySetStatus

* `chanceMultiplier` shouldn't be optional

* allow `null` for currentPhase

* adjust hasExpSprite logic for no keymatch found

* reduce bang usage in account.updateUserInfo()

* fix new strict-null issues after merge

* fix `strict-null` issues in dropdown.ts

and sand_spit.test.ts

* fix egg-gacha

* adapt gul_missile.test.ts to strict-null

* fix move.ts strict-null

* fix i18n.ts strict-null

* fix strict-null issues

* fix baton_pass test

after accidentially breaking it

* chore: fix compiler errors

* revert accidential changes in baton_pass.test.ts

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-08-07 17:23:12 +01:00
Chapybara-jp
555d33c16c
[Localization(ja)] Update move.ts (#3403)
* Update move.ts

* Update move.ts
2024-08-07 11:46:39 -04:00
NightKev
548bd8978f
[Move] Add type immunity removal moves (Foresight, Odor Sleuth, Miracle Eye) (#3379)
* Update Foresight PR to current beta

Implements Foresight, Miracle Eye, and Odor Sleuth

* Add placeholder i18n strings

* Minor tsdoc updates

* Fix placement of evasion level modifier, add tests

* Add first batch of translations

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Second batch of translations

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

* Add Catalan and Japanese translation placeholder strings

* Fix issue caused by merge

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@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: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
2024-08-07 10:59:28 -04:00
Chapybara-jp
db3fae1180
[Localization(ja)] Update ability.ts (#3401)
- Changed description of Honey Gather, Ball Fetch and Pickup to properly reflect how they function in PokeRogue.
2024-08-07 10:38:11 -04:00
Jannik Tappert
60d19c9a2c
[Feature] Unique Evil Team Admins (#3384)
* Hardcoded Pokemon should have proper names

* Add evil admin placeholder images

* Add admin names to locale files

* Add evil team admin dialogue

* current things.

* rename

* team galactic wants to be special

* Revert debug changes

* Added Trainer Names and Titles

* [Hotfix] Fix interactions of some moves not changing types (#3183)

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

* Add evil admin placeholder images

* Add admin names to locale files

* Add evil team admin dialogue

* Added new sprites

* Make simple admin trainer pools

* Add Korean localization

* Revert this

* [Feature] Named Evil Team Admins

* Dateien removed

* Revert override

* French only needs one pair of evil team bosses :)

* Some things Temp Mentioned in the PR

* Removed NoDuplicates again...Because it only works on the speciality pool....
Also reordered the second admin wave. So we guarantee it is never the same one

* German dialogue

* Offset

* Jördis just better

* Credit for the artists (see https://www.deviantart.com/icejkai/art/Magma-Admin-Courtney-Trainer-Sprite-544510574)

* Order

* Added tsdoc and named it more clear

* Fixed formatting and made it a void function

* Changed offset to number and updated tsdoch

* Improve readability

* Removed extra lines

* Fix this

* Revert override

* colress gets his own pool because @blitzy wants it (and i agree)

* Added Rood (some plasma sage guy)

* has voucher is not false by default. So only it will be set true for evil team leaders, gym leaders, elite 4 and champions

* Apply suggestions from code review

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>

* Added the localization also to japanese

* Update src/locales/ko/trainers.ts

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* CA

* Removed Colress

* Colress Last Stand

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: returntoice <dieandbecome@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
2024-08-07 10:31:02 -04:00
Enoch
1700658c5c
[Localization] Translate weather (Japanese) (#3399) 2024-08-07 10:26:18 -04:00
Leo Kim
c186d53f3e
[QoL] Update Normal -> Not Shiny. Remove no pokerus option (#3402) 2024-08-07 10:24:45 -04:00
NightKev
0ef329e8eb
[Test] Add helper function to modify the turn order for tests (#3374)
* Add helper function to modify the turn order for tests

* Replace manual speed modification with new helper function

* Replace `vi.spyOn()` instances with helper function
2024-08-07 13:52:20 +01:00
Jannik Tappert
df9596a9dc
Added catalan as a language (#3400) 2024-08-07 09:45:29 +01:00
innerthunder
a4c913d963
[Move] Implement (or re-implement?) Lucky Chant (#3352)
* Implement Lucky Chant

* Add i18n keys for NoCritTag messages

* Add Lucky Chant message translations (DE, FR, KO, PT-BR)

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Add ZH translations

Co-authored-by: Sonny Ding <93831983+sonnyding1@users.noreply.github.com>

* Add keys for JA locale

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Sonny Ding <93831983+sonnyding1@users.noreply.github.com>
2024-08-07 02:31:54 -04:00
Alex Van Liew
f555dd6dc8
[Bug] Fix a couple small issues with uturn and friends (#3321)
* prevent double-application of status contact abilities and switch out abilities

* use SwitchPhase for ForceSwitchOutAbAttr instead of switchOut()

* add tests for baton pass/uturn

* PR comments

* Update src/test/moves/baton_pass.test.ts

* add test for forced switch after mutual KO + revive

* tweak condition to fix uturn/baton pass

* improve docs

* style/typo nits from CR

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* CR feedback

* use doSelectPartyPokemon + rename

* int -> number

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
2024-08-07 02:29:51 -04:00
sodam
d2e1340c0c
[Localization] Fixed some trainer names (ko) (#3397)
* fixed trainers name wrong

* removed note(it checked by LeKaaN with pokerogue wiki)

* removed unnecessary spaces
2024-08-07 00:37:22 -04:00
protimita
3277551ce4
[Localization] JA Translation move-trigger.ts (#3396)
Health translations need to be checked in-game to see if they are used correctly.
acquiredAbility is improvived.
2024-08-07 00:04:30 -04:00
Tempoanon
98ae2bc665
[Localization] Add Japanese Localization (#3332)
* Update fonts

* Add locales/ja files

* Add some more files

* Add more ui stuff

* Fix failing typescript doc being generated

* Add the 4 ui handlers

* Add i18n.ts

* Try something in text.ts

* Fix some more errors

* Add ja type icons

* Add missed message keys

* Update src/plugins/i18n.ts

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

* Update src/ui/text.ts

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

* Update src/plugins/i18n.ts

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

* Apply TLs from xsn34kzx

Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>

* Translate essential text (move, ability descriptions)

* Translate missed move/ability

* Translated battle.ts

- All phrases are taken from USUM script via Poké Corpus https://abcboy101.github.io/poke-corpus/ 
(I used the USUM script because it is in hiragana/katakana. If we decide to change these phrases to Kanji later, I will refer to the SV script to modify them again.)
-

* Update battle.ts

* Update battle.ts

* Update src/locales/ja/battle.ts

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

* Update battle.ts

---------

Co-authored-by: EnochG1 <enoch.jwsong@gmail.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: Chapybara-jp <charlie.beer@hotmail.com>
2024-08-06 20:36:07 -04:00
damocleas
2bdfe9315c
[Balance] Starter Costs Adjustments (Hitmon family, Jynx family, Bidoof) (#3389) 2024-08-06 17:30:05 -04:00
schmidtc1
da51d6ae12
[Bug] Fix moveset flyout not updating PP from Spite (#3388) 2024-08-06 16:59:17 -04:00
Adrian T.
9875fcc59d
[Ability] Partially implement Gulp Missile (#3327)
* implement gulp missile

* add tests

* change fly to dive

* show ability when reverting to normal form

* update ai score, tests

* update score condition

* adjust conditions, damage

* add underwater test

* update damage in test

* partial commit
2024-08-06 16:18:47 -04:00
NightKev
9eadce80c6
[Bug] Fix tier weights and remove unnecessary Math.min() (#3359) 2024-08-06 15:34:43 -04:00
schmidtc1
06ed89ef13
[Bug] Fix sketch being able to copy some unsketchable moves (#3386)
* Cherrypicks due to beta issues

* Adds flags to some unsketchable moves, adds typedoc

* Cherrypicks due to beta issues #2
2024-08-06 15:25:20 -04:00
Tempoanon
c722490f60
[Feature] Allow Phione eggs to have a 1/8 chance to hatch Manaphy (#2787)
* Add feature and debug DO NOT MERGE

* Remove debug stuff
2024-08-06 14:05:19 -04:00
Lugiad
d66d4d1eeb
[Localization] Missing translation placeholders of Fresh Start challenge in some languages (#3383)
* Update achv.ts

* Update challenges.ts

* Update achv.ts

* Update achv.ts

* Update challenges.ts

* Update challenges.ts

* Update achv.ts

* Update challenges.ts

* Update achv.ts

* Update src/locales/de/achv.ts

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

* Update src/locales/pt_BR/challenges.ts

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

* Update achv.ts

* Update challenges.ts

* Update achv.ts

* Update challenges.ts

* Update achv.ts

* Update challenges.ts

* Update achv.ts

* Update challenges.ts

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-08-06 13:46:11 -04:00
Tempoanon
af56eee1cf
[Bug] Fix Storm moves having accuracy drops in sun/sand (#3381) 2024-08-06 12:20:23 -04:00
Lugiad
3a4eea51c6
[Localization] More French adjuestments (#3382)
* Update battle.ts

* Update starter-select-ui-handler.ts

* Update battle.ts
2024-08-06 12:17:34 -04:00
NightKev
877d0c6db8
[Test] Stylistic consistency pass on tests (#3378)
* Modify tests to use overrides helper functions

* Apply stylistic consistency to overrides in tests

Also remove some non-test-related expects()
2024-08-06 10:06:25 -04:00
damocleas
7e81b50214
Passive Changes (#3372) 2024-08-06 01:24:05 -05:00
Enoch
151e2647cb
[Localization][ko] Translate missed texts in filter bar. (#3370)
* Add missed translation and fix wrong message key

* change some text

* Update src/locales/ko/filter-bar.ts

* Update src/locales/ko/filter-bar.ts

* Add confirmExit translation
2024-08-06 01:08:04 -05:00
Leo Kim
20e52ed9a7
[QoL] Change Dex filter name to Caught (#3361)
* change filter name `Dex` to `Caught`

* fix mis changed entry

* Update src/locales/fr/filter-bar.ts

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

* Update src/locales/de/filter-bar.ts

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

* Update src/locales/pt_BR/filter-bar.ts

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

* Update src/locales/ko/filter-bar.ts

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

* Update src/locales/zh_CN/filter-bar.ts

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

* Update src/locales/zh_TW/filter-bar.ts

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

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
2024-08-05 22:54:31 -04:00
damocleas
1aa2c219bb
Update pokemon-species.ts (#3368) 2024-08-05 21:30:27 -05:00
AJ Fontaine
1711b6c7ae
[Balance] Set White Herb weight to 0 (#3366)
* Old Yeller White Herb

* ESLint, the accident was 5 years ago, you need to move on

* 'It is nothing, it is nothing...' -Archduke Franz Ferdinand
2024-08-05 21:00:57 -04:00
José Ricardo Fleury Oliveira
dba2adf44e
[Localization] Updated Portuguese filter-bar.ts and confirmExit in the starter select UI (#3363)
* [Localization] Updated Portuguese filter-bar.ts and confirmExit in the starter select UI

* typo
2024-08-05 20:08:12 -04:00
Mason S
1ec7190aba
[Bug] Cosplay Pikachu and Rotom forms not starting with signature moves (#3365)
Changed the level of the signature moves for Cosplay Pikachu and Rotom forms to be 1 instead of 0.
2024-08-05 20:07:13 -04:00
NightKev
0a77dcdb4f
[Bug] Sand Spit should only activate when hit with a damaging move (#3337)
* Sand Spit should only activate when hit with a damaging move

* Add tests for Sand Spit
2024-08-05 11:51:36 -04:00
Leo Kim
d323817eb9
[Enhancement] add filters for pokerus, HA, cost reduction (#3343)
* add filters for pokerus, HA, cost reduction

* add entries for translation

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

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>

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

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>

---------

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>
2024-08-05 11:43:47 -04:00
Leo Kim
91b32132d0
[Bug,Enhancement] Fix and improve Starter selector UI (#3340)
* apply offset to all hybrid filter

* make dropDownType to public for offsetHybridFilter function

* refactoring defaultSettings to additional suport default cursor.

* fix to remember last cursor on hover mode

* remove unnecessary reset code

* fix sort reset function

* update resetFilter function

* update requested changes

* remove log msg

* fix checking default on sort

* refactoring hasDefaultValues function for readability

* fix lastdir bug
2024-08-05 11:42:15 -04:00
NightKev
063e6dbd2d
[Bug] Player pokemon shouldn't generate an NPC moveset (#3356)
* Player pokemon shouldn't generate an NPC moveset

* Make sure Keldeo starts new runs in the correct form
2024-08-05 10:22:06 -04:00
NightKev
68d3d27d47
[Test] Fix Power Spot test so Stonjourner always moves second (#3357) 2024-08-05 09:47:54 -04:00
NightKev
a301507f80
[Test] Remove held items from all tests when there are no item overrides (#3358) 2024-08-05 09:46:34 -04:00
innerthunder
32d4102594
[Bug] Fix Make It Rain and Clanging Scales stat drop trigger logic (#3355)
* Fix Make It Rain + Clanging Scales stat drop logic

* Use "includes" instead of "<" for firstTarget logic instead
2024-08-05 01:19:49 -04:00
Madmadness65
b6da93a092
Add ORAS Champion theme for Mixed music (#3351) 2024-08-04 19:45:29 -05:00
José Ricardo Fleury Oliveira
a8bb6e7a0b
[Localization] Update Portuguese translation for filter-bar.ts (#3353) 2024-08-04 20:41:29 -04:00
DustinLin
d27e764e24
[Bug] Adding check to apply attr on moves that dont fail (parting shot) (#3195) 2024-08-04 15:14:16 -04:00
Tempoanon
84d89617ed
Update move.ts
Fixed accidentally added commas
2024-08-04 14:33:54 -04:00
Tempoanon
6f82d9c96c
Update move.ts
Mark future sight and doom desire as partial
2024-08-04 14:27:37 -04:00
Lugiad
fdf20837a6
[Localization] Small batch of French localization/adjustments (#3339)
* Update filter-bar.ts

* Update trainers.ts

* Update trainers.ts

* Update starter-select-ui-handler.ts

* Update starter-select-ui-handler.ts
2024-08-04 14:12:42 -04:00
NightKev
491f801d1c
[Refactor] Use tagType instead of manually passing BattlerTagType.BYPASS_SLEEP (#3338) 2024-08-04 14:12:22 -04:00
Jannik Tappert
6ce3468e04
[Localization] Fix some errors and transalte admin dialogue (#3335)
* Bring german translation up to date by fixing some errors and translating the admin dialogue

* Update src/locales/de/move-trigger.ts
2024-08-04 14:11:09 -04:00
Leo Kim
8b8ac416b8
[Bug] Fix blocking menu when 6 starter selected (#3333)
* fix bug of block menu when 6 starter

* update comment

* update comment again
2024-08-04 03:22:31 -04:00
MokaStitcher
0796a9fce8
[Enhancement] Improvements to starter selection and filtering user experience (#3325)
* [filter-ui] Improvements to starter selection and filtering user experience
Original messages of 14 squashed commits:
* final cleanup and code comments
* automatically go to the list of starters when closing filters
* FilterBar cleanup. Associate each DropDown with an id and access them through it
* reset all filters when creating a new game. Set different default gen filter for challenge mode
* start of code cleanup plus some documentation
* fix filter bar label coloring for legacy theme
* change generation filter default values to be all generations selected
* fix navigation between team and filtered Pokemon
* add missing localisation keys
* first pass at improving navigation between the UI elements
* have each filter group handle its default values instead of the filter bar
* revamp dropdown class. add possibility to display both a sprite and text label at the same time
* groundwork to be able to move around starter ui elements more easily
* add hybrid filtering type for Gen and Type filters, clean up implementation for radial type

* [loc][ko][zh] localisation of starter ui filters for Chinese and Korean

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

* [loc][de] German translations for the filters

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

---------

Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-08-04 02:50:13 -04:00
Tempoanon
22349da663
Update phases.ts
Fixed a linting problem
2024-08-04 01:41:59 -04:00
chaosgrimmon
d879436751
[Sprite] Target FormSpriteKey-labelled sprite assets (#3322) 2024-08-04 01:06:51 -04:00
Jacob Knispel
ca64c4aaf2
[Bug] Skip forced switch if the fainted party member has been revived already (#1236) 2024-08-04 01:04:59 -04:00
damocleas
fdcf21592b
Update pokemon-species.ts (#3329) 2024-08-04 04:09:35 +01:00
Frederico Santos
42d00e208e
Revert "[Bug] fixed switch out bug when fainted single -> double (#3288)" (#3330)
This reverts commit 89d38a3b6b.
2024-08-04 04:09:06 +01:00
Tempoanon
7048fbe06f
[Feature] Implement generic evil team admins (#3234)
* [Hotfix] Fix interactions of some moves not changing types (#3183)

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

* Add evil admin placeholder images

* Add admin names to locale files

* Add evil team admin dialogue

* Added new sprites

* Make simple admin trainer pools

* Add Korean localization

* Increase evil boss money multiplier from 2.25 to 2.5

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-08-03 16:34:05 -04:00
Madmadness65
153d8ba557
[Sprite] Move Victini graphics to Generation 5 atlases (#3320)
* Move Victini graphics to Generation 5 atlases

* Minor change
2024-08-03 15:03:59 -05:00
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
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
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
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
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
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