Commit Graph

5809 Commits

Author SHA1 Message Date
Sirz Benjie
84e105b36c
docs: minor touchups 2025-09-22 20:47:41 -05:00
Sirz Benjie
a3a6ec914f
fix: address kev's comments from code review 2025-09-22 20:42:22 -05:00
Sirz Benjie
6b3b9f6443
Add missing continue-on-error to workflow 2025-09-21 16:11:21 -05:00
Sirz Benjie
025a2c6bd0
Adjust sprite test to not think REUSE.toml is a sprite json 2025-09-21 16:10:14 -05:00
Sirz Benjie
41794cdab3
Fixup minor typo 2025-09-21 10:24:00 -05:00
Sirz Benjie
587cce3cfa
add attribution to unicorn_power for reshiram/zekrom/kyurem epic variant 2025-09-20 21:04:49 -05:00
Sirz Benjie
578f9ecd39
Add attribution based on Officer Porkchop and Green Ninja's information 2025-09-20 21:03:09 -05:00
Sirz Benjie
64726c0d89
Add attribution based on Hanniel's information 2025-09-20 20:14:24 -05:00
Sirz Benjie
de007d4cb7
fix: add back linting workflow lost during merge 2025-09-16 23:56:09 -05:00
Sirz Benjie
b2bd9d0b52
chore: apply biome 2025-09-16 09:18:52 -05:00
Sirz Benjie
41be5a85a4
Add license info to new files added by docker PR 2025-09-15 14:30:15 -05:00
Sirz Benjie
17a5cb9fef
Remove licenses used only by public before linting with reuse 2025-09-15 14:11:08 -05:00
Sirz Benjie
16efa0e886
chore: update license info 2025-09-09 13:42:36 -05:00
Sirz Benjie
81b6e5ff17
chore: update license info 2025-09-09 12:17:43 -05:00
Sirz Benjie
e24ff391cc
chore: update license info 2025-09-09 12:14:15 -05:00
Sirz Benjie
f402d22e9a
chore: update license info for files in scripts 2025-09-09 11:57:23 -05:00
Sirz Benjie
165e279266
Add MIT license for snippets 2025-09-09 11:55:25 -05:00
Sirz Benjie
637316a5fb
Add license info to typedoc.config.js 2025-09-09 11:54:42 -05:00
Sirz Benjie
a988a431c5
Fix AGPL-3.0-or-later 2025-09-09 11:54:05 -05:00
Sirz Benjie
fe8c26c2b9
Fix typo in license ref 2025-09-09 11:52:08 -05:00
Sirz Benjie
395785acf9
Update licensing in scripts 2025-09-09 11:49:38 -05:00
Sirz Benjie
ec36c34056
Add license for bat scripts in public 2025-09-09 11:43:40 -05:00
Sirz Benjie
1776db4f9d
Add license for animation jsons 2025-09-09 11:32:32 -05:00
Sirz Benjie
22f9717f94
Move ps1 files out of public 2025-09-09 11:10:39 -05:00
Sirz Benjie
0a98e68d70
Add license info to license files ._. 2025-09-09 10:54:32 -05:00
Sirz Benjie
0917852af7
Add more licensing info 2025-09-09 10:43:10 -05:00
Sirz Benjie
e7a7bc5ae6
Annotate Leavannite's section 2025-09-08 14:47:16 -05:00
Sirz Benjie
7336985744
Add pokemon reborn sound affect attribution 2025-09-08 14:46:38 -05:00
Sirz Benjie
875a9902d8
begin licensing some audio assets 2025-09-08 14:43:41 -05:00
Sirz Benjie
04752ac8e5
chore: add FileContributor attributions for Bertie
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-04 23:22:31 -05:00
Sirz Benjie
f5a5040c8e
fix: minor wording adjustments and typo fixes
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-03 20:14:37 -05:00
Sirz Benjie
d7084c78fb
Add snippets for spdx 2025-09-02 14:18:51 -05:00
Sirz Benjie
35f5fe4fc3
Add reuse lint workflow 2025-09-02 13:37:56 -05:00
Sirz Benjie
7273508bd2
Add license information 2025-09-02 13:21:32 -05:00
Sirz Benjie
8d5ba221d8
[Refactor] Refactor boss health segment calculation to improve clarity (#6574)
* Refactor boss health bar

* Apply Kev's suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-22 20:08:39 -05:00
Lugiad
cffbafe4bd
[i18n] Language codes adjustments (#6587) 2025-09-22 05:45:28 -07:00
Dean
1c9843618c
[Misc] Blacklist more dynamic phases (#6585) 2025-09-21 12:05:13 -07:00
Sirz Benjie
d3edfb25a1
[Bug][Ability] Queenly Majesty flyout during move select (#6569) 2025-09-21 19:04:57 +00:00
Wlowscha
2fe99cc3bf
[Refactor] Refactor Starter and its handling (#6477)
* Reworked `Starter` interface with more explicit information

* Use Starter in ssui

* Fixed some bugs

* Passing starter.ivs to playerPokemon

* Using speciesIds

* Fixed getTestRunStarters

* Reverted some parameter changes

* Initialize starters in ssui

* Don't clear starters before starting run

* Fix to game manager

* Apply suggestions from code review

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

* Set ivs to 0 in part timer test

* Setting the right ivs

* Moved ssui to handlers folder

* Ran biome all

* Fixed broken imports

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-21 11:07:08 -07:00
Lugiad
cf5e7fd981
[UI/UX] Optimize text PNGs (#6584) 2025-09-21 06:55:54 -07:00
NightKev
be61996044 [Docs] Fix/update some comments and spacing 2025-09-21 00:22:53 -07:00
NightKev
9f851591cb [Dev] Update pnpm 2025-09-21 00:21:27 -07:00
Dean
25416ebf47
[UI] Avoid prematurely updating HP bar when applying damage (#6582)
Avoid prematurely updating HP bar when applying damage
2025-09-20 22:24:50 -05:00
Dean
87e6095a00
[Misc/Feature] Add dynamic turn order (#6036)
* Add new priority queues

* Add dynamic queue manager

* Add timing modifier and fix post speed ordering

* Make `phaseQueue` private

* Fix `gameManager.setTurnOrder`

* Update `findPhase` to also check dynamic queues

* Modify existing phase manager methods to check dynamic queues

* Fix move order persisting through tests

* Fix magic coat/bounce

* Use append for magic coat/bounce

* Remove `getSpeedOrder` from `TurnStartPhase`, fix references to `getCommandOrder` in tests

* Fix round queuing last instead of next

* Add quick draw application

* Add quick claw activation

* Fix turn order tracking

* Add move header queue to fix ordering

* Fix abilities activating immediately on summon

* Fix `postsummonphases` being shuffled (need to handle speed ties differently here)

* Update speed order function

* Add `StaticSwitchSummonPhase`

* Fix magic coat/bounce error from conflict resolution

* Remove conditional queue

* Fix dancer and baton pass tests

* Automatically queue consecutive Pokémon phases as dynamic

* Move turn end phases queuing back to `TurnStartPhase`

* Fix `LearnMovePhase`

* Remove `PrependSplice`

* Move DQM to phase manager

* Fix various phases being pushed instead of unshifted

* Remove `StaticSwitchSummonPhase`

* Ensure the top queue is always at length - 1

* Fix encounter `PostSummonPhase`s and Revival Blessing

* Fix move headers

* Remove implicit ordering from DQM

* Fix `PostSummonPhase`s in encounters running too early

* Fix `tryRemovePhase` usages

* Add `MovePhase` after `MoveEndPhase` automatically

* Implement an `inSpeedOrder` function

* Merge fixes

* Fix encounter rewards

* Defer `FaintPhase`s where splice was used previously

* Separate speed order utils to avoid circular imports

* Temporarily disable lunar dance test

* Simplify deferral

* Remove move priority modifier

* Fix TS errors in code files

* Fix ts errors in tests

* Fix more test files

* Fix postsummon + checkswitch ability activations

* Fix `removeAll`

* Reposition `positionalTagPhase`

* Re-add `startCurrentPhase`

* Avoid overwriting `currentPhase` after `turnStart`

* Delete `switchSummonPhasePriorityQueue`

* Update `phase-manager.ts`

* Remove uses of `isNullOrUndefined`

* Rename deferral methods

* Update docs and use `getPlayerField(true)` in turn start phase

* Use `.getEnemyField(true)`

* Update docs for post summon phase priority queue (psppq)

* Update speed order utils

* Remove null from `nextPhase`

* Update move phase timing modifier docs

* Remove mention of phases from base priority queue class

* Remove and replace `applyInSpeedOrder`

* Don't sort weather effect phases

* Order priority queues before removing

- Add some `readonly` and `public` modifiers

- Remove unused `queuedPhases` field from `MoveEffectPhase`

* Fix linting in `phase-manager.ts`

* Remove unnecessary turn order modification in Rage Fist test

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-20 17:49:40 -05:00
Dean
d02980dd4e
[Move] Fully implement Healing wish (/Lunar Dance) and remove nextCommandPhaseQueue (#6027)
* Remove NCPQ

* Implement PendingHealTag

* Fix test

* Code review

* Use message directly instead of as key in tag

* Update tag for serialization

* Update test import

* Update src/data/arena-tag.ts

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* Remove isNullOrUndefined uses

* Fix arena tag type(o)

* Fix pendinghealtag

* Fix hwish tests

* Arena tag denesting

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-09-20 17:32:31 -05:00
Bertie690
1691951c87
[Test] Added Map key matcher; enforced strong typing on matchers (#6561)
* Added `toHaveKey` matcher + fixed imports

* Broke up the test matchers into multiple smaller interfaces

* Added restricted typing on matchers

Now we can't call `expect(game).toHaveFullHp()`!!!!!

* Updated comment

* Renamed `toEqualArrayUnsorted` into `toEqualUnsorted`

* Moved comment at top of file

* Fix `@module` doc comment

* Remove extra space

* Fix typo

* Fixed key ssue in matchers

* Update to-have-key.ts

* Update test/@types/vitest.d.ts

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

* Fixed missing braces inside comment

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-20 17:24:27 -05:00
Sirz Benjie
207808f37d
[Docs] Cleanup docs in pokemon.ts (#6543)
* [Docs] Cleanup docs in pokemon.ts

* Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* chore: apply biome

* revert changes to docstrings that will conflict
2025-09-20 17:15:57 -05:00
Dean
405b1d389d
[Bug] Apply Supreme Overlord only once on summon (#6575)
* Implement supreme overlord as a battler tag

* Make ability a conditionalattr

* Add tag to map

* Update test

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* Add edgeCase marker

* Extend from AbilityBattlerTag

* Run biome

---------

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-19 23:08:02 -05:00
Sirz Benjie
16a903b975
[Bug][Ability] Remove flyout for rivalry (#6577)
Remove flyout for rivalry
2025-09-19 20:47:35 -07:00
Sirz Benjie
773f5b23f2
[Deps] Bump typedoc version (#6576) 2025-09-19 17:23:50 -07:00