Commit Graph

5367 Commits

Author SHA1 Message Date
Wlowscha
d02d70e6ab
Split up vitamins from the rest of stat boosting items 2025-06-10 19:55:41 +02:00
Wlowscha
dccb0cf691
Using Berry held items in move.ts 2025-06-10 19:53:47 +02:00
Bertie690
581348ec0a
[Misc] Remove extra newline in test-boilerplate.ts (#5965) 2025-06-09 18:28:39 -07:00
NightKev
60105f0402
[Dev] Update test creation script (#5939) 2025-06-09 17:48:41 -07:00
Sirz Benjie
48e911e03c
[Refactor] Remove circular deps 3 (#5959)
* Move game-mode to its own file

Reduces circular imports to 325

* Move battler-index to own file

Reduces circular deps to 314

* Move trainer-variant to own file

Reduces circ deps to 313

* Move enums in pokemon to their own file

* Move arena-tag-type to its own file

* Move pokemon-moves to its own file

* Move command to own file

* Move learnMoveType to own file

* Move form change item to own file

* Move battlerTagLapseType to own file

* Move anim enums to own shared file

* Move enums out of challenges

* Move species form change triggers to own file

Reduces circ imports to 291

* Update test importing pokemon move

* Replace move attribute imports with string names

* Untangle circular deps from game data

* Fix missing string call in switch summon phase

* Apply kev's suggestions from code review

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

* Ensure ChargeMove's is method calls super

* Use InstanceType for proper narrowing

* Apply kev's suggestions from code review

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-09 16:24:13 -07:00
Wlowscha
215ce632ef
Fixing (most) berry usage 2025-06-10 00:53:44 +02:00
Wlowscha
29af976c49
Fixed Pickup 2025-06-10 00:25:13 +02:00
Wlowscha
3891ef5f85
Removed AttackTypeBoosterModifierRequirement for MEs 2025-06-10 00:12:14 +02:00
Wlowscha
4a3a442ebd
MBE achievement now tracks held items 2025-06-09 18:56:05 +02:00
Wlowscha
d22f7b1d4a
Fixed types in shuckle juice and old gateau 2025-06-09 18:37:12 +02:00
Wlowscha
2678535bef
Various fixes 2025-06-09 18:35:06 +02:00
Wlowscha
20d4d3aa05
Fixed types in held item manager 2025-06-09 18:29:13 +02:00
Wlowscha
ff73c5b038
Improved item transfer 2025-06-09 18:14:26 +02:00
Wlowscha
928d8a8f97
MBE is always untransferable 2025-06-09 18:12:41 +02:00
Wlowscha
a0041eb18a
Added Evolution Tracker as held item 2025-06-09 16:48:56 +02:00
Wlowscha
5278a96f24
pokemon.getHeldItems now uses heldItemManager 2025-06-09 16:20:21 +02:00
Wlowscha
87b0035463
Reworked most entries in Modifier Types 2025-06-09 16:02:59 +02:00
Wlowscha
faa387a67e
Refactored Baton logic 2025-06-09 14:46:31 +02:00
Wlowscha
b271dc724b
Reworked various effects that steal items 2025-06-09 14:43:00 +02:00
Wlowscha
c607a73ebc
Added soundName to HeldItem (possibly useless) 2025-06-09 13:39:25 +02:00
Wlowscha
8d63f06de2
Merge remote-tracking branch 'upstream/beta' into held-item-refactor 2025-06-09 13:22:39 +02:00
Wlowscha
51f6fd2c1a
Refactored most of battle-scene.ts with held items 2025-06-09 13:15:59 +02:00
Wlowscha
c1469c08fa
Making some held items unstealable and unsuppressable 2025-06-09 10:51:07 +02:00
Wlowscha
c41ae99365
Changed BattleScene.removeModifier and pokemon.loseHeldItem 2025-06-09 10:42:55 +02:00
Wlowscha
565d75225a
Fixed shell bell in ability.ts (why is it here?) 2025-06-09 10:42:11 +02:00
Wlowscha
34864b51b8
Removed a bunch of modifiers 2025-06-09 10:13:13 +02:00
Wlowscha
2f794dbc6e
Using phaseManager 2025-06-09 10:12:46 +02:00
Wlowscha
69b99887d9
Shuckle Juice and Old Gateau 2025-06-09 10:12:17 +02:00
AJ Fontaine
b1c50dd69f
[Bug] Fix TM compatibility for Terapagos and Knock Off (#5958)
Fix TM compatibility for Terapagos and Knock Off
2025-06-08 16:49:50 -07:00
NightKev
d2ace47e1e [Test] Add missing ability override to Dancer tests 2025-06-08 15:36:01 -07:00
Wlowscha
5ef88a6d4d
[Refactor] Refactor select-modifier-phase.ts (#5886)
* Refactored select-modifier-phase.ts

* Added some missing type signatures

* Changes from suggestions

* Added ModifierSelectCallback type
2025-06-08 15:13:26 -07:00
Wlowscha
76a3e612dd
Tracking forms in held item manager 2025-06-08 22:09:55 +02:00
Wlowscha
12117bb2ac
Using phaseManager 2025-06-08 20:23:42 +02:00
Wlowscha
2b077151ef
Using held items in some places 2025-06-08 20:15:56 +02:00
Wlowscha
1cb956e872
Partial implementation of item steal items 2025-06-08 20:10:32 +02:00
Tiago Rodrigues
37767799cd
[Bug] Gorilla Tactics now activates on protect and miss (#5567)
* [Bug] Fix #5112: Gorilla Tactics only registers succesful moves as move usage

* Apply small fixes from code review

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-08 12:52:48 -04:00
Wlowscha
2024281580
Baton switch logic in party ui handler now using held item 2025-06-08 18:34:58 +02:00
Wlowscha
d3f84ab41e
Merge remote-tracking branch 'upstream/beta' into held-item-refactor 2025-06-08 12:05:04 +02:00
Sirz Benjie
1c4edabd1d
[Refactor] Ensure that new phases are created through the phase manager
https://github.com/pagefaultgames/pokerogue/pull/5955

* Add newPhase method to phase-manager

* Update calls to append/prepend phase to use string phase

* Replace instantiations of new phase with phase manager
2025-06-07 23:55:30 -07:00
NightKev
75beec12a8
[Dev] Enable Biome checking of ability.ts (#5948) 2025-06-07 21:43:30 -07:00
Bertie690
35a09af475
[Utils] Create utility function randSeedFloat (#5767) 2025-06-07 19:29:10 -07:00
Bertie690
09e30070f9
[Docs] Fixed test helper functions to conform with TSDoc standard; deprecated runToSummon/startBattle without args (#5912)
* Updated doc comments for test-related functions

* Marked `classicMode.runToSummon` and `classicMode.startBattle` without species as deprecated

Having the species being used depend on daily run RNG is both unintuitive, janky and prone to flaking out (as happened with the Gastro Acid tests)

* Fixed the bug

* Update field-helper.ts

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-07 18:02:25 -07:00
Sirz Benjie
93745f14b7
[Refactor] Decouple phase system from battle-scene (#5953)
* Move phase logic into its own class

* Move ts ignore comment
2025-06-07 17:59:30 -07:00
Jimmybald1
3114035673
[Balance] Update catch rates to Gen 9 (#5954)
Updated catch rates to gen 9w

Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
2025-06-07 20:54:33 -04:00
Bertie690
ef6029ae4b
[Refactor] Add methods isPlayer and isEnemy to reduce circular imports
https://github.com/pagefaultgames/pokerogue/pull/5902

* Added functions `isPlayer` and `isEnemy` for type checking

* Apply suggestions from Kev code review

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

* Fix merge issue

* Split imports

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-07 17:44:58 -07:00
NightKev
d3bc33cd4e [Misc] Remove debug.js reference from index.html 2025-06-07 17:37:09 -07:00
Bertie690
1ff45687c5
[Refactor] Merged interfaces/ into @types/; removed runtime orphan modules
https://github.com/pagefaultgames/pokerogue/pull/5951
2025-06-07 17:28:01 -07:00
Wlowscha
bac6aa1d3d
Added Baton and Golden Punch 2025-06-08 00:48:27 +02:00
Wlowscha
0b32cfb622
Added multi lens and wide lens 2025-06-08 00:29:14 +02:00
Wlowscha
ff24aae54b
Added Shell Bell, Soul Dew 2025-06-08 00:06:04 +02:00