Commit Graph

3567 Commits

Author SHA1 Message Date
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
MokaStitcher 267772c043
[qol][ui] add cursor wrap around to option select menus (#3518) 2024-08-13 21:33:59 +01:00
Mumble e9c89b437b
[Enhancement] Target Selection also highlights target's held items (#3448)
* Target Pokemon's held items flash with the Pokemon during target selection

* Fixed typedocs issues and adjusted animation

* removed .js from imports

* removed .js from imports

* Slowed down animation + fixed bug

* Implemented Torranx's fixes + slightly widened the range for alpha values

* Apply suggestions from code review

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

* Additional suggestions from code review

* Update src/battle-scene.ts

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

---------

Co-authored-by: Frutescens <info@laptop>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
2024-08-13 21:30:01 +01:00
Mumble 513adf779f
[Ability] Stall + Mycelium Might (#3484)
* Implemented Stall

* Fixed implementation

* AbAttr Name Change

* Wrote test for Stall

* Update src/test/abilities/stall.test.ts

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

* Update src/data/ability.ts

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

* Updated ability variables and test

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* eslint fixes

* Update src/test/abilities/stall.test.ts

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

* added documentation and implemented mycelium might

* added note on quick claw

* Documentation + Quick Claw implementation

* This is where I would test quick claw-stall/m.m. if i could override modifierstacks

* Forgot to add edits oops

---------

Co-authored-by: Frutescens <info@laptop>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2024-08-13 21:25:58 +01:00
Steven Chan 73d60f5e6e
[Bug] Display arena trap/shadow tag flyout at appropriate times (#3271)
* Show arena trap/shadow tag dialog immediately instead of as a message phase

* remove flyout that opponent cannot switch out due to opposing arena trap

* change applyAbAttrsInternal signature

* fix bug (no messages appeared) due to prev commit

* fix typedoc docs error

* removed empty message after switching trapped pokemon

* revert empty string argument to null
modified files to adopt null argument

* renamed variable
2024-08-13 21:19:00 +01:00
innerthunder c5c314eb53
Fix No Retreat failing when trapped by another effect (#3488) 2024-08-13 20:30:55 +01:00
NightKev 6c2c14cb1e
[Test] Fix Flash Fire tests to remove enemy ability RNG (#3523)
* Fix Flash Fire tests to remove enemy ability RNG

* Replace manual status application with override use
2024-08-12 21:21:51 -05:00
damocleas 6d515d58b5
[Balance] Egg and Starter Adjustments (increase HA chance, decrease candy costs) (#3419)
* [Balance] Egg Adjustments

* Reduced Cost of Same-Species Eggs

* Update egg.ts

* check errors

* Candy per Species-Egg Adjusted

* Set egg cost back to 10 for 9/10 cost mons

* 8-10 Legendaries made to 8 cost Eggs

* Updated some Passive Costs and Cost Reductions

* Change HA rate of eggs to 192

Also clean up the if to make it more readable

* Changed HA Rate from Same-Species Eggs up 1/4 -> 1/8

* Rename "voucher*" variables to "gacha*"

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-08-12 16:27:33 -04:00