* [Balance] The cost of buying same-species eggs can be reduced
After hatching a certain number of eggs for a starter,
the cost of buying same-species eggs
for that starter will be reduced (up to 50%)
* Add test to validate array lengths for egg costs
* [Ability] Poison Puppeteer now applies for abilities
When a target is poisoned due to an ability of a Pokemon that also
has Poison Puppeteer, Poison Puppeteer will now apply its effect
* Add tests for Poison Puppeteer
* Remove parameter properties from `ObtainStatusEffectPhase`
* [Test] Fixed even more `game.scene.getXXX` issues
* Update fell-stinger.test.ts
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Applied review comments
* fixed doodle test inconsistencies
* fix
* applied reviews
not going too ham will make another PR later
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* [Test] Fix test end log check mark
heavy check mark looks weird on more fonts than the normal one
* Added variant selector codepoint to force rendering as thin version
* Update test/test-utils/setup/test-end-log.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Changed checkmark back to normal one
idfk how this works maaaan
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update trash-to-treasure-encounter.test.ts
* Update trash-to-treasure-encounter.ts
* pain and suffering is lessened
* rotom is just gonna be random now (arena.ts)
* looked at biomes.ts a lot today, not a fan (of rotom, fan)
* stares at weather.ts intensely (lots of small changes)
* Update init-biomes, slight tweaks to encounters
* yay so many more biome.ts please be the last until biome rework
* oh I also changed dudunsparce and maushold to 1/16 to match the others
* ok, biomes.ts one final I think
* minor fixes for biomes.ts
* Update init-biomes.ts
* Adjust Minimum Party Size and Max Allowed Encounters for some ME's
* rename `getShinyMultiplier`
* simplify methods to use first active event instead of sometimes using all active events
* change remaining methods to use first event
* use `ModifierTypeKeys` instead of `string` for wave rewards
* rename `shinyMultiplier` to `shinyEncounterMultiplier` and add `shinyCatchMultiplier`
* update comments
* add comment
* Fix capitalization of variable, remove comment
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Add extra EXP Charm to Classic, Add 1 Ability 1 Shiny Charm to Daily
* Update Delibird moveset in pokemon-level-moves.ts based off of PLA
* Dragon Claw TM Ultra -> Great
* some gmax changes Update pokemon-species.ts
* X items - Update modifier.ts
* (Beta) Milotic and Golisopod slot 3 -> 4 Update rival-party-config.ts
* test fix for x items Update temp-stat-stage-booster.test.ts
* Update tms.ts air cutter and sky drop
* Update tms.ts water pulse and brutal swing
* (beta) fix for admins Update fixed-battle-configs.ts
* (beta) fix Update challenge.ts too
* Fixed up arena tags `apply` with type safety; removed unused parameters from tags
* Enforced member visibility on a few methods
* Made arena tag layers readonly; cleaned up callsites
* Added tests for stone axe
* Fixed mat block + removed unused file
* Fixed up the tests for locale messages + fixed lucky chant
* Reverted change to light screen DR%
* Fixed tests to not check neutralizing gas msgs
* Fixed inverted conditional in test file
* Update doc comments for type-helpers.ts
* Added util to make `it.each` test cases from a bunch of enums
* Fixed up tsdocs
* Fixed type error + removed broken util
* Fixed TR signature
* FIxed type errors caused by pending heal tags
* Remove `undefined` from `onOverlap`'s signature
* allow sourceless arena tags once again
---------
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Added various ribbon utils
* Added ribbon tray to pokédex page
* V button in Pokédex toggles IVs
* Introduced visibility toggle
* Added ribbons (and full ivs) to unlocks file
* For real this time
* Added descriptions to the ribbons
* Fixed bug of tray not opening with visibility option on
* Minor cleanup of ribbon tray
* Use unique ribbon icons
* Make achv use image instead of sprite
* Tweak size of ribbons
* Improve clarity on comment
---------
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
* make IVs use Uint8Array
* Add many typed array helpers
* Move array utils to its own file
* Add suppression comment
* Adjust type of `getStats`
* Adjust test mocks to use typed arrays
* Adjust signatures of some phases to use ArrayLike<T>
* Adjust signature of src/ui/containers/stats-container#updateIvs
* Remove comment gap to try to satisfy typedoc
* Ensure ivs are always set
* fix: fun-and-games me to use typed array
* Add new tests for array utilities
* Update type of ivs in save-data.ts
* Update part-timer-encounter.test.ts
* Convert uses of StatusEffect[] to Uint8Array
* Update ssui to use uint8array for ivs
* Revert use of typed arrays
* Move `nil` to @types/common
* Make more arrays readonly
* fix: remnant change to immune effects
* Even more array improvements
* Apply kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* address Bertie's comments from code review
* tests: remove undefined check for bigint array types
* fixup abilities.ts
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Add caching for test matchers types to improve ts performance
* add skipLibCheck to tsconfig.json
* Bump package versions
* Move tm species map to its own file
* Turn on ts-nocheck in pokemon-level-moves
* Move initBiomes to own file
* Add types to methods in ME encounter phase utils
* Fix spacing
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>