Commit Graph

3574 Commits

Author SHA1 Message Date
snoozbuster 88dcaa3d20 fix more bad merge (source move not passed to tag) 2024-08-13 21:10:13 -07:00
snoozbuster f5fabbb159 fix bad merge 2024-08-13 21:10:13 -07:00
snoozbuster 74cbdbb837 finish writing pursuit tests (5 failures to fix) 2024-08-13 21:10:12 -07:00
snoozbuster daebb3a91c fix some issues with prompt timeouts 2024-08-13 21:10:12 -07:00
snoozbuster 1b7ccb1912 don't crash if a test faints a pokemon between CommandPhase and TurnStartPhase 2024-08-13 21:10:11 -07:00
snoozbuster d45ed3d9d3 add onNextPhase and advance to phaseInterceptor 2024-08-13 21:10:11 -07:00
snoozbuster eb11b951e6 log turn order changes 2024-08-13 21:10:11 -07:00
snoozbuster b681bc386a add better phase logging and a fast timeout for stalled prompts 2024-08-13 21:10:10 -07:00
snoozbuster c31809ed35 add helper for forcing AI move targetting 2024-08-13 21:10:10 -07:00
snoozbuster 1bb79b87f6 slightly better overrides 2024-08-13 21:10:09 -07:00
snoozbuster c628759756 fix some types 2024-08-13 21:10:09 -07:00
snoozbuster 8a4a297cd6 remove whenAboutToRun 2024-08-13 21:10:08 -07:00
snoozbuster 9d721f6610 basic pursuit functionality tested 2024-08-13 19:59:57 -07:00
snoozbuster c080ba0b46 add methods to overridesHelper for new overrides 2024-08-13 19:59:57 -07:00
snoozbuster eb1d195866 add shorthand for setting a moveset to all one move 2024-08-13 19:59:57 -07:00
snoozbuster c6e93985ca bonus uturn test 2024-08-13 19:59:56 -07:00
snoozbuster d6ec174715 add trainer party override 2024-08-13 19:59:56 -07:00
snoozbuster e325af1f0b rename overide to match 2024-08-13 19:59:56 -07:00
Alex Van Liew c1019bac39 fix switching override in doubles 2024-08-13 19:59:56 -07:00
Alex Van Liew a086b3a0ad fix switch moves again 2024-08-13 19:59:56 -07:00
Alex Van Liew 5e21005fe9 fail more obviously 2024-08-13 19:59:55 -07:00
snoozbuster a8b4d6a9de minor strict-null issue 2024-08-13 19:59:55 -07:00
snoozbuster 7517e16c84 mostly implemented (missing some edge cases/interactions) 2024-08-13 19:59:55 -07:00
snoozbuster a3a42931ba add move attrs for pursuit 2024-08-13 19:59:55 -07:00
snoozbuster a0f8a4df5b add new tag types for pursuit 2024-08-13 19:59:09 -07:00
snoozbuster 939a3f32a8 minor doc improvement 2024-08-13 19:58:47 -07:00
snoozbuster f428fd114c add override for forcing switches 2024-08-13 19:58:47 -07:00
Frederico Santos dff0e9179d
Merge branch 'main' into beta 2024-08-13 22:42:54 +01:00
Frederico Santos 70a21dfed8 Merge branch 'beta' of github.com:pagefaultgames/pokerogue into beta 2024-08-13 22:39:15 +01:00
Frederico Santos 0574e817d9 fix: reset mode chain in TitlePhase's loadSaveSlot method 2024-08-13 22:39:00 +01:00
Matthew 29b441facb
August 2024 Variant Update (#3470) 2024-08-13 22:30:29 +01:00
flx-sta b7d7d9bcf3
fix/update vite.config.ts (#3531)
- fix types
- update defintion to map `UserConfig` type
2024-08-13 22:24:49 +01:00
Blitzy bcca218777
Update pokemon-forms.ts (#3538) 2024-08-13 22:22:27 +01:00
José Ricardo Fleury Oliveira 1180fd0122
[Localization] Localized "Consent Preferences" in menu-ui-handler.ts (#3513)
* [Localization] Localized "Consent Preferences" in menu-ui-handler.ts

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

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

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

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

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

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

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

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

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

Co-authored-by: Asdar <asdargmng@gmail.com>

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

Co-authored-by: RimKnight <rimknight852@gmail.com>

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

Co-authored-by: RimKnight <rimknight852@gmail.com>

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

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

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: RimKnight <rimknight852@gmail.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-08-13 22:22:01 +01:00
Mumble 05fdac39ec
Fixed Export Game Data freeze (#3539)
Co-authored-by: Frutescens <info@laptop>
2024-08-13 22:21:45 +01:00
Blitzy 16b9df2d15
[Balance] [QoL] Allow Pirouette Meloetta to be selectable on starter screen (#3537)
* Update pokemon-forms.ts

* Add Data for Pirouette

* Update pokemon-form.ts

* Update Localization Names

* Update pokemon-form.ts
2024-08-13 22:20:37 +01:00
damocleas bf1c634f34
[Balance] Replaced Dragon Dance on Eternatus for Flamethrower (#3536) 2024-08-13 22:16:37 +01:00
NightKev 2b0b9fcb70
[Bug] Palafin should not swap to Hero form when switching due to faint (#3532)
* Palafin should not swap to Hero form when switching due to faint

Also add more tests for Zero to Hero

* Use `.isFainted()` instead of checking HP
2024-08-13 22:14:49 +01:00
flx-sta 5000a91348
resolve some open strict-null bangs TODOs (#3530) 2024-08-13 22:12:42 +01:00
AJ Fontaine 73372b424e
[QoL] [Balance] Adjust ether weights for lower-PP moves (#3483)
* Adjust ether weights

* Gt to gte

* Fix spacing
2024-08-13 22:10:19 +01:00
Mason S bbca34bfcd
[Feature] Updated Smeargle learnset to pre gen-9 implementation (#2986)
Updated Pokemon.getLevelMoves()
Now enforces uniqueness AFTER filtering moves within the given range. This allows a pokemon to learn the same move at two different levels.

Updated pokemon-level-moves.ts
Changed Smeargle to learn Sketch at levels 11, 21, 31, ..., 91, instead of only at level 1.
2024-08-13 22:09:21 +01:00
NightKev 39e7591d3b
[Ability] Heatproof now reduces burn damage by half (#3524)
* Heatproof now reduces burn damage by half

* Add tests

* Add comment to test
2024-08-13 22:00:19 +01:00
wnhlee 452fbbb345
refactor: improve typing (#2501) 2024-08-13 21:49:06 +01:00
NightKev 0d3fcd82bb
[Bug] Fix daily run generated movesets (#3519)
* Fix daily run generated movesets

* add unit-tests for `fix-daily-run` (#3)

* add `daily` and `classic` helper. split `runToSummon`

there is now a `classicMode.runToSummon` which represents the old one used.
There is now a `dailyMode.runToSummon` too

* add daily_mode.test.ts

covers the occured issue

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-08-13 21:48:56 +01:00
AJ Fontaine 39f617d58d
[Balance] Replaced some custom starting moves with equivalent canon moves (#3468)
* Replaced some custom moves with canon moves

* Just gave Turtwig Leafage

* Revert Vanillite change

* Psybeam Flutter Mane moved from 7 to 1
2024-08-13 21:48:40 +01:00
innerthunder a760022c77
[Move] Refactor Conditional Protection and Protect interactions (#2731)
* Refactor protection moves

* Revert Protected move result change

* Fix typo in documentation

* Fix merge conflicts in integration tests

* Improve readability of apply function

* Fix effects applying through Protect

* Fix typos in `src/data/egg.ts` comments

* [Localization(it)] Added Honey Gather translation (#2301)

* Update ability.ts [Localization(it)]

* Update ability.ts [Localization(it)]

Fixed capitalization

* Hitting into protect now records a move as failed

* Add check for move success before applying additional effects (Stone Axe)

* `Overrides` should be capitalized

* Add fail conditions for `RechargeAttr` and Jaw Lock

* Update protect test

* Add check for protect in Glaive Rush

* Update tests to use new overrides helpers

* Account for Mat Block and add protect test for Glaive Rush

---------

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

* Crafty Shield now blocks ALL protect-ignoring moves

* Crafty Shield test + Fix blocking ally-target moves

* ESLint

* Mat Block and Wide Guard integration tests

* Fix strict-null errors in integration tests

* Fix strict-null issue in arena-tag

* Fix strict-null in unrelated test :pikamad:

* Fix conflicting AbAttr

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
2024-08-13 21:47:32 +01:00
innerthunder 161043ecd6
[Move] Implement Shell Trap (#3500)
* Implement Shell Trap

* Fix error in EN message

* Add ZH/KO translations

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Fix error in placeholder messages

* FR translation / KO translation fix

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>

* More translations (DE, ES, IT, PT-BR)

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

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

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

* Fix Shell Trap activating from ally attacks (+ test fixes)

* Remove todo + add test with shell trap as first move

---------

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@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: Asdar <asdargmng@gmail.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-08-13 21:47:05 +01:00
AJ Fontaine afc391868b
Remove wild evo delays from time based level-up evos (#3521) 2024-08-13 21:45:09 +01:00
AJ Fontaine 704eab6c1a
Skip useless rewards in wave 199 (#3522) 2024-08-13 21:43:59 +01:00
prime 38ba0c089f
[Pokemon/Form/Item] Ultra Necrozma (#3514)
* Still attempting to merge ultra necrozma

* Added translations from Adri1

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

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-08-13 21:40:16 +01:00