ImperialSympathizer
60c26456f6
move dialogue token injection to i18next
2024-07-12 15:40:30 -04:00
Felix Staud
e8670c4f00
rename MysteryEncounter interface to IMysteryEncounter
2024-07-11 15:01:30 -07:00
Felix Staud
941a8e71d6
finishing touches
2024-07-11 14:58:52 -07:00
ImperialSympathizer
253447136a
some more small cleanup
2024-07-10 16:32:24 -04:00
ImperialSympathizer
ce55c13c12
resolve conflicts, import issues, and cleanup from rebase
2024-07-10 15:31:03 -04:00
ImperialSympathizer
efb00553c9
styling and text coloring fixes
2024-07-10 15:06:12 -04:00
ImperialSympathizer
deb1e95e34
add encounter exp utility and small cleanups/refactors
2024-07-10 15:04:48 -04:00
ImperialSympathizer
cf43589260
fix unit tests
2024-07-10 15:04:18 -04:00
ImperialSympathizer
7b35efe95e
adds 2 new encounters and colorable text options
2024-07-10 15:03:36 -04:00
ImperialSympathizer
872242c44f
remove commented code
2024-07-10 15:03:35 -04:00
ImperialSympathizer
f803de6b23
start adding unit tests
2024-07-10 15:03:33 -04:00
ImperialSympathizer
2318d86cb1
Mystery Encounters ( #2824 )
...
* squash commits to clean up PR
* add chest sprites
* bug fixes, cleanup, and tests
* small fixes
---------
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
2024-07-10 15:01:23 -04:00
ImperialSympathizer
666ec135ba
bug fixes, cleanup, and tests
2024-07-10 14:52:27 -04:00
ImperialSympathizer
860e875587
rebase encounters branch with pokerogue/main
2024-07-10 14:51:06 -04:00
schmidtc1
0b5b481de6
[Test] Prevent flying types/levitate from breaking Ceaseless Edge test ( #2931 )
...
* Modifies ceaseless edge test to account for flying types/levitate ability
* Removes .js from imports
2024-07-08 22:49:52 -04:00
schmidtc1
7474eac808
[Bug] Removes firstHitOnly from AddArenaTagAttr to allow multi hit set up with Ceaseless Edge ( #2727 )
...
* Removes firstHitOnly from AddArenaTagAttr to allow multi hit set up with ceaseless edge
* Creates initial test file with basic cases for ceaseless edge
* Fixes ceaseless edge unit test and expands on case 3
* Adds truthy/falsy expectations prior to use
2024-07-08 16:53:16 -04:00
NightKev
458245f542
[Unittest] Prevent Arena Trap/etc from breaking Costar test ( #2923 )
2024-07-08 16:37:22 -04:00
Tempoanon
f9327680dd
[Feature] Stop random trainers from spawning near fixed battles ( #2610 )
...
* Stop trainer spawns on evil team and E4 floors
* Thanks Xavion
* change "floors" to "wave" in coment
* at test for not spawning 3 waves within fixed trainer battle
* remove out-commented code
* apply code formatting
* Updated test and make sure isWaveTrainer returns a boolean
* Update comment
---------
Co-authored-by: Felix Staud <felix.staud@headwire.com>
2024-07-08 10:33:47 -04:00
Enoch
965bc687b3
[Localization] Localize terrain message and translate in Korean ( #2806 )
...
* add terrain localization and test code, change folder name
* Update src/locales/fr/weather.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/pt_BR/weather.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* Update src/locales/zh_CN/weather.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/de/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/zh_TW/weather.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Use testUtil
* add missed en messages
---------
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-07-08 10:16:55 -04:00
Tempoanon
694616e1e9
[Bug] Fix hard press bp and pp ( #2441 )
...
* Fix hard press bp and pp
* Hard Press should have a max bp of 100
* Fix typo for acc
* Add test
2024-07-07 01:44:47 +01:00
Tempoanon
0f510996f0
[Bug] Fix strong winds calculation ( #2423 )
...
* Fix strong winds calculation
* add unit test
* Add strong winds effect message
* Update src/locales/de/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/es/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/fr/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/it/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/ko/weather.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
---------
Co-authored-by: torranx <torranicles@gmail.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-07-05 19:59:53 +01:00
EmberCM
10dd16fa1e
[QoL] Add red color to the quantity if the item is at it's held limit ( #2221 )
...
* Add red color to the quantity if the item is at it's held limit
* Add shadow back to option text
* Attempt to fix transfer item crash and add tests for transferring items
* remove .js file extensions from test file imports
* Fix import paths for transfer-item.test
2024-07-05 13:50:19 -04:00
flx-sta
c5886bc2a2
[Tests] add unit-tests for battle-stat.ts ( #2752 )
...
* add test coverage for battle-stat.getBattleStatName()
* add test coverage for battle-stat
* apply mockI18next() to status-effect.test.ts
* add testUtils jsdocs and optimize imports
2024-07-05 11:30:48 -04:00
innerthunder
126174efe4
[Bug] Fix Grip Claw sometimes stealing from the wrong enemy ( #2766 )
...
* Fix Grip Claw stealing from the wrong enemy
* Document held item transfer modifiers
2024-07-03 14:48:41 -04:00
Adrian T
dad065cbae
[Ability] Fully Implement Steely Spirit ( #2749 )
...
* implement steely spirit
* add unit test
* cleanup
* cleanup and add another test
2024-07-03 12:55:39 -04:00
innerthunder
4c4e2bc792
[Bug] Fix evasion multiplier in hit check ( #2765 )
...
* Fix evasion multiplier in hit check
* Make Sand Veil test more future-proof
2024-07-03 12:49:12 -04:00
flx-sta
cc36cdb1a8
[Tests] add unit tests for accounts ( #2748 )
...
* add unit tests for accounts
* only import from vitest (not node:test)
* resolve comments
* improve test coverage for accounts.updateUserInfo
* add test coverage for account.initLoggedInUser()
* code style improvements
2024-07-02 22:00:44 -04:00
Enoch
0bc4f26b9d
[Localization] localized status-effect.ts and translate. ( #2528 )
...
* make postposition not to dynamic for localize
* localize status-effect.ts
* added test code, modified english postposition, modifed toxic_orb test to make it always fix in English.
* Update src/locales/zh_CN/status-effect.ts
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/fr/status-effect.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Update src/locales/de/status-effect.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Update src/locales/de/status-effect.ts
* added test code for check message key
* remove multi-language tests (except english)
* Update src/locales/pt_BR/status-effect.ts
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
* remove language and change test code to check method call and parameter
* Update src/locales/es/status-effect.ts
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
* Update src/locales/en/status-effect.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
* Apply review suggestion
* Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* add Test with empty string parameter
* Update src/locales/es/status-effect.ts
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
* Update src/locales/fr/status-effect.ts
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
---------
Co-authored-by: 송지원 <jiwsong@gmarket.com>
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: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
2024-07-02 10:22:46 -04:00
innerthunder
284c3c628b
[Unittest] Remove random berry effects from PBond tests ( #2715 )
2024-06-29 21:48:05 -04:00
innerthunder
a48429de09
[Bug] Fix Make It Rain applying stat change twice after KO'ing both opponents ( #2696 )
...
* Revert Make It Rain stat change behavior
* ESLint
* Add double KO unit test
2024-06-29 13:59:26 -04:00
NightKev
b82c85899e
[Unittest] Add tests for Tidy Up ( #2667 )
2024-06-29 13:56:38 -04:00
ReneGV
fd586ecd8e
[Bug] Fix purify ( #2697 )
2024-06-28 20:59:06 -04:00
NightKev
924ee17f70
[Unittest] Fix mocked value in Volt Absorb test ( #2685 )
2024-06-28 12:13:25 -04:00
NightKev
784035b6f5
[Unittest] Prevent berries from interfering with Dry Skin tests ( #2679 )
2024-06-28 00:55:09 -04:00
innerthunder
b2048148c9
[Bug] Fix Make It Rain not applying effect on KO ( #2670 )
2024-06-27 19:52:13 -04:00
innerthunder
e521862096
[Bug] Fix Make It Rain applying effects for each target ( #2664 )
...
* Fix Make It Rain applying effects for each target
* Revert MoneyAttr change
* Remove RNG from parental bond tests
2024-06-27 15:21:24 -04:00
NightKev
23a1c461a9
[unittest] Remove more RNG from Dry Skin tests ( #2647 )
2024-06-27 01:06:16 -04:00
NightKev
8933a9bb05
[Test] Prevent RNG from breaking Dry Skin tests ( #2630 )
2024-06-26 21:39:35 -04:00
innerthunder
55dd6b5100
[Bug] Fix Multi-Lens/PBond interaction for spread moves ( #2633 )
2024-06-26 21:05:03 -04:00
Dmitriy K
576f099243
[Test] Optimize Quick Draw tests ( #2625 )
...
* optimize the tests
* add level override in favor of directly changing stats
2024-06-26 17:01:14 -04:00
innerthunder
cd92d4d7d3
[Ability] Implement Parental Bond ( #2384 )
...
* Parental Bond basic implementation
* Parental Bond unit tests
* ESLint
* PBond AbAttr rework, documentation, and multi-target unit tests
* Update post-target move attribute logic
For Parental Bond interaction.
* AddSecondStrikeAbAttr now uses Constructor util
* Unit tests for PBond + Multi-Lens interaction
* Remove random damage spread in unit test
* Add null checks to PBond AbAttr
* Set player pokemon for unit test
* Fixed Post Target check to account for KO's
* Fix multi-strike moves applying effects at wrong times
* Test cases for updated effect timing
* Add Wake-Up Slap test case
* Fix Fury Cutter/Echoed Voice multi-hit interaction
* Fix Pay Day, Relic Song, and Fury Cutter (again)
* Add early stopping to multi-hit moves
* RecoilAttr now uses lastHitOnly
* Add faint check to last hit logic
2024-06-26 16:03:14 -04:00
Amani H
f7f8988cdb
[Item] Add Light Ball, Thick Club, Metal Powder, and Quick Powder ( #1899 )
...
* Add Light Ball, Thick Club, and Metal/Quick Powder
* Fix Typo, Account for Fusions
* Fix Errors with Fusions
* Group Items into Generator
* Refactor Generator and Type, Fix Localization (en)
* Adjust Generator, Add Override Type
* Fix Enum Import
* Localize for de, es, fr, it, ko, zh_CN, zh_TW
* Add Unit Tests
* Add Type
* Fix Items Atlas
* Change Cubone Passive Ability, Adjust Weight
2024-06-26 13:48:10 -05:00
Adrian T
fd08983181
[Ability] fix damage taken by disguise ( #2601 )
2024-06-25 15:32:45 -04:00
Teju Rajbabu
c8db3bff4c
[QOL] UI Improvement - Shiny Icon ( #2372 )
...
* Test changes to change variant label color based on Tint
* Revert "Test changes to change variant label"
This reverts commit 0ad0f6293050cc5d3552fb996dc68c05f55afc1c.
* minimal recovery changes
* Finalized recovery and implemented ShinyIcon
* add setY in MockSprite
* added back some unintentional removed code
* added shiny_icons
* Initial test for tier change
* implemented Shiny Icon full functionality
* slight setY change for non-Base starters
2024-06-25 13:48:48 -04:00
Corrade
e70113073f
[Bug] Fix Dry Skin and ReceivedMoveDamageMultiplierAbAttr abilities ( #2592 )
...
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: first cut
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: removed redundant branch
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: reworded test cases that had typos anyway
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed PreDefendMovePowerToOneAbAttr (Disguise) to mention damage rather than power
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed powerMultiplier to damageMultiplier in ReceivedMoveDamageMultiplierAbAttr
2024-06-25 13:23:48 -04:00
Puchimono
8e6cbad3fc
[Bug] Legendary pull rate fix from Leg. up machine ( #2587 )
2024-06-25 10:14:28 -04:00
Amani H
136652caa9
[Item] Implement Eviolite Behavior ( #2161 )
...
* Add Eviolite with Unit Tests
* Localize for de, es, fr, it, ko, zh_CN, zh_TW
* Adjust German Localization
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
* Adjust Italian Localization
* Change Multiplier Type
* Adjust Unit Test Import
* Change Constructor
* Make Unit Tests Localized
* Comment Out of Reward Pool
---------
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-24 21:00:59 -05:00
damocleas
ec91d2453a
[Balance] Protean / Libero changed to Gen 6-8 Implementation ( #2473 )
...
* Protean / Libero changed to Gen 6-8 Implementation
* take 2
* please just work
* Update protean.test.ts
* Update libero.test.ts
2024-06-24 20:58:50 -05:00
cadi
8c8ddd26b5
[Ability] Implement Quick Draw ( #2287 )
...
* implement quick draw
* add line
* change ability success condition
* quick draw comes before quick claw effect
* now ability has chance variable to test conditional situation
* add unit test
* Merge branch 'main' into ability-quick-draw
* modifed: ability.getTriggerMessage
* modified: to use pokemon.battleData.abilityRevealed
* modified: changed private variable to public
* erase expect interceptor log
* add localizations
* modified: add comma in locales
* modified: ability docs & trigger logic
* modified: changed test logic
2024-06-24 11:22:15 -04:00
Adrian T
e9fb13cce9
[Move] Implement Flower Shield ( #2543 )
...
* implement flower shield
* add unit tests
* refactors, add test
* use HideSpriteTag instead
* update comment
* replace HideSpriteTag with SemiInvulnerableTag
2024-06-24 10:37:24 -04:00